Debian Codegraph @

Source/Reasoner/Classifier/COptimizedConceptSaturationSatisfiableTestingItem.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_CLASSIFIER_COPTIMIZEDCONCEPTSATURATIONSATISFIABLETESTINGITEM_H
22 #define KONCLUDE_REASONER_CLASSIFIER_COPTIMIZEDCONCEPTSATURATIONSATISFIABLETESTINGITEM_H
23
24 // Libraries includes
25
26
27 // Namespace includes
28 #include "ClassifierSettings.h"
29 #include "CClassificationConceptReferenceLinking.h"
30
31
32 // Other includes
33 #include "Reasoner/Ontology/CConcept.h"
34 #include "Reasoner/Ontology/CConceptReferenceLinking.h"
35 #include "Reasoner/Taxonomy/CHierarchyNode.h"
36
37
38 // Logger includes
39 #include "Logger/CLogger.h"
40
41
42 namespace Konclude {
43
44 namespace Reasoner {
45
46 using namespace Ontology;
47 using namespace Taxonomy;
48
49 namespace Classifier {
50
51
52 /*!
53 *
54 * \class COptimizedConceptSaturationSatisfiableTestingItem
55 * \author Andreas Steigmiller
56 * \version 0.1
57 * \brief TODO
58 *
59 */
60 class COptimizedConceptSaturationSatisfiableTestingItem : public CClassificationConceptReferenceLinking {
61 // public methods
62 public:
63 //! Constructor
64 COptimizedConceptSaturationSatisfiableTestingItem();
65
66
67 COptimizedConceptSaturationSatisfiableTestingItem* initConceptSatisfiableTestingItem(CConcept* satTestConcept);
68 CConcept* getSatisfiableConcept();
69
70 virtual bool isClassSatisfiableTestingItem();
71
72 CConceptReferenceLinking* getConceptReferenceLinking();
73 COptimizedConceptSaturationSatisfiableTestingItem* setConceptReferenceLinking(CConceptReferenceLinking* refLinking);
74
75
76 QList<COptimizedConceptSaturationSatisfiableTestingItem*>* getExistReferenceConceptItemList();
77 COptimizedConceptSaturationSatisfiableTestingItem* addExistReferenceConceptItemList(COptimizedConceptSaturationSatisfiableTestingItem* existItem);
78
79
80 bool isOrderingQueued();
81 COptimizedConceptSaturationSatisfiableTestingItem* setOrderingQueued(bool queued);
82
83 bool hasIndirectSuccessorsItems();
84 COptimizedConceptSaturationSatisfiableTestingItem* setIndirectSuccessorsItems(bool hasSuccessors);
85
86 bool hasPilingReferenceItem();
87 COptimizedConceptSaturationSatisfiableTestingItem* setPilingReferenceItem(bool piledReference);
88
89 bool hasMultipleDirectPredecessorsItems();
90 COptimizedConceptSaturationSatisfiableTestingItem* setMultipleDirectPredecessorsItems(bool multiblePredItems);
91
92
93 // for piling saturation algorithm
94 enum SATURATIONITEMREFERENCESPECIALMODE { NONESATURATIONMODE, SATURATIONCOPYMODE, SATURATIONPILINGMODE, SATURATIONSUBSTITUTEMODE };
95
96 COptimizedConceptSaturationSatisfiableTestingItem* getSpecialItemReference();
97 COptimizedConceptSaturationSatisfiableTestingItem* setSpecialItemReference(COptimizedConceptSaturationSatisfiableTestingItem* reference);
98 SATURATIONITEMREFERENCESPECIALMODE getSpecialReferenceMode();
99 COptimizedConceptSaturationSatisfiableTestingItem* setSpecialItemReferenceMode(SATURATIONITEMREFERENCESPECIALMODE mode);
100
101
102 // protected methods
103 protected:
104
105 // protected variables
106 protected:
107 CConcept* mConceptSat;
108
109 QList<COptimizedConceptSaturationSatisfiableTestingItem*> mExistReferenceItemList;
110
111 bool mOrderingQueued;
112 bool mPilingReference;
113 bool mSucessorsItems;
114 bool mMultiplePredItems;
115
116 CConceptReferenceLinking* mConRefLinking;
117
118 COptimizedConceptSaturationSatisfiableTestingItem* mSpecialItemReference;
119 SATURATIONITEMREFERENCESPECIALMODE mSpecialReferenceMode;
120
121 //QString mSubsumingConceptString;
122
123
124 // private methods
125 private:
126
127 // private variables
128 private:
129
130 };
131
132 }; // end namespace Classifier
133
134 }; // end namespace Reasoner
135
136 }; // end namespace Konclude
137
138 #endif // KONCLUDE_REASONER_CLASSIFIER_COPTIMIZEDCONCEPTSATURATIONSATISFIABLETESTINGITEM_H