Debian Codegraph @

Source/Control/Loader/CReasonerEvaluationProgramLoader.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_LOADER_CREASONEREVALUATIONPROGRAMLOADER_H
22 #define KONCLUDE_CONTROL_LOADER_CREASONEREVALUATIONPROGRAMLOADER_H
23
24 // Libraries includes
25 #include <QString>
26 #include <QRegExp>
27
28 // Namespace includes
29 #include "LoaderSettings.h"
30 #include "CLoader.h"
31 #include "CLoaderFactory.h"
32
33 // Other includes
34 #include "Test/Evaluation/CReasonerEvaluationExecutorThread.h"
35 #include "Test/Evaluation/CReasonerEvaluationTestsuite.h"
36
37 #include "Control/Command/CCommanderManagerThread.h"
38 #include "Control/Command/CCommanderManagerConfigType.h"
39
40 #include "Control/Command/Instructions/CInitializeConfigurationCommand.h"
41
42 #include "Config/CConfigDataReader.h"
43
44 #include "Control/Interface/OWLlink/COWLlinkProcessor.h"
45
46 // Logger includes
47 #include "Logger/CLogger.h"
48 #include "Logger/CLogIdentifier.h"
49
50
51 #include <stdio.h>
52 #include <iostream>
53
54
55 namespace Konclude {
56
57 using namespace Logger;
58 using namespace Config;
59 using namespace Test::Evaluation;
60
61 namespace Control {
62
63 using namespace Command;
64 using namespace Instructions;
65 using namespace Interface::OWLlink;
66
67 namespace Loader {
68
69 /*!
70 *
71 * \class CReasonerEvaluationProgramLoader
72 * \author Andreas Steigmiller
73 * \version 0.1
74 * \brief TODO
75 *
76 */
77 class CReasonerEvaluationProgramLoader : public CLoader, public COWLlinkProcessor {
78 // public methods
79 public:
80 //! Constructor
81 CReasonerEvaluationProgramLoader();
82
83 //! Destructor
84 virtual ~CReasonerEvaluationProgramLoader();
85
86
87 virtual CLoader *init(CLoaderFactory *loaderFactory = 0, CConfiguration *config = 0);
88 virtual CLoader *load();
89 virtual CLoader *exit();
90
91
92
93 // protected methods
94 protected:
95 virtual COWLlinkProcessor *initializeOWLlinkContent();
96 virtual COWLlinkProcessor *concludeOWLlinkContent();
97
98 virtual CConfiguration *getConfiguration();
99
100
101 // protected variables
102 protected:
103 QString mProgramFileString;
104 CConfiguration* mLoaderConfig;
105 CCommanderManagerThread* mReasonerCommander;
106 CCommanderManagerThread* mDeleteReasonerCommander;
107
108 QSemaphore mBlockingSem;
109 bool mCloseAfterOutput;
110
111 // private methods
112 private:
113
114 // private variables
115 private:
116
117 };
118
119 }; // end namespace Loader
120
121 }; // end namespace Control
122
123 }; // end namespace Konclude
124
125 #endif // KONCLUDE_CONTROL_LOADER_CREASONEREVALUATIONPROGRAMLOADER_H