29 #ifndef GUM_FACTORY_SIMULATOR_H 30 #define GUM_FACTORY_SIMULATOR_H 32 #include <agrum/tools/multidim/instantiation.h> 34 #include <agrum/FMDP/fmdp.h> 36 #include <agrum/FMDP/simulation/abstractSimulator.h> 38 #include <agrum/tools/variables/discreteVariable.h> 129 return primeMap__.second(mainVar);
134 return FactoryVars__.beginSafe();
137 return FactoryVars__.endSafe();
151 return FactoryActions__.beginSafe();
void perform(Idx)
Choses a random state as the first test for a run.
FactorySimulationLandmark
const std::string & actionName(Idx actionId)
Iteration over the variables of the simulated probleme.
SequenceIteratorSafe< Idx > endActions()
Iteration over the variables of the simulated probleme.
SequenceIteratorSafe< const DiscreteVariable *> beginVariables()
Iteration over the variables of the simulated probleme.
Sequence< Idx > FactoryActions__
Actions.
INLINE void emplace(Args &&... args)
HashTable< Idx, std::string *> actionMap__
const DiscreteVariable * primeVar(const DiscreteVariable *mainVar)
Iteration over the variables of the simulated probleme.
Instantiation randomState_()
Choses a random state as the first test for a run.
FactorySimulationLandmarkX
~FactorySimulator()
Default destructor.
DiscreteVariable * fuelLevel__
DiscreteVariable * xPos__
FactorySimulationAction lastAction__
FactorySimulationLandmarkY
A class to simulate the Factory problem.
DiscreteVariable * yPos__
DiscreteVariable * passengerDest__
Sequence< const DiscreteVariable *> FactoryVars__
Variables data structures.
Bijection< const DiscreteVariable *, const DiscreteVariable *> primeMap__
FactorySimulator()
Default constructor.
SequenceIteratorSafe< const DiscreteVariable *> endVariables()
Iteration over the variables of the simulated probleme.
SequenceIteratorSafe< Idx > beginActions()
Iteration over the variables of the simulated probleme.
bool hasReachEnd()
Choses a random state as the first test for a run.
DiscreteVariable * passengerPos__
double reward()
Choses a random state as the first test for a run.