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

#include <actions.h>

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

Public Member Functions

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

Additional Inherited Members

- Protected Member Functions inherited from RlScheduler::Action
 Action ()
 
- Protected Member Functions inherited from Mdp::Action
template<typename T >
std::shared_ptr< T > getModel ()
 
- Protected Attributes inherited from RlScheduler::Action
int id
 
- Protected Attributes inherited from Mdp::Action
std::shared_ptr< DomainModeldomainModel {nullptr}
 

Detailed Description

Definition at line 49 of file actions.h.

Constructor & Destructor Documentation

SleepAction::SleepAction ( )

Definition at line 61 of file actions.cpp.

RlScheduler::SleepAction::SleepAction ( int  )

Member Function Documentation

std::string SleepAction::getName ( )
overridevirtual

Reimplemented from RlScheduler::Action.

Definition at line 70 of file actions.cpp.

std::shared_ptr< Scheduler::Process > SleepAction::getProcessToRun ( )
overridevirtual

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 from RlScheduler::Action.

Definition at line 76 of file actions.cpp.

void SleepAction::performAction ( )
overridevirtual

Reimplemented from RlScheduler::Action.

Definition at line 66 of file actions.cpp.


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