Debian Codegraph @

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