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

#include <missedDeadline.h>

Inheritance diagram for Scheduler::MissedDeadline:
Scheduler::Event

Public Member Functions

 MissedDeadline (double time)
 
void process ()
 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 ()
 get the name of the event More...
 
void print () override
 print information about the event More...
 
- 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 ()
 

Additional Inherited Members

- 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

This event checks whether a process misses its deadline and deals with it.

Definition at line 22 of file missedDeadline.h.

Constructor & Destructor Documentation

Scheduler::MissedDeadline::MissedDeadline ( double  time)
inline

Definition at line 25 of file missedDeadline.h.

Member Function Documentation

std::string MissedDeadline::getName ( )
virtual

get the name of the event

Returns
a string containing the name of the event

Implements Scheduler::Event.

Definition at line 66 of file missedDeadline.cpp.

void MissedDeadline::print ( )
overridevirtual

print information about the event

Reimplemented from Scheduler::Event.

Definition at line 73 of file missedDeadline.cpp.

void MissedDeadline::process ( )
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.

Definition at line 24 of file missedDeadline.cpp.


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