Debian Codegraph @

Source/Reasoner/Kernel/Cache/CSaturationNodeAssociatedConceptExpansion.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_KERNEL_CACHE_CSATURATIONNODEASSOCIATEDCONCEPTEXPANSION_H
22 #define KONCLUDE_REASONER_KERNEL_CACHE_CSATURATIONNODEASSOCIATEDCONCEPTEXPANSION_H
23
24 // Libraries includes
25
26
27 // Namespace includes
28 #include "CacheSettings.h"
29 #include "CSaturationNodeAssociatedExpansionCacheContext.h"
30 #include "CSaturationNodeAssociatedConceptLinker.h"
31 #include "CSaturationNodeAssociatedDependentNominalSet.h"
32 #include "CCacheValueHasher.h"
33
34
35 // Other includes
36
37
38 // Logger includes
39 #include "Logger/CLogger.h"
40
41
42 namespace Konclude {
43
44 namespace Reasoner {
45
46 namespace Kernel {
47
48 namespace Cache {
49
50 /*!
51 *
52 * \class CSaturationNodeAssociatedConceptExpansion
53 * \author Andreas Steigmiller
54 * \version 0.1
55 * \brief TODO
56 *
57 */
58 class CSaturationNodeAssociatedConceptExpansion {
59 // public methods
60 public:
61 //! Constructor
62 CSaturationNodeAssociatedConceptExpansion(CSaturationNodeAssociatedExpansionCacheContext* context);
63
64 CSaturationNodeAssociatedConceptExpansion* initConceptExpansion();
65
66 CCACHINGHASH<CCacheValueHasher,CSaturationNodeAssociatedConceptLinker*>* getConceptExpansionHash();
67
68 CSaturationNodeAssociatedConceptExpansion* addConceptExpansionLinker(CSaturationNodeAssociatedConceptLinker* conceptLinker);
69 bool hasConceptExpansionLinker(CCacheValue* cacheValue);
70 CSaturationNodeAssociatedConceptLinker* getConceptExpansionLinker(CCacheValue* cacheValue);
71 CSaturationNodeAssociatedConceptLinker* getConceptExpansionLinker();
72 cint64 getConceptExpansionCount();
73 CSaturationNodeAssociatedConceptExpansion* setConceptExpansionCount(cint64 count);
74
75
76 CSaturationNodeAssociatedDependentNominalSet* getDependentNominalSet(bool create = true);
77
78 bool getHasTightAtMostRestriction();
79 CSaturationNodeAssociatedConceptExpansion* setHasTightCardinalityRestriction(bool tightAtMostRestrictions);
80
81 cint64 getConceptSetSignature();
82 CSaturationNodeAssociatedConceptExpansion* setConceptSetSignature(cint64 signature);
83
84 cint64 getTotalConceptCount();
85 CSaturationNodeAssociatedConceptExpansion* setTotalConceptCount(cint64 totalConceptCount);
86
87 // protected methods
88 protected:
89
90 // protected variables
91 protected:
92
93 CCACHINGHASH<CCacheValueHasher,CSaturationNodeAssociatedConceptLinker*> mConceptExpansionHash;
94 CSaturationNodeAssociatedConceptLinker* mConceptExpansionLinker;
95 cint64 mConceptExpansionCount;
96
97 CSaturationNodeAssociatedDependentNominalSet* mDependentNominalSet;
98 bool mHasTightCardinalityRestriction;
99 cint64 mConceptSetSignature;
100 cint64 mTotalConceptCount;
101
102 CSaturationNodeAssociatedExpansionCacheContext* mContext;
103
104 // private methods
105 private:
106
107 // private variables
108 private:
109
110 };
111
112 }; // end namespace Cache
113
114 }; // end namespace Kernel
115
116 }; // end namespace Reasoner
117
118 }; // end namespace Konclude
119
120 #endif // KONCLUDE_REASONER_KERNEL_CACHE_CSATURATIONNODEASSOCIATEDCONCEPTEXPANSION_H