Eclipse SUMO - Simulation of Urban MObility
MSNet::VehicleStateListener Class Referenceabstract

Interface for objects listening to vehicle state changes. More...

#include <MSNet.h>

Inheritance diagram for MSNet::VehicleStateListener:
[legend]

Public Member Functions

virtual void vehicleStateChanged (const SUMOVehicle *const vehicle, VehicleState to, const std::string &info="")=0
 Called if a vehicle changes its state. More...
 
 VehicleStateListener ()
 Constructor. More...
 
virtual ~VehicleStateListener ()
 Destructor. More...
 

Detailed Description

Interface for objects listening to vehicle state changes.

Definition at line 635 of file MSNet.h.

Constructor & Destructor Documentation

◆ VehicleStateListener()

MSNet::VehicleStateListener::VehicleStateListener ( )
inline

Constructor.

Definition at line 638 of file MSNet.h.

◆ ~VehicleStateListener()

virtual MSNet::VehicleStateListener::~VehicleStateListener ( )
inlinevirtual

Destructor.

Definition at line 641 of file MSNet.h.

Member Function Documentation

◆ vehicleStateChanged()

virtual void MSNet::VehicleStateListener::vehicleStateChanged ( const SUMOVehicle *const  vehicle,
VehicleState  to,
const std::string &  info = "" 
)
pure virtual

Called if a vehicle changes its state.

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

Implemented in MSDynamicShapeUpdater, TraCIServer, MSRailSignalControl, MSVehicle::Influencer::GapControlVehStateListener, MSDevice_Vehroutes::StateListener, and libsumo::Helper::VehicleStateListener.


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