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();
134 return taxiVars__.endSafe();
148 return taxiActions__.beginSafe();
void perform(Idx)
Iteration over the variables of the simulated probleme.
Instantiation randomState_()
Choses a random state as the first test for a run.
TaxiSimulationAction lastAction__
void performPutDown__()
Iteration over the variables of the simulated probleme.
Bijection< const DiscreteVariable *, const DiscreteVariable *> primeMap__
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)
LabelizedVariable * passengerDest__
SequenceIteratorSafe< const DiscreteVariable *> endVariables()
Iteration over the variables of the simulated probleme.
LabelizedVariable * yPos__
void performGoEast__()
Iteration over the variables of the simulated probleme.
bool isAtMeetPoint__(TaxiSimulationLandmark passpos, TaxiSimulationLandmarkX xCurPos, TaxiSimulationLandmarkY yCurPos)
SequenceIteratorSafe< Idx > beginActions()
Iteration over the variables of the simulated probleme.
bool hasReachEnd()
Choses a random state as the first test for a run.
double reward()
Sets the intial statefrom which we begun the simulation.
LabelizedVariable * fuelLevel__
void performGoWest__()
Iteration over the variables of the simulated probleme.
A class to simulate the Taxi problem.
void performFillUp__()
Iteration over the variables of the simulated probleme.
~TaxiSimulator()
Default destructor.
const std::string & actionName(Idx actionId)
Iteration over the variables of the simulated probleme.
void performPickUp__()
Iteration over the variables of the simulated probleme.
LabelizedVariable * xPos__
HashTable< Idx, std::string *> actionMap__
Sequence< Idx > taxiActions__
Actions.
SequenceIteratorSafe< Idx > endActions()
Iteration over the variables of the simulated probleme.
void performGoNorth__()
Iteration over the variables of the simulated probleme.
TaxiSimulator()
Default constructor.
Sequence< const DiscreteVariable *> taxiVars__
Variables data structures.
void performGoSouth__()
Iteration over the variables of the simulated probleme.
bool isAtDestination__(TaxiSimulationLandmark passDest, TaxiSimulationLandmarkX xCurPos, TaxiSimulationLandmarkY yCurPos)
LabelizedVariable * passengerPos__