Debian Codegraph @

Source/Reasoner/Query/CComplexConceptAnsweringQuery.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 "CComplexConceptAnsweringQuery.h"
22
23
24 namespace Konclude {
25
26 namespace Reasoner {
27
28 namespace Query {
29
30 CComplexConceptAnsweringQuery::CComplexConceptAnsweringQuery(CConcreteOntology* baseOntology, CConcreteOntology* expressionOntology, CConfigurationBase* configuration, const QString& queryName) : CComplexAnsweringExpressionQuery(baseOntology,expressionOntology,configuration,queryName) {
31 mExpressionOfInterest = nullptr;
32 mSuperClassNodesRequired = false;
33 mSubClassNodesRequired = false;
34 mEquivalentClassNodesRequired = false;
35 mInstancesRequired = false;
36 mSatisfiableRequired = false;
37 mFlattened = false;
38 mDirect = false;
39 }
40
41 CComplexConceptAnsweringQuery::~CComplexConceptAnsweringQuery() {
42 }
43
44 bool CComplexConceptAnsweringQuery::isSuperClassNodesComputationRequired() {
45 return mSuperClassNodesRequired;
46 }
47
48 bool CComplexConceptAnsweringQuery::isSubClassNodesComputationRequired() {
49 return mSubClassNodesRequired;
50 }
51
52 bool CComplexConceptAnsweringQuery::isEquivalentClassNodesComputationRequired() {
53 return mEquivalentClassNodesRequired;
54 }
55
56 bool CComplexConceptAnsweringQuery::isInstancesComputationRequired() {
57 return mInstancesRequired;
58 }
59
60 bool CComplexConceptAnsweringQuery::isSatisfiableComputationRequired() {
61 return mSatisfiableRequired;
62 }
63
64
65 bool CComplexConceptAnsweringQuery::isDirect() {
66 return mDirect;
67 }
68
69 bool CComplexConceptAnsweringQuery::isFlattened() {
70 return mFlattened;
71 }
72
73 CComplexConceptAnsweringQuery* CComplexConceptAnsweringQuery::setDirect(bool direct) {
74 mDirect = direct;
75 return this;
76 }
77
78 CComplexConceptAnsweringQuery* CComplexConceptAnsweringQuery::setFlattened(bool flattened) {
79 mFlattened = flattened;
80 return this;
81 }
82
83
84 CBuildExpression* CComplexConceptAnsweringQuery::getExpressionOfInterest() {
85 return mExpressionOfInterest;
86 }
87
88
89
90
91 }; // end namespace Query
92
93 }; // end namespace Reasoner
94
95 }; // end namespace Konclude