Debian Codegraph @

Source/Reasoner/Kernel/Cache/Events/CRetrieveIncompletelyAssociationCachedEvent.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_EVENTS_CRETRIEVEINCOMPLETELYASSOCIATIONCACHEDEVENT_H
22 #define KONCLUDE_REASONER_KERNEL_CACHE_EVENTS_CRETRIEVEINCOMPLETELYASSOCIATIONCACHEDEVENT_H
23
24 // Libraries includes
25 #include <QEvent>
26 #include <QList>
27
28 // Namespace includes
29
30
31 // Other includes
32 #include "Reasoner/Ontology/CIndividual.h"
33 #include "Reasoner/Ontology/CIndividualReference.h"
34
35 #include "Concurrent/Events/CCustomEvent.h"
36
37 #include "Concurrent/Callback/CCallbackData.h"
38
39 #include "../CacheSettings.h"
40 #include "../CBackendIndividualRetrievalComputationUpdateCoordinationHash.h"
41
42 // Logger includes
43 #include "Logger/CLogger.h"
44
45
46 namespace Konclude {
47
48 using namespace Concurrent::Callback;
49
50 namespace Reasoner {
51
52 using namespace Ontology;
53
54 namespace Kernel {
55
56 namespace Cache {
57
58 namespace Events {
59
60
61 /*!
62 *
63 * \class CRetrieveIncompletelyAssociationCachedEvent
64 * \author Andreas Steigmiller
65 * \version 0.1
66 * \brief TODO
67 *
68 */
69 class CRetrieveIncompletelyAssociationCachedEvent : public Concurrent::Events::CCustomEvent {
70 // public methods
71 public:
72 //! Constructor
73 CRetrieveIncompletelyAssociationCachedEvent(CCallbackData* callbackData, cint64 ontologyIdentifier, CBackendIndividualRetrievalComputationUpdateCoordinationHash* lastRetrievalHash, CBackendIndividualRetrievalComputationUpdateCoordinationHash* newRetrievalHash, bool allIndividualsAdded, bool refillRetrievalCoordHash, cint64 limit);
74
75 static const QEvent::Type EVENTTYPE = EVENTRETRIEVEINCOMPLETELYASSOCIATIONCACHED;
76
77
78 CCallbackData* getCallback();
79
80 CBackendIndividualRetrievalComputationUpdateCoordinationHash* getLastIndividualsRetrievalCoordinationHash();
81 CBackendIndividualRetrievalComputationUpdateCoordinationHash* getNewIndividualsRetrievalCoordinationHash();
82 cint64 getRetrievalLimit();
83
84 cint64 getOntologyIdentifier();
85
86 bool hasAllIndividualsAdded();
87
88 bool hasRefillRetrievalCoordHashOrdered();
89
90 // protected methods
91 protected:
92
93 // protected variables
94 protected:
95 cint64 mOntologyIdentifier;
96 CCallbackData* mCallback;
97 CBackendIndividualRetrievalComputationUpdateCoordinationHash* mLastRetrievalHash;
98 CBackendIndividualRetrievalComputationUpdateCoordinationHash* mNewRetrievalHash;
99 cint64 mLimit;
100 bool mAllIndividualsAdded;
101 bool mRefillRetrievalCoordHash;
102
103 // private methods
104 private:
105
106 // private variables
107 private:
108
109
110 };
111
112 }; // end namespace Events
113
114 }; // end namespace Cache
115
116 }; // end namespace Kernel
117
118 }; // end namespace Reasoner
119
120 }; // end namespace Konclude
121
122 #endif // KONCLUDE_REASONER_KERNEL_CACHE_EVENTS_CRETRIEVEINCOMPLETELYASSOCIATIONCACHEDEVENT_H