SUMO - Simulation of Urban MObility
|
Public Member Functions | |
void | vehicleStateChanged (const SUMOVehicle *const vehicle, MSNet::VehicleState to) |
Called if a vehicle changes its state. | |
~StateListener () | |
Destructor. | |
Data Fields | |
std::map< const SUMOVehicle *, MSDevice_Vehroutes * > | myDevices |
A map for internal notification. |
Definition at line 163 of file MSDevice_Vehroutes.h.
MSDevice_Vehroutes::StateListener::~StateListener | ( | ) | [inline] |
Destructor.
Definition at line 166 of file MSDevice_Vehroutes.h.
void MSDevice_Vehroutes::StateListener::vehicleStateChanged | ( | const SUMOVehicle *const | vehicle, |
MSNet::VehicleState | to | ||
) | [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 99 of file MSDevice_Vehroutes.cpp.
References myDevices, and MSNet::VEHICLE_STATE_NEWROUTE.
std::map<const SUMOVehicle*, MSDevice_Vehroutes*> MSDevice_Vehroutes::StateListener::myDevices |
A map for internal notification.
Definition at line 175 of file MSDevice_Vehroutes.h.
Referenced by MSDevice_Vehroutes::buildVehicleDevices(), MSDevice_Vehroutes::notifyEnter(), vehicleStateChanged(), and MSDevice_Vehroutes::~MSDevice_Vehroutes().