A class to simulate the Factory problem.
More...
#include <agrum/FMDP/simulation/factorySimulator.h>
A class to simulate the Factory problem.
Definition at line 87 of file factorySimulator.h.
◆ FactorySimulator()
gum::FactorySimulator::FactorySimulator |
( |
| ) |
|
◆ ~FactorySimulator()
gum::FactorySimulator::~FactorySimulator |
( |
| ) |
|
◆ _fillUp_()
void gum::FactorySimulator::_fillUp_ |
( |
| ) |
|
|
private |
◆ _goEast_()
void gum::FactorySimulator::_goEast_ |
( |
| ) |
|
|
private |
◆ _goNorth_()
void gum::FactorySimulator::_goNorth_ |
( |
| ) |
|
|
private |
◆ _goSouth_()
void gum::FactorySimulator::_goSouth_ |
( |
| ) |
|
|
private |
◆ _goWest_()
void gum::FactorySimulator::_goWest_ |
( |
| ) |
|
|
private |
◆ _pickUp_()
void gum::FactorySimulator::_pickUp_ |
( |
| ) |
|
|
private |
◆ _putDown_()
void gum::FactorySimulator::_putDown_ |
( |
| ) |
|
|
private |
◆ actionName()
const std::string& gum::FactorySimulator::actionName |
( |
Idx |
actionId | ) |
|
|
inlinevirtual |
◆ beginActions()
Iteration over the variables of the simulated probleme.
Implements gum::AbstractSimulator.
Definition at line 150 of file factorySimulator.h.
Sequence< Idx > _FactoryActions_
Actions.
iterator_safe beginSafe() const
Returns a safe begin iterator.
◆ beginVariables()
Iteration over the variables of the simulated probleme.
Implements gum::AbstractSimulator.
Definition at line 133 of file factorySimulator.h.
Sequence< const DiscreteVariable *> _FactoryVars_
Variables data structures.
◆ currentState()
INLINE const Instantiation& gum::AbstractSimulator::currentState |
( |
| ) |
|
|
inlineinherited |
◆ endActions()
Iteration over the variables of the simulated probleme.
Implements gum::AbstractSimulator.
Definition at line 151 of file factorySimulator.h.
const iterator_safe & endSafe() const noexcept
Returns the safe end iterator.
Sequence< Idx > _FactoryActions_
Actions.
◆ endVariables()
Iteration over the variables of the simulated probleme.
Implements gum::AbstractSimulator.
Definition at line 136 of file factorySimulator.h.
Sequence< const DiscreteVariable *> _FactoryVars_
Variables data structures.
◆ hasReachEnd()
bool gum::FactorySimulator::hasReachEnd |
( |
| ) |
|
|
virtual |
◆ perform()
void gum::FactorySimulator::perform |
( |
Idx |
| ) |
|
|
virtual |
◆ primeVar()
Iteration over the variables of the simulated probleme.
Implements gum::AbstractSimulator.
Definition at line 128 of file factorySimulator.h.
Bijection< const DiscreteVariable *, const DiscreteVariable *> _primeMap_
◆ randomState_()
◆ reward()
double gum::FactorySimulator::reward |
( |
| ) |
|
|
virtual |
◆ setEndState()
INLINE void gum::AbstractSimulator::setEndState |
( |
const Instantiation & |
endState | ) |
|
|
inlineinherited |
◆ setInitialState()
INLINE void gum::AbstractSimulator::setInitialState |
( |
const Instantiation & |
initialState | ) |
|
|
inlineinherited |
◆ setInitialStateRandomly()
void gum::AbstractSimulator::setInitialStateRandomly |
( |
| ) |
|
|
inherited |
Sets the intial statefrom which we begun the simulation.
Definition at line 64 of file abstractSimulator.cpp.
References gum::Set< Key, Alloc >::emplace().
virtual bool hasReachEnd()
Tests if end state has been reached.
virtual Instantiation randomState_()
Choses a random state as the first test for a run.
Instantiation currentState_
Tha state in which the system currently is.
◆ _actionMap_
HashTable< Idx, std::string* > gum::FactorySimulator::_actionMap_ |
|
private |
◆ _FactoryActions_
Sequence< Idx > gum::FactorySimulator::_FactoryActions_ |
|
private |
◆ _FactoryVars_
◆ _fuelLevel_
◆ _lastAction_
◆ _passengerDest_
◆ _passengerPos_
◆ _primeMap_
◆ _xPos_
◆ _yPos_
◆ currentState_
◆ endState_
The documentation for this class was generated from the following file: