Debian Codegraph @

Source/Reasoner/Answerer/CComplexConceptStepComputationProcess.h

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 #ifndef KONCLUDE_REASONER_ANSWERER_CCOMPLEXCONCEPTSTEPCOMPUTATIONPROCESS_H
22 #define KONCLUDE_REASONER_ANSWERER_CCOMPLEXCONCEPTSTEPCOMPUTATIONPROCESS_H
23
24 // Libraries includes
25
26
27 // Namespace includes
28 #include "AnswererSettings.h"
29 #include "CRequirementWaitingDependencyData.h"
30
31
32
33 // Other includes
34 #include "Utilities/UtilitiesSettings.h"
35
36
37
38 // Logger includes
39 #include "Logger/CLogger.h"
40
41
42 namespace Konclude {
43
44 using namespace Utilities;
45
46 namespace Reasoner {
47
48 namespace Answerer {
49
50
51 enum ComplexConceptStepComputationProcessType {
52 COMPUTATIONTYPESATISFIABILITY = 0, COMPUTATIONTYPESUPERCLASSNODES = 1, COMPUTATIONTYPESUBCLASSNODES = 2, COMPUTATIONTYPEEQUIVALENTCLASSNODES = 3, COMPUTATIONTYPEINSTANCES = 4, REALIZATIONTYPESUBCLASS = 5
53 };
54
55 static const cint64 COMPLEXCONCEPTSTEPCOMPUTATIONPROCESSTYPECOUNT = 6;
56
57
58
59 /*!
60 *
61 * \class CComplexConceptStepComputationProcess
62 * \author Andreas Steigmiller
63 * \version 0.1
64 * \brief TODO
65 *
66 */
67 class CComplexConceptStepComputationProcess : public CRequirementWaitingDependencyData {
68 // public methods
69 public:
70
71
72 //! Constructor
73 CComplexConceptStepComputationProcess(ComplexConceptStepComputationProcessType computationType);
74
75 ~CComplexConceptStepComputationProcess();
76
77 ComplexConceptStepComputationProcessType getComputationType();
78
79
80 bool isComputationProcessFinished();
81 bool isComputationProcessStarted();
82 bool isComputationProcessQueued();
83 bool isComputationProcessRequired();
84 bool isComputationProcessProcessing();
85
86 CComplexConceptStepComputationProcess* setComputationProcessStarted(bool started);
87 CComplexConceptStepComputationProcess* setComputationProcessFinished(bool finished);
88 CComplexConceptStepComputationProcess* setComputationProcessQueued(bool queued);
89 CComplexConceptStepComputationProcess* setComputationProcessRequired(bool required);
90 CComplexConceptStepComputationProcess* setComputationProcessProcessing(bool processing);
91
92
93
94 CComplexConceptStepComputationProcess* incCurrentlyRunningComputationCount(cint64 incCount = 1);
95 CComplexConceptStepComputationProcess* decCurrentlyRunningComputationCount(cint64 decCount = 1);
96 CComplexConceptStepComputationProcess* incFinishedComputationCount(cint64 incCount = 1);
97 CComplexConceptStepComputationProcess* incDerivedComputationCount(cint64 incCount = 1);
98
99 cint64 getCurrentlyRunningComputationCount();
100 cint64 getFinishedComputationCount();
101 cint64 getDerivedComputationCount();
102
103
104 // protected methods
105 protected:
106
107 // protected variables
108 protected:
109 ComplexConceptStepComputationProcessType mComputationType;
110 bool mFinished;
111 bool mStarted;
112 bool mRequired;
113 bool mQueued;
114 bool mProcessing;
115
116 cint64 mCurrentlyRunningComputationCount;
117 cint64 mFinishedComputationCount;
118 cint64 mDerivedComputationCount;
119
120 // private methods
121 private:
122
123 // private variables
124 private:
125
126 };
127
128 }; // end namespace Answerer
129
130 }; // end namespace Reasoner
131
132 }; // end namespace Konclude
133
134 #endif // KONCLUDE_REASONER_ANSWERER_CCOMPLEXCONCEPTSTEPCOMPUTATIONPROCESS_H