Debian Codegraph @

Source/Reasoner/Kernel/Algorithm/CSatisfiableTaskPropagationBindingAnsweringMessageAnalyser.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_ALGORITHM_CSATISFIABLETASKPROPAGATIONBINDINGANSWERINGMESSAGEANALYSER_H
22 #define KONCLUDE_REASONER_KERNEL_ALGORITHM_CSATISFIABLETASKPROPAGATIONBINDINGANSWERINGMESSAGEANALYSER_H
23
24 // Libraries includes
25
26
27 // Namespace includes
28 #include "CCalculationAlgorithmContext.h"
29
30 // Other includes
31 #include "Context/CContextBase.h"
32
33 #include "Reasoner/Answerer/CAnsweringMessageDataObserver.h"
34
35 #include "Reasoner/Answerer/CAnsweringMessageData.h"
36 #include "Reasoner/Answerer/CAnsweringMessageDataVariableBindingPropagations.h"
37
38 #include "Reasoner/Kernel/Task/CSatisfiableCalculationTask.h"
39 #include "Reasoner/Kernel/Task/CSatisfiableTaskAnswererSubsumptionMessageAdapter.h"
40
41 #include "Reasoner/Kernel/Process/Dependency/CDependencyTrackPoint.h"
42 #include "Reasoner/Kernel/Process/Dependency/CDependencyNode.h"
43 #include "Reasoner/Kernel/Process/CIndividualProcessNode.h"
44 #include "Reasoner/Kernel/Process/CIndividualSaturationProcessNode.h"
45
46 #include "Reasoner/Ontology/CConceptProcessData.h"
47 #include "Reasoner/Ontology/CConceptSatisfiableReferenceLinkingData.h"
48 #include "Reasoner/Ontology/CConceptSaturationReferenceLinkingData.h"
49
50 // Logger includes
51 #include "Logger/CLogger.h"
52
53
54
55 namespace Konclude {
56
57 using namespace Context;
58
59 namespace Reasoner {
60
61 using namespace Consistiser;
62 using namespace Answerer;
63 using namespace Ontology;
64
65 namespace Kernel {
66
67 using namespace Task;
68 using namespace Process::Dependency;
69
70 namespace Algorithm {
71
72 /*!
73 *
74 * \class CSatisfiableTaskPropagationBindingAnsweringMessageAnalyser
75 * \author Andreas Steigmiller
76 * \version 0.1
77 * \brief TODO
78 *
79 */
80 class CSatisfiableTaskPropagationBindingAnsweringMessageAnalyser {
81 // public methods
82 public:
83 //! Constructor
84 CSatisfiableTaskPropagationBindingAnsweringMessageAnalyser();
85
86 bool readCalculationConfig(CCalculationConfigurationExtension *config);
87 bool analyseSatisfiableTask(CSatisfiableCalculationTask* statCalcTask, CCalculationAlgorithmContext* calcAlgContext);
88
89 CIndividualProcessNode* getCorrectedIndividualID(CIndividualProcessNode* baseIndiNode, CIndividualProcessNodeVector* indiNodeVec, bool* nondetMergedFlag);
90
91
92
93 // protected methods
94 protected:
95 CSatisfiableTaskPropagationBindingAnsweringMessageAnalyser* appendVariableBindingsPropagation(CVariableBindingPath* varBindPath, CVARIABLEBINDINGMESSAGELIST<CVariable*>*& variablesList, CVARIABLEBINDINGMESSAGELIST<CAnsweringMessageDataVariableBindingPropagationsData*>*& individualBindingList, cint64 maxDetBranchTag, CSatisfiableCalculationTask* statCalcTask, CCalculationAlgorithmContext* calcAlgContext);
96
97
98 // protected variables
99 protected:
100
101
102 CTaskMemoryPoolAllocationManager* mTempMemAllocMan;
103 CContextBase* mTmpContext;
104 CSatisfiableCalculationTask* mStatCalcTask;
105
106
107
108
109
110 // private methods
111 private:
112
113 // private variables
114 private:
115
116 };
117
118 }; // end namespace Algorithm
119
120 }; // end namespace Kernel
121
122 }; // end namespace Reasoner
123
124 }; // end namespace Konclude
125
126 #endif // KONCLUDE_REASONER_KERNEL_ALGORITHM_CSATISFIABLETASKPROPAGATIONBINDINGANSWERINGMESSAGEANALYSER_H