Scheduler
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
RlScheduler::Action Class Reference

#include <actions.h>

Inheritance diagram for RlScheduler::Action:
Mdp::Action RlScheduler::SleepAction

Public Member Functions

 Action (int processId)
 
void performAction () override
 
std::string getName () override
 
virtual std::shared_ptr< Scheduler::ProcessgetProcessToRun ()
 returns the process to run according to the RL algorithm More...
 
- Public Member Functions inherited from Mdp::Action
virtual ~Action ()
 

Protected Member Functions

 Action ()
 
- Protected Member Functions inherited from Mdp::Action
template<typename T >
std::shared_ptr< T > getModel ()
 

Protected Attributes

int id
 
- Protected Attributes inherited from Mdp::Action
std::shared_ptr< DomainModeldomainModel {nullptr}
 

Detailed Description

Definition at line 27 of file actions.h.

Constructor & Destructor Documentation

Action::Action ( int  processId)
Parameters
processIdis the ID of the process to be run when this action is selected

Definition at line 22 of file actions.cpp.

RlScheduler::Action::Action ( )
inlineprotected

Definition at line 44 of file actions.h.

Member Function Documentation

std::string Action::getName ( )
overridevirtual

Implements Mdp::Action.

Reimplemented in RlScheduler::SleepAction.

Definition at line 48 of file actions.cpp.

std::shared_ptr< Scheduler::Process > Action::getProcessToRun ( )
virtual

returns the process to run according to the RL algorithm

Returns
returns null if the process is not available in the ready queue, and also not running. In case several jobs of the same task are runnable, and if one of them is currently running, the job currently running is given priority. Otherwise, no guarantee iis made about which of the jobs is selected.

Reimplemented in RlScheduler::SleepAction.

Definition at line 32 of file actions.cpp.

void Action::performAction ( )
overridevirtual

Implements Mdp::Action.

Reimplemented in RlScheduler::SleepAction.

Definition at line 27 of file actions.cpp.

Member Data Documentation

int RlScheduler::Action::id
protected

Definition at line 44 of file actions.h.


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