Debian Codegraph @

Source/Reasoner/Kernel/Task/CCalculationConfigurationExtension.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_KERNEL_TASK_CCALCULATIONCONFIGURATIONEXTENSION_H
22 #define KONCLUDE_REASONER_KERNEL_TASK_CCALCULATIONCONFIGURATIONEXTENSION_H
23
24 // Libraries includes
25
26
27 // Namespace includes
28
29
30 // Other includes
31 #include "Config/CConfigurationBase.h"
32 #include "Config/CLocalConfigurationExtension.h"
33 #include "Config/CLocalConfigurationFixedExtension.h"
34 #include "Config/CConfigDataReader.h"
35
36
37 // Logger includes
38 #include "Logger/CLogger.h"
39
40
41 namespace Konclude {
42
43 using namespace Config;
44
45 namespace Reasoner {
46
47 namespace Kernel {
48
49 namespace Task {
50
51 /*!
52 *
53 * \class CCalculationConfigurationExtension
54 * \author Andreas Steigmiller
55 * \version 0.1
56 * \brief TODO
57 *
58 */
59 class CCalculationConfigurationExtension : public CLocalConfigurationFixedExtension {
60 // public methods
61 public:
62 //! Constructor
63 CCalculationConfigurationExtension(CConfigurationBase *fixedCollectingConfiguration, qint64 configID = 0);
64 CCalculationConfigurationExtension(CCalculationConfigurationExtension *previousLocalCalcExtension, CConfigurationBase *fixedCollectingConfiguration, qint64 configID = 0);
65
66 //! Destructor
67 virtual ~CCalculationConfigurationExtension();
68
69 bool isDependencyTrackingActivated();
70 bool isBackjumpingActivated();
71 bool isUnsatisfiableCacheRetrievalActivated();
72 bool isSatisfiableCacheRetrievalActivated();
73 bool isSingleLevelUnsatisfiableCacheWritingActivated();
74 bool isTestedConceptUnsatisfiableCacheWritingActivated();
75 bool isSingleLevelSatisfiableCacheWritingActivated();
76 bool isProxyIndividualsActivated();
77 bool isMinimizeMergingBranchesActivated();
78 bool isPseudoModelRuleEssentialCheckingActivated();
79 bool isClassificationPseudoModelSubsumptionMergingActivated();
80 bool isSpecializedAutomateRuleActivated();
81 bool isSubSetBlockingActivated();
82 bool isOptimizedBlockingActivated();
83 bool isEqualSetBlockingActivated();
84 bool isPairwiseEqualSetBlockingActivated();
85 bool isAncestorBlockingSearchActivated();
86 bool isAnywhereBlockingSearchActivated();
87 bool isAnywhereBlockingCandidateHashSearchActivated();
88 bool isSemanticBranchingActivated();
89 bool isAtomicSemanticBranchingActivated();
90 bool isBranchTriggeringActivated();
91 bool isStrictIndiNodeProcessingActivated();
92 bool isIDIndiPriorizationActivated();
93 bool isPropagateNodeProcessedActivated();
94 bool isDirectRulePreprocessingActivated();
95 bool isLazyNewNominalCreationActivated();
96 bool isConsistenceRestrictedNonStictProcessingActivated();
97 bool isUniqueNameAssumptionActivated();
98
99 bool isSatisfiableExpansionCacheRetrievalActivated();
100 bool isSatisfiableExpansionCacheConceptExpansionActivated();
101 bool isSatisfiableExpansionCacheSatisfiableBlockingActivated();
102 bool isSatisfiableExpansionCacheWritingActivated();
103
104 bool isSignatureMirroringBlockingActivated();
105 bool isSignatureSavingActivated();
106 bool isSkipANDConceptsActivated();
107
108 bool isCompletionGraphCachingActivated();
109 bool isAvoidRepeatedIndividualProcessingActivated();
110 bool isDelayedCompletionGraphCachingReactivationActivated();
111 bool isForceNodesRecreationForRepeatedIndividualProcessingActivated();
112 bool isIndividualsBackendCacheLoadingActivated();
113
114 bool isUnsatisfiableCachingFullDependencyActivated();
115 bool isUnsatisfiableCachingFullSignatureActivated();
116
117 bool isPairwiseMergingActivated();
118
119 bool isSaturationPilingActivated();
120
121 bool isCompletionGraphReuseCachingRetrievalActivated();
122 bool isCompletionGraphDeterministicReuseActivated();
123 bool isCompletionGraphNonDeterministicReuseActivated();
124
125 bool isAnywhereBlockingCoreConceptCandidateHashSearchActivated();
126
127 bool isRepresentativePropagationActivated();
128
129 bool isDebuggingWriteDataActivated();
130 bool isDebuggingWriteDataSaturationTasksActivated();
131 bool isDebuggingWriteDataCompletionTasksActivated();
132 bool isDebuggingWriteDataCompletionTasksOnlyOnSatisfiabilityActivated();
133 bool isDebuggingWriteDataCompletionTasksForConsistencyTestsActivated();
134 bool isDebuggingWriteDataCompletionTasksForClassificationTestsActivated();
135 bool isDebuggingWriteDataCompletionTasksForAnsweringPropagationTestsActivated();
136 bool isDebuggingWriteDataCompletionTasksForIncrementalExpansionTestsActivated();
137 bool isDebuggingWriteDataCompletionTasksForRepresentativeCacheRecomputationTestsActivated();
138 bool isDebuggingWriteDataCompletionTasksForAllTestsActivated();
139
140
141 bool isSuccessorConceptSaturationExpansionActivated();
142 bool isSaturationCachingActivated();
143 bool isSaturationCriticalConceptTestingActivated();
144 bool isSaturationDirectCriticalToInsufficientActivated();
145 bool isSaturationCachingWithNominalsByReactivationActivated();
146
147 bool isSaturationSuccessorExtensionActivated();
148 bool isNominalSaturationActivated();
149 bool isSaturationExpansionSatisfiabilityCacheWritingActivated();
150 bool isSaturationUnsatisfiabilityCacheWritingActivated();
151
152 bool isEquivalentAlternativesSaturationMergingActivated();
153
154 bool isDatatypeReasoningActivated();
155
156 bool isComputedTypesCachingActivated();
157
158 bool isConstructionIndividualNodeMergingActivated();
159
160
161 cint64 getMaximumRecursiveProcessingConceptCount();
162
163
164 cint64 getSaturationReferredNodeManyConceptCount();
165 cint64 getSaturationManyConceptReferredNodeCountProcessLimit();
166 cint64 getSaturationReferredNodeConceptCountProcessLimit();
167 cint64 getSaturationReferredNodeUnprocessedCountProcessLimit();
168 cint64 getSaturationReferredNodeCheckingDepth();
169
170
171 bool isForceManyConceptSaturationActivated();
172
173 bool isNewMergingsBackendOnlyInferringNeighbourExpansionActivated();
174 bool isAllowBackendNeighbourExpansionBlockingActivated();
175 bool isAllowBackendSuccessorExpansionBlockingActivated();
176
177
178 bool isOccurrenceStatisticsCollectionActivated();
179
180 bool isGeneratingTestQueriesActivated();
181
182 bool isBlockingTestsIgnoringCompletionGraphCachedNonBlockedNodesActivated();
183
184
185 bool isBackendCriticalNeighbourRepresentativeExpansionDelayingActivated();
186
187 bool isBackendCriticalNeighbourExpansionLimitationActivated();
188 bool isBackendCriticalNeighbourExpansionReusingActivated();
189 bool isBackendCriticalNeighbourExpansionLateDynamicReusingActivated();
190 bool isBackendExpansionLimitReachedReuseActivationActivated();
191
192 cint64 getBackendCriticalNeighbourExpansionLimit();
193 cint64 getBackendCriticalNeighbourExpansionPriorityReductionCount();
194 cint64 getBackendCriticalNeighbourDirectExpansionLimit();
195 cint64 getBackendCriticalNeighbourExpansionIndividualsBatchSize();
196 cint64 getBackendCriticalNeighbourExpansionRolesBatchSize();
197 cint64 getBackendCriticalNeighbourDirectExpansionOverCriticalReductionSize();
198
199 bool isBackendDelayedSameInitializationCopyingActivated();
200 bool isBackendOnlyDeterministicRepresentativeIndividualDataConsiderationActivated();
201
202 cint64 getDefaultIndividualPrecomputationCount();
203
204 cint64 getBackendExpansionReuseActivationSameIndividualCount();
205 cint64 getBackendExpansionReuseActivationNeighbourIndividualCount();
206
207 bool isBackendExpandDeterministicallyMergedHandledNeighboursActivated();
208 bool isBackendCardinalityNeighbourExpansionRepresentativeCountingActivated();
209
210 // protected methods
211 protected:
212
213 // protected variables
214 protected:
215 bool mConfDependencyTrackingActivated;
216 bool mConfBackjumpingActivated;
217 bool mConfUnsatCachingActivated;
218 bool mConfSatCachingActivated;
219 bool mConfUnsatCacheSingleLevelWritingActivated;
220 bool mConfUnsatCacheTestedConceptWritingActivated;
221 bool mConfSatCacheSingleLevelWritingActivated;
222 bool mConfProxyIndividualsActivated;
223 bool mConfMinimizeMergingBranchesActivated;
224 bool mConfPseudoModelRuleEssentialCheckingActivated;
225 bool mConfClassPseudoModelSubsumptionMergingActivated;
226 bool mConfSpecializedAutomateRuleActivated;
227 bool mConfSubSetBlockingActivated;
228 bool mConfOptimizedBlockingActivated;
229 bool mConfEqualSetBlockingActivated;
230 bool mConfPairwiseEqualSetBlockingActivated;
231 bool mConfAncestorBlockingSearchActivated;
232 bool mConfAnywhereBlockingSearchActivated;
233 bool mConfAnywhereBlockingCandidateHashSearchActivated;
234 bool mConfSemanticBranchingActivated;
235 bool mConfAtomicSemanticBranchingActivated;
236 bool mConfBranchTriggeringActivated;
237 bool mConfStrictIndiNodeProcessingActivated;
238 bool mConfIDIndiPriorizationActivated;
239 bool mConfPropagateNodeProcessedActivated;
240 bool mConfDirectRulePreprocessingActivated;
241 bool mConfLazyNewNominalCreationActivated;
242 bool mConfConsistenceRestrictedNonStictProcessingActivated;
243 bool mConfUniqueNameAssumptionActivated;
244
245 bool mConfSatisfiableExpansionCacheRetrievalActivated;
246 bool mConfSatisfiableExpansionCacheConceptExpansionActivated;
247 bool mConfSatisfiableExpansionCacheSatisfiableBlockingActivated;
248 bool mConfSatisfiableExpansionCacheWritingActivated;
249
250 bool mConfSignatureMirroringBlockingActivated;
251 bool mConfSignatureSavingActivated;
252 bool mConfSkipANDConceptsActivated;
253
254 bool mConfCompletionGraphCachingActivated;
255 bool mConfAvoidRepeatedIndividualProcessingActivated;
256 bool mConfDelayedCompletionGraphCachingReactivationActivated;
257 bool mConfForceNodesRecreationForRepeatedIndividualProcessingActivated;
258
259
260 bool mConfUnsatCachingUseFullNodeDependencyActivated;
261 bool mConfUnsatCachingUseNodeSignatureSetActivated;
262
263 bool mConfPairwiseMergingActivated;
264
265 bool mConfSaturationPilingActivated;
266
267 bool mConfCompGraphReuseCacheRetrievalActivated;
268 bool mConfCompGraphDeterministicReuseActivated;
269 bool mConfCompGraphNonDeterministicReuseActivated;
270
271 bool mConfAnywhereBlockingCoreConceptCandidateHashSearchActivated;
272 bool mConfRepresentativePropagationActivated;
273
274 bool mConfDebuggingWriteDataActivated;
275 bool mConfDebuggingWriteDataCompletionTasksActivated;
276 bool mConfDebuggingWriteDataSaturationTasksActivated;
277 bool mConfDebuggingWriteDataOnlyOnSatisfiabilityActivated;
278 bool mConfDebuggingWriteDataForConsistencyTestsActivated;
279 bool mConfDebuggingWriteDataForClassificationTestsActivated;
280 bool mConfDebuggingWriteDataForAnsweringPropagationTestsActivated;
281 bool mConfDebuggingWriteDataForIncrementalExpansionTestsActivated;
282 bool mConfDebuggingWriteDataForRepresentativeCacheRecomputationTestsActivated;
283 bool mConfDebuggingWriteDataForAllTestsActivated;
284
285 bool mConfSuccessorConceptSaturationExpansionActivated;
286 bool mConfSaturationCachingActivated;
287 bool mConfSaturationCriticalConceptTestingActivated;
288 bool mConfSaturationDirectCriticalToInsufficientActivated;
289
290 bool mConfSaturationSuccessorExtensionActivated;
291 bool mConfSaturationCachingWithNominalsByReactivationActivated;
292 bool mConfNominalSaturationActivated;
293 bool mConfSaturationExpansionSatisfiabilityCacheWritingActivated;
294 bool mConfSaturationUnsatisfiabilityCacheWritingActivated;
295 bool mConfIndividualsBackendCacheLoadingActivated;
296
297 bool mEquivalentAlternativesSaturationMergingActivated;
298 bool mDatatypeReasoningActivated;
299 bool mComputedTypesCachingActivated;
300 bool mConstructionIndividualNodeMergingActivated;
301
302 cint64 mSaturationReferredNodeManyConceptCount;
303 cint64 mSaturationManyConceptReferredNodeCountProcessLimit;
304 cint64 mSaturationReferredNodeConceptCountProcessLimit;
305 cint64 mSaturationReferredNodeUnprocessedCountProcessLimit;
306 cint64 mSaturationReferredNodeCheckingDepth;
307
308 bool mConfForceManyConceptSaturationActivated;
309
310 bool mAllowBackendNeighbourExpansionBlockingActivated;
311 bool mAllowBackendSuccessorExpansionBlockingActivated;
312
313 cint64 mMaxRecProConceptCount;
314 bool mOccurrenceStatisticsCollectionActivated;
315 bool mGeneratingTestQueriesActivated;
316 bool mBlockingTestsIgnoringCompletionGraphCachedNonBlockedNodesActivated;
317 bool mBackendCriticalNeighbourRepresentativeExpansionDelayingChecked;
318 bool mBackendCriticalNeighbourRepresentativeExpansionDelayingActivated;
319
320
321
322
323 bool mBackendCriticalNeighbourExpansionLimitationActivated;
324 bool mBackendCriticalNeighbourExpansionReusingActivated;
325 bool mBackendExpansionLimitReachedReuseActivationActivated;
326 bool mBackendExpansionLimitReachedReuseActivationChecked;
327
328 cint64 mBackendCriticalNeighbourExpansionLimit;
329 cint64 mBackendCriticalNeighbourExpansionPriorityReductionCount;
330 cint64 mBackendCriticalNeighbourDirectExpansionLimit;
331 cint64 mBackendCriticalNeighbourExpansionIndividualsBatchSize;
332 cint64 mBackendCriticalNeighbourExpansionRolesBatchSize;
333
334 bool mBackendDelayedSameInitializationCopyingActivated;
335 bool mBackendDelayedSameInitializationCopyingChecked;
336 bool mBackendOnlyDeterministicRepresentativeIndividualDataConsiderationActivated;
337 bool mBackendOnlyDeterministicRepresentativeIndividualDataConsiderationChecked;
338
339
340 bool mBackendCriticalNeighbourExpansionLimitationChecked;
341 bool mBackendCriticalNeighbourExpansionReusingChecked;
342 bool mBackendCriticalNeighbourExpansionLateDynamicReusingChecked;
343 bool mBackendCriticalNeighbourExpansionLateDynamicReusingActivated;
344
345 cint64 mDefaultIndividualPrecomputationCount;
346 bool mDefaultIndividualPrecomputationCountChecked;
347 bool mBackendCriticalNeighbourExpansionLimitChecked;
348 bool mBackendCriticalNeighbourExpansionPriorityReductionCountChecked;
349 bool mBackendCriticalNeighbourDirectExpansionLimitChecked;
350 bool mBackendCriticalNeighbourExpansionIndividualsBatchSizeChecked;
351 bool mBackendCriticalNeighbourExpansionRolesBatchSizeChecked;
352
353 bool mBackendCriticalNeighbourDirectExpansionOverCriticalReductionSizeChecked;
354 cint64 mBackendCriticalNeighbourDirectExpansionOverCriticalReductionSize;
355
356
357 bool mBackendExpansionReuseActivationNeighbourIndividualCountChecked;
358 cint64 mBackendExpansionReuseActivationNeighbourIndividualCount;
359 bool mBackendExpansionReuseActivationSameIndividualCountChecked;
360 cint64 mBackendExpansionReuseActivationSameIndividualCount;
361
362
363
364 bool mBackendExpandDeterministicallyMergedHandledNeighboursActivated;
365 bool mBackendExpandDeterministicallyMergedHandledNeighboursChecked;
366 bool mBackendCardinalityNeighbourExpansionRepresentativeCountingActivated;
367 bool mBackendCardinalityNeighbourExpansionRepresentativeCountingChecked;
368
369
370
371 bool mConfDependencyTrackingChecked;
372 bool mConfBackjumpingChecked;
373 bool mConfUnsatCachingChecked;
374 bool mConfSatCachingChecked;
375 bool mConfUnsatCacheSingleLevelWritingChecked;
376 bool mConfUnsatCacheTestedConceptWritingChecked;
377 bool mConfSatCacheSingleLevelWritingChecked;
378 bool mConfProxyIndividualsChecked;
379 bool mConfMinimizeMergingBranchesChecked;
380 bool mConfPseudoModelRuleEssentialCheckingChecked;
381 bool mConfClassPseudoModelSubsumptionMergingChecked;
382 bool mConfSpecializedAutomateRuleChecked;
383 bool mConfSubSetBlockingChecked;
384 bool mConfOptimizedBlockingChecked;
385 bool mConfEqualSetBlockingChecked;
386 bool mConfPairwiseEqualSetBlockingChecked;
387 bool mConfAncestorBlockingSearchChecked;
388 bool mConfAnywhereBlockingSearchChecked;
389 bool mConfAnywhereBlockingCandidateHashSearchChecked;
390 bool mConfSemanticBranchingChecked;
391 bool mConfAtomicSemanticBranchingChecked;
392 bool mConfBranchTriggeringChecked;
393 bool mConfStrictIndiNodeProcessingChecked;
394 bool mConfIDIndiPriorizationChecked;
395 bool mConfPropagateNodeProcessedChecked;
396 bool mConfDirectRulePreprocessingChecked;
397 bool mConfLazyNewNominalCreationChecked;
398 bool mConfConsistenceRestrictedNonStictProcessingChecked;
399 bool mConfUniqueNameAssumptionChecked;
400
401 bool mConfSatisfiableExpansionCacheRetrievalChecked;
402 bool mConfSatisfiableExpansionCacheConceptExpansionChecked;
403 bool mConfSatisfiableExpansionCacheSatisfiableBlockingChecked;
404 bool mConfSatisfiableExpansionCacheWritingChecked;
405
406 bool mConfSignatureMirroringBlockingChecked;
407 bool mConfSignatureSavingChecked;
408 bool mConfSkipANDConceptsChecked;
409
410 bool mConfCompletionGraphCachingChecked;
411 bool mConfAvoidRepeatedIndividualProcessingChecked;
412 bool mConfDelayedCompletionGraphCachingReactivationChecked;
413 bool mConfForceNodesRecreationForRepeatedIndividualProcessingChecked;
414 bool mConfIndividualsBackendCacheLoadingChecked;
415
416 bool mConfUnsatCachingUseFullNodeDependencyChecked;
417 bool mConfUnsatCachingUseNodeSignatureSetChecked;
418
419 bool mConfPairwiseMergingChecked;
420
421 bool mConfSaturationPilingChecked;
422
423 bool mConfCompGraphReuseCacheRetrievalChecked;
424 bool mConfCompGraphDeterministicReuseChecked;
425 bool mConfCompGraphNonDeterministicReuseChecked;
426
427 bool mConfAnywhereBlockingCoreConceptCandidateHashSearchChecked;
428 bool mConfRepresentativePropagationChecked;
429 bool mConfDebuggingWriteDataChecked;
430 bool mConfDebuggingWriteDataSaturationTasksChecked;
431 bool mConfDebuggingWriteDataCompletionTasksChecked;
432 bool mConfDebuggingWriteDataOnlyOnSatisfiabilityChecked;
433 bool mConfDebuggingWriteDataForConsistencyTestsChecked;
434 bool mConfDebuggingWriteDataForClassificationTestsChecked;
435 bool mConfDebuggingWriteDataForAnsweringPropagationTestsChecked;
436 bool mConfDebuggingWriteDataForIncrementalExpansionTestsChecked;
437 bool mConfDebuggingWriteDataForRepresentativeCacheRecomputationTestsChecked;
438 bool mConfDebuggingWriteDataForAllTestsChecked;
439
440 bool mConfSuccessorConceptSaturationExpansionChecked;
441 bool mConfSaturationCachingChecked;
442 bool mConfSaturationCriticalConceptTestingChecked;
443 bool mConfSaturationDirectCriticalToInsufficientChecked;
444 bool mConfSaturationSuccessorExtensionChecked;
445 bool mConfSaturationCachingWithNominalsByReactivationChecked;
446 bool mConfNominalSaturationChecked;
447 bool mConfSaturationExpansionSatisfiabilityCacheWritingChecked;
448 bool mConfSaturationUnsatisfiabilityCacheWritingChecked;
449
450 bool mEquivalentAlternativesSaturationMergingChecked;
451 bool mDatatypeReasoningChecked;
452
453 bool mComputedTypesCachingChecked;
454 bool mConstructionIndividualNodeMergingChecked;
455
456 bool mSaturationReferredNodeManyConceptCountChecked;
457 bool mSaturationManyConceptReferredNodeCountProcessLimitChecked;
458 bool mSaturationReferredNodeConceptCountProcessLimitChecked;
459 bool mSaturationReferredNodeUnprocessedCountProcessLimitChecked;
460 bool mSaturationReferredNodeCheckingDepthChecked;
461
462 bool mConfForceManyConceptSaturationChecked;
463
464 bool mNewMergingsBackendOnlyInferringNeighbourExpansionChecked;
465 bool mNewMergingsBackendOnlyInferringNeighbourExpansionActivated;
466
467 bool mAllowBackendNeighbourExpansionBlockingChecked;
468 bool mAllowBackendSuccessorExpansionBlockingChecked;
469
470 bool mMaxRecProConceptCountChecked;
471 bool mOccurrenceStatisticsCollectionChecked;
472 bool mGeneratingTestQueriesChecked;
473
474 bool mBlockingTestsIgnoringCompletionGraphCachedNonBlockedNodesChecked;
475
476 // private methods
477 private:
478
479 // private variables
480 private:
481
482 };
483
484 }; // end namespace Task
485
486 }; // end namespace Kernel
487
488 }; // end namespace Reasoner
489
490 }; // end namespace Konclude
491
492 #endif // KONCLUDE_REASONER_KERNEL_TASK_CCALCULATIONCONFIGURATIONEXTENSION_H