Scheduler
Public Member Functions | Static Public Member Functions | List of all members
Scheduler::NewJob Class Reference

#include <newJob.h>

Inheritance diagram for Scheduler::NewJob:
Scheduler::NewProcess Scheduler::Event

Public Member Functions

 NewJob (double time, bool renew=true)
 
void process () override
 handle the the event TODO: 'process' is maybe not the best word for that, given that our simulator actually manipulated processes More...
 
std::string getName () override
 get the name of the event More...
 
- Public Member Functions inherited from Scheduler::NewProcess
 NewProcess (double time, bool renew=true)
 
virtual ~NewProcess ()
 
- Public Member Functions inherited from Scheduler::Event
 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...
 

Static Public Member Functions

static void init ()
 

Additional Inherited Members

- Protected Member Functions inherited from Scheduler::NewProcess
void queueProcess (std::shared_ptr< Process > p)
 
- Protected Attributes inherited from Scheduler::Event
double time
 
bool renew
 
std::shared_ptr< Processtask {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...
 

Detailed Description

A new job for a task is released

Definition at line 24 of file newJob.h.

Constructor & Destructor Documentation

Scheduler::NewJob::NewJob ( double  time,
bool  renew = true 
)
inline

Definition at line 34 of file newJob.h.

Member Function Documentation

std::string NewJob::getName ( )
overridevirtual

get the name of the event

Returns
a string containing the name of the event

Implements Scheduler::NewProcess.

Definition at line 72 of file newJob.cpp.

void NewJob::init ( )
static

Definition at line 28 of file newJob.cpp.

void NewJob::process ( )
overridevirtual

handle the the event TODO: 'process' is maybe not the best word for that, given that our simulator actually manipulated processes

Implements Scheduler::NewProcess.

Definition at line 55 of file newJob.cpp.


The documentation for this class was generated from the following files: