Debian Codegraph @

Source/Reasoner/Classifier/CClassificationManager.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_CCLASSIFICATIONMANAGER_H
22 #define KONCLUDE_REASONER_CLASSIFIER_CCLASSIFICATIONMANAGER_H
23
24 // Libraries includes
25 #include <QReadWriteLock>
26
27 // Namespace includes
28 #include "ClassifierSettings.h"
29 #include "CSubsumptionClassifierFactory.h"
30 #include "CClassificationProgress.h"
31 #include "CSubsumptionClassifierThread.h"
32
33 // Other includes
34 #include "Reasoner/Ontology/CConcreteOntology.h"
35
36 #include "Reasoner/Taxonomy/CTaxonomy.h"
37
38 #include "Config/CConfigurationProvider.h"
39
40 // Logger includes
41 #include "Logger/CLogger.h"
42
43
44 namespace Konclude {
45
46 using namespace Config;
47
48 namespace Reasoner {
49
50 using namespace Ontology;
51 using namespace Taxonomy;
52
53 namespace Classifier {
54
55
56 /*!
57 *
58 * \class CClassificationManager
59 * \author Andreas Steigmiller
60 * \version 0.1
61 * \brief TODO
62 *
63 */
64 class CClassificationManager {
65 // public methods
66 public:
67 //! Constructor
68 CClassificationManager();
69
70 //! Destructor
71 virtual ~CClassificationManager();
72
73 virtual CClassificationManager *initializeManager(CSubsumptionClassifierFactory *takeClassifierFactory, CConfigurationProvider *configurationProvider);
74
75 virtual CSubsumptionClassifier *getClassClassifier(CConcreteOntology *ontology, CConfigurationBase *config, bool create = true, bool backgroundClassification = false);
76
77 virtual CClassifierStatistics *collectClassificationStatistics(CClassifierStatistics *statistics);
78
79 virtual QList<CSubsumptionClassifier *> getClassifierList();
80
81 virtual CClassificationProgress* getClassificationProgress();
82
83 virtual cint64 getActiveClassifierCount();
84
85
86 virtual CSubsumptionClassifier *getDataPropertyClassifier(CConcreteOntology *ontology, CConfigurationBase *config);
87 virtual CSubsumptionClassifier *getObjectPropertyClassifier(CConcreteOntology *ontology, CConfigurationBase *config);
88
89
90 // protected methods
91 protected:
92
93 // protected variables
94 protected:
95 QReadWriteLock readWriteLock;
96
97 CSubsumptionClassifierFactory* mClassifierFac;
98
99 QHash<CConcreteOntology*,CSubsumptionClassifier*> mOntoClassifierHash;
100 QHash<CConcreteOntology*,CSubsumptionClassifier*> mOntoBackgroundClassifierHash;
101
102 QSet<CSubsumptionClassifier*> mOntoClassifierSet;
103
104 CClassificationProgress mClassificationProgress;
105
106
107
108 QHash<CConcreteOntology*,CSubsumptionClassifier*> mOntoDataPropertyClassifierHash;
109 QHash<CConcreteOntology*,CSubsumptionClassifier*> mOntoObjectPropertyClassifierHash;
110
111
112 // private methods
113 private:
114
115 // private variables
116 private:
117
118 };
119
120 }; // end namespace Classifier
121
122 }; // end namespace Reasoner
123
124 }; // end namespace Konclude
125
126 #endif // KONCLUDE_REASONER_CLASSIFIER_CCLASSIFICATIONMANAGER_H