![]() |
aGrUM
0.20.2
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 112 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 144 of file taxiSimulator.h.
|
inlinevirtual |
Iteration over the variables of the simulated probleme.
Implements gum::AbstractSimulator.
Definition at line 147 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 91 of file abstractSimulator.h.
References gum::AbstractSimulator::reward().
|
inlinevirtual |
Iteration over the variables of the simulated probleme.
Implements gum::AbstractSimulator.
Definition at line 150 of file taxiSimulator.h.
|
inlinevirtual |
Iteration over the variables of the simulated probleme.
Implements gum::AbstractSimulator.
Definition at line 133 of file taxiSimulator.h.
|
private |
Definition at line 347 of file taxiSimulator.cpp.
References gum::Set< Key, Alloc >::emplace().
|
virtual |
Choses a random state as the first test for a run.
Reimplemented from gum::AbstractSimulator.
Definition at line 153 of file taxiSimulator.cpp.
|
private |
Definition at line 390 of file taxiSimulator.cpp.
References gum::Set< Key, Alloc >::emplace().
|
private |
Definition at line 416 of file taxiSimulator.cpp.
References gum::Set< Key, Alloc >::emplace().
|
virtual |
Iteration over the variables of the simulated probleme.
Implements gum::AbstractSimulator.
Definition at line 173 of file taxiSimulator.cpp.
References gum::Set< Key, Alloc >::emplace().
|
private |
Iteration over the variables of the simulated probleme.
Definition at line 333 of file taxiSimulator.cpp.
References gum::Set< Key, Alloc >::emplace().
|
private |
Iteration over the variables of the simulated probleme.
Definition at line 212 of file taxiSimulator.cpp.
References gum::Set< Key, Alloc >::emplace().
|
private |
Iteration over the variables of the simulated probleme.
Definition at line 203 of file taxiSimulator.cpp.
References gum::Set< Key, Alloc >::emplace().
|
private |
Iteration over the variables of the simulated probleme.
Definition at line 229 of file taxiSimulator.cpp.
References gum::Set< Key, Alloc >::emplace().
|
private |
Iteration over the variables of the simulated probleme.
Definition at line 238 of file taxiSimulator.cpp.
References gum::Set< Key, Alloc >::emplace().
|
private |
Iteration over the variables of the simulated probleme.
Definition at line 255 of file taxiSimulator.cpp.
References gum::Set< Key, Alloc >::emplace().
|
private |
Iteration over the variables of the simulated probleme.
Definition at line 292 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 129 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 168 of file taxiSimulator.cpp.
References gum::Set< Key, Alloc >::emplace().
|
inlineinherited |
Sets the final states upon which a run is over.
Definition at line 83 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 58 of file abstractSimulator.cpp.
References gum::Set< Key, Alloc >::emplace().
Definition at line 195 of file taxiSimulator.h.
|
inherited |
Tha state in which the system currently is.
Definition at line 129 of file abstractSimulator.h.
|
inherited |
Definition at line 129 of file abstractSimulator.h.
|
private |
Definition at line 191 of file taxiSimulator.h.
|
private |
Definition at line 197 of file taxiSimulator.h.
|
private |
Definition at line 190 of file taxiSimulator.h.
|
private |
Definition at line 189 of file taxiSimulator.h.
|
private |
Definition at line 186 of file taxiSimulator.h.
|
private |
Reward.
Definition at line 200 of file taxiSimulator.h.
Actions.
Definition at line 194 of file taxiSimulator.h.
|
private |
Variables data structures.
Definition at line 185 of file taxiSimulator.h.
|
private |
Definition at line 187 of file taxiSimulator.h.
|
private |
Definition at line 188 of file taxiSimulator.h.