Debian Codegraph @

Source/Reasoner/Preprocess/COntologyPreprocessingItem.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_PREPROCESS_CONTOLOGYPREPROCESSINGITEM_H
22 #define KONCLUDE_REASONER_PREPROCESS_CONTOLOGYPREPROCESSINGITEM_H
23
24 // Libraries includes
25
26
27 // Namespace includes
28 #include "PreprocessSettings.h"
29
30 // Other includes
31 #include "Reasoner/Ontology/CConcreteOntology.h"
32 #include "Reasoner/Ontology/COntologyProcessingRequirement.h"
33
34
35 #include "Concurrent/Callback/CCallbackListExecuter.h"
36 #include "Concurrent/Callback/CCallbackData.h"
37
38 #include "Config/CConfigurationBase.h"
39
40
41 // Logger includes
42 #include "Logger/CLogger.h"
43
44
45 namespace Konclude {
46
47 using namespace Concurrent::Callback;
48 using namespace Config;
49
50 namespace Reasoner {
51
52 using namespace Ontology;
53
54 namespace Preprocess {
55
56
57 /*!
58 *
59 * \class COntologyPreprocessingItem
60 * \author Andreas Steigmiller
61 * \version 0.1
62 * \brief TODO
63 *
64 */
65 class COntologyPreprocessingItem {
66 // public methods
67 public:
68 //! Constructor
69 COntologyPreprocessingItem();
70
71 COntologyPreprocessingItem* initPreprocessingItem(CConcreteOntology* ontology, CConfigurationBase* config);
72
73 virtual COntologyPreprocessingItem* addProcessingRequirement(COntologyProcessingRequirement* ontoRequirement);
74
75 bool isPreprocessingFinished();
76 COntologyPreprocessingItem* setPreprocessingFinished(bool finished);
77
78 COntologyPreprocessingItem* doPreprocessingFinishedCallback(bool doCallbacks = true);
79
80 COntologyPreprocessingItem* addPreprocessingFinishedCallback(CCallbackData* callback);
81
82 CConfigurationBase* getConfiguration();
83 CConcreteOntology* getOntology();
84
85 QSet<CPreprocessingTestingItem*>* getPreprocessingTestingItemSet();
86 cint64 getCurrentPreprocessingTestingCount();
87 bool hasCurrentPreprocessingTestingCount();
88
89
90
91 // protected methods
92 protected:
93
94 // protected variables
95 protected:
96 CConcreteOntology* mOntology;
97 CConfigurationBase* mConfig;
98
99 bool mPreprocessingFinishedFlag;
100 CCallbackListExecuter mCallbackExecuter;
101 QSet<CPreprocessingTestingItem*> mTestItemSet;
102
103 // private methods
104 private:
105
106 // private variables
107 private:
108
109 };
110
111 }; // end namespace Preprocess
112
113 }; // end namespace Reasoner
114
115 }; // end namespace Konclude
116
117 #endif // KONCLUDE_REASONER_PREPROCESS_CONTOLOGYPREPROCESSINGITEM_H