Debian Codegraph @

Source/Reasoner/Kernel/Algorithm/CIndividualProcessNodeUnknownValueSpaceHandler.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_CINDIVIDUALPROCESSNODEUNKNOWNVALUESPACEHANDLER_H
22 #define KONCLUDE_REASONER_KERNEL_ALGORITHM_CINDIVIDUALPROCESSNODEUNKNOWNVALUESPACEHANDLER_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
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 CIndividualProcessNodeUnknownValueSpaceHandler
63 * \author Andreas Steigmiller
64 * \version 0.1
65 * \brief TODO
66 *
67 */
68 class CIndividualProcessNodeUnknownValueSpaceHandler : public CIndividualProcessNodeValueSpaceHandler {
69 // public methods
70 public:
71 //! Constructor
72 CIndividualProcessNodeUnknownValueSpaceHandler(CDatatypeValueSpaceType* valueSpaceType);
73
74 virtual bool addDataLiteral(CIndividualProcessNode* indiProcNode, CDataLiteral* dataLiteral, bool negated, CDependencyTrackPoint* depTrackPoint, CCalculationAlgorithmContext* calcAlgContext);
75
76 virtual bool addDataRestriction(CIndividualProcessNode* indiProcNode, CConcept* dataRestricionConcept, bool negated, CDependencyTrackPoint* depTrackPoint, CCalculationAlgorithmContext* calcAlgContext);
77
78 virtual bool testValueSpaceClashed(CIndividualProcessNode* indiProcNode, CCalculationAlgorithmContext* calcAlgContext);
79
80 virtual CConceptDescriptor* triggerValueSpaceConcepts(CIndividualProcessNode* indiProcNode, CConceptDescriptor* appendConceptLinker, cint64& remainingRequiredValuesCount, CDatatypeDependencyCollection* depCollection, CCalculationAlgorithmContext* calcAlgContext);
81
82 virtual bool addValueSpaceDependencies(CIndividualProcessNode* indiProcNode, CDatatypeValueSpaceDependencyCollector* depCollection, CCalculationAlgorithmContext* calcAlgContext);
83
84 virtual bool countPossibleValueSpaceValues(CIndividualProcessNode* indiProcNode, CDatatypeValueSpaceValuesCounter* valueCounter, CCalculationAlgorithmContext* calcAlgContext);
85
86
87 virtual bool getNextPossibleDataValue(CIndividualProcessNode* indiProcNode, CDataLiteralValue*& nextValue, CDataLiteralValue* lastValue, CDatatypeValueTestingCollection* valueTestingCollection, CCalculationAlgorithmContext* calcAlgContext);
88
89 // protected methods
90 protected:
91
92 // protected variables
93 protected:
94 CDatatypeValueSpaceUnknownType* mUnknownValueSpaceType;
95
96
97 // private methods
98 private:
99
100 // private variables
101 private:
102
103 };
104
105 }; // end namespace Algorithm
106
107 }; // end namespace Kernel
108
109 }; // end namespace Reasoner
110
111 }; // end namespace Konclude
112
113 #endif // KONCLUDE_REASONER_KERNEL_ALGORITHM_CINDIVIDUALPROCESSNODEUNKNOWNVALUESPACEHANDLER_H