Debian Codegraph @

Source/Reasoner/Ontology/CNominalSchemaTemplate.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 "CNominalSchemaTemplate.h"
22
23
24 namespace Konclude {
25
26 namespace Reasoner {
27
28 namespace Ontology {
29
30
31 CNominalSchemaTemplate::CNominalSchemaTemplate() {
32 }
33
34
35 CNominalSchemaTemplate* CNominalSchemaTemplate::initNominalSchemaTemplate(CBOXSET<CConcept*>* nomSchemaConSet, CBOXHASH<CConcept*,CConcept*>* conceptNomSchemaConceptsHash, CBOXHASH<CConcept*,CConcept*>* absorbableConceptNomSchemaConceptsHash) {
36 mConceptNomSchemaConceptsHash = conceptNomSchemaConceptsHash;
37 mAbsorbableConceptNomSchemaConceptsHash = absorbableConceptNomSchemaConceptsHash;
38 mNomSchemaConSet = nomSchemaConSet;
39 mTerm = nullptr;
40 mTemplConcept = nullptr;
41 mRefConcept = nullptr;
42 mTag = 0;
43 return this;
44 }
45
46 CNominalSchemaTemplate* CNominalSchemaTemplate::setNominalSchemaTemplateTag(qint64 nomSchemTempTag) {
47 mTag = nomSchemTempTag;
48 return this;
49 }
50
51 qint64 CNominalSchemaTemplate::getNominalSchemaTemplateTag() {
52 return mTag;
53 }
54
55
56 CNominalSchemaTemplate* CNominalSchemaTemplate::setTerminology(CTerminology* ontology) {
57 mTerm = ontology;
58 return this;
59 }
60
61 CTerminology* CNominalSchemaTemplate::getTerminology() {
62 return mTerm;
63 }
64
65 qint64 CNominalSchemaTemplate::getTerminologyTag() const {
66 cint64 termTag = 0;
67 if (mTerm) {
68 termTag = mTerm->getTerminologyID();
69 }
70 return termTag;
71 }
72
73
74 CNominalSchemaTemplate* CNominalSchemaTemplate::setTemplateConcept(CConcept* templateConcept) {
75 mTemplConcept = templateConcept;
76 return this;
77 }
78
79 CConcept* CNominalSchemaTemplate::getTemplateConcept() {
80 return mTemplConcept;
81 }
82
83 CNominalSchemaTemplate* CNominalSchemaTemplate::setReferenceConcept(CConcept* referenceConcept) {
84 mRefConcept = referenceConcept;
85 return this;
86 }
87
88 CConcept* CNominalSchemaTemplate::getReferenceConcept() {
89 return mRefConcept;
90 }
91
92 CBOXSET<CConcept*>* CNominalSchemaTemplate::getNominalSchemaConceptSet() {
93 return mNomSchemaConSet;
94 }
95
96 CNominalSchemaTemplate* CNominalSchemaTemplate::setNominalSchemaConceptSet(CBOXSET<CConcept*>* nomSchemaConSet) {
97 mNomSchemaConSet = nomSchemaConSet;
98 return this;
99 }
100
101 CBOXHASH<CConcept*,CConcept*>* CNominalSchemaTemplate::getTemplateConceptNominalSchemaConceptHash() {
102 return mConceptNomSchemaConceptsHash;
103 }
104
105 CNominalSchemaTemplate* CNominalSchemaTemplate::setTemplateConceptNominalSchemaConceptHash(CBOXHASH<CConcept*,CConcept*>* conceptNomSchemaConceptsHash) {
106 mConceptNomSchemaConceptsHash = conceptNomSchemaConceptsHash;
107 return this;
108 }
109
110
111 CBOXHASH<CConcept*,CConcept*>* CNominalSchemaTemplate::getTemplateAbsorbableConceptNominalSchemaConceptHash() {
112 return mAbsorbableConceptNomSchemaConceptsHash;
113 }
114
115 CNominalSchemaTemplate* CNominalSchemaTemplate::setTemplateAbsorbableConceptNominalSchemaConceptHash(CBOXHASH<CConcept*,CConcept*>* conceptNomSchemaConceptsHash) {
116 mAbsorbableConceptNomSchemaConceptsHash = conceptNomSchemaConceptsHash;
117 return this;
118 }
119
120 }; // end namespace Ontology
121
122 }; // end namespace Reasoner
123
124 }; // end namespace Konclude