Debian Codegraph @

Source/Reasoner/Answerer/CMappingsInstancesComputationMode.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_CMAPPINGSINSTANCESCOMPUTATIONMODE_H
22 #define KONCLUDE_REASONER_ANSWERER_CMAPPINGSINSTANCESCOMPUTATIONMODE_H
23
24 // Libraries includes
25
26
27 // Namespace includes
28 #include "AnswererSettings.h"
29
30
31
32 // Other includes
33 #include "Utilities/UtilitiesSettings.h"
34
35 // Logger includes
36 #include "Logger/CLogger.h"
37
38
39 namespace Konclude {
40
41 using namespace Utilities;
42
43 namespace Reasoner {
44
45 namespace Answerer {
46
47
48 /*!
49 *
50 * \class CMappingsInstancesComputationMode
51 * \author Andreas Steigmiller
52 * \version 0.1
53 * \brief TODO
54 *
55 */
56 class CMappingsInstancesComputationMode {
57 // public methods
58 public:
59 const static cint64 COMPUTATION_TYPE_NO_REALIZATION = 0x01;
60 const static cint64 COMPUTATION_TYPEF_FULL_REALIZATION = 0x02;
61 const static cint64 COMPUTATION_TYPEF_ALL = COMPUTATION_TYPE_NO_REALIZATION | COMPUTATION_TYPEF_FULL_REALIZATION;
62
63
64
65 //! Constructor
66 CMappingsInstancesComputationMode(cint64 mode = COMPUTATION_TYPE_NO_REALIZATION, cint64 sizeLimit = 1000);
67
68
69 bool hasComputationMode(CMappingsInstancesComputationMode* mode);
70 CMappingsInstancesComputationMode* setComputationMode(CMappingsInstancesComputationMode* mode);
71 CMappingsInstancesComputationMode* addComputationMode(CMappingsInstancesComputationMode* mode);
72
73 bool hasALLComputationMode();
74 bool hasComputationMode(cint64 mode, cint64 limit);
75 bool hasComputationMode(cint64 mode);
76 cint64 getVariableMappingsComputationMode();
77 CMappingsInstancesComputationMode* setComputationMode(cint64 mode);
78 CMappingsInstancesComputationMode* addComputationMode(cint64 mode);
79
80
81
82 cint64 getComputationSizeLimit();
83 CMappingsInstancesComputationMode* setComputationSizeLimit(cint64 limit);
84
85 // protected methods
86 protected:
87
88 // protected variables
89 protected:
90
91 cint64 mComputationMode;
92 cint64 mComputationSizeLimit;
93
94
95
96 // private methods
97 private:
98
99 // private variables
100 private:
101
102 };
103
104 }; // end namespace Answerer
105
106 }; // end namespace Reasoner
107
108 }; // end namespace Konclude
109
110 #endif // KONCLUDE_REASONER_ANSWERER_CMAPPINGSINSTANCESCOMPUTATIONMODE_H