Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
MSDevice_Vehroutes::StateListener Class Reference

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

Inheritance diagram for MSDevice_Vehroutes::StateListener:
[legend]
Collaboration diagram for MSDevice_Vehroutes::StateListener:
[legend]

Public Member Functions

void vehicleStateChanged (const SUMOVehicle *const vehicle, MSNet::VehicleState to, const std::string &info="")
 Called if a vehicle changes its state.
 ~StateListener ()
 Destructor.

Data Fields

std::map< const SUMOVehicle *, MSDevice_Vehroutes *, ComparatorNumericalIdLessmyDevices
 A map for internal notification.

Detailed Description

A class that is notified about reroutings.

Definition at line 227 of file MSDevice_Vehroutes.h.

Constructor & Destructor Documentation

◆ ~StateListener()

MSDevice_Vehroutes::StateListener::~StateListener ( )
inline

Destructor.

Definition at line 230 of file MSDevice_Vehroutes.h.

Member Function Documentation

◆ vehicleStateChanged()

void MSDevice_Vehroutes::StateListener::vehicleStateChanged ( const SUMOVehicle *const vehicle,
MSNet::VehicleState to,
const std::string & info = "" )
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 119 of file MSDevice_Vehroutes.cpp.

References myDevices, and MSNet::NEWROUTE.

Field Documentation

◆ myDevices

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 vehicleStateChanged().


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