Debian Codegraph @

Source/Reasoner/Ontology/COntologyIncrementalAxiomChangeData.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_CONTOLOGYINCREMENTALAXIOMCHANGEDATA_H
22 #define KONCLUDE_REASONER_ONTOLOGY_CONTOLOGYINCREMENTALAXIOMCHANGEDATA_H
23
24 // Libraries includes
25
26
27 // Namespace includes
28 #include "OntologySettings.h"
29 #include "COntologyContext.h"
30
31
32 // Other includes
33
34 // Logger includes
35 #include "Logger/CLogger.h"
36
37
38 namespace Konclude {
39
40 namespace Reasoner {
41
42 namespace Ontology {
43
44 /*!
45 *
46 * \class COntologyIncrementalAxiomChangeData
47 * \author Andreas Steigmiller
48 * \version 0.1
49 * \brief TODO
50 *
51 */
52 class COntologyIncrementalAxiomChangeData {
53 // public methods
54 public:
55 //! Constructor
56 COntologyIncrementalAxiomChangeData(COntologyContext* ontoContext = nullptr);
57
58
59 COntologyIncrementalAxiomChangeData* addAxiomChangeData(COntologyIncrementalAxiomChangeData* changeData);
60
61
62 bool hasAxiomChanges(COntologyIncrementalAxiomChangeData* changeData);
63
64
65 cint64 getAddedABoxAxiomCount();
66 cint64 getAddedTBoxAxiomCount();
67 cint64 getAddedRBoxAxiomCount();
68
69 cint64 getDeletedABoxAxiomCount();
70 cint64 getDeletedTBoxAxiomCount();
71 cint64 getDeletedRBoxAxiomCount();
72
73
74 COntologyIncrementalAxiomChangeData* incAddedABoxAxiomCount(cint64 incCount = 1);
75 COntologyIncrementalAxiomChangeData* incAddedTBoxAxiomCount(cint64 incCount = 1);
76 COntologyIncrementalAxiomChangeData* incAddedRBoxAxiomCount(cint64 incCount = 1);
77
78
79 COntologyIncrementalAxiomChangeData* incDeletedABoxAxiomCount(cint64 incCount = 1);
80 COntologyIncrementalAxiomChangeData* incDeletedTBoxAxiomCount(cint64 incCount = 1);
81 COntologyIncrementalAxiomChangeData* incDeletedRBoxAxiomCount(cint64 incCount = 1);
82
83 bool hasAddedABoxAxioms();
84 bool hasAddedTBoxAxioms();
85 bool hasAddedRBoxAxioms();
86
87 bool hasDeletedABoxAxioms();
88 bool hasDeletedTBoxAxioms();
89 bool hasDeletedRBoxAxioms();
90
91
92 bool hasChangedABoxAxioms();
93 bool hasChangedTBoxAxioms();
94 bool hasChangedRBoxAxioms();
95
96
97
98
99
100 bool hasAxiomAdditions();
101 bool hasAxiomDeletions();
102
103 bool hasAxiomChanges();
104 bool hasOnlyChangedABoxAxioms();
105 bool hasOnlyChangedTBoxAxioms();
106 bool hasOnlyChangedRBoxAxioms();
107
108
109 // protected methods
110 protected:
111
112 // protected variables
113 protected:
114 COntologyContext* mOntoContext;
115
116 cint64 mAddedABoxAxiomCount;
117 cint64 mAddedTBoxAxiomCount;
118 cint64 mAddedRBoxAxiomCount;
119
120
121 cint64 mDeletedABoxAxiomCount;
122 cint64 mDeletedTBoxAxiomCount;
123 cint64 mDeletedRBoxAxiomCount;
124
125 // private methods
126 private:
127
128 // private variables
129 private:
130
131 };
132
133 }; // end namespace Ontology
134
135 }; // end namespace Reasoner
136
137 }; // end namespace Konclude
138
139 #endif // KONCLUDE_REASONER_ONTOLOGY_CONTOLOGYINCREMENTALAXIOMCHANGEDATA_H