Debian Codegraph @

Source/Reasoner/Ontology/CABox.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_ONTOLOGY_CABOX_H
22 #define KONCLUDE_REASONER_ONTOLOGY_CABOX_H
23
24 // Libraries includes
25
26
27 // Namespace includes
28 #include "OntologySettings.h"
29 #include "CIndividual.h"
30 #include "CBoxContext.h"
31 #include "CConcreteOntologyContextBase.h"
32 #include "CIndividualVector.h"
33 #include "CDataBox.h"
34
35
36 // Other includes
37 #include "Utilities/CSortedNegLinker.hpp"
38
39
40 // Logger includes
41 #include "Logger/CLogger.h"
42
43
44
45 namespace Konclude {
46
47 using namespace Utilities;
48
49 namespace Reasoner {
50
51 namespace Ontology {
52
53 /*!
54 *
55 * \class CABox
56 * \author Andreas Steigmiller
57 * \version 0.1
58 * \brief TODO
59 *
60 */
61 class CABox : public CDataBox {
62 // public methods
63 public:
64 //! Constructor
65 CABox(CBoxContext* boxContext = nullptr);
66
67 //! Destructor
68 virtual ~CABox();
69
70
71 CABox *setIndividualVector(CIndividualVector* roleVec);
72 CIndividualVector* getIndividualVector(bool create = true);
73
74 qint64 getIndividualCount();
75
76 virtual CABox *referenceABox(CABox *aBox);
77 virtual CABox *getABoxReferenceCopy(CBoxContext *boxContext);
78
79 virtual CBoxContext *getBoxContext(bool create = true);
80
81 cint64 getUniversalConnectionIndividualID();
82 CABox* setUniversalConnectionIndividualID(cint64 univConnIndiID);
83
84 bool hasUniversalConnectionIndividual();
85 CABox* setHasUniversalConnectionIndividual(bool hasUnivConnIndi);
86
87
88 CBOXSET<CIndividual*>* getActiveIndividualSet(bool create = true);
89 CABox* setActiveIndividualSet(CBOXSET<CIndividual*>* takeActiveIndividualSet);
90
91
92 cint64 getNextIndividualId(bool increment = true);
93 CABox* setNextIndividualId(cint64 nextIndividualId);
94
95 // protected methods
96 protected:
97
98 // protected variables
99 protected:
100 cint64 mUnivConnIndiID;
101 bool mHasUnivConnIndiID;
102 CIndividualVector* mIndiVec;
103
104 CBOXSET<CIndividual*>* mActiveIndividualSet;
105
106 CBoxContext *mBoxContext;
107 CBoxContext *mDeleteBoxContext;
108 CMemoryAllocationManager* mMemMan;
109
110
111 cint64 mNextIndividualId;
112
113
114
115 // private methods
116 private:
117
118 // private variables
119 private:
120
121 };
122
123 }; // end namespace Ontology
124
125 }; // end namespace Reasoner
126
127 }; // end namespace Konclude
128
129 #endif // KONCLUDE_REASONER_ONTOLOGY_CABOX_H