Debian Codegraph @

Source/Reasoner/Consistiser/Events/CSaturationPrecomputationCalculatedCallbackEvent.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_CONSISTISER_EVENTS_CSATURATIONPRECOMPUTATIONCALCULATEDCALLBACKEVENT_H
22 #define KONCLUDE_REASONER_CONSISTISER_EVENTS_CSATURATIONPRECOMPUTATIONCALCULATEDCALLBACKEVENT_H
23
24
25
26 // Libraries includes
27
28
29 // Namespace includes
30 #include "../ConsistiserSettings.h"
31 #include "../CPrecomputationTestingItem.h"
32
33
34 // Other includes
35 #include "Concurrent/Events/CCustomEvent.h"
36
37 #include "Reasoner/Ontology/CConcreteOntology.h"
38
39 #include "Concurrent/Callback/CCallbackData.h"
40
41 #include "Reasoner/Query/CApproximatedSaturationCalculationJob.h"
42
43 // Logger includes
44 #include "Logger/CLogger.h"
45
46
47
48 namespace Konclude {
49
50 using namespace Concurrent::Events;
51 using namespace Concurrent::Callback;
52
53 namespace Reasoner {
54
55 using namespace Ontology;
56 using namespace Taxonomy;
57 using namespace Query;
58
59 namespace Consistiser {
60
61 namespace Events {
62
63
64
65 /*!
66 * \class CSaturationPrecomputationCalculatedCallbackEvent
67 * \author Andreas Steigmiller
68 * \version 0.1
69 * \brief
70 */
71 class CSaturationPrecomputationCalculatedCallbackEvent : public CCustomEvent, public CCallbackData {
72 // public methods
73 public:
74 //! Constructor
75 CSaturationPrecomputationCalculatedCallbackEvent(CThread *receiverThread, CApproximatedSaturationCalculationJob *satCalcJob, CPrecomputationTestingItem* preTestItem);
76
77 //! Destructor
78 virtual ~CSaturationPrecomputationCalculatedCallbackEvent();
79
80 static const QEvent::Type EVENTTYPE = EVENTSATURATIONCALCULATEDCALLBACK;
81
82 virtual void doCallback();
83
84 CApproximatedSaturationCalculationJob *getSaturationCalculationJob();
85 CPrecomputationTestingItem* getPrecomputationTestingItem();
86
87
88 // protected methods
89 protected:
90
91 // protected variables
92 protected:
93 CThread *recThread;
94 CApproximatedSaturationCalculationJob* mSatCalcJob;
95 CPrecomputationTestingItem* mPreTestItem;
96
97 // private methods
98 private:
99
100 // private variables
101 private:
102
103 };
104
105 }; // end namespace Events
106
107 }; // end namespace Consistiser
108
109 }; // end namespace Reasoner
110
111 }; // end namespace Konclude
112
113 #endif // KONCLUDE_REASONER_CONSISTISER_EVENTS_CSATURATIONPRECOMPUTATIONCALCULATEDCALLBACKEVENT_H