Debian Codegraph @

Source/Reasoner/Realizer/COntologyRealizingItem.h

raw
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_CONTOLOGYREALIZINGITEM_H
22 #define KONCLUDE_REASONER_REALIZER_CONTOLOGYREALIZINGITEM_H
23
24 // Libraries includes
25
26
27 // Namespace includes
28 #include "RealizerSettings.h"
29 #include "COntologyRealizingDynamicRequirmentProcessingData.h"
30
31 // Other includes
32 #include "Reasoner/Ontology/CConcreteOntology.h"
33 #include "Reasoner/Ontology/COntologyProcessingRequirement.h"
34
35
36 #include "Concurrent/Callback/CCallbackListExecuter.h"
37 #include "Concurrent/Callback/CCallbackData.h"
38
39 #include "Config/CConfigurationBase.h"
40
41
42 // Logger includes
43 #include "Logger/CLogger.h"
44
45
46 namespace Konclude {
47
48 using namespace Concurrent::Callback;
49 using namespace Config;
50
51 namespace Reasoner {
52
53 using namespace Ontology;
54
55 namespace Realizer {
56
57
58 /*!
59 *
60 * \class COntologyRealizingItem
61 * \author Andreas Steigmiller
62 * \version 0.1
63 * \brief TODO
64 *
65 */
66 class COntologyRealizingItem {
67 // public methods
68 public:
69 //! Constructor
70 COntologyRealizingItem();
71
72 COntologyRealizingItem* initRealizingItem(CConcreteOntology* ontology, CConfigurationBase* config);
73
74 virtual COntologyRealizingItem* addProcessingRequirement(COntologyProcessingRequirement* ontoRequirement, COntologyRealizingDynamicRequirmentProcessingData* procData);
75 virtual COntologyRealizingItem* logRequirementProcessingStartStatistics(COntologyRealizingDynamicRequirmentProcessingStatistics* procStats);
76 virtual COntologyRealizingItem* logRequirementProcessingFinishStatistics(COntologyRealizingDynamicRequirmentProcessingStatistics* procStats);
77
78
79 bool isRealizingFinished();
80 COntologyRealizingItem* setRealizingFinished(bool finished);
81
82 COntologyRealizingItem* doRealizingFinishedCallback(bool doCallbacks = true);
83
84 COntologyRealizingItem* addRealizingFinishedCallback(CCallbackData* callback);
85
86 CConfigurationBase* getConfiguration();
87 CConcreteOntology* getOntology();
88
89 QSet<CRealizingTestingItem*>* getRealizingTestingItemSet();
90 cint64 getCurrentRealizingTestingCount();
91 bool hasCurrentRealizingTestingCount();
92
93 CLinker<COntologyRealizingDynamicRequirmentProcessingData*>* createRequirementProcessingDataLinker(COntologyRealizingDynamicRequirmentProcessingData* procData);
94 COntologyRealizingItem* releaseRequirementProcessingDataLinker(CLinker<COntologyRealizingDynamicRequirmentProcessingData*>* procDataLinker);
95
96
97 // protected methods
98 protected:
99
100 // protected variables
101 protected:
102 CConcreteOntology* mOntology;
103 CConfigurationBase* mConfig;
104
105 bool mRealizingFinishedFlag;
106 CCallbackListExecuter mCallbackExecuter;
107 QSet<CRealizingTestingItem*> mTestItemSet;
108
109 CLinker<COntologyRealizingDynamicRequirmentProcessingData*>* mTmpProcDataLinker;
110
111 // private methods
112 private:
113
114 // private variables
115 private:
116
117 };
118
119 }; // end namespace Realizer
120
121 }; // end namespace Reasoner
122
123 }; // end namespace Konclude
124
125 #endif // KONCLUDE_REASONER_REALIZER_CONTOLOGYREALIZINGITEM_H