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 46 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 49 of file MSStoppingPlaceRerouter.h.
|
inline |
Constructor.
Definition at line 52 of file MSStoppingPlaceRerouter.h.
|
inlinevirtual |
Definition at line 55 of file MSStoppingPlaceRerouter.h.
|
inline |
Returns a reference to the begin iterator for the internal map.
Definition at line 111 of file MSStoppingPlaceRerouter.h.
References myMap.
|
inline |
Removes all data about evaluated StoppingPlace items.
Definition at line 72 of file MSStoppingPlaceRerouter.h.
References myMap.
|
inline |
Returns a reference to the end iterator for the internal map.
Definition at line 116 of file MSStoppingPlaceRerouter.h.
References myMap.
|
inline |
Store the time the StoppingPlace was confirmed to be blocked.
Definition at line 82 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 100 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 61 of file MSStoppingPlaceRerouter.h.
References myMap.
|
inline |
Definition at line 104 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 90 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 77 of file MSStoppingPlaceRerouter.h.
References myMap.
|
private |
The map from StoppingPlace to single evaluation.
Definition at line 122 of file MSStoppingPlaceRerouter.h.
Referenced by begin(), clear(), end(), rememberBlockedStoppingPlace(), rememberStoppingPlaceScore(), remove(), resetStoppingPlaceScores(), sawBlockedStoppingPlace(), and size().