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

#include <fcfsDiscipline.h>

Inheritance diagram for Scheduler::FcfsDiscipline:
Scheduler::SchedulingDiscipline

Public Member Functions

 FcfsDiscipline (std::shared_ptr< SchedulerConfiguration > c)
 
 ~FcfsDiscipline ()
 
std::shared_ptr< ProcessselectNextTask (Queue *readyQueue, std::shared_ptr< Process > running, unsigned int deadlineMisses) override
 select the best task to run at this point. More...
 
std::string getName ()
 returns the name of that discipline More...
 
bool preempts (TriggeringEvent trigger)
 returns true if the argument is a scheduling trigger for this specific discipline More...
 
- Public Member Functions inherited from Scheduler::SchedulingDiscipline
virtual ~SchedulingDiscipline ()
 
 SchedulingDiscipline (std::shared_ptr< SchedulerConfiguration > c)
 
virtual void end ()
 

Static Public Attributes

static constexpr const char * configKey = "fcfsDiscipline"
 

Additional Inherited Members

- Protected Attributes inherited from Scheduler::SchedulingDiscipline
std::shared_ptr< SchedulerConfigurationconf {nullptr}
 

Detailed Description

Definition at line 18 of file fcfsDiscipline.h.

Constructor & Destructor Documentation

Scheduler::FcfsDiscipline::FcfsDiscipline ( std::shared_ptr< SchedulerConfiguration c)
inline

Definition at line 23 of file fcfsDiscipline.h.

Scheduler::FcfsDiscipline::~FcfsDiscipline ( )
inline

Definition at line 24 of file fcfsDiscipline.h.

Member Function Documentation

std::string FcfsDiscipline::getName ( )
virtual

returns the name of that discipline

Implements Scheduler::SchedulingDiscipline.

Definition at line 30 of file fcfsDiscipline.cpp.

bool FcfsDiscipline::preempts ( TriggeringEvent  trigger)
virtual

returns true if the argument is a scheduling trigger for this specific discipline

Parameters
triggerthe type of the event that triggered the scheduling invokation

Implements Scheduler::SchedulingDiscipline.

Definition at line 35 of file fcfsDiscipline.cpp.

std::shared_ptr< Process > FcfsDiscipline::selectNextTask ( Queue readyQueue,
std::shared_ptr< Process running,
unsigned int  deadlineMisses 
)
overridevirtual

select the best task to run at this point.

Parameters
readyQueuethe ready queue
runningthe currently running task
deadlineMisses
Returns
the next task to be run

Implements Scheduler::SchedulingDiscipline.

Definition at line 19 of file fcfsDiscipline.cpp.

Member Data Documentation

constexpr const char* Scheduler::FcfsDiscipline::configKey = "fcfsDiscipline"
static

Definition at line 21 of file fcfsDiscipline.h.


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