| 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 "CProcessTagger.h" |
| 22 |
|
| 23 |
|
| 24 |
namespace Konclude { |
| 25 |
|
| 26 |
namespace Reasoner { |
| 27 |
|
| 28 |
namespace Kernel { |
| 29 |
|
| 30 |
namespace Process { |
| 31 |
|
| 32 |
|
| 33 |
CProcessTagger::CProcessTagger() { |
| 34 |
mLocalizationTag = 0; |
| 35 |
mProcessingTag = 0; |
| 36 |
mBranchingTag = 0; |
| 37 |
mBlockingAddTag = 0; |
| 38 |
mNodeSwitchTag = 0; |
| 39 |
mConceptLabelSetModificationTag = 0; |
| 40 |
mCurrentBlockingFollowTag = 0; |
| 41 |
} |
| 42 |
|
| 43 |
|
| 44 |
CProcessTagger::~CProcessTagger() { |
| 45 |
} |
| 46 |
|
| 47 |
|
| 48 |
CProcessTagger* CProcessTagger::initProcessTagger(CProcessTagger* processTagger) { |
| 49 |
if (processTagger) { |
| 50 |
mLocalizationTag = processTagger->mLocalizationTag; |
| 51 |
mProcessingTag = processTagger->mProcessingTag; |
| 52 |
mBranchingTag = processTagger->mBranchingTag; |
| 53 |
mBlockingAddTag = processTagger->mBlockingAddTag; |
| 54 |
mNodeSwitchTag = processTagger->mNodeSwitchTag; |
| 55 |
mConceptLabelSetModificationTag = processTagger->mConceptLabelSetModificationTag; |
| 56 |
mCurrentBlockingFollowTag = processTagger->mCurrentBlockingFollowTag; |
| 57 |
} else { |
| 58 |
mLocalizationTag = 0; |
| 59 |
mProcessingTag = 0; |
| 60 |
mBranchingTag = 0; |
| 61 |
mBlockingAddTag = 0; |
| 62 |
mNodeSwitchTag = 0; |
| 63 |
mConceptLabelSetModificationTag = 0; |
| 64 |
mCurrentBlockingFollowTag = 0; |
| 65 |
} |
| 66 |
return this; |
| 67 |
} |
| 68 |
|
| 69 |
|
| 70 |
|
| 71 |
CProcessTagger* CProcessTagger::setCurrentLocalizationTag(cint64 locTag) { |
| 72 |
mLocalizationTag = locTag; |
| 73 |
return this; |
| 74 |
} |
| 75 |
|
| 76 |
cint64 CProcessTagger::getCurrentLocalizationTag() { |
| 77 |
return mLocalizationTag; |
| 78 |
} |
| 79 |
|
| 80 |
cint64 CProcessTagger::getCurrentProcessingTag() { |
| 81 |
return mProcessingTag; |
| 82 |
} |
| 83 |
|
| 84 |
cint64 CProcessTagger::getCurrentProcessingTagAndInc() { |
| 85 |
return mProcessingTag++; |
| 86 |
} |
| 87 |
|
| 88 |
|
| 89 |
cint64 CProcessTagger::getCurrentBranchingTag() { |
| 90 |
return mBranchingTag; |
| 91 |
} |
| 92 |
|
| 93 |
cint64 CProcessTagger::getCurrentBlockingAddTag() { |
| 94 |
return mBlockingAddTag; |
| 95 |
} |
| 96 |
|
| 97 |
cint64 CProcessTagger::getCurrentNodeSwitchTag() { |
| 98 |
return mNodeSwitchTag; |
| 99 |
} |
| 100 |
|
| 101 |
cint64 CProcessTagger::getCurrentConceptLabelSetModificationTag() { |
| 102 |
return mConceptLabelSetModificationTag; |
| 103 |
} |
| 104 |
|
| 105 |
cint64 CProcessTagger::getCurrentBlockingFollowTag() { |
| 106 |
return mCurrentBlockingFollowTag; |
| 107 |
} |
| 108 |
|
| 109 |
CProcessTagger* CProcessTagger::incLocalizationTag() { |
| 110 |
++mLocalizationTag; |
| 111 |
return this; |
| 112 |
} |
| 113 |
|
| 114 |
CProcessTagger* CProcessTagger::incProcessingTag() { |
| 115 |
++mProcessingTag; |
| 116 |
return this; |
| 117 |
} |
| 118 |
|
| 119 |
CProcessTagger* CProcessTagger::incBranchingTag() { |
| 120 |
++mBranchingTag; |
| 121 |
return this; |
| 122 |
} |
| 123 |
|
| 124 |
CProcessTagger* CProcessTagger::incBlockingAddTag() { |
| 125 |
++mBlockingAddTag; |
| 126 |
return this; |
| 127 |
} |
| 128 |
|
| 129 |
CProcessTagger* CProcessTagger::incNodeSwitchTag() { |
| 130 |
++mNodeSwitchTag; |
| 131 |
return this; |
| 132 |
} |
| 133 |
|
| 134 |
CProcessTagger* CProcessTagger::incConceptLabelSetModificationTag() { |
| 135 |
++mConceptLabelSetModificationTag; |
| 136 |
return this; |
| 137 |
} |
| 138 |
|
| 139 |
CProcessTagger* CProcessTagger::incCurrentBlockingFollowTag() { |
| 140 |
++mCurrentBlockingFollowTag; |
| 141 |
return this; |
| 142 |
} |
| 143 |
|
| 144 |
|
| 145 |
}; // end namespace Process |
| 146 |
|
| 147 |
}; // end namespace Kernel |
| 148 |
|
| 149 |
}; // end namespace Reasoner |
| 150 |
|
| 151 |
}; // end namespace Konclude |