Debian Codegraph @

Source/Reasoner/Answerer/COptimizedComplexVariableCompositionItemDependence.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_ANSWERER_COPTIMIZEDCOMPLEXVARIABLECOMPOSITIONITEMDEPENDENCE_H
22 #define KONCLUDE_REASONER_ANSWERER_COPTIMIZEDCOMPLEXVARIABLECOMPOSITIONITEMDEPENDENCE_H
23
24 // Libraries includes
25
26
27 // Namespace includes
28 #include "AnswererSettings.h"
29 #include "COptimizedComplexVariableCompositionItem.h"
30
31
32 // Other includes
33
34
35 // Logger includes
36 #include "Logger/CLogger.h"
37
38
39 namespace Konclude {
40
41
42 namespace Reasoner {
43
44 namespace Answerer {
45
46
47 /*!
48 *
49 * \class COptimizedComplexVariableCompositionItemDependence
50 * \author Andreas Steigmiller
51 * \version 0.1
52 * \brief TODO
53 *
54 */
55 class COptimizedComplexVariableCompositionItemDependence {
56 // public methods
57 public:
58 //! Constructor
59 COptimizedComplexVariableCompositionItemDependence(COptimizedComplexVariableCompositionItem* baseItem);
60
61 virtual ~COptimizedComplexVariableCompositionItemDependence();
62
63
64 COptimizedComplexVariableCompositionItem* getDependentItem();
65
66 bool reset();
67
68 COptimizedComplexVariableIndividualBindingsCardinalityLinker* getBatchCurrentBindingsCardinalityLinker(bool moveNext);
69 COptimizedComplexVariableIndividualUpdateCardinalityLinker* getBatchCurrentUpdatedCardinalityLinker(bool moveNext);
70
71 cint64 getBatchProcessedBindingsCardinalityLinkerCount();
72 cint64 getTotalProcessedBindingsCardinalityLinkerCount();
73
74 bool isBatchProcessed(bool considerCardinalityUpdates = true);
75 bool loadNextBatch(bool considerCardinalityUpdates = true);
76 bool loadNextBatchProvidedBatch(bool considerCardinalityUpdates = true);
77
78
79 bool isProcessingFinished(bool considerCardinalityUpdates = true);
80
81
82 cint64 getLastRequestedMappingsComputationCount();
83 COptimizedComplexVariableCompositionItemDependence* setLastRequestedMappingsComputationCount(cint64 count);
84 bool hasMappingsCountComputationRequested(cint64 count);
85
86 COptimizedComplexVariableIndividualBindingsCardinalityBatchLinker* getBatchProvidedBindingCardinalityBatchLinker(bool moveNext);
87 bool setBatchProvidedBindingCardinalityLinkersProcessed(COptimizedComplexVariableIndividualBindingsCardinalityBatchLinker* batchLinker);
88
89
90
91 // protected methods
92 protected:
93
94 // protected variables
95 protected:
96 COptimizedComplexVariableCompositionItem* mDependentItem;
97
98 COptimizedComplexVariableIndividualBindingsCardinalityBatchLinker* mStartLoadedBindingsCardinalityBatchLinker;
99 COptimizedComplexVariableIndividualBindingsCardinalityBatchLinker* mCurrentLoadedBindingsCardinalityBatchLinker;
100 COptimizedComplexVariableIndividualBindingsCardinalityBatchLinker* mEndLoadedBindingsCardinalityBatchLinker;
101
102 bool mSingleLoadedBindingsCardinalityLinker;
103 COptimizedComplexVariableIndividualBindingsCardinalityLinker* mBatchStartBindingsCardinalityLinker;
104 COptimizedComplexVariableIndividualUpdateCardinalityLinker* mBatchStartUpdatedCardinalityLinker;
105
106
107 COptimizedComplexVariableIndividualBindingsCardinalityLinker* mBatchEndBindingsCardinalityLinker;
108 COptimizedComplexVariableIndividualUpdateCardinalityLinker* mBatchEndUpdatedCardinalityLinker;
109
110
111 COptimizedComplexVariableIndividualBindingsCardinalityLinker* mBatchCurrentBindingsCardinalityLinker;
112 COptimizedComplexVariableIndividualUpdateCardinalityLinker* mBatchCurrentUpdatedCardinalityLinker;
113
114 cint64 mBatchDependentItemMappingsCount;
115 cint64 mBatchDependentItemMappingsSize;
116 cint64 mBatchProcessedBindingsCardinalityLinkerCount;
117 cint64 mTotalProcessedBindingsCardinalityLinkerCount;
118
119 cint64 mLastRequestedMappingsComputationCount;
120
121
122 // private methods
123 private:
124
125 // private variables
126 private:
127
128 };
129
130 }; // end namespace Answerer
131
132 }; // end namespace Reasoner
133
134 }; // end namespace Konclude
135
136 #endif // KONCLUDE_REASONER_ANSWERER_COPTIMIZEDCOMPLEXVARIABLECOMPOSITIONITEMDEPENDENCE_H