| 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_CINDIVIDUALSATURATIONPROCESSNODESTATUSFLAGS_H |
| 22 |
#define KONCLUDE_REASONER_KERNEL_PROCESS_CINDIVIDUALSATURATIONPROCESSNODESTATUSFLAGS_H |
| 23 |
|
| 24 |
// Libraries includes |
| 25 |
|
| 26 |
|
| 27 |
// Namespace includes |
| 28 |
#include "ProcessSettings.h" |
| 29 |
|
| 30 |
// Other includes |
| 31 |
|
| 32 |
|
| 33 |
// Logger includes |
| 34 |
#include "Logger/CLogger.h" |
| 35 |
|
| 36 |
|
| 37 |
namespace Konclude { |
| 38 |
|
| 39 |
namespace Reasoner { |
| 40 |
|
| 41 |
namespace Kernel { |
| 42 |
|
| 43 |
namespace Process { |
| 44 |
|
| 45 |
/*! |
| 46 |
* |
| 47 |
* \class CIndividualSaturationProcessNodeStatusFlags |
| 48 |
* \author Andreas Steigmiller |
| 49 |
* \version 0.1 |
| 50 |
* \brief TODO |
| 51 |
* |
| 52 |
*/ |
| 53 |
class CIndividualSaturationProcessNodeStatusFlags { |
| 54 |
// public methods |
| 55 |
public: |
| 56 |
//! Constructor |
| 57 |
CIndividualSaturationProcessNodeStatusFlags(); |
| 58 |
|
| 59 |
CIndividualSaturationProcessNodeStatusFlags* initStatusFlags(); |
| 60 |
|
| 61 |
|
| 62 |
bool hasClashedFlag(); |
| 63 |
CIndividualSaturationProcessNodeStatusFlags* setClashedFlag(bool value); |
| 64 |
|
| 65 |
bool hasInsufficientFlag(); |
| 66 |
CIndividualSaturationProcessNodeStatusFlags* setInsufficientFlag(bool value); |
| 67 |
|
| 68 |
bool hasCriticalFlag(); |
| 69 |
CIndividualSaturationProcessNodeStatusFlags* setCriticalFlag(bool value); |
| 70 |
|
| 71 |
bool hasNominalConnectionFlag(); |
| 72 |
CIndividualSaturationProcessNodeStatusFlags* setNominalConnectionFlag(bool value); |
| 73 |
|
| 74 |
bool hasEQCandidateProplematicFlag(); |
| 75 |
CIndividualSaturationProcessNodeStatusFlags* setEQCandidateProplematicFlag(bool value); |
| 76 |
|
| 77 |
bool hasCardinalityProplematicFlag(); |
| 78 |
CIndividualSaturationProcessNodeStatusFlags* setCardinalityProplematicFlag(bool value); |
| 79 |
|
| 80 |
bool hasCardinalityRestrictedFlag(); |
| 81 |
CIndividualSaturationProcessNodeStatusFlags* setCardinalityRestrictedFlag(bool value); |
| 82 |
|
| 83 |
bool hasInitializedFlag(); |
| 84 |
CIndividualSaturationProcessNodeStatusFlags* setInitializedFlag(bool value); |
| 85 |
|
| 86 |
bool hasCompletedFlag(); |
| 87 |
CIndividualSaturationProcessNodeStatusFlags* setCompletedFlag(bool value); |
| 88 |
|
| 89 |
bool hasMissedABoxConsistencyFlag(); |
| 90 |
CIndividualSaturationProcessNodeStatusFlags* setMissedABoxConsistencyFlag(bool value); |
| 91 |
|
| 92 |
bool hasSuccessorNodeExtensionsFlag(); |
| 93 |
CIndividualSaturationProcessNodeStatusFlags* setSuccessorNodeExtensionsFlag(bool value); |
| 94 |
|
| 95 |
|
| 96 |
bool hasPropagationIncompleteFlag(); |
| 97 |
CIndividualSaturationProcessNodeStatusFlags* setPropagationIncompleteFlag(bool value); |
| 98 |
|
| 99 |
bool hasUnregisteredPropagationFlag(); |
| 100 |
CIndividualSaturationProcessNodeStatusFlags* setUnregisteredPropagationFlag(bool value); |
| 101 |
|
| 102 |
bool hasUnmarkedRoleAssertionFlag(); |
| 103 |
CIndividualSaturationProcessNodeStatusFlags* setUnmarkedRoleAssertionFlag(bool value); |
| 104 |
|
| 105 |
|
| 106 |
|
| 107 |
|
| 108 |
bool hasUnprocessedFlag(); |
| 109 |
CIndividualSaturationProcessNodeStatusFlags* setUnprocessedFlag(bool value); |
| 110 |
|
| 111 |
|
| 112 |
bool hasFlags(cint64 flags, bool checkAllFlags); |
| 113 |
bool hasFlags(CIndividualSaturationProcessNodeStatusFlags* flags, bool checkAllFlags); |
| 114 |
CIndividualSaturationProcessNodeStatusFlags* setFlags(cint64 flags, bool value); |
| 115 |
CIndividualSaturationProcessNodeStatusFlags* addFlags(cint64 flags); |
| 116 |
CIndividualSaturationProcessNodeStatusFlags* addFlags(CIndividualSaturationProcessNodeStatusFlags* flags); |
| 117 |
CIndividualSaturationProcessNodeStatusFlags* clearFlags(cint64 flags); |
| 118 |
|
| 119 |
cint64 getFlags(); |
| 120 |
|
| 121 |
const static cint64 INDSATFLAGCLASHED = 0x0001; |
| 122 |
const static cint64 INDSATFLAGCRITICAL = 0x0002; |
| 123 |
const static cint64 INDSATFLAGINSUFFICIENT = 0x0004; |
| 124 |
const static cint64 INDSATFLAGNOMINALCONNECTION = 0x0008; |
| 125 |
|
| 126 |
const static cint64 INDSATFLAGEQCANDPROPLEMATIC = 0x0010; |
| 127 |
const static cint64 INDSATFLAGCARDINALITYRESTRICTED = 0x0020; |
| 128 |
const static cint64 INDSATFLAGCARDINALITYPROPLEMATIC = 0x0040; |
| 129 |
const static cint64 INDMISSEDABOXCONSISTENCYDATA = 0x0080; |
| 130 |
const static cint64 INDSUCCESSORNODEEXTENSIONS = 0x0100; |
| 131 |
const static cint64 INDSATFLAGPROPAGATIONINCOMPLETE = 0x0200; |
| 132 |
|
| 133 |
|
| 134 |
const static cint64 INDSATFLAGUNREGISTEREDPROPAGATION = 0x0400; |
| 135 |
const static cint64 INDSATFLAGUNMARKEDROLEASSERTION = 0x0800; |
| 136 |
|
| 137 |
|
| 138 |
const static cint64 INDSATFLAGINITIALIZED = 0x1000; |
| 139 |
const static cint64 INDSATFLAGCOMPLETED = 0x2000; |
| 140 |
const static cint64 INDSATFLAGUNPROCESSED = 0x4000; |
| 141 |
|
| 142 |
// protected methods |
| 143 |
protected: |
| 144 |
|
| 145 |
// protected variables |
| 146 |
protected: |
| 147 |
cint64 mStatusFlags; |
| 148 |
|
| 149 |
// private methods |
| 150 |
private: |
| 151 |
|
| 152 |
// private variables |
| 153 |
private: |
| 154 |
|
| 155 |
}; |
| 156 |
|
| 157 |
}; // end namespace Process |
| 158 |
|
| 159 |
}; // end namespace Kernel |
| 160 |
|
| 161 |
}; // end namespace Reasoner |
| 162 |
|
| 163 |
}; // end namespace Konclude |
| 164 |
|
| 165 |
#endif // KONCLUDE_REASONER_KERNEL_PROCESS_CINDIVIDUALSATURATIONPROCESSNODESTATUSFLAGS_H |