49#ifndef GUM_TAXI_SIMULATOR_H
50#define GUM_TAXI_SIMULATOR_H
Class for simulating a discrete time stochastic process.
AbstractSimulator()
Default constructor.
Set of pairs of elements with fast search for both elements.
Base class for discrete random variable.
The class for generic Hash Tables.
Class for assigning/browsing values to tuples of discrete variables.
Safe iterators for Sequence.
The generic class for storing (ordered) sequences of objects.
const std::string & actionName(Idx actionId) override
Iteration over the variables of the simulated probleme.
Sequence< Idx > _taxiActions_
Actions.
bool _isAtDestination_(TaxiSimulationLandmark passDest, TaxiSimulationLandmarkX xCurPos, TaxiSimulationLandmarkY yCurPos)
LabelizedVariable * _yPos_
Bijection< const DiscreteVariable *, const DiscreteVariable * > _primeMap_
LabelizedVariable * _xPos_
TaxiSimulator()
Default constructor.
double reward() override
Sets the intial statefrom which we begun the simulation.
void perform(Idx) override
Sets the intial statefrom which we begun the simulation.
bool hasReachEnd() override
Choses a random state as the first test for a run.
Sequence< const DiscreteVariable * > _taxiVars_
Variables data structures.
const DiscreteVariable * primeVar(const DiscreteVariable *mainVar) override
Iteration over the variables of the simulated probleme.
TaxiSimulationAction _lastAction_
SequenceIteratorSafe< Idx > beginActions() override
Iteration over the variables of the simulated probleme.
LabelizedVariable * _passengerDest_
LabelizedVariable * _passengerPos_
~TaxiSimulator() override
Default destructor.
SequenceIteratorSafe< const DiscreteVariable * > beginVariables() override
Iteration over the variables of the simulated probleme.
SequenceIteratorSafe< const DiscreteVariable * > endVariables() override
Iteration over the variables of the simulated probleme.
LabelizedVariable * _fuelLevel_
HashTable< Idx, std::string * > _actionMap_
Instantiation randomState_() override
Choses a random state as the first test for a run.
SequenceIteratorSafe< Idx > endActions() override
Iteration over the variables of the simulated probleme.
bool _isAtMeetPoint_(TaxiSimulationLandmark passpos, TaxiSimulationLandmarkX xCurPos, TaxiSimulationLandmarkY yCurPos)
Size Idx
Type for indexes.
Base class for labelized discrete random variables.
gum is the global namespace for all aGrUM entities