Debian Codegraph @

Source/Control/Command/CCommanderManagerThread.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_Control_COMMAND_CCOMMANDERMANAGERTHREAD_H
22 #define KONCLUDE_Control_COMMAND_CCOMMANDERMANAGERTHREAD_H
23
24 // Libraries includes
25 #include <QString>
26
27 // Namespace includes
28 #include "CCommand.h"
29 #include "CCommandRecordRouter.h"
30 #include "CCommanderManager.h"
31 #include "CReasonerCommanderGlobalConfiguration.h"
32
33 // Other includes
34 #include "Control/Command/Records/CStartProcessCommandRecord.h"
35 #include "Control/Command/Records/CStopProcessCommandRecord.h"
36 #include "Control/Command/Records/CFinishProcessCommandRecord.h"
37 #include "Control/Command/Records/CUnspecifiedMessageErrorRecord.h"
38 #include "Control/Command/Records/CUnspecifiedMessageInformationRecord.h"
39
40 #include "Reasoner/Kernel/Manager/CReasonerManager.h"
41 #include "Reasoner/Kernel/Manager/CAnalyseReasonerManager.h"
42 #include "Reasoner/Kernel/Manager/CExperimentalReasonerManager.h"
43
44 #include "Reasoner/Revision/CSPOntologyRevisionManager.h"
45
46 #include "Control/Command/Instructions/CInitializeConfigurationCommand.h"
47 #include "Control/Command/Instructions/CInitializeReasonerCommand.h"
48 #include "Control/Command/Instructions/CGetDescriptionCommand.h"
49 #include "Control/Command/Instructions/CSkipUnsupportedCommandCommand.h"
50 #include "Control/Command/Instructions/CKnowledgeBaseCommand.h"
51 #include "Control/Command/Instructions/CCalculateQueryCommand.h"
52 #include "Control/Command/Instructions/CGetReasonerCommand.h"
53 #include "Control/Command/Instructions/CGetClassificationManagerCommand.h"
54 #include "Control/Command/Instructions/CGetKnowledgeBaseConfigCommand.h"
55 #include "Control/Command/Instructions/CSetKnowledgeBaseConfigCommand.h"
56 #include "Control/Command/Instructions/CGetKnowledgeBaseSettingsCommand.h"
57 #include "Control/Command/Instructions/CPreprocessKnowledgeBaseRequirementsForQueryCommand.h"
58
59 #include "Control/Command/Events/CCommandCalculatedQueryCallbackEvent.h"
60 #include "Control/Command/Events/COntologyPreparedCallbackEvent.h"
61
62 #include "Events/CRealizeCommandEvent.h"
63
64 #include "Config/CConfiguration.h"
65
66 #include "Concurrent/CThread.h"
67
68 #include "Logger/Record/CContextRecorder.h"
69 #include "Logger/CLogIdentifier.h"
70
71 #include "Reasoner/Classifier/CClassificationManager.h"
72 #include "Reasoner/Classifier/CSubsumptionClassifierFactory.h"
73 #include "Reasoner/Classifier/CConfigDependedSubsumptionClassifierFactory.h"
74
75
76 // Logger includes
77 #include "Logger/CLogger.h"
78
79
80 namespace Konclude {
81
82 using namespace Reasoner;
83 using namespace Kernel::Manager;
84 using namespace Revision;
85
86 using namespace Concurrent;
87 using namespace Logger;
88 using namespace Logger::Record;
89 using namespace Config;
90
91 namespace Control {
92
93 namespace Command {
94
95 using namespace Events;
96 using namespace Records;
97
98 /*!
99 *
100 * \class CCommanderManagerThread
101 * \author Andreas Steigmiller
102 * \version 0.1
103 * \brief TODO
104 *
105 */
106 class CCommanderManagerThread : public CCommanderManager, public CThread, public CLogIdentifier {
107 // public methods
108 public:
109 //! Constructor
110 CCommanderManagerThread();
111
112 //! Destructor
113 virtual ~CCommanderManagerThread();
114
115
116 virtual CCommanderManagerThread *realizeCommand(CCommand *command);
117
118
119
120 // protected methods
121 protected:
122 bool processCustomsEvents(QEvent::Type type, CCustomEvent *event);
123
124 virtual void initializeConfiguration(CConfiguration *initConfig, CCommandRecordRouter *commandRecordRouter);
125 virtual void initializeCommander(CCommanderInitializationFactory *initializationFactory, CCommandRecordRouter *commandRecordRouter);
126
127 // protected variables
128 protected:
129 CReasonerCommanderGlobalConfiguration *configurationProvider;
130
131 CReasonerManager *reasonerManager;
132
133 CCommandDelegater *kbCommandsDelegater;
134
135 CClassificationManager *classificationMan;
136
137 COntologyRevisionManager *ontoRevMan;
138
139
140
141 // private methods
142 private:
143
144 // private variables
145 private:
146
147 };
148
149 }; // end namespace Command
150
151 }; // end namespace Control
152
153 }; // end namespace Konclude
154
155 #endif // KONCLUDE_Control_COMMAND_CCOMMANDERMANAGERTHREAD_H