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.

References myShapeContainer.

Referenced by operator=().

Here is the caller graph for this function:

Member Function Documentation

◆ operator=()

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

invalidated assignment operator

References MSDynamicShapeUpdater().

◆ 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(), and myShapeContainer.

Field Documentation

◆ myShapeContainer

ShapeContainer& MSDynamicShapeUpdater::myShapeContainer
private

Definition at line 38 of file MSDynamicShapeUpdater.h.

Referenced by MSDynamicShapeUpdater(), and vehicleStateChanged().


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