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

#include <fixedPriorityDiscipline.h>

Inheritance diagram for Scheduler::FixedPriorityDiscipline:
Scheduler::PriorityDiscipline Scheduler::SchedulingDiscipline

Public Member Functions

 FixedPriorityDiscipline (std::shared_ptr< SchedulerConfiguration > c)
 
 ~FixedPriorityDiscipline ()
 
std::string getName ()
 returns the name of that discipline More...
 
void updatePriorities (Queue *readyQueue, std::shared_ptr< Process > running) override
 sets the correct priorities to the tasks, especially if dynamic priorities are used. More...
 
- Public Member Functions inherited from Scheduler::PriorityDiscipline
 PriorityDiscipline (std::shared_ptr< SchedulerConfiguration > c)
 
virtual ~PriorityDiscipline ()
 
std::shared_ptr< ProcessselectNextTask (Queue *readyQueue, std::shared_ptr< Process > running, unsigned int)
 select the best task to run at this point. More...
 
virtual 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 = "fixedPriorityDiscipline"
 

Additional Inherited Members

- Public Types inherited from Scheduler::PriorityDiscipline
typedef bool(* ComparatorPointer) (std::shared_ptr< Process >, std::shared_ptr< Process >)
 
- Protected Member Functions inherited from Scheduler::PriorityDiscipline
virtual ComparatorPointer getComparator ()
 return a function pointer to a function that provides comparison of tasks' priorities More...
 
- Protected Attributes inherited from Scheduler::SchedulingDiscipline
std::shared_ptr< SchedulerConfigurationconf {nullptr}
 

Detailed Description

Definition at line 18 of file fixedPriorityDiscipline.h.

Constructor & Destructor Documentation

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

Definition at line 23 of file fixedPriorityDiscipline.h.

Scheduler::FixedPriorityDiscipline::~FixedPriorityDiscipline ( )
inline

Definition at line 24 of file fixedPriorityDiscipline.h.

Member Function Documentation

std::string FixedPriorityDiscipline::getName ( )
virtual

returns the name of that discipline

Implements Scheduler::PriorityDiscipline.

Definition at line 14 of file fixedPriorityDiscipline.cpp.

void FixedPriorityDiscipline::updatePriorities ( Queue readyQueue,
std::shared_ptr< Process running 
)
overridevirtual

sets the correct priorities to the tasks, especially if dynamic priorities are used.

Reimplemented from Scheduler::PriorityDiscipline.

Definition at line 19 of file fixedPriorityDiscipline.cpp.

Member Data Documentation

constexpr const char* Scheduler::FixedPriorityDiscipline::configKey = "fixedPriorityDiscipline"
static

Definition at line 21 of file fixedPriorityDiscipline.h.


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