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 |
( |
| ) |
|
◆ 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 153 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.
◆ 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 |
◆ hasReachEnd()
bool gum::FactorySimulator::hasReachEnd |
( |
| ) |
|
|
virtual |
◆ perform()
void gum::FactorySimulator::perform |
( |
Idx |
| ) |
|
|
virtual |
◆ pickUp__()
void gum::FactorySimulator::pickUp__ |
( |
| ) |
|
|
private |
◆ 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__
◆ putDown__()
void gum::FactorySimulator::putDown__ |
( |
| ) |
|
|
private |
◆ 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 58 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 |
◆ currentState_
◆ endState_
◆ FactoryActions__
Sequence< Idx > gum::FactorySimulator::FactoryActions__ |
|
private |
◆ FactoryVars__
◆ fuelLevel__
◆ lastAction__
◆ passengerDest__
◆ passengerPos__
◆ primeMap__
◆ xPos__
◆ yPos__
The documentation for this class was generated from the following file: