Debian Codegraph @

Source/Control/Interface/JNI/CJNICommandProcessor.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_INTERFACE_JNI_CJNICOMMANDPROCESSOR_H
22 #define KONCLUDE_CONTROL_INTERFACE_JNI_CJNICOMMANDPROCESSOR_H
23
24 // Libraries includes
25 #include <QTcpSocket>
26 #include <QHostAddress>
27
28 // Namespace includes
29 #include "JNISettings.h"
30
31 // Other includes
32 #include "Control/Interface/OWLlink/COWLlinkProcessor.h"
33
34 #include "Control/Command/CConfigManagerReader.h"
35
36 #include "Concurrent/Callback/CBlockingCallbackData.h"
37
38 // Logger includes
39 #include "Logger/CLogger.h"
40 #include "Logger/CLogIdentifier.h"
41
42
43 namespace Konclude {
44
45 using namespace Concurrent::Callback;
46
47 namespace Control {
48
49 using namespace Command;
50
51 namespace Interface {
52
53 using namespace OWLlink;
54
55 namespace JNI {
56
57 /*!
58 *
59 * \class CJNICommandProcessor
60 * \author Andreas Steigmiller
61 * \version 0.1
62 * \brief TODO
63 *
64 */
65 class CJNICommandProcessor : public COWLlinkProcessor {
66
67 // public methods
68 public:
69 //! Constructor
70 CJNICommandProcessor(CConfiguration* loaderConfig);
71
72 //! Destructor
73 virtual ~CJNICommandProcessor();
74
75
76 CJNICommandProcessor* processCommand(CCommand* command, bool blockUntilProcessed = true);
77
78
79 COntologyRevision* getNewlyCreatedAnonymousOntologyRevision();
80 COntologyRevision* getNewOntologyRevision(COntologyRevision* prevOntRev);
81
82 COntologyRevision* installNewOntologyRevision(COntologyRevision* ontRev);
83
84
85 bool prepareOntologyQuerying(COntologyRevision* ontRev);
86
87
88 CJNICommandProcessor* calculateOntologyQuery(CQuery* query);
89
90 virtual CConfiguration *getConfiguration();
91
92
93 // protected methods
94 protected:
95 virtual void threadStarted();
96 virtual void threadStopped();
97
98 virtual COWLlinkProcessor* initializeOWLlinkContent();
99 virtual COWLlinkProcessor* concludeOWLlinkContent();
100
101
102
103 // protected variables
104 protected:
105
106
107 // private methods
108 private:
109
110 CCommand* mProcessingCommand;
111
112 CConfiguration* mLoaderConfig;
113
114
115
116 // private variables
117 private:
118
119 };
120
121 }; // end namespace JNI
122
123 }; // end namespace Interface
124
125 }; // end namespace Control
126
127 }; // end namespace Konclude
128
129 #endif // KONCLUDE_CONTROL_INTERFACE_JNI_CJNICOMMANDPROCESSOR_H