Scheduler
|
this models a dimension in the state space. More...
#include <stateSpaceDimension.h>
Public Member Functions | |
virtual | ~StateSpaceDimension () |
virtual std::string | getName ()=0 |
returns the name of that dimension More... | |
virtual statePosition_t | getPosition ()=0 |
gets the position of the state along that dimension More... | |
virtual size_t | getNumberOfPositions ()=0 |
returns the number of possible positions along that dimension More... | |
void | setIndex (int i) |
int | getIndex () |
Protected Member Functions | |
template<typename T > | |
std::shared_ptr< T > | getModel () |
Protected Attributes | |
int | index |
std::shared_ptr< DomainModel > | domainModel {nullptr} |
this models a dimension in the state space.
This abstract class has to be implemented into actual dimensions by the client of the MDP framework
Definition at line 29 of file stateSpaceDimension.h.
|
inlinevirtual |
Definition at line 34 of file stateSpaceDimension.h.
int StateSpaceDimension::getIndex | ( | ) |
Definition at line 20 of file stateSpaceDimension.cpp.
|
inlineprotected |
Definition at line 49 of file stateSpaceDimension.h.
|
pure virtual |
returns the name of that dimension
Implemented in MdpGov::MissRateDimension, Mdp::TestOnlyDimension, MdpGov::TemperatureDimension, MdpGov::FrequencyDimension, MdpGov::WaitQueueDimension, Dimension, MdpGov::ReadyQueueDimension, RlDim, RlScheduler::TaskDimension, RlScheduler::TimeDimension, Gridworld::StateSpaceDimension, and RlScheduler::TemperatureDimension.
|
pure virtual |
returns the number of possible positions along that dimension
Implemented in MdpGov::MissRateDimension, Mdp::TestOnlyDimension, MdpGov::TemperatureDimension, MdpGov::FrequencyDimension, MdpGov::WaitQueueDimension, Dimension, MdpGov::ReadyQueueDimension, RlScheduler::TaskDimension, RlDim, RlScheduler::TimeDimension, Gridworld::StateSpaceDimension, and RlScheduler::TemperatureDimension.
|
pure virtual |
gets the position of the state along that dimension
Implemented in MdpGov::MissRateDimension, Mdp::TestOnlyDimension, MdpGov::TemperatureDimension, MdpGov::FrequencyDimension, MdpGov::WaitQueueDimension, Dimension, MdpGov::ReadyQueueDimension, RlScheduler::TaskDimension, RlDim, RlScheduler::TimeDimension, Gridworld::StateSpaceDimension, and RlScheduler::TemperatureDimension.
void StateSpaceDimension::setIndex | ( | int | i | ) |
Definition at line 15 of file stateSpaceDimension.cpp.
|
protected |
Definition at line 57 of file stateSpaceDimension.h.
|
protected |
Definition at line 56 of file stateSpaceDimension.h.