Scheduler
stopSimulation.cpp
Go to the documentation of this file.
1 
10 #include "stopSimulation.h"
11 
12 #include <scheduler/system.h>
13 #include "eventList.h"
14 
15 using namespace Scheduler;
16 
17 
19 {
20  std::cerr << "processing stopSimulation...\n";
22  std::cerr << "system instance ended\n";
24  std::cerr << "event list emptied\n";
25  print();
26  std::cerr << "event name printed\n";
27  return;
28 }
29 
31 {
32  return "Simulation stopped";
33 }
34 
35 
36 
virtual void print()
print information about the event
Definition: event.cpp:41
static System * getInstance()
Definition: system.cpp:28
std::string getName() override
get the name of the event
void process() override
handle the the event TODO: &#39;process&#39; is maybe not the best word for that, given that our simulator ac...
void end()
prints reports
Definition: system.cpp:120
static EventList * getInstance()
Singleton pattern.
Definition: eventList.cpp:22