|
Scheduler
|
#include <stateSpace.h>
Public Member Functions | |
| StateSpace (const StateSpace &)=delete | |
| StateSpace & | operator= (const StateSpace &)=delete |
| ~StateSpace () | |
| virtual size_t | size () |
| virtual state_t | getState () |
| virtual void | updateCurrentState () |
| virtual double | getReward () |
| virtual size_t | getNbOfDimensions () |
| virtual std::vector< size_t > * | factorize (state_t state) |
| virtual std::vector< size_t > | getDimensionSizes () |
Protected Member Functions | |
| StateSpace () | |
| void | updateInternalState () |
| int | getPriorityStateInternal () |
| StateSpace (size_t nbOfStates, size_t nbOfPriorityStates, std::vector< StateSpaceDimension * > dimensions, std::vector< PriorityState * > priorityStates) | |
| state_t | convertState (StateInternal) |
Protected Attributes | |
| size_t | nbOfStates {0} |
| size_t | nbOfPriorityStates {0} |
| std::vector< StateSpaceDimension * > | dimensions |
| std::vector< PriorityState * > | priorityStates |
| StateInternal | currentState |
| std::shared_ptr< DomainModel > | domainModel {nullptr} |
| state_t | currentExternalState {0} |
| StateInternal | internalState |
Friends | |
| class | StateSpaceBuilder |
Definition at line 29 of file stateSpace.h.
|
delete |
| StateSpace::~StateSpace | ( | ) |
Definition at line 34 of file stateSpace.cpp.
|
inlineprotected |
Definition at line 57 of file stateSpace.h.
|
protected |
Definition at line 25 of file stateSpace.cpp.
|
protected |
Definition at line 132 of file stateSpace.cpp.
|
virtual |
Returns the state as a factorized vector: one element for each dimension
Definition at line 81 of file stateSpace.cpp.
|
virtual |
Returns for each state dimension, the number of positions
Definition at line 120 of file stateSpace.cpp.
|
virtual |
Returns the number of dimensions in the state space
Definition at line 75 of file stateSpace.cpp.
|
protected |
Definition at line 150 of file stateSpace.cpp.
|
virtual |
Return the immediate reward corresponding to the current state
Reimplemented in CustomStateSpace, and CustomStateSpace.
Definition at line 166 of file stateSpace.cpp.
|
virtual |
Reimplemented in CustomStateSpace, and CustomStateSpace.
Definition at line 54 of file stateSpace.cpp.
|
delete |
|
virtual |
Reimplemented in CustomStateSpace, and CustomStateSpace.
Definition at line 160 of file stateSpace.cpp.
|
virtual |
The only reason why getState and updateCurrentState are two different functions is for performance
Reimplemented in CustomStateSpace, and CustomStateSpace.
Definition at line 59 of file stateSpace.cpp.
|
protected |
This returns the state in the part of the state space that has dimensions. If the current state is actually a priority state, this value is not the real current state.
Definition at line 42 of file stateSpace.cpp.
|
friend |
Definition at line 31 of file stateSpace.h.
|
protected |
Definition at line 76 of file stateSpace.h.
|
protected |
Definition at line 74 of file stateSpace.h.
|
protected |
Definition at line 72 of file stateSpace.h.
|
protected |
Definition at line 75 of file stateSpace.h.
|
protected |
Definition at line 78 of file stateSpace.h.
|
protected |
Definition at line 71 of file stateSpace.h.
|
protected |
Definition at line 70 of file stateSpace.h.
|
protected |
Definition at line 73 of file stateSpace.h.
1.8.11