Eclipse SUMO - Simulation of Urban MObility
|
A class that is notified about reroutings. More...
Public Member Functions | |
void | vehicleStateChanged (const SUMOVehicle *const vehicle, MSNet::VehicleState to, const std::string &info="") |
Called if a vehicle changes its state. More... | |
~StateListener () | |
Destructor. More... | |
Data Fields | |
std::map< const SUMOVehicle *, MSDevice_Vehroutes *, ComparatorNumericalIdLess > | myDevices |
A map for internal notification. More... | |
A class that is notified about reroutings.
Definition at line 227 of file MSDevice_Vehroutes.h.
|
inline |
Destructor.
Definition at line 230 of file MSDevice_Vehroutes.h.
|
virtual |
Called if a vehicle changes its state.
[in] | vehicle | The vehicle which changed its state |
[in] | to | The state the vehicle has changed to |
Implements MSNet::VehicleStateListener.
Definition at line 119 of file MSDevice_Vehroutes.cpp.
References myDevices, and MSNet::NEWROUTE.
std::map<const SUMOVehicle*, MSDevice_Vehroutes*, ComparatorNumericalIdLess> MSDevice_Vehroutes::StateListener::myDevices |
A map for internal notification.
Definition at line 239 of file MSDevice_Vehroutes.h.
Referenced by MSDevice_Vehroutes::buildVehicleDevices(), MSDevice_Vehroutes::notifyEnter(), vehicleStateChanged(), MSDevice_Vehroutes::writePendingOutput(), and MSDevice_Vehroutes::~MSDevice_Vehroutes().