Debian Codegraph @

Source/Reasoner/Ontology/CDisjunctionBranchingStatistics.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 "CDisjunctionBranchingStatistics.h"
22
23
24 namespace Konclude {
25
26 namespace Reasoner {
27
28 namespace Ontology {
29
30
31 CDisjunctionBranchingStatistics::CDisjunctionBranchingStatistics() {
32 mExpandedCount = 0;
33 mClashesFullyInvolvedCount = 0;
34 mClashesPartiallyInvolvedCount = 0;
35 mSatisfiableOccurrenceCount = 0;
36 mDisjunctBranchingStatistics = nullptr;
37 }
38
39
40 CDisjunctionBranchingStatistics* CDisjunctionBranchingStatistics::initDisjunctionBranchingStatistics() {
41 mExpandedCount = 0;
42 mClashesFullyInvolvedCount = 0;
43 mClashesPartiallyInvolvedCount = 0;
44 mSatisfiableOccurrenceCount = 0;
45 mDisjunctBranchingStatistics = nullptr;
46 return this;
47 }
48
49
50 cint64 CDisjunctionBranchingStatistics::getExpandedCount() {
51 return mExpandedCount;
52 }
53
54 cint64 CDisjunctionBranchingStatistics::getClashFullyInvolvedCount() {
55 return mClashesFullyInvolvedCount;
56 }
57
58 cint64 CDisjunctionBranchingStatistics::getClashPartiallyInvolvedCount() {
59 return mClashesPartiallyInvolvedCount;
60 }
61
62 cint64 CDisjunctionBranchingStatistics::getSatisfiableOccurrenceCount() {
63 return mSatisfiableOccurrenceCount;
64 }
65
66
67
68 CDisjunctionBranchingStatistics* CDisjunctionBranchingStatistics::setExpandedCount(cint64 count) {
69 mExpandedCount = count;
70 return this;
71 }
72
73 CDisjunctionBranchingStatistics* CDisjunctionBranchingStatistics::setClashFullyInvolvedCount(cint64 count) {
74 mClashesFullyInvolvedCount = count;
75 return this;
76 }
77
78 CDisjunctionBranchingStatistics* CDisjunctionBranchingStatistics::setClashPartiallyInvolvedCount(cint64 count) {
79 mClashesPartiallyInvolvedCount = count;
80 return this;
81 }
82
83 CDisjunctionBranchingStatistics* CDisjunctionBranchingStatistics::setSatisfiableOccurrenceCount(cint64 count) {
84 mSatisfiableOccurrenceCount = count;
85 return this;
86 }
87
88
89 CDisjunctionBranchingStatistics* CDisjunctionBranchingStatistics::incExpandedCount(cint64 incCount) {
90 mExpandedCount += incCount;
91 return this;
92 }
93
94 CDisjunctionBranchingStatistics* CDisjunctionBranchingStatistics::incClashFullyInvolvedCount(cint64 incCount) {
95 mClashesFullyInvolvedCount += incCount;
96 return this;
97 }
98
99 CDisjunctionBranchingStatistics* CDisjunctionBranchingStatistics::incClashPartiallyInvolvedCount(cint64 incCount) {
100 mClashesPartiallyInvolvedCount += incCount;
101 return this;
102 }
103
104 CDisjunctionBranchingStatistics* CDisjunctionBranchingStatistics::incSatisfiableOccurrenceCount(cint64 incCount) {
105 mSatisfiableOccurrenceCount += incCount;
106 return this;
107 }
108
109
110 CDisjunctBranchingStatistics* CDisjunctionBranchingStatistics::getDisjunctBranchingStatistics() {
111 return mDisjunctBranchingStatistics;
112 }
113
114 CDisjunctionBranchingStatistics* CDisjunctionBranchingStatistics::addDisjunctBranchingStatistics(CDisjunctBranchingStatistics* disjunctBranchingStatistics) {
115 if (disjunctBranchingStatistics) {
116 mDisjunctBranchingStatistics = mDisjunctBranchingStatistics->append(disjunctBranchingStatistics);
117 }
118 return this;
119 }
120
121 CDisjunctionBranchingStatistics* CDisjunctionBranchingStatistics::setDisjunctBranchingStatistics(CDisjunctBranchingStatistics* disjunctBranchingStatistics) {
122 mDisjunctBranchingStatistics = disjunctBranchingStatistics;
123 return this;
124 }
125
126
127 }; // end namespace Ontology
128
129
130 }; // end namespace Reasoner
131
132 }; // end namespace Konclude