Debian Codegraph @

Source/Reasoner/Consistiser/CSaturationConceptDataItem.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_CONSISTISER_CSATURATIONCONCEPTDATAITEM_H
22 #define KONCLUDE_REASONER_CONSISTISER_CSATURATIONCONCEPTDATAITEM_H
23
24 // Libraries includes
25
26
27 // Namespace includes
28 #include "ConsistiserSettings.h"
29 #include "CSaturationConceptReferenceLinking.h"
30
31
32 // Other includes
33 #include "Reasoner/Ontology/CConcept.h"
34 #include "Reasoner/Ontology/CConceptReferenceLinking.h"
35
36
37 // Logger includes
38 #include "Logger/CLogger.h"
39
40
41 namespace Konclude {
42
43 namespace Reasoner {
44
45 using namespace Ontology;
46
47 namespace Consistiser {
48
49
50
51 /*!
52 *
53 * \class CSaturationConceptDataItem
54 * \author Andreas Steigmiller
55 * \version 0.1
56 * \brief TODO
57 *
58 */
59 class CSaturationConceptDataItem : public CSaturationConceptReferenceLinking {
60 // public methods
61 public:
62 //! Constructor
63 CSaturationConceptDataItem();
64
65
66 CSaturationConceptDataItem* initConceptSaturationTestingItem(CConcept* satTestConcept, bool negated, CRole* role);
67 CConcept* getSaturationConcept();
68 CRole* getSaturationRoleRanges();
69 bool getSaturationNegation();
70
71
72 CConceptReferenceLinking* getConceptReferenceLinking();
73 CSaturationConceptDataItem* setConceptReferenceLinking(CConceptReferenceLinking* refLinking);
74
75
76 QList<CSaturationConceptDataItem*>* getExistReferenceConceptItemList();
77 CSaturationConceptDataItem* addExistReferenceConceptItemList(CSaturationConceptDataItem* existItem);
78
79
80 bool isOrderingQueued();
81 CSaturationConceptDataItem* setOrderingQueued(bool queued);
82
83 bool hasIndirectSuccessorsItems();
84 CSaturationConceptDataItem* setIndirectSuccessorsItems(bool hasSuccessors);
85
86 bool hasMultipleDirectPredecessorsItems();
87 CSaturationConceptDataItem* setMultipleDirectPredecessorsItems(bool multiblePredItems);
88
89
90 // for saturation algorithm
91 enum SATURATIONITEMREFERENCESPECIALMODE { NONESATURATIONMODE, SATURATIONCOPYMODE, SATURATIONSUBSTITUTEMODE };
92
93
94 bool isInvalidSpecialItemReference();
95 CSaturationConceptDataItem* setInvalidSpecialItemReference(bool invalid);
96
97 CSaturationConceptDataItem* getSpecialItemReference();
98 CSaturationConceptDataItem* setSpecialItemReference(CSaturationConceptDataItem* reference);
99 SATURATIONITEMREFERENCESPECIALMODE getSpecialReferenceMode();
100 CSaturationConceptDataItem* setSpecialItemReferenceMode(SATURATIONITEMREFERENCESPECIALMODE mode);
101
102
103 bool isItemProcessingQueued();
104 CSaturationConceptDataItem* setItemProcessingQueued(bool queued);
105 bool isItemProcessingMarked();
106 CSaturationConceptDataItem* setItemProcessingMarked(bool marked);
107
108 // protected methods
109 protected:
110
111 // protected variables
112 protected:
113 CConcept* mConceptSat;
114 CRole* mRoleRanges;
115 bool mNegation;
116
117 QList<CSaturationConceptDataItem*> mExistReferenceItemList;
118
119 bool mOrderingQueued;
120 bool mSucessorsItems;
121 bool mMultiplePredItems;
122 bool mInvalidSpecialItemReference;
123 bool mProcessingQueued;
124 bool mProcessingMarked;
125
126 CConceptReferenceLinking* mConRefLinking;
127
128 CSaturationConceptDataItem* mSpecialItemReference;
129 SATURATIONITEMREFERENCESPECIALMODE mSpecialReferenceMode;
130
131 //QString mSubsumingConceptString;
132
133
134 // private methods
135 private:
136
137 // private variables
138 private:
139
140 };
141
142 }; // end namespace Consistiser
143
144 }; // end namespace Reasoner
145
146 }; // end namespace Konclude
147
148 #endif // KONCLUDE_REASONER_CONSISTISER_CSATURATIONCONCEPTDATAITEM_H