| 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_QUERY_CAPPROXIMATEDSATURATIONCALCULATIONJOB_H |
| 22 |
#define KONCLUDE_REASONER_QUERY_CAPPROXIMATEDSATURATIONCALCULATIONJOB_H |
| 23 |
|
| 24 |
// Libraries includes |
| 25 |
|
| 26 |
|
| 27 |
// Namespace includes |
| 28 |
#include "QuerySettings.h" |
| 29 |
#include "CCalculationJob.h" |
| 30 |
#include "CApproximatedSaturationCalculationConstructionConstruct.h" |
| 31 |
#include "CApproximatedSaturationCalculationProcessingConstruct.h" |
| 32 |
|
| 33 |
// Other includes |
| 34 |
#include "Reasoner/Kernel/Task/CCalculationConfigurationExtension.h" |
| 35 |
#include "Reasoner/Kernel/Task/CCalculationStatisticsCollector.h" |
| 36 |
#include "Reasoner/Kernel/Task/CSatisfiableCalculationJobInstantiation.h" |
| 37 |
|
| 38 |
#include "Reasoner/Kernel/Task/CSaturationIndividualsAnalysingAdapter.h" |
| 39 |
#include "Reasoner/Kernel/Task/CTaskPreyingAdapter.h" |
| 40 |
#include "Reasoner/Kernel/Task/CSaturationOccurrenceStatisticsCollectingAdapter.h" |
| 41 |
|
| 42 |
#include "Reasoner/Consistence/CSaturationData.h" |
| 43 |
|
| 44 |
// Logger includes |
| 45 |
#include "Logger/CLogger.h" |
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
namespace Konclude { |
| 50 |
|
| 51 |
namespace Reasoner { |
| 52 |
|
| 53 |
using namespace Kernel::Task; |
| 54 |
using namespace Consistence; |
| 55 |
|
| 56 |
namespace Query { |
| 57 |
|
| 58 |
/*! |
| 59 |
* |
| 60 |
* \class CApproximatedSaturationCalculationJob |
| 61 |
* \author Andreas Steigmiller |
| 62 |
* \version 0.1 |
| 63 |
* \brief TODO |
| 64 |
* |
| 65 |
*/ |
| 66 |
class CApproximatedSaturationCalculationJob : public CCalculationJob { |
| 67 |
// public methods |
| 68 |
public: |
| 69 |
//! Constructor |
| 70 |
CApproximatedSaturationCalculationJob(); |
| 71 |
|
| 72 |
//! Destructor |
| 73 |
virtual ~CApproximatedSaturationCalculationJob(); |
| 74 |
|
| 75 |
virtual CCalculationJobQueryData* getQueryData(); |
| 76 |
|
| 77 |
CApproximatedSaturationCalculationJob* setQueryData(CCalculationJobQueryData* takeQueryData); |
| 78 |
|
| 79 |
CApproximatedSaturationCalculationJob* addSatisfiableCalculationConstructionConstruct(CApproximatedSaturationCalculationConstructionConstruct* takeSatCalcConstruct); |
| 80 |
CApproximatedSaturationCalculationConstructionConstruct* getSatisfiableCalculationConstructionConstructs(); |
| 81 |
|
| 82 |
CApproximatedSaturationCalculationJob* addSatisfiableCalculationProcessingConstruct(CApproximatedSaturationCalculationProcessingConstruct* takeSatCalcConstruct); |
| 83 |
CApproximatedSaturationCalculationProcessingConstruct* getSatisfiableCalculationProcessingConstructs(); |
| 84 |
|
| 85 |
CApproximatedSaturationCalculationJob* setCalculationConfiguration(CCalculationConfigurationExtension* calculationConfiguration); |
| 86 |
CCalculationConfigurationExtension* getCalculationConfiguration(); |
| 87 |
|
| 88 |
CApproximatedSaturationCalculationJob* setCalclulationStatisticsCollector(CCalculationStatisticsCollector* calclulationStatisticsCollector); |
| 89 |
CCalculationStatisticsCollector* getCalclulationStatisticsCollector(); |
| 90 |
|
| 91 |
CApproximatedSaturationCalculationJob* setSaturationTaskPreyingAdapter(CTaskPreyingAdapter* preyingAdapter); |
| 92 |
CTaskPreyingAdapter* getSaturationTaskPreyingAdapter(); |
| 93 |
|
| 94 |
CSaturationData* getContinueSaturationData(); |
| 95 |
CApproximatedSaturationCalculationJob* setContinueSaturationData(CSaturationData* saturationData); |
| 96 |
|
| 97 |
bool isSeparateSaturation(); |
| 98 |
CApproximatedSaturationCalculationJob* setSeparateSaturation(bool separateSaturation); |
| 99 |
|
| 100 |
CApproximatedSaturationCalculationJob* setSaturationIndividualsAnalysationObserver(CSaturationIndividualsAnalysingAdapter* indiAnalAdapter); |
| 101 |
CSaturationIndividualsAnalysingAdapter* getSaturationIndividualsAnalysationObserver(); |
| 102 |
|
| 103 |
CApproximatedSaturationCalculationJob* setOccurrenceStatisticsCollectingAdapter(CSaturationOccurrenceStatisticsCollectingAdapter* collAdapter); |
| 104 |
CSaturationOccurrenceStatisticsCollectingAdapter* getOccurrenceStatisticsCollectingAdapter(); |
| 105 |
|
| 106 |
|
| 107 |
// protected methods |
| 108 |
protected: |
| 109 |
|
| 110 |
// protected variables |
| 111 |
protected: |
| 112 |
CCalculationJobQueryData* mQueryData; |
| 113 |
CApproximatedSaturationCalculationConstructionConstruct* mSatCalcConstructionConstructLinker; |
| 114 |
CApproximatedSaturationCalculationProcessingConstruct* mSatCalcProcessingConstructLinker; |
| 115 |
CCalculationConfigurationExtension* mCalculationConfiguration; |
| 116 |
CCalculationStatisticsCollector* mCalclulationStatisticsCollector; |
| 117 |
CTaskPreyingAdapter* mPreyingAdapter; |
| 118 |
CSaturationData* mContinueSaturationData; |
| 119 |
bool mSeparateSaturation; |
| 120 |
CSaturationIndividualsAnalysingAdapter* mIndiAnalAdapter; |
| 121 |
CSaturationOccurrenceStatisticsCollectingAdapter* mOccurrenceStatisticsCollectingAdapter; |
| 122 |
|
| 123 |
// private methods |
| 124 |
private: |
| 125 |
|
| 126 |
// private variables |
| 127 |
private: |
| 128 |
|
| 129 |
}; |
| 130 |
|
| 131 |
}; // end namespace Query |
| 132 |
|
| 133 |
}; // end namespace Reasoner |
| 134 |
|
| 135 |
}; // end namespace Konclude |
| 136 |
|
| 137 |
#endif // KONCLUDE_REASONER_QUERY_CAPPROXIMATEDSATURATIONCALCULATIONJOB_H |