| 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 |
#include "CSignatureBlockingIndividualNodeConceptExpansionData.h" |
| 22 |
|
| 23 |
|
| 24 |
namespace Konclude { |
| 25 |
|
| 26 |
namespace Reasoner { |
| 27 |
|
| 28 |
namespace Kernel { |
| 29 |
|
| 30 |
namespace Process { |
| 31 |
|
| 32 |
|
| 33 |
CSignatureBlockingIndividualNodeConceptExpansionData::CSignatureBlockingIndividualNodeConceptExpansionData() { |
| 34 |
} |
| 35 |
|
| 36 |
|
| 37 |
CSignatureBlockingIndividualNodeConceptExpansionData* CSignatureBlockingIndividualNodeConceptExpansionData::initBlockingExpansionData(CSignatureBlockingIndividualNodeConceptExpansionData* prevData) { |
| 38 |
if (prevData) { |
| 39 |
mSubsetTestedConDes = prevData->mSubsetTestedConDes; |
| 40 |
mBlockingConceptSignature = prevData->mBlockingConceptSignature; |
| 41 |
mBlockingConceptCount = prevData->mBlockingConceptCount; |
| 42 |
mExpandedContainedConceptCount = prevData->mExpandedContainedConceptCount; |
| 43 |
mLastUpdatedConExpCount = prevData->mLastUpdatedConExpCount; |
| 44 |
blockerIndiNode = prevData->blockerIndiNode; |
| 45 |
mLastUpdatedConCount = prevData->mLastUpdatedConCount; |
| 46 |
mReviewMarked = prevData->mReviewMarked; |
| 47 |
mReviewSubsetMarked = prevData->mReviewSubsetMarked; |
| 48 |
mIdenticConceptSetRequired = prevData->mIdenticConceptSetRequired; |
| 49 |
mStillConceptSetSubset = prevData->mStillConceptSetSubset; |
| 50 |
} else { |
| 51 |
mSubsetTestedConDes = nullptr; |
| 52 |
blockerIndiNode = nullptr; |
| 53 |
mBlockingConceptSignature = 0; |
| 54 |
mBlockingConceptCount = 0; |
| 55 |
mExpandedContainedConceptCount = 0; |
| 56 |
mLastUpdatedConExpCount = 0; |
| 57 |
mLastUpdatedConCount = 0; |
| 58 |
mReviewMarked = false; |
| 59 |
mReviewSubsetMarked = false; |
| 60 |
mIdenticConceptSetRequired = false; |
| 61 |
mStillConceptSetSubset = true; |
| 62 |
} |
| 63 |
return this; |
| 64 |
} |
| 65 |
|
| 66 |
|
| 67 |
CConceptDescriptor* CSignatureBlockingIndividualNodeConceptExpansionData::getLastSubsetTestedConceptDescriptor() { |
| 68 |
return mSubsetTestedConDes; |
| 69 |
} |
| 70 |
|
| 71 |
cint64 CSignatureBlockingIndividualNodeConceptExpansionData::setBlockingConceptSignature() { |
| 72 |
return mBlockingConceptSignature; |
| 73 |
} |
| 74 |
|
| 75 |
cint64 CSignatureBlockingIndividualNodeConceptExpansionData::getBlockingConceptCount() { |
| 76 |
return mBlockingConceptCount; |
| 77 |
} |
| 78 |
|
| 79 |
cint64 CSignatureBlockingIndividualNodeConceptExpansionData::getContinuousExpandedContainedConceptCount() { |
| 80 |
return mExpandedContainedConceptCount; |
| 81 |
} |
| 82 |
|
| 83 |
cint64 CSignatureBlockingIndividualNodeConceptExpansionData::getLastUpdatedConceptExpansionCount() { |
| 84 |
return mLastUpdatedConExpCount; |
| 85 |
} |
| 86 |
|
| 87 |
cint64 CSignatureBlockingIndividualNodeConceptExpansionData::getLastUpdatedConceptCount() { |
| 88 |
return mLastUpdatedConCount; |
| 89 |
} |
| 90 |
|
| 91 |
CIndividualProcessNode* CSignatureBlockingIndividualNodeConceptExpansionData::getBlockerIndividualNode() { |
| 92 |
return blockerIndiNode; |
| 93 |
} |
| 94 |
|
| 95 |
bool CSignatureBlockingIndividualNodeConceptExpansionData::isBlockingReviewMarked() { |
| 96 |
return mReviewMarked; |
| 97 |
} |
| 98 |
|
| 99 |
bool CSignatureBlockingIndividualNodeConceptExpansionData::isBlockingSubsetReviewMarked() { |
| 100 |
return mReviewSubsetMarked; |
| 101 |
} |
| 102 |
|
| 103 |
|
| 104 |
bool CSignatureBlockingIndividualNodeConceptExpansionData::isIdenticConceptSetRequired() { |
| 105 |
return mIdenticConceptSetRequired; |
| 106 |
} |
| 107 |
|
| 108 |
bool CSignatureBlockingIndividualNodeConceptExpansionData::isConceptSetStillSubset() { |
| 109 |
return mStillConceptSetSubset; |
| 110 |
} |
| 111 |
|
| 112 |
|
| 113 |
CSignatureBlockingIndividualNodeConceptExpansionData* CSignatureBlockingIndividualNodeConceptExpansionData::setLastSubsetTestedConceptDescriptor(CConceptDescriptor* conDes) { |
| 114 |
mSubsetTestedConDes = conDes; |
| 115 |
return this; |
| 116 |
} |
| 117 |
|
| 118 |
CSignatureBlockingIndividualNodeConceptExpansionData* CSignatureBlockingIndividualNodeConceptExpansionData::setBlockingConceptSignature(cint64 signature) { |
| 119 |
mBlockingConceptSignature = signature; |
| 120 |
return this; |
| 121 |
} |
| 122 |
|
| 123 |
|
| 124 |
CSignatureBlockingIndividualNodeConceptExpansionData* CSignatureBlockingIndividualNodeConceptExpansionData::setBlockingConceptCount(cint64 conCount) { |
| 125 |
mBlockingConceptCount = conCount; |
| 126 |
return this; |
| 127 |
} |
| 128 |
|
| 129 |
CSignatureBlockingIndividualNodeConceptExpansionData* CSignatureBlockingIndividualNodeConceptExpansionData::setContinuousExpandedContainedConceptCount(cint64 conCount) { |
| 130 |
mExpandedContainedConceptCount = conCount; |
| 131 |
return this; |
| 132 |
} |
| 133 |
|
| 134 |
CSignatureBlockingIndividualNodeConceptExpansionData* CSignatureBlockingIndividualNodeConceptExpansionData::setLastUpdatedConceptExpansionCount(cint64 conCount) { |
| 135 |
mLastUpdatedConExpCount = conCount; |
| 136 |
return this; |
| 137 |
} |
| 138 |
|
| 139 |
CSignatureBlockingIndividualNodeConceptExpansionData* CSignatureBlockingIndividualNodeConceptExpansionData::setLastUpdatedConceptCount(cint64 conCount) { |
| 140 |
mLastUpdatedConCount = conCount; |
| 141 |
return this; |
| 142 |
} |
| 143 |
|
| 144 |
CSignatureBlockingIndividualNodeConceptExpansionData* CSignatureBlockingIndividualNodeConceptExpansionData::setBlockerIndividualNode(CIndividualProcessNode* node) { |
| 145 |
blockerIndiNode = node; |
| 146 |
return this; |
| 147 |
} |
| 148 |
|
| 149 |
|
| 150 |
CSignatureBlockingIndividualNodeConceptExpansionData* CSignatureBlockingIndividualNodeConceptExpansionData::setBlockingReviewMarked(bool marked) { |
| 151 |
mReviewMarked = marked; |
| 152 |
return this; |
| 153 |
} |
| 154 |
|
| 155 |
CSignatureBlockingIndividualNodeConceptExpansionData* CSignatureBlockingIndividualNodeConceptExpansionData::setBlockingSubsetReviewMarked(bool marked) { |
| 156 |
mReviewSubsetMarked = marked; |
| 157 |
return this; |
| 158 |
} |
| 159 |
|
| 160 |
CSignatureBlockingIndividualNodeConceptExpansionData* CSignatureBlockingIndividualNodeConceptExpansionData::setIdenticConceptSetRequired(bool identicConceptSetRequired) { |
| 161 |
mIdenticConceptSetRequired = identicConceptSetRequired; |
| 162 |
return this; |
| 163 |
} |
| 164 |
|
| 165 |
CSignatureBlockingIndividualNodeConceptExpansionData* CSignatureBlockingIndividualNodeConceptExpansionData::setConceptSetStillSubset(bool stillSubset) { |
| 166 |
mStillConceptSetSubset = stillSubset; |
| 167 |
return this; |
| 168 |
} |
| 169 |
|
| 170 |
|
| 171 |
}; // end namespace Process |
| 172 |
|
| 173 |
}; // end namespace Kernel |
| 174 |
|
| 175 |
}; // end namespace Reasoner |
| 176 |
|
| 177 |
}; // end namespace Konclude |