Eclipse SUMO - Simulation of Urban MObility
|
#include <MSStoppingPlaceRerouter.h>
Public Types | |
typedef std::map< const MSStoppingPlace *, StoppingPlaceMemoryEntry, ComparatorIdLess > | StoppingPlaceMap |
Definition of the map containing all visited stopping places. | |
Public Member Functions | |
StoppingPlaceMap::const_iterator | begin () const |
Returns a reference to the begin iterator for the internal map. | |
void | clear () |
Removes all data about evaluated StoppingPlace items. | |
StoppingPlaceMap::const_iterator | end () const |
Returns a reference to the end iterator for the internal map. | |
void | rememberBlockedStoppingPlace (const MSStoppingPlace *stoppingPlace, bool local) |
Store the time the StoppingPlace was confirmed to be blocked. | |
void | rememberStoppingPlaceScore (const MSStoppingPlace *stoppingPlace, const std::string &score) |
score only needed when running with gui | |
bool | remove (MSStoppingPlace *id) |
Removes an item. | |
void | resetStoppingPlaceScores () |
SUMOTime | sawBlockedStoppingPlace (const MSStoppingPlace *stoppingPlace, bool local) const |
Get the time the StoppingPlace was confirmed to be blocked. | |
int | size () const |
Returns the number of stored items within the container. | |
StoppingPlaceMemory () | |
Constructor. | |
virtual | ~StoppingPlaceMemory () |
Private Attributes | |
StoppingPlaceMap | myMap |
The map from StoppingPlace to single evaluation. | |
Definition at line 47 of file MSStoppingPlaceRerouter.h.
typedef std::map<const MSStoppingPlace*, StoppingPlaceMemoryEntry, ComparatorIdLess> StoppingPlaceMemory::StoppingPlaceMap |
Definition of the map containing all visited stopping places.
Definition at line 50 of file MSStoppingPlaceRerouter.h.
|
inline |
Constructor.
Definition at line 53 of file MSStoppingPlaceRerouter.h.
|
inlinevirtual |
Definition at line 56 of file MSStoppingPlaceRerouter.h.
|
inline |
Returns a reference to the begin iterator for the internal map.
Definition at line 112 of file MSStoppingPlaceRerouter.h.
References myMap.
|
inline |
Removes all data about evaluated StoppingPlace items.
Definition at line 73 of file MSStoppingPlaceRerouter.h.
References myMap.
|
inline |
Returns a reference to the end iterator for the internal map.
Definition at line 117 of file MSStoppingPlaceRerouter.h.
References myMap.
|
inline |
Store the time the StoppingPlace was confirmed to be blocked.
Definition at line 83 of file MSStoppingPlaceRerouter.h.
References myMap, and SIMSTEP.
Referenced by MSBaseVehicle::rememberBlockedChargingStation(), and MSBaseVehicle::rememberBlockedParkingArea().
|
inline |
score only needed when running with gui
Definition at line 101 of file MSStoppingPlaceRerouter.h.
References myMap.
Referenced by MSBaseVehicle::rememberChargingStationScore(), and MSBaseVehicle::rememberParkingAreaScore().
|
inline |
Removes an item.
[in] | id | The id of the item to remove |
Definition at line 62 of file MSStoppingPlaceRerouter.h.
References myMap.
|
inline |
Definition at line 105 of file MSStoppingPlaceRerouter.h.
References myMap.
Referenced by MSBaseVehicle::resetChargingStationScores(), and MSBaseVehicle::resetParkingAreaScores().
|
inline |
Get the time the StoppingPlace was confirmed to be blocked.
Definition at line 91 of file MSStoppingPlaceRerouter.h.
References myMap.
Referenced by MSDevice_StationFinder::findChargingStation(), MSBaseVehicle::sawBlockedChargingStation(), and MSBaseVehicle::sawBlockedParkingArea().
|
inline |
Returns the number of stored items within the container.
Definition at line 78 of file MSStoppingPlaceRerouter.h.
References myMap.
|
private |
The map from StoppingPlace to single evaluation.
Definition at line 123 of file MSStoppingPlaceRerouter.h.
Referenced by begin(), clear(), end(), rememberBlockedStoppingPlace(), rememberStoppingPlaceScore(), remove(), resetStoppingPlaceScores(), sawBlockedStoppingPlace(), and size().