Eclipse SUMO - Simulation of Urban MObility
MSVehicle::Influencer::GapControlVehStateListener Class Reference

A static instance of this class in GapControlState deactivates gap control for vehicles whose reference vehicle is removed from the road network. More...

Inheritance diagram for MSVehicle::Influencer::GapControlVehStateListener:
[legend]
Collaboration diagram for MSVehicle::Influencer::GapControlVehStateListener:
[legend]

Private Member Functions

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

Detailed Description

A static instance of this class in GapControlState deactivates gap control for vehicles whose reference vehicle is removed from the road network.

Definition at line 1361 of file MSVehicle.h.

Member Function Documentation

◆ vehicleStateChanged()

void MSVehicle::Influencer::GapControlVehStateListener::vehicleStateChanged ( const SUMOVehicle *const  vehicle,
MSNet::VehicleState  to,
const std::string &  info = "" 
)
privatevirtual

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
Note
This deactivates the corresponding gap control when a reference vehicle is removed.

Implements MSNet::VehicleStateListener.

Definition at line 264 of file MSVehicle.cpp.

References MSNet::ARRIVED, MSNet::STARTING_PARKING, and MSNet::STARTING_TELEPORT.


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