Debian Codegraph @

Source/Reasoner/Kernel/Process/CRepresentativePropagationSet.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_PROCESS_CREPRESENTATIVEPROPAGATIONSET_H
22 #define KONCLUDE_REASONER_KERNEL_PROCESS_CREPRESENTATIVEPROPAGATIONSET_H
23
24 // Libraries includes
25
26
27 // Namespace includes
28 #include "ProcessSettings.h"
29 #include "CConceptDescriptor.h"
30 #include "CRepresentativePropagationMap.h"
31 #include "CRepresentativePropagationMapData.h"
32 #include "CRepresentativePropagationDescriptor.h"
33 #include "CRepresentativeVariableBindingPathSetData.h"
34
35
36 // Other includes
37
38
39 // Logger includes
40 #include "Logger/CLogger.h"
41
42
43 namespace Konclude {
44
45 namespace Reasoner {
46
47 namespace Kernel {
48
49 namespace Process {
50
51 /*!
52 *
53 * \class CRepresentativePropagationSet
54 * \author Andreas Steigmiller
55 * \version 0.1
56 * \brief TODO
57 *
58 */
59 class CRepresentativePropagationSet {
60 // public methods
61 public:
62 //! Constructor
63 CRepresentativePropagationSet(CProcessContext* processContext);
64
65 CRepresentativePropagationSet* initRepresentativePropagationSet(CRepresentativePropagationSet* prevSet);
66
67 CRepresentativePropagationMap* getRepresentativePropagationMap();
68 bool containsRepresentativePropagation(CRepresentativeVariableBindingPathSetData* repRepPropSetData);
69 bool containsRepresentativePropagation(cint64 repID);
70 CRepresentativePropagationDescriptor* getRepresentativePropagationDescriptor(CRepresentativeVariableBindingPathSetData* repRepPropSetData);
71
72 CRepresentativePropagationSet* addIncomingRepresentativePropagation(CRepresentativePropagationDescriptor* repPropDes);
73 CRepresentativePropagationSet* copyRepresentativePropagations(CRepresentativePropagationMap* repPropMap);
74
75 CConceptDescriptor* getConceptDescriptor();
76 CRepresentativePropagationSet* setConceptDescriptor(CConceptDescriptor* conDes);
77
78
79 CRepresentativePropagationSet* addIncomingRepresentativePropagationDescriptorLinker(CRepresentativePropagationDescriptor* repPropDesLinker);
80 CRepresentativePropagationDescriptor* getIncomingRepresentativePropagationDescriptorLinker();
81
82 CRepresentativePropagationSet* setOutgoingRepresentativePropagationDescriptorLinker(CRepresentativePropagationDescriptor* repPropDesLinker);
83 CRepresentativePropagationSet* addOutgoingRepresentativePropagationDescriptorLinker(CRepresentativePropagationDescriptor* repPropDesLinker);
84 CRepresentativePropagationDescriptor* getOutgoingRepresentativePropagationDescriptorLinker();
85
86 cint64 getIncomingRepresentativePropagationSignatureKey();
87
88
89 CRepresentativePropagationDescriptor* getLastProcessedIncomingRepresentativePropagationDescriptorLinker();
90 CRepresentativePropagationSet* setLastProcessedIncomingRepresentativePropagationDescriptorLinker(CRepresentativePropagationDescriptor* descriptor);
91
92
93 // protected methods
94 protected:
95
96 // protected variables
97 protected:
98 CProcessContext* mProcessContext;
99 CRepresentativePropagationMap mRepPropMap;
100 CConceptDescriptor* mConceptDescriptor;
101 CRepresentativePropagationDescriptor* mIncomingRepPropDesLinker;
102 CRepresentativePropagationDescriptor* mOutgoingRepPropDesLinker;
103 CRepresentativeVariableBindingPathSetDataSignature mIncomingRepPropSignature;
104
105 CRepresentativePropagationDescriptor* mLastProcessedIncomingRepPropDesLinker;
106
107 // private methods
108 private:
109
110 // private variables
111 private:
112
113
114 };
115
116 }; // end namespace Process
117
118 }; // end namespace Kernel
119
120 }; // end namespace Reasoner
121
122 }; // end namespace Konclude
123
124 #endif // KONCLUDE_REASONER_KERNEL_PROCESS_CREPRESENTATIVEPROPAGATIONSET_H