Debian Codegraph @

Source/Reasoner/Kernel/Process/CCondensedReapplyConceptDescriptor.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 "CCondensedReapplyConceptDescriptor.h"
22
23
24 namespace Konclude {
25
26 namespace Reasoner {
27
28 namespace Kernel {
29
30 namespace Process {
31
32
33 CCondensedReapplyConceptDescriptor::CCondensedReapplyConceptDescriptor(CConceptDescriptor *conceptDescriptor, CDependencyTrackPoint *depTrackPoint, bool isPositiveDes) : CReapplyConceptDescriptor() {
34 setData(conceptDescriptor);
35 mTrackPoint = depTrackPoint;
36 mStatic = false;
37 mProcessingRestriction = nullptr;
38 mPositive = isPositiveDes;
39 mExtended = false;
40 }
41
42 CCondensedReapplyConceptDescriptor::CCondensedReapplyConceptDescriptor() : CReapplyConceptDescriptor() {
43 mExtended = false;
44 mPositive = true;
45 }
46
47 CCondensedReapplyConceptDescriptor *CCondensedReapplyConceptDescriptor::initReapllyDescriptor(CConceptDescriptor *conceptDescriptor, CDependencyTrackPoint *depTrackPoint, bool isPositiveDes) {
48 setData(conceptDescriptor);
49 mTrackPoint = depTrackPoint;
50 mStatic = false;
51 mPositive = isPositiveDes;
52 mExtended = false;
53 mProcessingRestriction = nullptr;
54 return this;
55 }
56
57
58 CCondensedReapplyConceptDescriptor* CCondensedReapplyConceptDescriptor::getNext() {
59 return (CCondensedReapplyConceptDescriptor*)CReapplyConceptDescriptor::getNext();
60 }
61
62
63 CCondensedReapplyConceptDescriptor *CCondensedReapplyConceptDescriptor::initReapllyDescriptor(CConceptDescriptor *conceptDescriptor, CDependencyTrackPoint *depTrackPoint, bool isPositiveDes, CProcessingRestrictionSpecification* procRest) {
64 setData(conceptDescriptor);
65 mTrackPoint = depTrackPoint;
66 mStatic = false;
67 mPositive = isPositiveDes;
68 mProcessingRestriction = procRest;
69 return this;
70 }
71
72
73 bool CCondensedReapplyConceptDescriptor::isPositiveDescriptor() {
74 return mPositive;
75 }
76
77
78 bool CCondensedReapplyConceptDescriptor::isExtended() {
79 return mExtended;
80 }
81
82
83 }; // end namespace Process
84
85 }; // end namespace Kernel
86
87 }; // end namespace Reasoner
88
89 }; // end namespace Konclude