Debian Codegraph @

Source/Reasoner/Kernel/Algorithm/CIndividualProcessNodeCompareValueSpaceHandler.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_CINDIVIDUALPROCESSNODECOMPAREVALUESPACEHANDLER_H
22 #define KONCLUDE_REASONER_KERNEL_ALGORITHM_CINDIVIDUALPROCESSNODECOMPAREVALUESPACEHANDLER_H
23
24 // Libraries includes
25
26
27 // Namespace includes
28 #include "AlgorithmSettings.h"
29 #include "CCalculationAlgorithmContext.h"
30 #include "CCalculationClashProcessingException.h"
31 #include "CDatatypeDependencyCollection.h"
32 #include "CDependencyFactory.h"
33 #include "CIndividualProcessNodeValueSpaceHandler.h"
34
35 // Other includes
36 #include "Reasoner/Kernel/Process/CIndividualProcessNode.h"
37 #include "Reasoner/Kernel/Process/CProcessingDataBox.h"
38 #include "Reasoner/Kernel/Process/CDatatypeCompareValueSpaceData.h"
39
40 #include "Reasoner/Kernel/Process/Dependency/CDependencyTrackPoint.h"
41
42
43 #include "Context/CContextBase.h"
44
45 // Logger includes
46 #include "Logger/CLogger.h"
47
48
49
50 namespace Konclude {
51
52 using namespace Context;
53
54 namespace Reasoner {
55
56 namespace Kernel {
57
58 using namespace Process;
59 using namespace Dependency;
60
61 namespace Algorithm {
62
63 /*!
64 *
65 * \class CIndividualProcessNodeCompareValueSpaceHandler
66 * \author Andreas Steigmiller
67 * \version 0.1
68 * \brief TODO
69 *
70 */
71 class CIndividualProcessNodeCompareValueSpaceHandler : public CIndividualProcessNodeValueSpaceHandler {
72 // public methods
73 public:
74 //! Constructor
75 CIndividualProcessNodeCompareValueSpaceHandler(CDatatypeValueSpaceType* valueSpaceType);
76
77 virtual bool triggerDataLiteralConcept(CIndividualProcessNode* indiProcNode, CDataLiteral* dataLiteral, bool negated, CDependencyTrackPoint* depTrackPoint, CConcept* triggerConcept, bool otherValueSpacesClosed, bool* directlyTriggeredFlag, CDatatypeDependencyCollection* depCollection, CCalculationAlgorithmContext* calcAlgContext);
78 virtual bool triggerDatatypeConcept(CIndividualProcessNode* indiProcNode, CDatatype* datatype, bool negated, CDependencyTrackPoint* depTrackPoint, CConcept* triggerConcept, bool otherValueSpacesClosed, bool* directlyTriggeredFlag, CDatatypeDependencyCollection* depCollection, CCalculationAlgorithmContext* calcAlgContext);
79 virtual bool triggerDataRestrictionConcept(CIndividualProcessNode* indiProcNode, CConcept* dataRestricionConcept, bool negated, CDependencyTrackPoint* depTrackPoint, CConcept* triggerConcept, bool otherValueSpacesClosed, bool* directlyTriggeredFlag, CDatatypeDependencyCollection* depCollection, CCalculationAlgorithmContext* calcAlgContext);
80
81
82 virtual bool addDataLiteral(CIndividualProcessNode* indiProcNode, CDataLiteral* dataLiteral, bool negated, CDependencyTrackPoint* depTrackPoint, CCalculationAlgorithmContext* calcAlgContext);
83
84 virtual bool addDataRestriction(CIndividualProcessNode* indiProcNode, CConcept* dataRestricionConcept, bool negated, CDependencyTrackPoint* depTrackPoint, CCalculationAlgorithmContext* calcAlgContext);
85
86 virtual bool testValueSpaceClashed(CIndividualProcessNode* indiProcNode, CCalculationAlgorithmContext* calcAlgContext);
87
88 virtual CConceptDescriptor* triggerValueSpaceConcepts(CIndividualProcessNode* indiProcNode, CConceptDescriptor* appendConceptLinker, cint64& remainingRequiredValuesCount, CDatatypeDependencyCollection* depCollection, CCalculationAlgorithmContext* calcAlgContext);
89
90 virtual bool addValueSpaceDependencies(CIndividualProcessNode* indiProcNode, CDatatypeValueSpaceDependencyCollector* depCollection, CCalculationAlgorithmContext* calcAlgContext);
91
92 virtual bool countPossibleValueSpaceValues(CIndividualProcessNode* indiProcNode, CDatatypeValueSpaceValuesCounter* valueCounter, CCalculationAlgorithmContext* calcAlgContext);
93
94
95 virtual bool getNextPossibleDataValue(CIndividualProcessNode* indiProcNode, CDataLiteralValue*& nextValue, CDataLiteralValue* lastValue, CDatatypeValueTestingCollection* valueTestingCollection, CCalculationAlgorithmContext* calcAlgContext);
96
97 // protected methods
98 protected:
99
100 // protected variables
101 protected:
102 CDatatypeValueSpaceCompareType* mCompareValueSpaceType;
103
104
105 // private methods
106 private:
107
108 // private variables
109 private:
110
111 };
112
113 }; // end namespace Algorithm
114
115 }; // end namespace Kernel
116
117 }; // end namespace Reasoner
118
119 }; // end namespace Konclude
120
121 #endif // KONCLUDE_REASONER_KERNEL_ALGORITHM_CINDIVIDUALPROCESSNODECOMPAREVALUESPACEHANDLER_H