Debian Codegraph @

Source/Reasoner/Kernel/Manager/CRequirementPreparingData.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_KERNEL_MANAGER_CREQUIREMENTPREPARINGDATA_H
22 #define KONCLUDE_REASONER_KERNEL_MANAGER_CREQUIREMENTPREPARINGDATA_H
23
24 // Libraries includes
25 #include <QReadWriteLock>
26 #include <QHash>
27
28 // Namespace includes
29 #include "ManagerSettings.h"
30 #include "COntologyRequirementPreparingData.h"
31 #include "COntologyRequirementPair.h"
32
33 // Other includes
34 #include "Reasoner/Ontology/CConcreteOntology.h"
35 #include "Reasoner/Ontology/COntologyProcessingRequirement.h"
36
37 #include "Reasoner/Query/CQuery.h"
38
39 #include "Concurrent/Callback/CCallbackData.h"
40
41
42 // Logger includes
43 #include "Logger/CLogger.h"
44
45
46
47 namespace Konclude {
48
49 using namespace Concurrent::Callback;
50
51 namespace Reasoner {
52
53 using namespace Query;
54 using namespace Ontology;
55
56 namespace Kernel {
57
58 namespace Manager {
59
60
61 /*!
62 *
63 * \class CRequirementPreparingData
64 * \author Andreas Steigmiller
65 * \version 0.1
66 * \brief TODO
67 *
68 */
69 class CRequirementPreparingData {
70 // public methods
71 public:
72 //! Constructor
73 CRequirementPreparingData(CCallbackData* callback, CQuery* query, CReasoningTaskData* reasoningData);
74
75 //! Destructor
76 ~CRequirementPreparingData();
77
78 COntologyRequirementPreparingData* getOntologyRequirementPreparingData(CConcreteOntology* ontology);
79
80
81 CCallbackData* mCallback;
82 CQuery* mQuery;
83 CReasoningTaskData* mReasoningData;
84
85 bool mRequirementFailed;
86 cint64 mDepCount;
87 QHash<CConcreteOntology*,COntologyRequirementPreparingData*> mOntoReqDataHash;
88
89 QList<COntologyRequirementPair> mFailedReqList;
90 QList<COntologyRequirementPair> mSatisfiedReqList;
91 QList<COntologyRequirementPreparingData*> mOntoReqDataContainer;
92
93 // protected methods
94 protected:
95
96 // protected variables
97 protected:
98
99 // private methods
100 private:
101
102 // private variables
103 private:
104
105 };
106
107 }; // end namespace Manager
108
109 }; // end namespace Kernel
110
111 }; // end namespace Reasoner
112
113 }; // end namespace Konclude
114
115 #endif // KONCLUDE_REASONER_KERNEL_MANAGER_CREQUIREMENTPREPARINGDATA_H