![]() |
aGrUM
0.20.3
a C++ library for (probabilistic) graphical models
|
A class to simulate the Taxi problem. More...
#include <agrum/FMDP/simulation/taxiSimulator.h>
Public Attributes | |
Instantiation | currentState_ |
Tha state in which the system currently is. More... | |
Instantiation | endState_ |
Public Member Functions | |
Constructors, Destructors. | |
TaxiSimulator () | |
Default constructor. More... | |
~TaxiSimulator () | |
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... | |
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... | |
States | |
bool | hasReachEnd () |
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... | |
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... | |
void | perform (Idx) |
Iteration over the variables of the simulated probleme. More... | |
void | _performGoNorth_ () |
Iteration over the variables of the simulated probleme. More... | |
void | _performGoEast_ () |
Iteration over the variables of the simulated probleme. More... | |
void | _performGoSouth_ () |
Iteration over the variables of the simulated probleme. More... | |
void | _performGoWest_ () |
Iteration over the variables of the simulated probleme. More... | |
void | _performPickUp_ () |
Iteration over the variables of the simulated probleme. More... | |
void | _performPutDown_ () |
Iteration over the variables of the simulated probleme. More... | |
void | _performFillUp_ () |
Iteration over the variables of the simulated probleme. More... | |
Rewards | |
double | reward () |
Sets the intial statefrom which we begun the simulation. More... | |
void | _evalReward_ () |
bool | _isAtDestination_ (TaxiSimulationLandmark passDest, TaxiSimulationLandmarkX xCurPos, TaxiSimulationLandmarkY yCurPos) |
bool | _isAtMeetPoint_ (TaxiSimulationLandmark passpos, TaxiSimulationLandmarkX xCurPos, TaxiSimulationLandmarkY yCurPos) |
A class to simulate the Taxi problem.
Definition at line 87 of file taxiSimulator.h.
gum::TaxiSimulator::TaxiSimulator | ( | ) |
Default constructor.
Definition at line 39 of file taxiSimulator.cpp.
References gum::Set< Key, Alloc >::emplace().
gum::TaxiSimulator::~TaxiSimulator | ( | ) |
Default destructor.
Definition at line 108 of file taxiSimulator.cpp.
References gum::Set< Key, Alloc >::emplace().
|
private |
Definition at line 334 of file taxiSimulator.cpp.
References gum::Set< Key, Alloc >::emplace().
|
private |
Definition at line 377 of file taxiSimulator.cpp.
References gum::Set< Key, Alloc >::emplace().
|
private |
Definition at line 403 of file taxiSimulator.cpp.
References gum::Set< Key, Alloc >::emplace().
|
private |
Iteration over the variables of the simulated probleme.
Definition at line 321 of file taxiSimulator.cpp.
References gum::Set< Key, Alloc >::emplace().
|
private |
Iteration over the variables of the simulated probleme.
Definition at line 207 of file taxiSimulator.cpp.
References gum::Set< Key, Alloc >::emplace().
|
private |
Iteration over the variables of the simulated probleme.
Definition at line 198 of file taxiSimulator.cpp.
References gum::Set< Key, Alloc >::emplace().
|
private |
Iteration over the variables of the simulated probleme.
Definition at line 224 of file taxiSimulator.cpp.
References gum::Set< Key, Alloc >::emplace().
|
private |
Iteration over the variables of the simulated probleme.
Definition at line 233 of file taxiSimulator.cpp.
References gum::Set< Key, Alloc >::emplace().
|
private |
Iteration over the variables of the simulated probleme.
Definition at line 250 of file taxiSimulator.cpp.
References gum::Set< Key, Alloc >::emplace().
|
private |
Iteration over the variables of the simulated probleme.
Definition at line 283 of file taxiSimulator.cpp.
References gum::Set< Key, Alloc >::emplace().
|
inlinevirtual |
Iteration over the variables of the simulated probleme.
Implements gum::AbstractSimulator.
Definition at line 142 of file taxiSimulator.h.
|
inlinevirtual |
Iteration over the variables of the simulated probleme.
Implements gum::AbstractSimulator.
Definition at line 145 of file taxiSimulator.h.
|
inlinevirtual |
Iteration over the variables of the simulated probleme.
Implements gum::AbstractSimulator.
Definition at line 130 of file taxiSimulator.h.
|
inlineinherited |
Sets the intial statefrom which we begun the simulation.
Definition at line 87 of file abstractSimulator.h.
References gum::AbstractSimulator::reward().
|
inlinevirtual |
Iteration over the variables of the simulated probleme.
Implements gum::AbstractSimulator.
Definition at line 146 of file taxiSimulator.h.
|
inlinevirtual |
Iteration over the variables of the simulated probleme.
Implements gum::AbstractSimulator.
Definition at line 133 of file taxiSimulator.h.
|
virtual |
Choses a random state as the first test for a run.
Reimplemented from gum::AbstractSimulator.
Definition at line 148 of file taxiSimulator.cpp.
|
virtual |
Iteration over the variables of the simulated probleme.
Implements gum::AbstractSimulator.
Definition at line 168 of file taxiSimulator.cpp.
References gum::Set< Key, Alloc >::emplace().
|
inlinevirtual |
Iteration over the variables of the simulated probleme.
Implements gum::AbstractSimulator.
Definition at line 125 of file taxiSimulator.h.
|
protectedvirtual |
Choses a random state as the first test for a run.
Reimplemented from gum::AbstractSimulator.
Definition at line 124 of file taxiSimulator.cpp.
References gum::Set< Key, Alloc >::emplace().
|
virtual |
Sets the intial statefrom which we begun the simulation.
Implements gum::AbstractSimulator.
Definition at line 163 of file taxiSimulator.cpp.
References gum::Set< Key, Alloc >::emplace().
|
inlineinherited |
Sets the final states upon which a run is over.
Definition at line 81 of file abstractSimulator.h.
References gum::AbstractSimulator::reward().
|
inlineinherited |
Sets the intial statefrom which we begun the simulation.
Definition at line 72 of file abstractSimulator.h.
References gum::AbstractSimulator::reward().
|
inherited |
Sets the intial statefrom which we begun the simulation.
Definition at line 64 of file abstractSimulator.cpp.
References gum::Set< Key, Alloc >::emplace().
Definition at line 191 of file taxiSimulator.h.
|
private |
Definition at line 187 of file taxiSimulator.h.
|
private |
Definition at line 193 of file taxiSimulator.h.
|
private |
Definition at line 186 of file taxiSimulator.h.
|
private |
Definition at line 185 of file taxiSimulator.h.
|
private |
Definition at line 182 of file taxiSimulator.h.
|
private |
Reward.
Definition at line 196 of file taxiSimulator.h.
Actions.
Definition at line 190 of file taxiSimulator.h.
|
private |
Variables data structures.
Definition at line 181 of file taxiSimulator.h.
|
private |
Definition at line 183 of file taxiSimulator.h.
|
private |
Definition at line 184 of file taxiSimulator.h.
|
inherited |
Tha state in which the system currently is.
Definition at line 125 of file abstractSimulator.h.
|
inherited |
Definition at line 125 of file abstractSimulator.h.