Debian Codegraph @

Source/Scheduler/Events/CResponseScheduleTaskEvent.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_SCHEDULER_EVENTS_CRESPONSESCHEDULETASKEVENT_H
22 #define KONCLUDE_SCHEDULER_EVENTS_CRESPONSESCHEDULETASKEVENT_H
23
24
25
26 // Libraries includes
27
28
29 // Namespace includes
30 #include "../SchedulerSettings.h"
31 #include "../CTaskScheduleItem.h"
32 #include "../CTask.h"
33
34
35 // Other includes
36 #include "Concurrent/CEvent.h"
37
38
39 // Logger includes
40 #include "Logger/CLogger.h"
41
42
43
44 namespace Konclude {
45
46 using namespace Concurrent;
47
48 namespace Scheduler {
49
50 namespace Events {
51
52
53
54 /*!
55 * \class CResponseScheduleTaskEvent
56 * \author Andreas Steigmiller
57 * \version 0.1
58 * \brief
59 */
60 class CResponseScheduleTaskEvent : public CEvent {
61 // public methods
62 public:
63 //! Constructor
64 CResponseScheduleTaskEvent(CMemoryPool* memoryPool = nullptr);
65
66 //! Destructor
67 virtual ~CResponseScheduleTaskEvent();
68
69
70 static const cint64 EVENTTYPEID = CRESPONSESCHEDULETASKEVENTTYPEID;
71
72
73 CResponseScheduleTaskEvent* setTask(CTask* task);
74 CTask* getTask();
75
76 CTaskScheduleItem* getTaskScheduleItem();
77 CResponseScheduleTaskEvent* setTaskScheduleItem(CTaskScheduleItem* taskScheduleItem);
78
79 CTaskSchedulerCommunicator* getCommunicator();
80 CResponseScheduleTaskEvent* setCommunicator(CTaskSchedulerCommunicator* communicator);
81
82 CResponseScheduleTaskEvent* setSchedulingTask(bool schedulable);
83 bool isSchedulingTask();
84
85 // protected methods
86 protected:
87
88 // protected variables
89 protected:
90 CTask* mTask;
91 CTaskScheduleItem* mScheduleItem;
92 CTaskSchedulerCommunicator* mCommunicator;
93 bool mSchedulingTask;
94
95 // private methods
96 private:
97
98 // private variables
99 private:
100
101 };
102
103 }; // end namespace Events
104
105 }; // end namespace Scheduler
106
107 }; // end namespace Konclude
108
109 #endif // KONCLUDE_SCHEDULER_EVENTS_CRESPONSESCHEDULETASKEVENT_H