| 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_ANSWERER_CANSWERINGHANDLINGSTATISTICS_H |
| 22 |
#define KONCLUDE_REASONER_ANSWERER_CANSWERINGHANDLINGSTATISTICS_H |
| 23 |
|
| 24 |
// Libraries includes |
| 25 |
|
| 26 |
|
| 27 |
// Namespace includes |
| 28 |
#include "AnswererSettings.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 Answerer { |
| 41 |
|
| 42 |
|
| 43 |
/*! |
| 44 |
* |
| 45 |
* \class CAnsweringHandlingStatistics |
| 46 |
* \author Andreas Steigmiller |
| 47 |
* \version 0.1 |
| 48 |
* \brief TODO |
| 49 |
* |
| 50 |
*/ |
| 51 |
class CAnsweringHandlingStatistics { |
| 52 |
// public methods |
| 53 |
public: |
| 54 |
//! Constructor |
| 55 |
CAnsweringHandlingStatistics(CAnsweringHandlingStatistics *nextPrecompuationStatistics = 0); |
| 56 |
|
| 57 |
qint64 getTotalAnsweredQueriesCount(); |
| 58 |
CAnsweringHandlingStatistics* incTotalAnsweredQueriesCount(qint64 incCount = 1); |
| 59 |
|
| 60 |
|
| 61 |
qint64 getExistentialQueryPartAbsorptionCount(); |
| 62 |
CAnsweringHandlingStatistics* incExistentialQueryPartAbsorptionCount(qint64 incCount = 1); |
| 63 |
|
| 64 |
qint64 getCreatedComplexConceptItemsCount(); |
| 65 |
CAnsweringHandlingStatistics* incCreatedComplexConceptItemsCount(qint64 incCount = 1); |
| 66 |
|
| 67 |
qint64 getComplexConceptItemsPossibleInstanceVerificationCount(); |
| 68 |
CAnsweringHandlingStatistics* incComplexConceptItemsPossibleInstanceVerificationCount(qint64 incCount = 1); |
| 69 |
|
| 70 |
qint64 getComplexConceptItemsSatisfiabilityTestingCount(); |
| 71 |
CAnsweringHandlingStatistics* incComplexConceptItemsSatisfiabilityTestingCount(qint64 incCount = 1); |
| 72 |
|
| 73 |
qint64 getRequestedRealizationRequirementCount(); |
| 74 |
CAnsweringHandlingStatistics* incRequestedRealizationRequirementCount(qint64 incCount = 1); |
| 75 |
|
| 76 |
|
| 77 |
|
| 78 |
qint64 getComplexConceptItemsCandidatePropagationCount(); |
| 79 |
CAnsweringHandlingStatistics* incComplexConceptItemsCandidatePropagationCount(qint64 incCount = 1); |
| 80 |
|
| 81 |
qint64 getComplexConceptItemsSubClassSubsumptionTestingCount(); |
| 82 |
CAnsweringHandlingStatistics* incComplexConceptItemsSubClassSubsumptionTestingCount(qint64 incCount = 1); |
| 83 |
|
| 84 |
qint64 getComplexConceptItemsSuperClassSubsumptionTestingCount(); |
| 85 |
CAnsweringHandlingStatistics* incComplexConceptItemsSuperClassSubsumptionTestingCount(qint64 incCount = 1); |
| 86 |
|
| 87 |
qint64 getExistentialQueryPartEntailmentTestingCount(); |
| 88 |
CAnsweringHandlingStatistics* incExistentialQueryPartEntailmentTestingCount(qint64 incCount = 1); |
| 89 |
|
| 90 |
qint64 getExistentialQueryPartVariableBindingPropagationCount(); |
| 91 |
CAnsweringHandlingStatistics* incExistentialQueryPartVariableBindingPropagationCount(qint64 incCount = 1); |
| 92 |
|
| 93 |
qint64 getExistentialQueryPartVariableBindingConfirmationCount(); |
| 94 |
CAnsweringHandlingStatistics* incExistentialQueryPartVariableBindingConfirmationCount(qint64 incCount = 1); |
| 95 |
|
| 96 |
qint64 getComplexConceptAssertionEntailmentTestingCount(); |
| 97 |
CAnsweringHandlingStatistics* incComplexConceptAssertionEntailmentTestingCount(qint64 incCount = 1); |
| 98 |
|
| 99 |
qint64 getComplexConceptSubClassAxiomEntailmentTestingCount(); |
| 100 |
CAnsweringHandlingStatistics* incComplexConceptSubClassAxiomEntailmentTestingCount(qint64 incCount = 1); |
| 101 |
|
| 102 |
|
| 103 |
|
| 104 |
CAnsweringHandlingStatistics* resetValues(); |
| 105 |
CAnsweringHandlingStatistics* appendStatistics(CAnsweringHandlingStatistics *statistics); |
| 106 |
|
| 107 |
// protected methods |
| 108 |
protected: |
| 109 |
|
| 110 |
// protected variables |
| 111 |
protected: |
| 112 |
qint64 mTotalAnsweredQueries; |
| 113 |
qint64 mAbsorbedExistentialQueryPartCount; |
| 114 |
qint64 mCreatedComplexConceptItemsCount; |
| 115 |
qint64 mComplexConceptItemsPossibleInstanceVerificationCount; |
| 116 |
qint64 mComplexConceptItemsSatisfiabilityTestingCount; |
| 117 |
|
| 118 |
qint64 mComplexConceptItemsCandidatePropagationCount; |
| 119 |
qint64 mComplexConceptItemsSubClassSubsumptionTestingCount; |
| 120 |
qint64 mComplexConceptItemsSuperClassSubsumptionTestingCount; |
| 121 |
qint64 mExistentialQueryPartEntailmentTestingCount; |
| 122 |
qint64 mExistentialQueryPartVariableBindingPropagationCount; |
| 123 |
qint64 mExistentialQueryPartVariableBindingConfirmationCount; |
| 124 |
qint64 mComplexConceptAssertionEntailmentTestingCount; |
| 125 |
qint64 mComplexConceptSubClassAxiomEntailmentTestingCount; |
| 126 |
|
| 127 |
qint64 mRequestedRealizationRequirementCount; |
| 128 |
|
| 129 |
|
| 130 |
|
| 131 |
// private methods |
| 132 |
private: |
| 133 |
|
| 134 |
// private variables |
| 135 |
private: |
| 136 |
|
| 137 |
}; |
| 138 |
|
| 139 |
}; // end namespace Answerer |
| 140 |
|
| 141 |
}; // end namespace Reasoner |
| 142 |
|
| 143 |
}; // end namespace Konclude |
| 144 |
|
| 145 |
#endif // KONCLUDE_REASONER_ANSWERER_CANSWERINGHANDLINGSTATISTICS_H |