Debian Codegraph @

Source/Reasoner/Kernel/Algorithm/CDatatypeDependencyCollection.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_CDATATYPEDEPENDENCYCOLLECTION_H
22 #define KONCLUDE_REASONER_KERNEL_ALGORITHM_CDATATYPEDEPENDENCYCOLLECTION_H
23
24 // Libraries includes
25
26
27 // Namespace includes
28 #include "AlgorithmSettings.h"
29 #include "CCalculationAlgorithmContext.h"
30 #include "CDependencyFactory.h"
31
32 // Other includes
33 #include "Reasoner/Kernel/Process/CIndividualProcessNode.h"
34
35 #include "Reasoner/Kernel/Process/Dependency/CDependencyTrackPoint.h"
36 #include "Reasoner/Kernel/Process/Dependency/CDATATYPETRIGGERDependencyNode.h"
37 #include "Reasoner/Kernel/Process/Dependency/CDATATYPECONNECTIONDependencyNode.h"
38
39
40 #include "Context/CContextBase.h"
41
42 // Logger includes
43 #include "Logger/CLogger.h"
44
45
46
47 namespace Konclude {
48
49 using namespace Context;
50
51 namespace Reasoner {
52
53 namespace Kernel {
54
55 using namespace Process;
56 using namespace Dependency;
57
58 namespace Algorithm {
59
60 /*!
61 *
62 * \class CDatatypeDependencyCollection
63 * \author Andreas Steigmiller
64 * \version 0.1
65 * \brief TODO
66 *
67 */
68 class CDatatypeDependencyCollection : public CDatatypeValueSpaceDependencyCollector {
69 // public methods
70 public:
71 //! Constructor
72 CDatatypeDependencyCollection(CCalculationAlgorithmContext* collectionCalcAlgContext);
73 CDatatypeDependencyCollection(CDatatypeDependencyCollection* depCollection, CCalculationAlgorithmContext* collectionCalcAlgContext);
74
75 bool addDependency(CDependencyTrackPoint* depTrackPoint);
76
77
78 bool hasDependencies();
79
80 CDependencyTrackPoint* getDatatypeTriggerDependencyTrackPoint(bool create = true);
81
82 // protected methods
83 protected:
84 CDATATYPETRIGGERDependencyNode* createDATATYPETRIGGERDependency(CDependencyTrackPoint*& expContinueDepTrackPoint, CDependencyTrackPoint* prevDepTrackPoint, CDependency* prevOtherDependencies, CCalculationAlgorithmContext* calcAlgContext);
85 CDATATYPECONNECTIONDependencyNode* createDATATYPECONNECTIONDependency(CDependencyTrackPoint* prevDepTrackPoint, CCalculationAlgorithmContext* calcAlgContext);
86
87
88 // protected variables
89 protected:
90
91 CPROCESSINGSET<CDependencyTrackPoint*>* mTestDepTrackPointSet;
92 CPROCESSINGSET<CDependencyTrackPoint*>* mDepTrackPointSet;
93
94 CDependencyTrackPoint* mCollectedFirstDependency;
95 CDependency* mCollectedAdditionalDependencies;
96 CCalculationAlgorithmContext* mCollectionCalcAlgContext;
97
98 bool mCollectionDatatypeDepCreated;
99 CDependencyTrackPoint* mCollectionDataTriggerDepTrackPoint;
100
101
102 // private methods
103 private:
104
105 // private variables
106 private:
107
108 };
109
110 }; // end namespace Algorithm
111
112 }; // end namespace Kernel
113
114 }; // end namespace Reasoner
115
116 }; // end namespace Konclude
117
118 #endif // KONCLUDE_REASONER_KERNEL_ALGORITHM_CDATATYPEDEPENDENCYCOLLECTION_H