Debian Codegraph @

Source/Reasoner/Classifier/CClassificationProgress.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 "CClassificationProgress.h"
22
23
24 namespace Konclude {
25
26 namespace Reasoner {
27
28 namespace Classifier {
29
30
31 CClassificationProgress::CClassificationProgress() {
32 resetValues();
33 }
34
35
36 qint64 CClassificationProgress::getClassificationCount() {
37 return mClassificationCount;
38 }
39
40 qint64 CClassificationProgress::getTestedSatisfiable() {
41 return mTestedClasses;
42 }
43
44 qint64 CClassificationProgress::getTotalSatisfiable() {
45 return mTotalClasses;
46 }
47
48 qint64 CClassificationProgress::getTestedSubsumptions() {
49 return mTestedSubsum;
50 }
51
52 qint64 CClassificationProgress::getTotalSubsumptions() {
53 return mTotalSubsum;
54 }
55
56
57 double CClassificationProgress::getRemainingMilliSeconds() {
58 return mRemainingMilliSeconds;
59 }
60
61 double CClassificationProgress::getProgessPercent() {
62 return mProgessPercent;
63 }
64
65 CClassificationProgress *CClassificationProgress::setClassificationCount(qint64 classificationCount) {
66 mClassificationCount = classificationCount;
67 return this;
68 }
69
70 CClassificationProgress *CClassificationProgress::setTestedSatisfiable(qint64 testedClasses) {
71 mTestedClasses = testedClasses;
72 return this;
73 }
74
75 CClassificationProgress *CClassificationProgress::setTotalSatisfiable(qint64 totalClasses) {
76 mTotalClasses = totalClasses;
77 return this;
78 }
79
80 CClassificationProgress *CClassificationProgress::setTestedSubsumptions(qint64 testedSubsumptions) {
81 mTestedSubsum = testedSubsumptions;
82 return this;
83 }
84
85 CClassificationProgress *CClassificationProgress::setTotalSubsumptions(qint64 totalSubsumptions) {
86 mTotalSubsum = totalSubsumptions;
87 return this;
88 }
89
90 CClassificationProgress *CClassificationProgress::setRemainingMilliSeconds(double remainingMilliSeconds) {
91 mRemainingMilliSeconds = remainingMilliSeconds;
92 return this;
93 }
94
95 CClassificationProgress *CClassificationProgress::setProgessPercent(double progessPercent) {
96 mProgessPercent = progessPercent;
97 return this;
98 }
99
100 CClassificationProgress *CClassificationProgress::resetValues() {
101 mClassificationCount = 0;
102 mTestedClasses = 0;
103 mTotalClasses = 0;
104 mRemainingMilliSeconds = 0.;
105 mProgessPercent = 0.;
106 mTotalSubsum = 0;
107 mTestedSubsum = 0;
108 return this;
109 }
110
111
112
113 }; // end namespace Classifier
114
115 }; // end namespace Reasoner
116
117 }; // end namespace Konclude