SUMO - Simulation of Urban MObility
MSDevice_Vehroutes::StateListener Class Reference

A class that is notified about reroutings. More...

Inheritance diagram for MSDevice_Vehroutes::StateListener:
Inheritance graph
Collaboration diagram for MSDevice_Vehroutes::StateListener:
Collaboration graph

Public Member Functions

void vehicleStateChanged (const SUMOVehicle *const vehicle, MSNet::VehicleState to)
 Called if a vehicle changes its state. More...
 
 ~StateListener ()
 Destructor. More...
 

Data Fields

std::map< const SUMOVehicle *, MSDevice_Vehroutes *, Named::NamedLikeComparatorIdLess< SUMOVehicle > > myDevices
 A map for internal notification. More...
 

Detailed Description

A class that is notified about reroutings.

Definition at line 182 of file MSDevice_Vehroutes.h.

Constructor & Destructor Documentation

MSDevice_Vehroutes::StateListener::~StateListener ( )
inline

Destructor.

Definition at line 185 of file MSDevice_Vehroutes.h.

References vehicleStateChanged().

Member Function Documentation

void MSDevice_Vehroutes::StateListener::vehicleStateChanged ( const SUMOVehicle *const  vehicle,
MSNet::VehicleState  to 
)
virtual

Called if a vehicle changes its state.

Parameters
[in]vehicleThe vehicle which changed its state
[in]toThe state the vehicle has changed to

Implements MSNet::VehicleStateListener.

Definition at line 105 of file MSDevice_Vehroutes.cpp.

References MSNet::VEHICLE_STATE_NEWROUTE.

Referenced by ~StateListener().

Field Documentation


The documentation for this class was generated from the following files: