Eclipse SUMO - Simulation of Urban MObility
MSDynamicShapeUpdater Class Reference

#include <MSDynamicShapeUpdater.h>

Inheritance diagram for MSDynamicShapeUpdater:
Collaboration diagram for MSDynamicShapeUpdater:

Public Member Functions

 MSDynamicShapeUpdater (ShapeContainer &shapeContainer)
 Constructor. More...
 
void vehicleStateChanged (const SUMOVehicle *const vehicle, MSNet::VehicleState to, const std::string &info="") override
 Constructor. More...
 

Private Member Functions

MSDynamicShapeUpdateroperator= (const MSDynamicShapeUpdater &s)=delete
 invalidated assignment operator More...
 

Private Attributes

ShapeContainermyShapeContainer
 

Detailed Description

Definition at line 25 of file MSDynamicShapeUpdater.h.

Constructor & Destructor Documentation

◆ MSDynamicShapeUpdater()

MSDynamicShapeUpdater::MSDynamicShapeUpdater ( ShapeContainer shapeContainer)
inline

Constructor.

Definition at line 28 of file MSDynamicShapeUpdater.h.

Member Function Documentation

◆ operator=()

MSDynamicShapeUpdater& MSDynamicShapeUpdater::operator= ( const MSDynamicShapeUpdater s)
privatedelete

invalidated assignment operator

◆ vehicleStateChanged()

void MSDynamicShapeUpdater::vehicleStateChanged ( const SUMOVehicle *const  vehicle,
MSNet::VehicleState  to,
const std::string &  info = "" 
)
overridevirtual

Constructor.

Definition of a vehicle state

The vehicle arrived at his destination (is deleted)

The vehicle is involved in a collision

Implements MSNet::VehicleStateListener.

Definition at line 26 of file MSDynamicShapeUpdater.cpp.

References SUMOTrafficObject::getID(), myShapeContainer, ShapeContainer::removeTrackers(), MSNet::VEHICLE_STATE_ARRIVED, and MSNet::VEHICLE_STATE_COLLISION.

Field Documentation

◆ myShapeContainer

ShapeContainer& MSDynamicShapeUpdater::myShapeContainer
private

Definition at line 34 of file MSDynamicShapeUpdater.h.

Referenced by vehicleStateChanged().


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