29 #ifndef GUM_TAXI_SIMULATOR_H 30 #define GUM_TAXI_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/labelizedVariable.h> 126 return _primeMap_.second(mainVar);
131 return _taxiVars_.beginSafe();
void perform(Idx)
Iteration over the variables of the simulated probleme.
LabelizedVariable * _passengerPos_
void _performGoSouth_()
Iteration over the variables of the simulated probleme.
void _performFillUp_()
Iteration over the variables of the simulated probleme.
void _performGoEast_()
Iteration over the variables of the simulated probleme.
LabelizedVariable * _yPos_
Instantiation randomState_()
Choses a random state as the first test for a run.
void _performGoNorth_()
Iteration over the variables of the simulated probleme.
bool _isAtDestination_(TaxiSimulationLandmark passDest, TaxiSimulationLandmarkX xCurPos, TaxiSimulationLandmarkY yCurPos)
SequenceIteratorSafe< const DiscreteVariable *> beginVariables()
Iteration over the variables of the simulated probleme.
const DiscreteVariable * primeVar(const DiscreteVariable *mainVar)
Iteration over the variables of the simulated probleme.
INLINE void emplace(Args &&... args)
TaxiSimulationAction _lastAction_
SequenceIteratorSafe< const DiscreteVariable *> endVariables()
Iteration over the variables of the simulated probleme.
LabelizedVariable * _xPos_
Sequence< const DiscreteVariable *> _taxiVars_
Variables data structures.
SequenceIteratorSafe< Idx > beginActions()
Iteration over the variables of the simulated probleme.
bool _isAtMeetPoint_(TaxiSimulationLandmark passpos, TaxiSimulationLandmarkX xCurPos, TaxiSimulationLandmarkY yCurPos)
void _performGoWest_()
Iteration over the variables of the simulated probleme.
bool hasReachEnd()
Choses a random state as the first test for a run.
void _performPickUp_()
Iteration over the variables of the simulated probleme.
double reward()
Sets the intial statefrom which we begun the simulation.
void _performPutDown_()
Iteration over the variables of the simulated probleme.
A class to simulate the Taxi problem.
~TaxiSimulator()
Default destructor.
LabelizedVariable * _passengerDest_
const std::string & actionName(Idx actionId)
Iteration over the variables of the simulated probleme.
Sequence< Idx > _taxiActions_
Actions.
Bijection< const DiscreteVariable *, const DiscreteVariable *> _primeMap_
HashTable< Idx, std::string *> _actionMap_
LabelizedVariable * _fuelLevel_
SequenceIteratorSafe< Idx > endActions()
Iteration over the variables of the simulated probleme.
TaxiSimulator()
Default constructor.