Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
MSDynamicShapeUpdater Class Reference

#include <MSDynamicShapeUpdater.h>

Inheritance diagram for MSDynamicShapeUpdater:
[legend]
Collaboration diagram for MSDynamicShapeUpdater:
[legend]

Public Member Functions

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

Private Member Functions

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

Private Attributes

ShapeContainermyShapeContainer
 

Detailed Description

Definition at line 29 of file MSDynamicShapeUpdater.h.

Constructor & Destructor Documentation

◆ MSDynamicShapeUpdater()

MSDynamicShapeUpdater::MSDynamicShapeUpdater ( ShapeContainer shapeContainer)
inline

Constructor.

Definition at line 32 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 MSNet::ARRIVED, MSNet::COLLISION, Named::getID(), myShapeContainer, and ShapeContainer::removeTrackers().

Field Documentation

◆ myShapeContainer

ShapeContainer& MSDynamicShapeUpdater::myShapeContainer
private

Definition at line 38 of file MSDynamicShapeUpdater.h.

Referenced by vehicleStateChanged().


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