| 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_CREQUIREMENTCONFIGPREPROCESSINGITEM_H |
| 22 |
#define KONCLUDE_REASONER_PREPROCESS_CREQUIREMENTCONFIGPREPROCESSINGITEM_H |
| 23 |
|
| 24 |
// Libraries includes |
| 25 |
#include <QAtomicPointer> |
| 26 |
|
| 27 |
// Namespace includes |
| 28 |
#include "PreprocessSettings.h" |
| 29 |
#include "CPreprocessingTestingItem.h" |
| 30 |
#include "COntologyPreprocessingItem.h" |
| 31 |
#include "CPreprocessingTestingStep.h" |
| 32 |
|
| 33 |
|
| 34 |
// Other includes |
| 35 |
#include "Reasoner/Kernel/Task/CCalculationConfigurationExtension.h" |
| 36 |
|
| 37 |
#include "Reasoner/Ontology/COntologyProcessingStepRequirement.h" |
| 38 |
|
| 39 |
// Logger includes |
| 40 |
#include "Logger/CLogger.h" |
| 41 |
|
| 42 |
|
| 43 |
namespace Konclude { |
| 44 |
|
| 45 |
namespace Reasoner { |
| 46 |
|
| 47 |
using namespace Kernel::Task; |
| 48 |
using namespace Ontology; |
| 49 |
|
| 50 |
namespace Preprocess { |
| 51 |
|
| 52 |
|
| 53 |
/*! |
| 54 |
* |
| 55 |
* \class CRequirementConfigPreprocessingItem |
| 56 |
* \author Andreas Steigmiller |
| 57 |
* \version 0.1 |
| 58 |
* \brief TODO |
| 59 |
* |
| 60 |
*/ |
| 61 |
class CRequirementConfigPreprocessingItem : public COntologyPreprocessingItem { |
| 62 |
// public methods |
| 63 |
public: |
| 64 |
//! Constructor |
| 65 |
CRequirementConfigPreprocessingItem(); |
| 66 |
~CRequirementConfigPreprocessingItem(); |
| 67 |
|
| 68 |
CRequirementConfigPreprocessingItem* initRequirementConfigPreprocessingItem(CConcreteOntology* ontology, CConfigurationBase* config); |
| 69 |
|
| 70 |
|
| 71 |
virtual COntologyPreprocessingItem* addProcessingRequirement(COntologyProcessingRequirement* ontoRequirement); |
| 72 |
|
| 73 |
|
| 74 |
CCalculationConfigurationExtension* getCalculationConfiguration(); |
| 75 |
|
| 76 |
|
| 77 |
CPreprocessingTestingStep* getTriplesMappingProcessingStep(); |
| 78 |
bool isTriplesMappingStepFinished(); |
| 79 |
bool isTriplesMappingStepRequired(); |
| 80 |
bool areTriplesMappingStepProcessingRequirementSatisfied(); |
| 81 |
|
| 82 |
CPreprocessingTestingStep* getActiveCountingProcessingStep(); |
| 83 |
bool isActiveCountingStepFinished(); |
| 84 |
bool isActiveCountingStepRequired(); |
| 85 |
bool areActiveCountingStepProcessingRequirementSatisfied(); |
| 86 |
|
| 87 |
|
| 88 |
CPreprocessingTestingStep* getBuildProcessingStep(); |
| 89 |
bool isBuildStepFinished(); |
| 90 |
bool isBuildStepRequired(); |
| 91 |
bool areBuildStepProcessingRequirementSatisfied(); |
| 92 |
|
| 93 |
|
| 94 |
CPreprocessingTestingStep* getPreprocessProcessingStep(); |
| 95 |
bool isPreprocessStepFinished(); |
| 96 |
bool isPreprocessStepRequired(); |
| 97 |
bool arePreprocessStepProcessingRequirementSatisfied(); |
| 98 |
|
| 99 |
|
| 100 |
CPreprocessingTestingStep* getTriplesIndexingProcessingStep(); |
| 101 |
bool isTriplesIndexingStepFinished(); |
| 102 |
bool isTriplesIndexingStepRequired(); |
| 103 |
bool areTriplesIndexingStepProcessingRequirementSatisfied(); |
| 104 |
|
| 105 |
|
| 106 |
|
| 107 |
bool areAllStepFinished(); |
| 108 |
bool hasRemainingProcessingRequirements(); |
| 109 |
|
| 110 |
|
| 111 |
CRequirementConfigPreprocessingItem* setPreprocessing(CPreprocessing* preprocessing); |
| 112 |
CPreprocessing* getPreprocessing(); |
| 113 |
|
| 114 |
|
| 115 |
bool failAfterPreprocessing(); |
| 116 |
bool failAfterBuilt(); |
| 117 |
|
| 118 |
|
| 119 |
// protected methods |
| 120 |
protected: |
| 121 |
|
| 122 |
// protected variables |
| 123 |
protected: |
| 124 |
CPreprocessingTestingStep* mTriplesMappingProcessingStep; |
| 125 |
CPreprocessingTestingStep* mTriplesIndexingProcessingStep; |
| 126 |
CPreprocessingTestingStep* mActiveCountingProcessingStep; |
| 127 |
CPreprocessingTestingStep* mBuildProcessingStep; |
| 128 |
CPreprocessingTestingStep* mPreprocessProcessingStep; |
| 129 |
CPreprocessing* mPreprocessing; |
| 130 |
|
| 131 |
bool mFailAfterPreprocessing; |
| 132 |
bool mFailAfterBuilt; |
| 133 |
|
| 134 |
|
| 135 |
QList<CPreprocessingTestingStep*> mProcessingSteps; |
| 136 |
|
| 137 |
CCalculationConfigurationExtension* mCalculationConfig; |
| 138 |
|
| 139 |
// private methods |
| 140 |
private: |
| 141 |
|
| 142 |
// private variables |
| 143 |
private: |
| 144 |
|
| 145 |
}; |
| 146 |
|
| 147 |
}; // end namespace Preprocess |
| 148 |
|
| 149 |
}; // end namespace Reasoner |
| 150 |
|
| 151 |
}; // end namespace Konclude |
| 152 |
|
| 153 |
#endif // KONCLUDE_REASONER_PREPROCESS_CREQUIREMENTCONFIGPREPROCESSINGITEM_H |