Debian Codegraph @

Source/Reasoner/Classifier/COptimizedClassExtractedSaturationSatisfiableTestingItem.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_COPTIMIZEDCLASSEXTRACTEDSATURATIONSATISFIABLETESTINGITEM_H
22 #define KONCLUDE_REASONER_CLASSIFIER_COPTIMIZEDCLASSEXTRACTEDSATURATIONSATISFIABLETESTINGITEM_H
23
24 // Libraries includes
25
26
27 // Namespace includes
28 #include "ClassifierSettings.h"
29 #include "CConceptSubsumerObserver.h"
30 #include "CClassificationConceptReferenceLinking.h"
31
32
33 // Other includes
34 #include "Reasoner/Ontology/CConcept.h"
35 #include "Reasoner/Ontology/CConceptProcessData.h"
36 #include "Reasoner/Ontology/CConceptReferenceLinking.h"
37 #include "Reasoner/Ontology/CConceptSatisfiableReferenceLinkingData.h"
38 #include "Reasoner/Taxonomy/CHierarchyNode.h"
39
40
41 // Logger includes
42 #include "Logger/CLogger.h"
43
44
45 namespace Konclude {
46
47 namespace Reasoner {
48
49 using namespace Ontology;
50 using namespace Taxonomy;
51
52 namespace Classifier {
53
54
55 /*!
56 *
57 * \class COptimizedClassExtractedSaturationSatisfiableTestingItem
58 * \author Andreas Steigmiller
59 * \version 0.1
60 * \brief TODO
61 *
62 */
63 class COptimizedClassExtractedSaturationSatisfiableTestingItem : public CClassificationConceptReferenceLinking, public CConceptSubsumerObserver {
64 // public methods
65 public:
66 //! Constructor
67 COptimizedClassExtractedSaturationSatisfiableTestingItem();
68
69 COptimizedClassExtractedSaturationSatisfiableTestingItem* initSatisfiableTestingItem(CConcept* satTestConcept);
70
71 CConcept* getTestingConcept();
72
73 CHierarchyNode* getSatisfiableConceptHierarchyNode();
74 COptimizedClassExtractedSaturationSatisfiableTestingItem* setSatisfiableConceptHierarchyNode(CHierarchyNode* hierNode);
75
76 QList<COptimizedClassExtractedSaturationSatisfiableTestingItem*>* getSubsumingConceptItemList();
77
78
79 COptimizedClassExtractedSaturationSatisfiableTestingItem* setExtractionSubsumerCount(cint64 subsumerCount);
80 cint64 getExtractionSubsumerCount() const;
81
82
83 COptimizedClassExtractedSaturationSatisfiableTestingItem* setDirectSubsumer(COptimizedClassExtractedSaturationSatisfiableTestingItem* subsumingItem);
84 COptimizedClassExtractedSaturationSatisfiableTestingItem* getDirectSubsumer();
85 bool hasDirectSubsumer();
86
87
88 COptimizedClassExtractedSaturationSatisfiableTestingItem* addSubsumingConceptItem(COptimizedClassExtractedSaturationSatisfiableTestingItem* subsumingItem);
89
90 CConceptSubsumerObserver* tellConceptSupsumption(CConcept* subsumedConcept, CConcept* subsumerConcept);
91
92
93 QList<COptimizedClassExtractedSaturationSatisfiableTestingItem*>* sortSubsumingConceptItemList();
94
95 bool isEquivalentItem();
96 COptimizedClassExtractedSaturationSatisfiableTestingItem* setEquivalentItem(bool equivalent);
97
98
99 bool isPredecessorItem();
100 COptimizedClassExtractedSaturationSatisfiableTestingItem* setPredecessorItem(bool predecessorItem);
101
102
103 // protected methods
104 protected:
105
106 // protected variables
107 protected:
108 CConcept* mTestConcept;
109 CHierarchyNode* mConSatHierNode;
110 QList<COptimizedClassExtractedSaturationSatisfiableTestingItem*> mSubsumingConceptItemList;
111 COptimizedClassExtractedSaturationSatisfiableTestingItem* mDirectSubsumerItem;
112 cint64 mExtractedSubsumerCount;
113 bool mEquiItem;
114 bool mPredecessorItem;
115
116
117 // private methods
118 private:
119
120 // private variables
121 private:
122
123 };
124
125 }; // end namespace Classifier
126
127 }; // end namespace Reasoner
128
129 }; // end namespace Konclude
130
131 #endif // KONCLUDE_REASONER_CLASSIFIER_COPTIMIZEDCLASSEXTRACTEDSATURATIONSATISFIABLETESTINGITEM_H