Debian Codegraph @

Source/Reasoner/Realizer/CRealizationProgress.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 "CRealizationProgress.h"
22
23
24 namespace Konclude {
25
26 namespace Reasoner {
27
28 namespace Realizer {
29
30
31 CRealizationProgress::CRealizationProgress() {
32 resetValues();
33 }
34
35
36 qint64 CRealizationProgress::getRealizationCount() {
37 return mRealizationCount;
38 }
39
40 qint64 CRealizationProgress::getTestedClasses() {
41 return mTestedClasses;
42 }
43
44 qint64 CRealizationProgress::getTotalClasses() {
45 return mTotalClasses;
46 }
47
48 double CRealizationProgress::getRemainingMilliSeconds() {
49 return mRemainingMilliSeconds;
50 }
51
52 double CRealizationProgress::getProgessPercent() {
53 return mProgessPercent;
54 }
55
56 CRealizationProgress *CRealizationProgress::setRealizationCount(qint64 classificationCount) {
57 mRealizationCount = classificationCount;
58 return this;
59 }
60
61 CRealizationProgress *CRealizationProgress::setTestedClasses(qint64 testedClasses) {
62 mTestedClasses = testedClasses;
63 return this;
64 }
65
66 CRealizationProgress *CRealizationProgress::setTotalClasses(qint64 totalClasses) {
67 mTotalClasses = totalClasses;
68 return this;
69 }
70
71 CRealizationProgress *CRealizationProgress::setRemainingMilliSeconds(double remainingMilliSeconds) {
72 mRemainingMilliSeconds = remainingMilliSeconds;
73 return this;
74 }
75
76 CRealizationProgress *CRealizationProgress::setProgessPercent(double progessPercent) {
77 mProgessPercent = progessPercent;
78 return this;
79 }
80
81 CRealizationProgress *CRealizationProgress::resetValues() {
82 mRealizationCount = 0;
83 mTestedClasses = 0;
84 mTotalClasses = 0;
85 mRemainingMilliSeconds = 0.;
86 mProgessPercent = 0.;
87 return this;
88 }
89
90
91
92 }; // end namespace Realizer
93
94 }; // end namespace Reasoner
95
96 }; // end namespace Konclude