Eclipse SUMO - Simulation of Urban MObility
MSVehicle::Stop Class Reference

Definition of vehicle stop (position and duration) More...

#include <MSVehicle.h>

Collaboration diagram for MSVehicle::Stop:

Public Member Functions

std::string getDescription () const
 get a short description for showing in the gui More...
 
double getEndPos (const SUMOVehicle &veh) const
 return halting position for upcoming stop; More...
 
 Stop (const SUMOVehicleParameter::Stop &par)
 
void write (OutputDevice &dev) const
 Write the current stop configuration (used for state saving) More...
 

Data Fields

MSStoppingPlacebusstop = nullptr
 (Optional) bus stop if one is assigned to the stop More...
 
MSStoppingPlacechargingStation = nullptr
 (Optional) charging station if one is assigned to the stop More...
 
bool collision = false
 Whether this stop was triggered by a collision. More...
 
MSStoppingPlacecontainerstop = nullptr
 (Optional) container stop if one is assigned to the stop More...
 
bool containerTriggered = false
 whether an arriving container lets the vehicle continue More...
 
SUMOTime duration = -1
 The stopping duration. More...
 
MSRouteIterator edge
 The edge in the route to stop at. More...
 
SUMOTime endBoarding = SUMOTime_MAX
 the maximum time at which persons may board this vehicle More...
 
const MSLanelane = nullptr
 The lane to stop at. More...
 
int numExpectedContainer = 0
 The number of still expected containers. More...
 
int numExpectedPerson = 0
 The number of still expected persons. More...
 
MSParkingAreaparkingarea = nullptr
 (Optional) parkingArea if one is assigned to the stop More...
 
const SUMOVehicleParameter::Stop pars
 The stop parameter. More...
 
bool reached = false
 Information whether the stop has been reached. More...
 
SUMOTime timeToBoardNextPerson = 0
 The time at which the vehicle is able to board another person. More...
 
SUMOTime timeToLoadNextContainer = 0
 The time at which the vehicle is able to load another container. More...
 
bool triggered = false
 whether an arriving person lets the vehicle continue More...
 

Private Member Functions

Stopoperator= (const Stop &src)
 Invalidated assignment operator. More...
 

Detailed Description

Definition of vehicle stop (position and duration)

Definition at line 920 of file MSVehicle.h.

Constructor & Destructor Documentation

◆ Stop()

MSVehicle::Stop::Stop ( const SUMOVehicleParameter::Stop par)
inline

Definition at line 922 of file MSVehicle.h.

Member Function Documentation

◆ getDescription()

std::string MSVehicle::Stop::getDescription ( ) const

get a short description for showing in the gui

Definition at line 929 of file MSVehicle.cpp.

References toString().

◆ getEndPos()

double MSVehicle::Stop::getEndPos ( const SUMOVehicle veh) const

return halting position for upcoming stop;

Definition at line 914 of file MSVehicle.cpp.

Referenced by MSVehicle::getStopEdges(), MSLane::insertVehicle(), MSVehicle::planMoveInternal(), and MSVehicle::processNextStop().

◆ operator=()

Stop& MSVehicle::Stop::operator= ( const Stop src)
private

Invalidated assignment operator.

◆ write()

Field Documentation

◆ busstop

MSStoppingPlace* MSVehicle::Stop::busstop = nullptr

(Optional) bus stop if one is assigned to the stop

Definition at line 928 of file MSVehicle.h.

Referenced by MSVehicle::addStop(), libsumo::Vehicle::getStopState(), and MSVehicle::processNextStop().

◆ chargingStation

MSStoppingPlace* MSVehicle::Stop::chargingStation = nullptr

(Optional) charging station if one is assigned to the stop

Definition at line 934 of file MSVehicle.h.

Referenced by MSVehicle::addStop(), and libsumo::Vehicle::getStopState().

◆ collision

bool MSVehicle::Stop::collision = false

Whether this stop was triggered by a collision.

Definition at line 954 of file MSVehicle.h.

Referenced by MSVehicle::addStop().

◆ containerstop

MSStoppingPlace* MSVehicle::Stop::containerstop = nullptr

(Optional) container stop if one is assigned to the stop

Definition at line 930 of file MSVehicle.h.

Referenced by MSVehicle::addStop(), libsumo::Vehicle::getStopState(), and MSVehicle::processNextStop().

◆ containerTriggered

bool MSVehicle::Stop::containerTriggered = false

whether an arriving container lets the vehicle continue

Definition at line 942 of file MSVehicle.h.

Referenced by MSVehicle::addStop(), and MSVehicle::processNextStop().

◆ duration

SUMOTime MSVehicle::Stop::duration = -1

The stopping duration.

Definition at line 938 of file MSVehicle.h.

Referenced by MSVehicle::addStop(), MSVehicle::processNextStop(), and libsumo::Vehicle::resume().

◆ edge

◆ endBoarding

SUMOTime MSVehicle::Stop::endBoarding = SUMOTime_MAX

the maximum time at which persons may board this vehicle

Definition at line 956 of file MSVehicle.h.

Referenced by MSVehicle::processNextStop().

◆ lane

◆ numExpectedContainer

int MSVehicle::Stop::numExpectedContainer = 0

The number of still expected containers.

Definition at line 948 of file MSVehicle.h.

Referenced by MSVehicle::addStop(), and MSVehicle::processNextStop().

◆ numExpectedPerson

int MSVehicle::Stop::numExpectedPerson = 0

The number of still expected persons.

Definition at line 946 of file MSVehicle.h.

Referenced by MSVehicle::addStop(), and MSVehicle::processNextStop().

◆ parkingarea

◆ pars

◆ reached

bool MSVehicle::Stop::reached = false

◆ timeToBoardNextPerson

SUMOTime MSVehicle::Stop::timeToBoardNextPerson = 0

The time at which the vehicle is able to board another person.

Definition at line 950 of file MSVehicle.h.

Referenced by MSVehicle::processNextStop().

◆ timeToLoadNextContainer

SUMOTime MSVehicle::Stop::timeToLoadNextContainer = 0

The time at which the vehicle is able to load another container.

Definition at line 952 of file MSVehicle.h.

Referenced by MSVehicle::processNextStop().

◆ triggered

bool MSVehicle::Stop::triggered = false

whether an arriving person lets the vehicle continue

Definition at line 940 of file MSVehicle.h.

Referenced by MSVehicle::addStop(), and MSVehicle::processNextStop().


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