| 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_REALIZER_CONTOLOGYREALIZINGDYNAMICITERATORREQUIRMENTDATACALLBACK_H |
| 22 |
#define KONCLUDE_REASONER_REALIZER_CONTOLOGYREALIZINGDYNAMICITERATORREQUIRMENTDATACALLBACK_H |
| 23 |
|
| 24 |
// Libraries includes |
| 25 |
|
| 26 |
|
| 27 |
// Namespace includes |
| 28 |
#include "RealizerSettings.h" |
| 29 |
#include "COntologyRealizingDynamicRequirmentProcessingData.h" |
| 30 |
|
| 31 |
// Other includes |
| 32 |
|
| 33 |
#include "Concurrent/Callback/CCallbackData.h" |
| 34 |
|
| 35 |
#include "Config/CConfigurationBase.h" |
| 36 |
|
| 37 |
#include "Reasoner/Ontology/COntologyProcessingIteratorRealizationRequirement.h" |
| 38 |
|
| 39 |
// Logger includes |
| 40 |
#include "Logger/CLogger.h" |
| 41 |
|
| 42 |
|
| 43 |
namespace Konclude { |
| 44 |
|
| 45 |
using namespace Concurrent::Callback; |
| 46 |
|
| 47 |
namespace Reasoner { |
| 48 |
|
| 49 |
using namespace Ontology; |
| 50 |
|
| 51 |
namespace Realizer { |
| 52 |
|
| 53 |
|
| 54 |
/*! |
| 55 |
* |
| 56 |
* \class COntologyRealizingDynamicIteratorRequirmentDataCallback |
| 57 |
* \author Andreas Steigmiller |
| 58 |
* \version 0.1 |
| 59 |
* \brief TODO |
| 60 |
* |
| 61 |
*/ |
| 62 |
class COntologyRealizingDynamicIteratorRequirmentDataCallback : public CCallbackData, public COntologyProcessingDynamicRealizationRequirement { |
| 63 |
// public methods |
| 64 |
public: |
| 65 |
//! Constructor |
| 66 |
COntologyRealizingDynamicIteratorRequirmentDataCallback(COntologyRealizingDynamicRequirmentProcessingData* procData, COptimizedRepresentativeKPSetOntologyRealizingItem* realizationItem, COntologyProcessingIteratorRealizationRequirement* iteratorRequirement); |
| 67 |
|
| 68 |
|
| 69 |
virtual void doCallback(); |
| 70 |
|
| 71 |
|
| 72 |
COntologyRealizingDynamicRequirmentProcessingData* getRequirementProcessingData(); |
| 73 |
COptimizedRepresentativeKPSetOntologyRealizingItem* getRealizationItem(); |
| 74 |
COntologyProcessingIteratorRealizationRequirement* getRealizationIteratorRequirement(); |
| 75 |
|
| 76 |
|
| 77 |
cint64 getFoundInstancesCount(); |
| 78 |
COntologyRealizingDynamicIteratorRequirmentDataCallback* incFoundInstancesCount(cint64 count); |
| 79 |
|
| 80 |
|
| 81 |
bool hasRealizedAllInstances(); |
| 82 |
COntologyRealizingDynamicIteratorRequirmentDataCallback* setRealizedAllInstances(bool realizedAll); |
| 83 |
|
| 84 |
virtual COntologyProcessingDynamicRealizationRequirement* submitRequirementUpdate(cint64 processingFlags, cint64 errorFlags); |
| 85 |
|
| 86 |
|
| 87 |
|
| 88 |
cint64 getRoleInitializationCount(); |
| 89 |
cint64 getRoleRealizationCount(); |
| 90 |
cint64 getConceptRealizationCount(); |
| 91 |
|
| 92 |
COntologyRealizingDynamicIteratorRequirmentDataCallback* incRoleInitializationCount(); |
| 93 |
COntologyRealizingDynamicIteratorRequirmentDataCallback* incRoleRealizationCount(); |
| 94 |
COntologyRealizingDynamicIteratorRequirmentDataCallback* incConceptRealizationCount(); |
| 95 |
|
| 96 |
// protected methods |
| 97 |
protected: |
| 98 |
|
| 99 |
// protected variables |
| 100 |
protected: |
| 101 |
COntologyRealizingDynamicRequirmentProcessingData* mProcData; |
| 102 |
COptimizedRepresentativeKPSetOntologyRealizingItem* mRealizationItem; |
| 103 |
COntologyProcessingIteratorRealizationRequirement* mIteratorRequirement; |
| 104 |
|
| 105 |
|
| 106 |
cint64 mRoleInitializationCount; |
| 107 |
cint64 mRoleRealizationCount; |
| 108 |
cint64 mConceptRealizationCount; |
| 109 |
|
| 110 |
|
| 111 |
cint64 mFoundInstancesCount; |
| 112 |
bool mRealizedAllInstances; |
| 113 |
|
| 114 |
// private methods |
| 115 |
private: |
| 116 |
|
| 117 |
// private variables |
| 118 |
private: |
| 119 |
|
| 120 |
}; |
| 121 |
|
| 122 |
}; // end namespace Realizer |
| 123 |
|
| 124 |
}; // end namespace Reasoner |
| 125 |
|
| 126 |
}; // end namespace Konclude |
| 127 |
|
| 128 |
#endif // KONCLUDE_REASONER_REALIZER_CONTOLOGYREALIZINGDYNAMICITERATORREQUIRMENTDATACALLBACK_H |