![]() |
aGrUM
0.16.0
|
A class to simulate the Factory problem. More...
#include <agrum/FMDP/simulation/factorySimulator.h>
Public Attributes | |
Instantiation | _currentState |
Tha state in which the system currently is. More... | |
Instantiation | _endState |
Public Member Functions | |
Constructors, Destructors. | |
FactorySimulator () | |
Default constructor. More... | |
~FactorySimulator () | |
Default destructor. More... | |
Variables | |
const DiscreteVariable * | primeVar (const DiscreteVariable *mainVar) |
Iteration over the variables of the simulated probleme. More... | |
SequenceIteratorSafe< const DiscreteVariable *> | beginVariables () |
Iteration over the variables of the simulated probleme. More... | |
SequenceIteratorSafe< const DiscreteVariable *> | endVariables () |
Iteration over the variables of the simulated probleme. More... | |
Actions | |
const std::string & | actionName (Idx actionId) |
Iteration over the variables of the simulated probleme. More... | |
SequenceIteratorSafe< Idx > | beginActions () |
Iteration over the variables of the simulated probleme. More... | |
SequenceIteratorSafe< Idx > | endActions () |
Iteration over the variables of the simulated probleme. More... | |
INLINE void | setInitialState (const Instantiation &initialState) |
Sets the intial statefrom which we begun the simulation. More... | |
void | setInitialStateRandomly () |
Sets the intial statefrom which we begun the simulation. More... | |
INLINE void | setEndState (const Instantiation &endState) |
Sets the final states upon which a run is over. More... | |
INLINE const Instantiation & | currentState () |
Sets the intial statefrom which we begun the simulation. More... | |
bool | hasReachEnd () |
Choses a random state as the first test for a run. More... | |
double | reward () |
Choses a random state as the first test for a run. More... | |
void | perform (Idx) |
Choses a random state as the first test for a run. More... | |
Instantiation | _randomState () |
Choses a random state as the first test for a run. More... | |
A class to simulate the Factory problem.
Definition at line 83 of file factorySimulator.h.
gum::FactorySimulator::FactorySimulator | ( | ) |
Default constructor.
gum::FactorySimulator::~FactorySimulator | ( | ) |
Default destructor.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
protectedvirtual |
Choses a random state as the first test for a run.
Reimplemented from gum::AbstractSimulator.
|
inlinevirtual |
Iteration over the variables of the simulated probleme.
Implements gum::AbstractSimulator.
Definition at line 143 of file factorySimulator.h.
References __actionMap.
|
inlinevirtual |
Iteration over the variables of the simulated probleme.
Implements gum::AbstractSimulator.
Definition at line 146 of file factorySimulator.h.
References __FactoryActions, and gum::SequenceImplementation< Key, Alloc, Gen >::beginSafe().
|
inlinevirtual |
Iteration over the variables of the simulated probleme.
Implements gum::AbstractSimulator.
Definition at line 129 of file factorySimulator.h.
References __FactoryVars.
|
inlineinherited |
Sets the intial statefrom which we begun the simulation.
Definition at line 92 of file abstractSimulator.h.
References gum::AbstractSimulator::_currentState, gum::AbstractSimulator::actionName(), gum::AbstractSimulator::beginActions(), gum::AbstractSimulator::beginVariables(), gum::AbstractSimulator::endActions(), gum::AbstractSimulator::endVariables(), gum::AbstractSimulator::perform(), gum::AbstractSimulator::primeVar(), and gum::AbstractSimulator::reward().
|
inlinevirtual |
Iteration over the variables of the simulated probleme.
Implements gum::AbstractSimulator.
Definition at line 149 of file factorySimulator.h.
References __FactoryActions, __fillUp(), __goEast(), __goNorth(), __goSouth(), __goWest(), __pickUp(), __putDown(), and gum::SequenceImplementation< Key, Alloc, Gen >::endSafe().
|
inlinevirtual |
Iteration over the variables of the simulated probleme.
Implements gum::AbstractSimulator.
Definition at line 132 of file factorySimulator.h.
References __FactoryVars.
|
virtual |
Choses a random state as the first test for a run.
Reimplemented from gum::AbstractSimulator.
|
virtual |
Choses a random state as the first test for a run.
Implements gum::AbstractSimulator.
|
inlinevirtual |
Iteration over the variables of the simulated probleme.
Implements gum::AbstractSimulator.
Definition at line 124 of file factorySimulator.h.
References __primeMap.
|
virtual |
Choses a random state as the first test for a run.
Implements gum::AbstractSimulator.
|
inlineinherited |
Sets the final states upon which a run is over.
Definition at line 84 of file abstractSimulator.h.
References gum::AbstractSimulator::_endState, and gum::AbstractSimulator::hasReachEnd().
|
inlineinherited |
Sets the intial statefrom which we begun the simulation.
Definition at line 73 of file abstractSimulator.h.
References gum::AbstractSimulator::_currentState, gum::AbstractSimulator::_randomState(), and gum::AbstractSimulator::setInitialStateRandomly().
|
inherited |
Sets the intial statefrom which we begun the simulation.
Definition at line 58 of file abstractSimulator.cpp.
References gum::AbstractSimulator::_currentState, gum::AbstractSimulator::_randomState(), and gum::AbstractSimulator::hasReachEnd().
Referenced by gum::AbstractSimulator::setInitialState().
Definition at line 175 of file factorySimulator.h.
Referenced by actionName().
Actions.
Definition at line 174 of file factorySimulator.h.
Referenced by beginActions(), and endActions().
|
private |
Variables data structures.
Definition at line 165 of file factorySimulator.h.
Referenced by beginVariables(), and endVariables().
|
private |
Definition at line 171 of file factorySimulator.h.
|
private |
Definition at line 177 of file factorySimulator.h.
|
private |
Definition at line 170 of file factorySimulator.h.
|
private |
Definition at line 169 of file factorySimulator.h.
|
private |
Definition at line 166 of file factorySimulator.h.
Referenced by primeVar().
|
private |
Definition at line 167 of file factorySimulator.h.
|
private |
Definition at line 168 of file factorySimulator.h.
|
inherited |
Tha state in which the system currently is.
Definition at line 130 of file abstractSimulator.h.
Referenced by gum::TaxiSimulator::__evalReward(), gum::TaxiSimulator::__performFillUp(), gum::TaxiSimulator::__performGoEast(), gum::TaxiSimulator::__performGoNorth(), gum::TaxiSimulator::__performGoSouth(), gum::TaxiSimulator::__performGoWest(), gum::TaxiSimulator::__performPickUp(), gum::TaxiSimulator::__performPutDown(), gum::AbstractSimulator::currentState(), gum::AbstractSimulator::hasReachEnd(), gum::FMDPSimulator::perform(), gum::TaxiSimulator::perform(), gum::FMDPSimulator::reward(), gum::AbstractSimulator::setInitialState(), and gum::AbstractSimulator::setInitialStateRandomly().
|
inherited |
Definition at line 130 of file abstractSimulator.h.
Referenced by gum::AbstractSimulator::hasReachEnd(), and gum::AbstractSimulator::setEndState().