Debian Codegraph @

Source/Reasoner/Kernel/Algorithm/CCalculationAlgorithmContextBase.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_CCALCULATIONALGORITHMCONTEXTBASE_H
22 #define KONCLUDE_REASONER_KERNEL_ALGORITHM_CCALCULATIONALGORITHMCONTEXTBASE_H
23
24 // Libraries includes
25
26
27 // Namespace includes
28 #include "AlgorithmSettings.h"
29 #include "CCalculationAlgorithmContext.h"
30
31
32 // Other includes
33 #include "Scheduler/CTaskContext.h"
34
35 #include "Reasoner/Kernel/Process/CProcessContext.h"
36
37 #include "Reasoner/Kernel/Task/CConsistenceTaskData.h"
38
39 // Logger includes
40 #include "Logger/CLogger.h"
41
42
43 namespace Konclude {
44
45 using namespace Scheduler;
46
47 namespace Reasoner {
48
49 namespace Kernel {
50
51 using namespace Process;
52 using namespace Strategy;
53 using namespace Task;
54
55 namespace Algorithm {
56
57 /*!
58 *
59 * \class CCalculationAlgorithmContextBase
60 * \author Andreas Steigmiller
61 * \version 0.1
62 * \brief TODO
63 *
64 */
65 class CCalculationAlgorithmContextBase : public CCalculationAlgorithmContext {
66 // public methods
67 public:
68 //! Constructor
69 CCalculationAlgorithmContextBase();
70
71 //! Destructor
72 virtual ~CCalculationAlgorithmContextBase();
73
74 CCalculationAlgorithmContextBase* initCalculationAlgorithmContext(CTaskProcessorContext* taskHandleContext);
75
76 CCalculationAlgorithmContextBase* initCalculationAlgorithmContext(CTaskProcessorContext* taskHandleContext, CConceptProcessingPriorityStrategy* conceptPriorityStrategy,
77 CIndividualProcessingPriorityStrategy* individualPriorityStrategy, CTaskProcessingPriorityStrategy* taskPriorityStrategy, CUnsatisfiableCacheRetrievalStrategy* unsatCacheRetrievalStrategy,
78 CIndividualNodeManager* indiNodeManager, CClashDescriptorFactory* clashDesFactory, CDependencyFactory* depFactory, CUnsatisfiableCacheHandler* unsatCacheHandler, CSatisfiableExpanderCacheHandler* satExpCacheHandler, CSaturationNodeExpansionCacheHandler* satNodeExpCacheHandler);
79 CCalculationAlgorithmContextBase* initTaskProcessContext(CProcessContext* processContext, CSatisfiableCalculationTask* satCalcTask);
80
81 virtual CProcessTagger* getProcessTagger();
82 virtual CProcessContext* getProcessContext();
83 virtual CMemoryAllocationManager* getProcessTaskMemoryAllocationManager();
84 virtual CMemoryAllocationManager* getMemoryAllocationManager();
85 virtual CTaskHandleMemoryAllocationManager* getTemporaryMemoryAllocationManager();
86 virtual CConceptProcessingPriorityStrategy* getConceptPriorityStrategy();
87 virtual CIndividualProcessingPriorityStrategy* getIndividualPriorityStrategy();
88 virtual CProcessingDataBox* getProcessingDataBox();
89 virtual CSatisfiableCalculationTask* getSatisfiableCalculationTask();
90 virtual CTaskProcessorContext* getTaskProcessorContext();
91 virtual CTaskProcessingPriorityStrategy* getTaskPriorityStrategy();
92 virtual CProcessingStatisticGathering* getProcessingStatisticsGathering();
93 virtual CBranchTreeNode* getBranchTreeNode();
94 virtual CBranchTreeNode* getNewBranchTreeNode();
95 virtual CDependencyNode* getBaseDependencyNode();
96 virtual CUnsatisfiableCacheHandler* getUnsatisfiableCacheHandler();
97 virtual CIndividualNodeManager* getIndividualNodeManager();
98 virtual CClashDescriptorFactory* getClashDescriptorFactory();
99 virtual CUnsatisfiableCacheRetrievalStrategy* getUnsatisfiableCacheRetrievalStrategy();
100 virtual CDependencyFactory* getDependencyFactory();
101 virtual CSatisfiableExpanderCacheHandler* getSatisfiableExpanderCacheHandler();
102 virtual CSaturationNodeExpansionCacheHandler* getSaturationNodeExpansionCacheHandler();
103
104 // protected methods
105 protected:
106
107 // protected variables
108 protected:
109 CTaskHandleMemoryAllocationManager* mTempMemMan;
110 CMemoryAllocationManager* mPrTaskMemMan;
111 CProcessTagger* mProcessTagger;
112 CProcessContext* mProcessContext;
113 CConceptProcessingPriorityStrategy* mConceptPriorityStrategy;
114 CIndividualProcessingPriorityStrategy* mIndividualPriorityStrategy;
115 CTaskProcessingPriorityStrategy* mTaskPriorityStrategy;
116 CProcessingDataBox* mProcessingDataBox;
117 CSatisfiableCalculationTask* mSatCalcTask;
118 CTaskProcessorContext* mTaskProcessorContext;
119 CProcessingStatisticGathering* mProcStatGath;
120 CBranchTreeNode* mBranchTreeNode;
121 CDependencyNode* mBaseDepNode;
122 CIndividualNodeManager* mIndiNodeManager;
123 CUnsatisfiableCacheHandler* mUnsatCacheHandler;
124 CClashDescriptorFactory* mClashDescriptorFactory;
125 CUnsatisfiableCacheRetrievalStrategy* mUnsatCachRetStrategy;
126 CDependencyFactory* mDepFactory;
127 CSatisfiableExpanderCacheHandler* mSatExpCacheHandler;
128 CSaturationNodeExpansionCacheHandler* mSatNodeExpCacheHandler;
129
130
131 // private methods
132 private:
133
134 // private variables
135 private:
136
137 };
138
139
140 }; // end namespace Algorithm
141
142 }; // end namespace Kernel
143
144 }; // end namespace Reasoner
145
146 }; // end namespace Konclude
147
148 #endif // KONCLUDE_REASONER_KERNEL_ALGORITHM_CCALCULATIONALGORITHMCONTEXTBASE_H