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

#include <rlDiscipline.h>

Inheritance diagram for RlScheduler::RlDiscipline:
Scheduler::SchedulingDiscipline

Public Member Functions

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

Static Public Attributes

static constexpr const char * configKey = "rlDiscipline"
 

Additional Inherited Members

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

Detailed Description

Definition at line 37 of file rlDiscipline.h.

Constructor & Destructor Documentation

RlDiscipline::RlDiscipline ( std::shared_ptr< Configuration conf)

Definition at line 37 of file rlDiscipline.cpp.

RlDiscipline::~RlDiscipline ( )

Definition at line 42 of file rlDiscipline.cpp.

Member Function Documentation

void RlDiscipline::end ( )
overridevirtual

Reimplemented from Scheduler::SchedulingDiscipline.

Definition at line 133 of file rlDiscipline.cpp.

std::string RlScheduler::RlDiscipline::getName ( )
inlinevirtual

returns the name of that discipline

Implements Scheduler::SchedulingDiscipline.

Definition at line 48 of file rlDiscipline.h.

bool RlDiscipline::preempts ( Scheduler::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 95 of file rlDiscipline.cpp.

std::shared_ptr< Scheduler::Process > RlDiscipline::selectNextTask ( Scheduler::Queue readyQueue,
std::shared_ptr< Scheduler::Process running,
unsigned int  deadlineMisses 
)
virtual

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 58 of file rlDiscipline.cpp.

Member Data Documentation

constexpr const char* RlScheduler::RlDiscipline::configKey = "rlDiscipline"
static

Definition at line 41 of file rlDiscipline.h.


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