Debian Codegraph @

Source/Reasoner/Preprocess/CRequirementConfigPreprocessingThread.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_PREPROCESS_CREQUIREMENTCONFIGPREPROCESSINGTHREAD_H
22 #define KONCLUDE_REASONER_PREPROCESS_CREQUIREMENTCONFIGPREPROCESSINGTHREAD_H
23
24 // Libraries includes
25
26
27 // Namespace includes
28 #include "PreprocessSettings.h"
29 #include "CPreprocessingThread.h"
30 #include "CPreprocessingTestingItem.h"
31 #include "CRequirementConfigPreprocessingItem.h"
32 #include "COntologyConfigDependedPreProcesser.h"
33
34 // Other includes
35 #include "Reasoner/Kernel/Manager/CReasonerManager.h"
36
37 #include "Reasoner/Kernel/Task/CCalculationConfigurationExtension.h"
38
39 #include "Reasoner/Generator/CSatisfiableCalculationJobGenerator.h"
40 #include "Reasoner/Generator/CConcreteOntologyUpdateBuilder.h"
41 #include "Reasoner/Generator/CConcreteOntologyUpdateCollectorBuilder.h"
42 #include "Reasoner/Generator/CConcreteOntologyRedlandTriplesDataExpressionMapper.h"
43 #include "Reasoner/Generator/CActiveEntitySubExpressionVisitorUpdater.h"
44
45 #ifdef KONCLUDE_REDLAND_INTEGRATION
46 #include "Reasoner/Triples/CRedlandStoredTriplesIndividualAssertionIndexer.h"
47 #include "Reasoner/Triples/CRedlandStoredTriplesIndividualAssertionConvertionIndexer.h"
48 #include "Reasoner/Triples/CRedlandStoredTriplesIndividualAssertionConvertionQtConcurrentIndexer.h"
49 #endif // !KONCLUDE_REDLAND_INTEGRATION
50
51 #include "Utilities/Memory/CTempMemoryPoolContainerAllocationManager.h"
52
53 // Logger includes
54 #include "Logger/CLogger.h"
55
56
57 namespace Konclude {
58
59 using namespace Utilities::Memory;
60
61 namespace Reasoner {
62
63 using namespace Kernel::Task;
64 using namespace Kernel::Manager;
65 using namespace Generator;
66 using namespace Triples;
67
68 namespace Preprocess {
69
70 using namespace Events;
71
72
73 /*!
74 *
75 * \class CRequirementConfigPreprocessingThread
76 * \author Andreas Steigmiller
77 * \version 0.1
78 * \brief TODO
79 *
80 */
81 class CRequirementConfigPreprocessingThread : public CPreprocessingThread, public CLogDomain {
82 // public methods
83 public:
84 //! Constructor
85 CRequirementConfigPreprocessingThread(CReasonerManager* reasonerManager);
86
87 //! Destructor
88 ~CRequirementConfigPreprocessingThread();
89
90
91 // protected methods
92 protected:
93 virtual COntologyPreprocessingItem* initializeOntologyPreprocessingItem(CConcreteOntology* ontology, CConfigurationBase* config);
94
95 virtual bool createNextTest();
96
97 virtual bool finishOntologyPreprocessing(CRequirementConfigPreprocessingItem* totallyPreCompItem);
98 virtual bool preprocessingTested(COntologyPreprocessingItem* ontPreCompItem, CPreprocessingTestingItem* preTestItem, CPreprocessingCalculatedCallbackEvent* pcce);
99
100 CConcreteOntology* searchPreviousBuiltOntologyVersion(COntologyIncrementalRevisionData* incRevData, CRequirementConfigPreprocessingItem* reqConfPreCompItem);
101 CConcreteOntology* searchPreviousConsistentOntologyVersion(COntologyIncrementalRevisionData* incRevData, CRequirementConfigPreprocessingItem* reqConfPreCompItem);
102 CConcreteOntology* searchPreviousClassesClassifiedOntologyVersion(COntologyIncrementalRevisionData* incRevData, CRequirementConfigPreprocessingItem* reqConfPreCompItem);
103 CConcreteOntology* searchPreviousClassRealizedOntologyVersion(COntologyIncrementalRevisionData* incRevData, CRequirementConfigPreprocessingItem* reqConfPreCompItem);
104
105
106 virtual bool createBuild(CRequirementConfigPreprocessingItem* reqConfPreCompItem);
107 virtual bool createPreprocess(CRequirementConfigPreprocessingItem* reqConfPreCompItem);
108
109 virtual bool countActiveEntites(CRequirementConfigPreprocessingItem* reqConfPreCompItem);
110 virtual bool mapTriplesToOWL(CRequirementConfigPreprocessingItem* reqConfPreCompItem);
111 virtual bool indexTripleEncodedAssertions(CRequirementConfigPreprocessingItem* reqConfPreCompItem);
112
113
114 // protected variables
115 protected:
116
117 // private methods
118 private:
119
120 // private variables
121 private:
122
123 };
124
125 }; // end namespace Preprocess
126
127 }; // end namespace Reasoner
128
129 }; // end namespace Konclude
130
131 #endif // KONCLUDE_REASONER_PREPROCESS_CREQUIREMENTCONFIGPREPROCESSINGTHREAD_H