Debian Codegraph @

Source/Reasoner/Answerer/Events/CAnsweringCalculationCompletedEvent.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_ANSWERER_EVENTS_CANSWERINGCALCULATIONCOMPLETEDEVENT_H
22 #define KONCLUDE_REASONER_ANSWERER_EVENTS_CANSWERINGCALCULATIONCOMPLETEDEVENT_H
23
24
25
26 // Libraries includes
27
28
29 // Namespace includes
30 #include "../AnswererSettings.h"
31 #include "../CAnsweringMessageData.h"
32 #include "../CAnsweringHandler.h"
33
34
35 // Other includes
36 #include "Concurrent/Events/CCustomEvent.h"
37
38 #include "Concurrent/Callback/CCallbackData.h"
39 #include "Concurrent/Callback/CCallbackDataContext.h"
40
41 #include "Utilities/Memory/CMemoryPool.h"
42
43
44 // Logger includes
45 #include "Logger/CLogger.h"
46
47
48
49 namespace Konclude {
50
51 using namespace Concurrent;
52 using namespace Concurrent::Events;
53 using namespace Utilities::Memory;
54
55 namespace Reasoner {
56
57 using namespace Ontology;
58
59 namespace Answerer {
60
61 namespace Events {
62
63
64
65 /*!
66 * \class CAnsweringCalculationCompletedEvent
67 * \author Andreas Steigmiller
68 * \version 0.1
69 * \brief
70 */
71 class CAnsweringCalculationCompletedEvent : public CCustomEvent, public CCallbackData {
72 // public methods
73 public:
74 //! Constructor
75 CAnsweringCalculationCompletedEvent(CThread* thread, CAnsweringHandler *answerHandler, CAnsweringMessageData* messageData, CCallbackDataContext* callbackDataContext);
76
77 CAnsweringHandler* getAnsweringHandler();
78 CAnsweringMessageData* getMessageData();
79
80 virtual void doCallback();
81
82
83 static const QEvent::Type EVENTTYPE = EVENTCALCULATIONCOMPLETED;
84
85 // protected methods
86 protected:
87
88 // protected variables
89 protected:
90 CThread* mThread;
91 CAnsweringHandler* mAnswerHandler;
92 CAnsweringMessageData* mMessageData;
93
94
95
96 // private methods
97 private:
98
99 // private variables
100 private:
101
102 };
103
104 }; // end namespace Events
105
106 }; // end namespace Answerer
107
108 }; // end namespace Reasoner
109
110 }; // end namespace Konclude
111
112 #endif // KONCLUDE_REASONER_ANSWERER_EVENTS_CANSWERINGCALCULATIONCOMPLETEDEVENT_H