Scheduler
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
terminates.h
Go to the documentation of this file.
1 
10 #ifndef TERMINATES_H
11 #define TERMINATES_H
12 
13 #include <memory>
14 
15 #include "event.h"
16 
17 namespace Scheduler
18 {
19 
20 
23 class Terminates : public Event
24 {
25 public:
26  Terminates(double time, bool renew=false) : Event(time, renew){eventType=terminate;};
27  void process() override;
28  std::string getName() override;
29 };
30 
31 }
32 
33 #endif
Terminates(double time, bool renew=false)
Definition: terminates.h:26
std::string getName() override
get the name of the event
Definition: terminates.cpp:36
bool renew
Definition: event.h:59
TriggeringEvent eventType
The event type is need by the scheduling discipline, to determine if this kind of event triggers invo...
Definition: event.h:64
void process() override
handle the the event TODO: &#39;process&#39; is maybe not the best word for that, given that our simulator ac...
Definition: terminates.cpp:24
double time
Definition: event.h:58