Eclipse SUMO - Simulation of Urban MObility
libsumo::Helper::TransportableStateListener Class Reference
Inheritance diagram for libsumo::Helper::TransportableStateListener:
[legend]
Collaboration diagram for libsumo::Helper::TransportableStateListener:
[legend]

Public Member Functions

void transportableStateChanged (const MSTransportable *const transportable, MSNet::TransportableState to, const std::string &info="")
 Called if a transportable changes its state. More...
 

Data Fields

std::map< MSNet::TransportableState, std::vector< std::string > > myTransportableStateChanges
 Changes in the states of simulated transportables. More...
 

Detailed Description

Definition at line 254 of file Helper.h.

Member Function Documentation

◆ transportableStateChanged()

void libsumo::Helper::TransportableStateListener::transportableStateChanged ( const MSTransportable *const  transportable,
MSNet::TransportableState  to,
const std::string &  info = "" 
)
virtual

Called if a transportable changes its state.

Parameters
[in]transportableThe transportable which changed its state
[in]toThe state the transportable has changed to
[in]infoAdditional information on the state change

Implements MSNet::TransportableStateListener.

Definition at line 1950 of file Helper.cpp.

References Named::getID().

Field Documentation

◆ myTransportableStateChanges

std::map<MSNet::TransportableState, std::vector<std::string> > libsumo::Helper::TransportableStateListener::myTransportableStateChanges

Changes in the states of simulated transportables.

Definition at line 258 of file Helper.h.

Referenced by libsumo::Helper::clearStateChanges(), and libsumo::Helper::getTransportableStateChanges().


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