Scheduler
|
#include <newProcess.h>
Public Member Functions | |
NewProcess (double time, bool renew=true) | |
virtual | ~NewProcess () |
virtual void | process ()=0 |
handle the the event TODO: 'process' is maybe not the best word for that, given that our simulator actually manipulated processes More... | |
virtual std::string | getName ()=0 |
get the name of the event More... | |
![]() | |
Event (double time, bool renew=true) | |
Event constructor. More... | |
void | setTask (std::shared_ptr< Process > task) |
if the event is specific to a task, set it here. TODO not all events have an associated task. This should be moved More... | |
double | getTime () |
get the time at which the event is scheduled More... | |
virtual | ~Event () |
virtual void | print () |
print information about the event More... | |
Protected Member Functions | |
void | queueProcess (std::shared_ptr< Process > p) |
virtual void | scheduleNextEvent ()=0 |
virtual std::shared_ptr< Process > | createTask ()=0 |
Additional Inherited Members | |
![]() | |
double | time |
bool | renew |
std::shared_ptr< Process > | task {nullptr} |
TriggeringEvent | eventType {nothing} |
The event type is need by the scheduling discipline, to determine if this kind of event triggers invokatio of that discipline. More... | |
A new process appears
Definition at line 22 of file newProcess.h.
|
inline |
Definition at line 25 of file newProcess.h.
|
virtual |
Definition at line 17 of file newProcess.cpp.
|
protectedpure virtual |
|
pure virtual |
get the name of the event
Implements Scheduler::Event.
Implemented in Scheduler::NewJob, and Scheduler::NewInteractiveProcess.
|
pure virtual |
handle the the event TODO: 'process' is maybe not the best word for that, given that our simulator actually manipulated processes
Implements Scheduler::Event.
Implemented in Scheduler::NewJob, and Scheduler::NewInteractiveProcess.
|
protected |
Definition at line 21 of file newProcess.cpp.
|
protectedpure virtual |