Debian Codegraph @

Source/Reasoner/Kernel/Process/CBlockingIndividualNodeLinker.cpp

raw
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 "CBlockingIndividualNodeLinker.h"
22
23
24 namespace Konclude {
25
26 namespace Reasoner {
27
28 namespace Kernel {
29
30 namespace Process {
31
32
33 CBlockingIndividualNodeLinker::CBlockingIndividualNodeLinker() : CLinkerBase<CIndividualProcessNode*,CBlockingIndividualNodeLinker>(nullptr) {
34 }
35
36 CBlockingIndividualNodeLinker* CBlockingIndividualNodeLinker::initBlockingIndividualNodeLinker(CBlockingIndividualNodeLinker* blockIndNodeLinker) {
37 if (blockIndNodeLinker) {
38 mLastFailedSubsetConDes = blockIndNodeLinker->mLastFailedSubsetConDes;
39 setData(blockIndNodeLinker->getData());
40 } else {
41 mLastFailedSubsetConDes = nullptr;
42 setData(nullptr);
43 }
44 return this;
45 }
46
47
48 CBlockingIndividualNodeLinker* CBlockingIndividualNodeLinker::initBlockingIndividualNodeLinker(CIndividualProcessNode* indiNode) {
49 mLastFailedSubsetConDes = nullptr;
50 setData(indiNode);
51 return this;
52 }
53
54
55 CConceptDescriptor* CBlockingIndividualNodeLinker::getLastFailedSubsetConceptDescriptor() {
56 return mLastFailedSubsetConDes;
57 }
58
59 CBlockingIndividualNodeLinker* CBlockingIndividualNodeLinker::setLastFailedSubsetConceptDescriptor(CConceptDescriptor* conDes) {
60 mLastFailedSubsetConDes = conDes;
61 return this;
62 }
63
64 CIndividualProcessNode* CBlockingIndividualNodeLinker::getCandidateIndividualNode() {
65 return getData();
66 }
67
68 CBlockingIndividualNodeLinker* CBlockingIndividualNodeLinker::setCandidateIndividualNode(CIndividualProcessNode* indiNode) {
69 setData(indiNode);
70 return this;
71 }
72
73
74 }; // end namespace Process
75
76 }; // end namespace Kernel
77
78 }; // end namespace Reasoner
79
80 }; // end namespace Konclude