Debian Codegraph @

Source/Control/Loader/CDefaultLoaderFactory.cpp

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 #include "CDefaultLoaderFactory.h"
22
23
24 namespace Konclude {
25
26 namespace Control {
27
28 namespace Loader {
29
30
31 CDefaultLoaderFactory::CDefaultLoaderFactory() {
32 }
33
34
35 CDefaultLoaderFactory::~CDefaultLoaderFactory() {
36 }
37
38 CLoader *CDefaultLoaderFactory::createLoaderFromName(const QString &loaderName, CConfiguration *config) {
39 CLoader *loader = 0;
40 if (loaderName == "CommandLineLoader") {
41 loader = new CCommandLineLoader();
42 } else if (loaderName == "CoutLogObserverLoader") {
43 loader = new CCoutLogObserverLoader();
44 } else if (loaderName == "DefaultReasonerLoader") {
45 loader = new CDefaultReasonerLoader();
46 } else if (loaderName == "OWLlinkBatchFileLoader") {
47 loader = new COWLlinkBatchFileLoader();
48 } else if (loaderName == "AnalyseReasonerLoader") {
49 loader = new CAnalyseReasonerLoader();
50 } else if (loaderName == "ExperimentalReasonerLoader") {
51 loader = new CExperimentalReasonerLoader();
52 } else if (loaderName == "CommandLineTranlatorHelpLoader") {
53 loader = new CCommandLineTranlatorHelpLoader();
54 } else if (loaderName == "ConfigurableCoutLogObserverLoader") {
55 loader = new CConfigurableCoutLogObserverLoader();
56 } else if (loaderName == "TestHashModificationLoader") {
57 loader = new CTestHashModificationLoader();
58 } else if (loaderName == "TestTaskThroughputLoader") {
59 loader = new CTestTaskThroughputLoader();
60 } else if (loaderName == "TestQHashVsQMapLoader") {
61 loader = new CTestQHashVsQMapLoader();
62 } else if (loaderName == "PigenholePrincipleGeneratorLoader") {
63 loader = new CPigenholePrincipleGeneratorLoader();
64 } else if (loaderName == "TestOWLlinkAPIBatchFileLoader") {
65 loader = new CTestOWLlinkAPIBatchFileLoader();
66 } else if (loaderName == "TestMemoryAccessLoader") {
67 loader = new CTestMemoryAccessLoader();
68 } else if (loaderName == "OWLFilesIncompatibleAxiomChangerLoader") {
69 loader = new COWLFilesIncompatibleAxiomChangerLoader();
70 } else if (loaderName == "ReasonerEvaluationLoader") {
71 loader = new CReasonerEvaluationLoader();
72 } else if (loaderName == "OWLFilesOWLlinkTestcaseGeneratorLoader") {
73 loader = new COWLFilesOWLlinkTestcaseGeneratorLoader();
74 } else if (loaderName == "ReasonerEvaluationClassificationTimesComparerLoader") {
75 loader = new CReasonerEvaluationClassificationTimesComparerLoader();
76 } else if (loaderName == "OWLlinkHttpServerLoader") {
77 loader = new COWLlinkHttpServerLoader();
78 } else if (loaderName == "ReasonerEvaluationLoadingTimesComparerLoader") {
79 loader = new CReasonerEvaluationLoadingTimesComparerLoader();
80 } else if (loaderName == "RecursionTestDataGeneratorLoader") {
81 loader = new CRecursionTestDataGeneratorLoader();
82 } else if (loaderName == "LargeJoinTestDataGeneratorLoader") {
83 loader = new CLargeJoinTestDataGeneratorLoader();
84 } else if (loaderName == "TransitiveConnectedELClassesTestDataGeneratorLoader") {
85 loader = new CTransitiveConnectedELClassesTestDataGeneratorLoader();
86 } else if (loaderName == "ReasonerEvaluationProgramLoader") {
87 loader = new CReasonerEvaluationProgramLoader();
88 } else if (loaderName == "OREBatchProcessingLoader") {
89 loader = new COREBatchProcessingLoader();
90 } else if (loaderName == "ORECoutLogObserverLoader") {
91 loader = new CORECoutLogObserverLoader();
92 } else if (loaderName == "ReasonerEvaluationTestcaseStatisticCollectionGeneratorLoader") {
93 loader = new CReasonerEvaluationTestcaseStatisticCollectionGeneratorLoader();
94 } else if (loaderName == "ReasonerEvaluationOntologyExtractionLoader") {
95 loader = new CReasonerEvaluationOntologyExtractionLoader();
96 } else if (loaderName == "CLIClassClassificationBatchProcessingLoader") {
97 loader = new CCLIClassClassificationBatchProcessingLoader();
98 } else if (loaderName == "CLIObjectPropertyClassificationBatchProcessingLoader") {
99 loader = new CCLIObjectPropertyClassificationBatchProcessingLoader();
100 } else if (loaderName == "CLIDataPropertyClassificationBatchProcessingLoader") {
101 loader = new CCLIDataPropertyClassificationBatchProcessingLoader();
102 } else if (loaderName == "CLIConsistencyBatchProcessingLoader") {
103 loader = new CCLIConsistencyBatchProcessingLoader();
104 } else if (loaderName == "CLISatisfiabilityBatchProcessingLoader") {
105 loader = new CCLISatisfiabilityBatchProcessingLoader();
106 } else if (loaderName == "CLIRealizationBatchProcessingLoader") {
107 loader = new CCLIRealizationBatchProcessingLoader();
108 } else if (loaderName == "LoggerConfigurationLoader") {
109 loader = new CLoggerConfigurationLoader();
110 } else if (loaderName == "JNICommandProcessorLoader") {
111 loader = new CJNICommandProcessorLoader();
112 } else if (loaderName == "SPARQLBatchFileLoader") {
113 loader = new CSPARQLBatchFileLoader();
114 } else if (loaderName == "CLILoadingBatchProcessingLoader") {
115 loader = new CCLILoadingBatchProcessingLoader();
116 } else if (loaderName == "SPARQLHttpServerLoader") {
117 loader = new CSPARQLHttpServerLoader();
118 } else if (loaderName == "SPARQLResultsComparisonLoader") {
119 loader = new CSPARQLResultsComparisonLoader();
120 }
121 return loader;
122 }
123
124 bool CDefaultLoaderFactory::canCreateLoaderFromName(const QString &loaderName, CConfiguration *config) {
125 bool canLoad = false;
126 if (loaderName == "CommandLineLoader") {
127 canLoad = true;
128 } else if (loaderName == "CoutLogObserverLoader") {
129 canLoad = true;
130 } else if (loaderName == "DefaultReasonerLoader") {
131 canLoad = true;
132 } else if (loaderName == "OWLlinkBatchFileLoader") {
133 canLoad = true;
134 } else if (loaderName == "AnalyseReasonerLoader") {
135 canLoad = true;
136 } else if (loaderName == "ExperimentalReasonerLoader") {
137 canLoad = true;
138 } else if (loaderName == "CommandLineTranlatorHelpLoader") {
139 canLoad = true;
140 } else if (loaderName == "ConfigurableCoutLogObserverLoader") {
141 canLoad = true;
142 } else if (loaderName == "TestHashModificationLoader") {
143 canLoad = true;
144 } else if (loaderName == "TestTaskThroughputLoader") {
145 canLoad = true;
146 } else if (loaderName == "TestQHashVsQMapLoader") {
147 canLoad = true;
148 } else if (loaderName == "PigenholePrincipleGeneratorLoader") {
149 canLoad = true;
150 } else if (loaderName == "TestOWLlinkAPIBatchFileLoader") {
151 canLoad = true;
152 } else if (loaderName == "TestMemoryAccessLoader") {
153 canLoad = true;
154 } else if (loaderName == "OWLFilesIncompatibleAxiomChangerLoader") {
155 canLoad = true;
156 } else if (loaderName == "ReasonerEvaluationLoader") {
157 canLoad = true;
158 } else if (loaderName == "OWLFilesOWLlinkTestcaseGeneratorLoader") {
159 canLoad = true;
160 } else if (loaderName == "ReasonerEvaluationClassificationTimesComparerLoader") {
161 canLoad = true;
162 } else if (loaderName == "OWLlinkHttpServerLoader") {
163 canLoad = true;
164 } else if (loaderName == "ReasonerEvaluationLoadingTimesComparerLoader") {
165 canLoad = true;
166 } else if (loaderName == "RecursionTestDataGeneratorLoader") {
167 canLoad = true;
168 } else if (loaderName == "LargeJoinTestDataGeneratorLoader") {
169 canLoad = true;
170 } else if (loaderName == "TransitiveConnectedELClassesTestDataGeneratorLoader") {
171 canLoad = true;
172 } else if (loaderName == "ReasonerEvaluationProgramLoader") {
173 canLoad = true;
174 } else if (loaderName == "OREBatchProcessingLoader") {
175 canLoad = true;
176 } else if (loaderName == "ORECoutLogObserverLoader") {
177 canLoad = true;
178 } else if (loaderName == "ReasonerEvaluationTestcaseStatisticCollectionGeneratorLoader") {
179 canLoad = true;
180 } else if (loaderName == "ReasonerEvaluationOntologyExtractionLoader") {
181 canLoad = true;
182 } else if (loaderName == "CLIClassClassificationBatchProcessingLoader") {
183 canLoad = true;
184 } else if (loaderName == "CLIObjectPropertyClassificationBatchProcessingLoader") {
185 canLoad = true;
186 } else if (loaderName == "CLIDataPropertyClassificationBatchProcessingLoader") {
187 canLoad = true;
188 } else if (loaderName == "CLIConsistencyBatchProcessingLoader") {
189 canLoad = true;
190 } else if (loaderName == "CLISatisfiabilityBatchProcessingLoader") {
191 canLoad = true;
192 } else if (loaderName == "CLIRealizationBatchProcessingLoader") {
193 canLoad = true;
194 } else if (loaderName == "LoggerConfigurationLoader") {
195 canLoad = true;
196 } else if (loaderName == "JNICommandProcessorLoader") {
197 canLoad = true;
198 } else if (loaderName == "SPARQLBatchFileLoader") {
199 canLoad = true;
200 } else if (loaderName == "CLILoadingBatchProcessingLoader") {
201 canLoad = true;
202 } else if (loaderName == "SPARQLHttpServerLoader") {
203 canLoad = true;
204 } else if (loaderName == "SPARQLResultsComparisonLoader") {
205 canLoad = true;
206 }
207 return canLoad;
208 }
209
210
211
212 }; // end namespace Loader
213
214 }; // end namespace Control
215
216 }; // end namespace Konclude