Debian Codegraph @

Source/Reasoner/Classifier/CPrecomputedSaturationSubsumerExtractor.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_CPRECOMPUTEDSATURATIONSUBSUMEREXTRACTOR_H
22 #define KONCLUDE_REASONER_CLASSIFIER_CPRECOMPUTEDSATURATIONSUBSUMEREXTRACTOR_H
23
24 // Libraries includes
25
26
27 // Namespace includes
28 #include "ClassifierSettings.h"
29 #include "CConceptSubsumerObserver.h"
30
31
32 // Other includes
33 #include "Reasoner/Ontology/CConcreteOntology.h"
34 #include "Reasoner/Ontology/CConceptProcessData.h"
35 #include "Reasoner/Ontology/CConceptSaturationReferenceLinkingData.h"
36
37 #include "Reasoner/Kernel/Task/CSaturationTaskData.h"
38 #include "Reasoner/Kernel/Task/CSatisfiableCalculationTask.h"
39 #include "Reasoner/Kernel/Task/CConsistenceTaskData.h"
40
41 #include "Reasoner/Kernel/Process/CIndividualSaturationProcessNode.h"
42 #include "Reasoner/Kernel/Process/CReferredIndividualTrackingVector.h"
43
44 #include "Reasoner/Consistiser/CSaturationConceptDataItem.h"
45 #include "Reasoner/Consistiser/CIndividualDependenceTrackingObserver.h"
46 #include "Reasoner/Consistiser/CIndividualDependenceTrackingMarker.h"
47
48 // Logger includes
49 #include "Logger/CLogger.h"
50
51
52 namespace Konclude {
53
54 namespace Reasoner {
55
56 using namespace Ontology;
57 using namespace Consistiser;
58 using namespace Kernel::Task;
59 using namespace Kernel::Process;
60
61 namespace Classifier {
62
63
64 /*!
65 *
66 * \class CPrecomputedSaturationSubsumerExtractor
67 * \author Andreas Steigmiller
68 * \version 0.1
69 * \brief TODO
70 *
71 */
72 class CPrecomputedSaturationSubsumerExtractor {
73 // public methods
74 public:
75 //! Constructor
76 CPrecomputedSaturationSubsumerExtractor(CConcreteOntology* ontology);
77
78 virtual bool extractSubsumers(CConcept* concept, CConceptSubsumerObserver* subsumerObserver, bool* possibleSubsumerFlag = nullptr, CIndividualDependenceTrackingObserver* indDepTrackingObserver = nullptr, CIndividualDependenceTrackingMarker* indiDepTrackMarker = nullptr);
79
80 virtual bool getConceptFlags(CConcept* concept, bool* unsatisfiableFlag, bool* insufficientFlag, bool* incompleteProcessedFlag);
81
82
83 virtual cint64 getSubsumerCount(CConcept* concept);
84 virtual CConcept* getDirectSubsumerCount(CConcept* concept, bool (*isDirectSubsumer)(CConcept*, CConcept*));
85
86 virtual bool hasSubsumerConcept(CConcept* concept, CConcept* testSubsumerConcept);
87
88 // protected methods
89 protected:
90
91 // protected variables
92 protected:
93 CConcreteOntology* mOntology;
94 CSatisfiableCalculationTask* mSatCalcTask;
95
96 // private methods
97 private:
98
99 // private variables
100 private:
101
102 };
103
104 }; // end namespace Classifier
105
106 }; // end namespace Reasoner
107
108 }; // end namespace Konclude
109
110 #endif // KONCLUDE_REASONER_CLASSIFIER_CPRECOMPUTEDSATURATIONSUBSUMEREXTRACTOR_H