| 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_PROCESS_CDATATYPESVALUESPACEDATA_H |
| 22 |
#define KONCLUDE_REASONER_KERNEL_PROCESS_CDATATYPESVALUESPACEDATA_H |
| 23 |
|
| 24 |
// Libraries includes |
| 25 |
|
| 26 |
|
| 27 |
// Namespace includes |
| 28 |
#include "ProcessSettings.h" |
| 29 |
#include "CProcessContext.h" |
| 30 |
#include "CDatatypeRealValueSpaceData.h" |
| 31 |
#include "CDatatypeUnknownValueSpaceData.h" |
| 32 |
#include "CDatatypeStringValueSpaceData.h" |
| 33 |
#include "CDatatypeBooleanValueSpaceData.h" |
| 34 |
#include "CDatatypeDoubleValueSpaceData.h" |
| 35 |
#include "CDatatypeFloatValueSpaceData.h" |
| 36 |
#include "CDatatypeIRIValueSpaceData.h" |
| 37 |
#include "CDatatypeBinaryHexDataValueSpaceData.h" |
| 38 |
#include "CDatatypeBinaryBase64DataValueSpaceData.h" |
| 39 |
#include "CDatatypeDateTimeValueSpaceData.h" |
| 40 |
#include "CDatatypeXMLValueSpaceData.h" |
| 41 |
|
| 42 |
|
| 43 |
// Other includes |
| 44 |
#include "Utilities/Container/CLinker.h" |
| 45 |
|
| 46 |
#include "Reasoner/Ontology/CDatatypeValueSpaceType.h" |
| 47 |
#include "Reasoner/Ontology/CDatatypeValueSpaceUnknownType.h" |
| 48 |
#include "Reasoner/Ontology/CDatatypeValueSpaceStringType.h" |
| 49 |
#include "Reasoner/Ontology/CDatatypeValueSpaceBooleanType.h" |
| 50 |
#include "Reasoner/Ontology/CDatatypeValueSpaceDoubleType.h" |
| 51 |
#include "Reasoner/Ontology/CDatatypeValueSpaceFloatType.h" |
| 52 |
#include "Reasoner/Ontology/CDatatypeValueSpaceIRIType.h" |
| 53 |
#include "Reasoner/Ontology/CDatatypeValueSpacesTriggers.h" |
| 54 |
|
| 55 |
|
| 56 |
// Logger includes |
| 57 |
#include "Logger/CLogger.h" |
| 58 |
|
| 59 |
|
| 60 |
namespace Konclude { |
| 61 |
|
| 62 |
namespace Reasoner { |
| 63 |
|
| 64 |
using namespace Ontology; |
| 65 |
|
| 66 |
namespace Kernel { |
| 67 |
|
| 68 |
namespace Process { |
| 69 |
|
| 70 |
/*! |
| 71 |
* |
| 72 |
* \class CDatatypesValueSpaceData |
| 73 |
* \author Andreas Steigmiller |
| 74 |
* \version 0.1 |
| 75 |
* \brief TODO |
| 76 |
* |
| 77 |
*/ |
| 78 |
class CDatatypesValueSpaceData { |
| 79 |
// public methods |
| 80 |
public: |
| 81 |
//! Constructor |
| 82 |
CDatatypesValueSpaceData(CProcessContext* processContext); |
| 83 |
|
| 84 |
CDatatypesValueSpaceData* initDatatypesValueSpaceData(CDatatypesValueSpaceData* data = nullptr); |
| 85 |
|
| 86 |
|
| 87 |
CDatatypeValueSpaceData* getValueSpace(CDatatypeValueSpaceType* valueSpaceType, bool createOrLocalize = true); |
| 88 |
|
| 89 |
|
| 90 |
CDatatypeRealValueSpaceData* getRealValueSpace(CDatatypeValueSpaceRealType* valueSpaceType, bool createOrLocalize = true); |
| 91 |
CDatatypeUnknownValueSpaceData* getUnknownValueSpace(CDatatypeValueSpaceUnknownType* valueSpaceType, bool createOrLocalize = true); |
| 92 |
CDatatypeStringValueSpaceData* getStringValueSpace(CDatatypeValueSpaceStringType* valueSpaceType, bool createOrLocalize = true); |
| 93 |
CDatatypeBooleanValueSpaceData* getBooleanValueSpace(CDatatypeValueSpaceBooleanType* valueSpaceType, bool createOrLocalize = true); |
| 94 |
CDatatypeDoubleValueSpaceData* getDoubleValueSpace(CDatatypeValueSpaceDoubleType* valueSpaceType, bool createOrLocalize = true); |
| 95 |
CDatatypeFloatValueSpaceData* getFloatValueSpace(CDatatypeValueSpaceFloatType* valueSpaceType, bool createOrLocalize = true); |
| 96 |
CDatatypeIRIValueSpaceData* getIRIValueSpace(CDatatypeValueSpaceIRIType* valueSpaceType, bool createOrLocalize = true); |
| 97 |
CDatatypeBinaryBase64DataValueSpaceData* getBinaryBase64DataValueSpace(CDatatypeValueSpaceBinaryBase64DataType* valueSpaceType, bool createOrLocalize = true); |
| 98 |
CDatatypeBinaryHexDataValueSpaceData* getBinaryHexDataValueSpace(CDatatypeValueSpaceBinaryHexDataType* valueSpaceType, bool createOrLocalize = true); |
| 99 |
CDatatypeXMLValueSpaceData* getXMLValueSpace(CDatatypeValueSpaceXMLType* valueSpaceType, bool createOrLocalize = true); |
| 100 |
CDatatypeDateTimeValueSpaceData* getDateTimeValueSpace(CDatatypeValueSpaceDateTimeType* valueSpaceType, bool createOrLocalize = true); |
| 101 |
|
| 102 |
|
| 103 |
bool isValueSpaceTriggeringQueued(); |
| 104 |
CDatatypesValueSpaceData* setValueSpaceTriggeringQueued(bool queued); |
| 105 |
|
| 106 |
bool isValueSpaceTriggeringRequired(); |
| 107 |
CDatatypesValueSpaceData* setValueSpaceTriggeringRequired(bool required); |
| 108 |
|
| 109 |
bool isValueSpaceCountingRequired(); |
| 110 |
CDatatypesValueSpaceData* setValueSpaceCountingRequired(bool required); |
| 111 |
|
| 112 |
bool isValueSpaceClashCheckingRequired(); |
| 113 |
CDatatypesValueSpaceData* setValueSpaceClashCheckingRequired(bool required); |
| 114 |
|
| 115 |
bool isValueSpaceSatisfiabilityCheckingQueued(); |
| 116 |
CDatatypesValueSpaceData* setValueSpaceSatisfiabilityCheckingQueued(bool queued); |
| 117 |
|
| 118 |
bool isValueSpaceSatisfiabilityCheckingRequired(); |
| 119 |
CDatatypesValueSpaceData* setValueSpaceSatisfiabilityCheckingRequired(bool required); |
| 120 |
|
| 121 |
CDatatypeValueSpaceType* getLastTriggeredValueSpaceType(); |
| 122 |
CDatatypesValueSpaceData* setLastTriggeredValueSpaceType(CDatatypeValueSpaceType* valueSpaceType); |
| 123 |
|
| 124 |
CDatatypesValueSpaceData* setValueSapceModified(CDatatypeValueSpaceData* valueSpace); |
| 125 |
|
| 126 |
cint64 getLastTriggeringDisjointCount(); |
| 127 |
CDatatypesValueSpaceData* setLastTriggeringDisjointCount(cint64 disjointCount); |
| 128 |
|
| 129 |
|
| 130 |
CDatatypeValueSpaceValuesCounter* getValuesCounter(); |
| 131 |
|
| 132 |
bool isValueSpaceCounted(); |
| 133 |
CDatatypesValueSpaceData* setValueSpaceCounted(bool counted); |
| 134 |
|
| 135 |
CDatatypeValueSpacesTriggers* getCustomValueSpacesTriggers(CDatatypeValueSpacesTriggers* defaultValueSpaceTriggers, bool createOrLocalize = true); |
| 136 |
|
| 137 |
|
| 138 |
// protected methods |
| 139 |
protected: |
| 140 |
|
| 141 |
// protected variables |
| 142 |
protected: |
| 143 |
CProcessContext* mProcessContext; |
| 144 |
|
| 145 |
cint64 mLastTriggeringDisjointCount; |
| 146 |
|
| 147 |
bool mValueSpaceTriggeringQueued; |
| 148 |
bool mValueSpaceTriggeringRequired; |
| 149 |
CDatatypeValueSpaceType* mLastTriggeredValueSpaceType; |
| 150 |
|
| 151 |
bool mValueSpaceCounted; |
| 152 |
bool mValueSpaceCountingRequired; |
| 153 |
CDatatypeValueSpaceValuesCounter mValuesCounter; |
| 154 |
|
| 155 |
bool mValueSpaceSatisfiabilityCheckingRequired; |
| 156 |
bool mValueSpaceSatisfiabilityCheckingQueued; |
| 157 |
bool mValueSpaceClashCheckingRequired; |
| 158 |
|
| 159 |
CDatatypeRealValueSpaceData* mUseRealValueSpace; |
| 160 |
CDatatypeRealValueSpaceData* mLocRealValueSpace; |
| 161 |
|
| 162 |
CDatatypeUnknownValueSpaceData* mUseUnknownValueSpace; |
| 163 |
CDatatypeUnknownValueSpaceData* mLocUnknownValueSpace; |
| 164 |
|
| 165 |
CDatatypeStringValueSpaceData* mUseStringValueSpace; |
| 166 |
CDatatypeStringValueSpaceData* mLocStringValueSpace; |
| 167 |
|
| 168 |
CDatatypeBooleanValueSpaceData* mUseBooleanValueSpace; |
| 169 |
CDatatypeBooleanValueSpaceData* mLocBooleanValueSpace; |
| 170 |
|
| 171 |
CDatatypeDoubleValueSpaceData* mUseDoubleValueSpace; |
| 172 |
CDatatypeDoubleValueSpaceData* mLocDoubleValueSpace; |
| 173 |
|
| 174 |
CDatatypeFloatValueSpaceData* mUseFloatValueSpace; |
| 175 |
CDatatypeFloatValueSpaceData* mLocFloatValueSpace; |
| 176 |
|
| 177 |
CDatatypeIRIValueSpaceData* mUseIRIValueSpace; |
| 178 |
CDatatypeIRIValueSpaceData* mLocIRIValueSpace; |
| 179 |
|
| 180 |
CDatatypeBinaryBase64DataValueSpaceData* mUseBinaryBase64DataValueSpace; |
| 181 |
CDatatypeBinaryBase64DataValueSpaceData* mLocBinaryBase64DataValueSpace; |
| 182 |
|
| 183 |
CDatatypeBinaryHexDataValueSpaceData* mUseBinaryHexDataValueSpace; |
| 184 |
CDatatypeBinaryHexDataValueSpaceData* mLocBinaryHexDataValueSpace; |
| 185 |
|
| 186 |
CDatatypeXMLValueSpaceData* mUseXMLValueSpace; |
| 187 |
CDatatypeXMLValueSpaceData* mLocXMLValueSpace; |
| 188 |
|
| 189 |
CDatatypeDateTimeValueSpaceData* mUseDateTimeValueSpace; |
| 190 |
CDatatypeDateTimeValueSpaceData* mLocDateTimeValueSpace; |
| 191 |
|
| 192 |
|
| 193 |
CDatatypeValueSpacesTriggers* mUseCustomValueSpacesTriggers; |
| 194 |
CDatatypeValueSpacesTriggers* mLocCustomValueSpacesTriggers; |
| 195 |
|
| 196 |
// private methods |
| 197 |
private: |
| 198 |
|
| 199 |
// private variables |
| 200 |
private: |
| 201 |
|
| 202 |
}; |
| 203 |
|
| 204 |
}; // end namespace Process |
| 205 |
|
| 206 |
}; // end namespace Kernel |
| 207 |
|
| 208 |
}; // end namespace Reasoner |
| 209 |
|
| 210 |
}; // end namespace Konclude |
| 211 |
|
| 212 |
#endif // KONCLUDE_REASONER_KERNEL_PROCESS_CDATATYPESVALUESPACEDATA_H |