Debian Codegraph @

Source/Reasoner/Kernel/Process/CBackendNeighbourExpansionQueueDataLinker.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_CBACKENDNEIGHBOUREXPANSIONQUEUEDATALINKER_H
22 #define KONCLUDE_REASONER_KERNEL_PROCESS_CBACKENDNEIGHBOUREXPANSIONQUEUEDATALINKER_H
23
24 // Libraries includes
25
26
27 // Namespace includes
28 #include "ProcessSettings.h"
29 #include "CProcessContext.h"
30
31
32 // Other includes
33 #include "Reasoner/Kernel/Cache/CBackendRepresentativeMemoryLabelCacheItem.h"
34
35 #include "Utilities/Container/CLinker.h"
36
37 #include "Reasoner/Ontology/CConcept.h"
38 #include "Reasoner/Ontology/CRole.h"
39
40
41 // Logger includes
42 #include "Logger/CLogger.h"
43
44
45
46 namespace Konclude {
47
48 using namespace Utilities::Container;
49
50 namespace Reasoner {
51
52 using namespace Ontology;
53
54 namespace Kernel {
55
56 using namespace Cache;
57
58 namespace Process {
59
60 /*!
61 *
62 * \class CBackendNeighbourExpansionQueueDataLinker
63 * \author Andreas Steigmiller
64 * \version 0.1
65 * \brief TODO
66 *
67 */
68 class CBackendNeighbourExpansionQueueDataLinker : public CLinkerBase<CBackendNeighbourExpansionQueueDataLinker*, CBackendNeighbourExpansionQueueDataLinker> {
69 // public methods
70 public:
71 //! Constructor
72 CBackendNeighbourExpansionQueueDataLinker(CProcessContext* processContext);
73
74 CBackendNeighbourExpansionQueueDataLinker* initQueueData(CBackendNeighbourExpansionQueueDataLinker* queueData);
75 CBackendNeighbourExpansionQueueDataLinker* initQueueData(cint64 neighbourArrayId, CRole* role, CConcept* concept, bool conNegation, bool nondeterministic, bool forceExpansion, CIndividualProcessNode* baseIndiNode, CIndividualProcessNode* backendSyncDataIndiNode, cint64 lastExpandedNeighbourId = -1, cint64 neighbourVisitingCoursor = 0, bool propagationCutExpansion = false, bool missingNondeterministicExpansionPropagation = false);
76
77
78 CBackendNeighbourExpansionQueueDataLinker* updateNeighbourExpansionCursor(cint64 lastExpandedNeighbourId, cint64 neighbourVisitingCoursor);
79
80 CRole* getRole();
81 CConcept* getConcept();
82 bool getConceptNegation();
83 bool getConceptNondeterministic();
84
85 CIndividualProcessNode* getBaseIndividualNode();
86 CIndividualProcessNode* getBackendSyncDataIndividualNode();
87 cint64 getLastExpandedNeighbourId();
88 cint64 getNeighbourVisitingCursor();
89
90 CBackendRepresentativeMemoryLabelCacheItem* getExpandingLabel();
91 CBackendNeighbourExpansionQueueDataLinker* setExpandingLabel(CBackendRepresentativeMemoryLabelCacheItem* label);
92
93
94 cint64 getNeighbourArrayId();
95 bool isForceExpansion();
96 bool isPropagationCutExpansion();
97
98 bool isMissingNondeterministicExpansionPropagation();
99 CBackendNeighbourExpansionQueueDataLinker* setMissingNondeterministicExpansionPropagation(bool missingProp);
100
101 // protected methods
102 protected:
103
104 // protected variables
105 protected:
106 CRole* mRole;
107 CConcept* mConcept;
108 bool mConNegation;
109 CIndividualProcessNode* mBaseIndiNode;
110 CIndividualProcessNode* mBackendSyncDataIndiNode;
111 cint64 mLastExpandedNeighbourId;
112 cint64 mNeighbourVisitingCursor;
113 cint64 mNeighbourArrayId;
114 bool mForceExpansion;
115 bool mPropagationCutExpansion;
116 bool mConceptNondeterministic;
117 CBackendRepresentativeMemoryLabelCacheItem* mLabel;
118 bool mMissingNondeterministicExpansionPropagation;
119
120 // private methods
121 private:
122
123 // private variables
124 private:
125
126 };
127
128 }; // end namespace Process
129
130 }; // end namespace Kernel
131
132 }; // end namespace Reasoner
133
134 }; // end namespace Konclude
135
136 #endif // KONCLUDE_REASONER_KERNEL_PROCESS_CBACKENDNEIGHBOUREXPANSIONQUEUEDATALINKER_H