| 1 |
/* |
| 2 |
* Copyright (C) 2013-2015, 2019 by the Konclude Developer Team. |
| 3 |
* |
| 4 |
* This file is part of the reasoning system Konclude. |
| 5 |
* For details and support, see <http://konclude.com/>. |
| 6 |
* |
| 7 |
* Konclude is free software: you can redistribute it and/or modify |
| 8 |
* it under the terms of version 3 of the GNU Lesser General Public |
| 9 |
* License (LGPLv3) as published by the Free Software Foundation. |
| 10 |
* |
| 11 |
* Konclude is distributed in the hope that it will be useful, |
| 12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 |
* GNU (Lesser) General Public License for more details. |
| 15 |
* |
| 16 |
* You should have received a copy of the GNU (Lesser) General Public |
| 17 |
* License along with Konclude. If not, see <http://www.gnu.org/licenses/>. |
| 18 |
* |
| 19 |
*/ |
| 20 |
|
| 21 |
#ifndef KONCLUDE_REASONER_CLASSIFIER_CCLASSIFIERSTATISTICS_H |
| 22 |
#define KONCLUDE_REASONER_CLASSIFIER_CCLASSIFIERSTATISTICS_H |
| 23 |
|
| 24 |
// Libraries includes |
| 25 |
|
| 26 |
|
| 27 |
// Namespace includes |
| 28 |
#include "ClassifierSettings.h" |
| 29 |
|
| 30 |
// Other includes |
| 31 |
|
| 32 |
// Logger includes |
| 33 |
#include "Logger/CLogger.h" |
| 34 |
|
| 35 |
|
| 36 |
namespace Konclude { |
| 37 |
|
| 38 |
namespace Reasoner { |
| 39 |
|
| 40 |
namespace Classifier { |
| 41 |
|
| 42 |
|
| 43 |
/*! |
| 44 |
* |
| 45 |
* \class CClassifierStatistics |
| 46 |
* \author Andreas Steigmiller |
| 47 |
* \version 0.1 |
| 48 |
* \brief TODO |
| 49 |
* |
| 50 |
*/ |
| 51 |
class CClassifierStatistics { |
| 52 |
// public methods |
| 53 |
public: |
| 54 |
//! Constructor |
| 55 |
CClassifierStatistics(CClassifierStatistics *nextClassificationStatistics = 0); |
| 56 |
|
| 57 |
qint64 getPseudoModelMergedTestedSubsumptionCount(); |
| 58 |
qint64 getSubclassTestedSubsumptionCount(); |
| 59 |
qint64 getSubclassIdentifierOccurTestedSubsumptionCount(); |
| 60 |
qint64 getDerivatedTestedSubsumptionCount(); |
| 61 |
qint64 getCalculatedTestedSubsumptionCount(); |
| 62 |
qint64 getPrunedTestedSubsumptionCount(); |
| 63 |
qint64 getTestedSubsumptionCount(); |
| 64 |
qint64 getToldSubsumptionCount(); |
| 65 |
|
| 66 |
qint64 getPseudoModelMergedTestedSatisfiableCount(); |
| 67 |
qint64 getDerivatedTestedSatisfiableCount(); |
| 68 |
qint64 getCalculatedTestedSatisfiableCount(); |
| 69 |
qint64 getPrunedTestedSatisfiableCount(); |
| 70 |
qint64 getTestedSatisfiableCount(); |
| 71 |
qint64 getToldSatisfiableCount(); |
| 72 |
|
| 73 |
qint64 getTotalSubsumptionTestCount(); |
| 74 |
qint64 getTotalSatisfiableCount(); |
| 75 |
|
| 76 |
qint64 getPseudoModelMergedTestedDisjointCount(); |
| 77 |
qint64 getToldDisjointCount(); |
| 78 |
qint64 getCalculatedTestedDisjointCount(); |
| 79 |
|
| 80 |
CClassifierStatistics *incPseudoModelMergedTestedSubsumptionCount(qint64 incCount = 1); |
| 81 |
CClassifierStatistics *incSubclassTestedSubsumptionCount(qint64 incCount = 1); |
| 82 |
CClassifierStatistics *incSubclassIdentifierOccurTestedSubsumptionCount(qint64 incCount = 1); |
| 83 |
CClassifierStatistics *incDerivatedTestedSubsumptionCount(qint64 incCount = 1); |
| 84 |
CClassifierStatistics *incCalculatedTestedSubsumptionCount(qint64 incCount = 1); |
| 85 |
CClassifierStatistics *incPrunedTestedSubsumptionCount(qint64 incCount = 1); |
| 86 |
CClassifierStatistics *incToldSubsumptionCount(qint64 incCount = 1); |
| 87 |
|
| 88 |
CClassifierStatistics *incPseudoModelMergedTestedSatisfiableCount(qint64 incCount = 1); |
| 89 |
CClassifierStatistics *incDerivatedTestedSatisfiableCount(qint64 incCount = 1); |
| 90 |
CClassifierStatistics *incCalculatedTestedSatisfiableCount(qint64 incCount = 1); |
| 91 |
CClassifierStatistics *incPrunedTestedSatisfiableCount(qint64 incCount = 1); |
| 92 |
CClassifierStatistics *incToldSatisfiableCount(qint64 incCount = 1); |
| 93 |
|
| 94 |
|
| 95 |
CClassifierStatistics *incPseudoModelMergedTestedDisjointCount(qint64 incCount = 1); |
| 96 |
CClassifierStatistics *incToldDisjointCount(qint64 incCount = 1); |
| 97 |
CClassifierStatistics *incCalculatedTestedDisjointCount(qint64 incCount = 1); |
| 98 |
|
| 99 |
|
| 100 |
CClassifierStatistics *incTotalSubsumptionTestCount(qint64 incCount = 1); |
| 101 |
CClassifierStatistics *incTotalSatisfiableTestCount(qint64 incCount = 1); |
| 102 |
|
| 103 |
CClassifierStatistics *resetValues(); |
| 104 |
CClassifierStatistics *appendStatistics(CClassifierStatistics *statistics); |
| 105 |
|
| 106 |
// protected methods |
| 107 |
protected: |
| 108 |
|
| 109 |
// protected variables |
| 110 |
protected: |
| 111 |
qint64 pseudoModelSubsumTests; |
| 112 |
qint64 subclassSubsumTests; |
| 113 |
qint64 subclassIdOccSubsumTests; |
| 114 |
qint64 derivatedSubsumTests; |
| 115 |
qint64 prunedSubsumTests; |
| 116 |
qint64 calculatedSubsumTests; |
| 117 |
qint64 toldSubsumTests; |
| 118 |
|
| 119 |
qint64 pseudoModelSatisTests; |
| 120 |
qint64 derivatedSatisTests; |
| 121 |
qint64 calculatedSatisTests; |
| 122 |
qint64 prunedSatisTests; |
| 123 |
qint64 toldSatisTests; |
| 124 |
|
| 125 |
qint64 pseudoModelDisjointTests; |
| 126 |
qint64 calculatedDisjointTests; |
| 127 |
qint64 toldDisjointTests; |
| 128 |
|
| 129 |
|
| 130 |
qint64 totalSubsumTests; |
| 131 |
qint64 totalSatisTests; |
| 132 |
|
| 133 |
|
| 134 |
CClassifierStatistics *nextClassifStat; |
| 135 |
|
| 136 |
// private methods |
| 137 |
private: |
| 138 |
|
| 139 |
// private variables |
| 140 |
private: |
| 141 |
|
| 142 |
}; |
| 143 |
|
| 144 |
}; // end namespace Classifier |
| 145 |
|
| 146 |
}; // end namespace Reasoner |
| 147 |
|
| 148 |
}; // end namespace Konclude |
| 149 |
|
| 150 |
#endif // KONCLUDE_REASONER_CLASSIFIER_CCLASSIFIERSTATISTICS_H |