Debian Codegraph @

Source/Reasoner/Kernel/Algorithm/CTrackedClashedDescriptor.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_CTRACKEDCLASHEDDESCRIPTOR_H
22 #define KONCLUDE_REASONER_KERNEL_ALGORITHM_CTRACKEDCLASHEDDESCRIPTOR_H
23
24 // Libraries includes
25
26
27 // Namespace includes
28 #include "AlgorithmSettings.h"
29
30 // Other includes
31 #include "Reasoner/Kernel/Process/CClashedDependencyDescriptor.h"
32 #include "Reasoner/Kernel/Process/CConceptDescriptor.h"
33 #include "Reasoner/Kernel/Process/CIndividualProcessNode.h"
34 #include "Reasoner/Kernel/Process/CVariableBindingPath.h"
35
36 // Logger includes
37 #include "Logger/CLogger.h"
38
39
40
41 namespace Konclude {
42
43 namespace Reasoner {
44
45 namespace Kernel {
46
47 using namespace Process;
48
49 namespace Algorithm {
50
51 /*!
52 *
53 * \class CTrackedClashedDescriptor
54 * \author Andreas Steigmiller
55 * \version 0.1
56 * \brief TODO
57 *
58 */
59 class CTrackedClashedDescriptor : public CClashedDependencyDescriptor {
60 // public methods
61 public:
62 //! Constructor
63 CTrackedClashedDescriptor();
64
65 CTrackedClashedDescriptor* initTrackedClashedDescriptor(CIndividualProcessNode* indiNode, CConceptDescriptor* conDes, CVariableBindingPath* varBindPath, CDependencyTrackPoint* depTrackPoint);
66 CTrackedClashedDescriptor* initTrackedClashedDescriptor(CTrackedClashedDescriptor* trackedClashDes);
67 CTrackedClashedDescriptor* initTrackedClashedDescriptor(CTrackedClashedDescriptor* trackedClashDesForIndiNode, CConceptDescriptor* conDes, CVariableBindingPath* varBindPath, CDependencyTrackPoint* depTrackPoint);
68 CTrackedClashedDescriptor* initTrackedClashedDescriptor(CTrackedClashedDescriptor* trackedClashDesForIndiNode, CConceptDescriptor* conDes, CDependencyTrackPoint* depTrackPoint);
69
70 bool isAppropriatedIndividualNominal();
71 cint64 getAppropriatedIndividualID();
72 CIndividualProcessNode* getAppropriatedIndividual();
73
74
75 cint64 getAppropriatedIndividualLevel();
76
77 cint64 getBranchingLevelTag();
78 cint64 getProcessingTag();
79
80 bool isPointingToDeterministicDependencyNode();
81 bool isPointingToNonDeterministicDependencyNode();
82 bool isTrackingError();
83 bool isPointingToIndependentDependencyNode();
84
85 CConceptDescriptor* getConceptDescriptor();
86 CTrackedClashedDescriptor* setConceptDescriptor(CConceptDescriptor* conDes);
87
88 bool candidateTracking(bool* trackingError, bool* nominalOccured, cint64* maxBranchLevel, cint64* minIndividualLevel);
89 bool isProcessedAfter(cint64 processingTag);
90
91
92 CTrackedClashedDescriptor* append(CTrackedClashedDescriptor* trackedClashedDescriptor);
93 CTrackedClashedDescriptor* getNextDescriptor();
94
95 CVariableBindingPath* getVariableBindingPath();
96
97
98 // protected methods
99 protected:
100
101 // protected variables
102 protected:
103 CIndividualProcessNode* mIndiNode;
104 cint64 mIndiNodeID;
105 cint64 mIndiNodeLevel;
106 cint64 mBranchingLevelTag;
107 cint64 mProcessingTag;
108 bool mDetermisticFlag;
109 bool mNominalIndiFlag;
110 bool mErrorFlag;
111 bool mIndepenentFlag;
112
113 CConceptDescriptor* mConceptDescriptor;
114 CVariableBindingPath* mVarBindPath;
115
116
117 // private methods
118 private:
119
120 // private variables
121 private:
122
123 };
124
125 }; // end namespace Algorithm
126
127 }; // end namespace Kernel
128
129 }; // end namespace Reasoner
130
131 }; // end namespace Konclude
132
133 #endif // KONCLUDE_REASONER_KERNEL_ALGORITHM_CTRACKEDCLASHEDDESCRIPTOR_H