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:
Collaboration graph

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
 (Optional) bus stop if one is assigned to the stop More...
 
MSStoppingPlacechargingStation
 (Optional) charging station if one is assigned to the stop More...
 
bool collision
 Whether this stop was triggered by a collision. More...
 
MSStoppingPlacecontainerstop
 (Optional) container stop if one is assigned to the stop More...
 
bool containerTriggered
 whether an arriving container lets the vehicle continue More...
 
SUMOTime duration
 The stopping duration. More...
 
MSRouteIterator edge
 The edge in the route to stop at. More...
 
const MSLanelane
 The lane to stop at. More...
 
int numExpectedContainer
 The number of still expected containers. More...
 
int numExpectedPerson
 The number of still expected persons. More...
 
MSParkingAreaparkingarea
 (Optional) parkingArea if one is assigned to the stop More...
 
const SUMOVehicleParameter::Stop pars
 The stop parameter. More...
 
bool reached
 Information whether the stop has been reached. More...
 
SUMOTime timeToBoardNextPerson
 The time at which the vehicle is able to board another person. More...
 
SUMOTime timeToLoadNextContainer
 The time at which the vehicle is able to load another container. More...
 
bool triggered
 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 919 of file MSVehicle.h.

Constructor & Destructor Documentation

◆ Stop()

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

Definition at line 921 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 801 of file MSVehicle.cpp.

References toString().

◆ getEndPos()

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

return halting position for upcoming stop;

Definition at line 786 of file MSVehicle.cpp.

Referenced by 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

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

Definition at line 927 of file MSVehicle.h.

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

◆ chargingStation

MSStoppingPlace* MSVehicle::Stop::chargingStation

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

Definition at line 933 of file MSVehicle.h.

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

◆ collision

bool MSVehicle::Stop::collision

Whether this stop was triggered by a collision.

Definition at line 953 of file MSVehicle.h.

Referenced by MSVehicle::addStop().

◆ containerstop

MSStoppingPlace* MSVehicle::Stop::containerstop

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

Definition at line 929 of file MSVehicle.h.

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

◆ containerTriggered

bool MSVehicle::Stop::containerTriggered

whether an arriving container lets the vehicle continue

Definition at line 941 of file MSVehicle.h.

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

◆ duration

SUMOTime MSVehicle::Stop::duration

The stopping duration.

Definition at line 937 of file MSVehicle.h.

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

◆ edge

MSRouteIterator MSVehicle::Stop::edge

The edge in the route to stop at.

Definition at line 923 of file MSVehicle.h.

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

◆ lane

◆ numExpectedContainer

int MSVehicle::Stop::numExpectedContainer

The number of still expected containers.

Definition at line 947 of file MSVehicle.h.

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

◆ numExpectedPerson

int MSVehicle::Stop::numExpectedPerson

The number of still expected persons.

Definition at line 945 of file MSVehicle.h.

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

◆ parkingarea

MSParkingArea* MSVehicle::Stop::parkingarea

◆ pars

◆ reached

bool MSVehicle::Stop::reached

Information whether the stop has been reached.

Definition at line 943 of file MSVehicle.h.

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

◆ timeToBoardNextPerson

SUMOTime MSVehicle::Stop::timeToBoardNextPerson

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

Definition at line 949 of file MSVehicle.h.

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

◆ timeToLoadNextContainer

SUMOTime MSVehicle::Stop::timeToLoadNextContainer

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

Definition at line 951 of file MSVehicle.h.

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

◆ triggered

bool MSVehicle::Stop::triggered

whether an arriving person lets the vehicle continue

Definition at line 939 of file MSVehicle.h.

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


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