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

#include <MSStop.h>

Collaboration diagram for MSStop:
[legend]

Public Member Functions

SUMOTime getArrival () const
 return arrival / started time
SUMOTime getArrivalFallback () const
 return arrival / started time or estimated arrival from until/duration
std::string getDescription () const
 get a short description for showing in the gui
const MSEdgegetEdge () const
double getEndPos (const SUMOVehicle &veh) const
 return halting position for upcoming stop;
SUMOTime getMinDuration (SUMOTime time) const
 return minimum stop duration when starting stop at time
std::vector< MSStoppingPlace * > getPlaces () const
 return all stoppingPlaces associated with this stop
double getReachedThreshold () const
 return startPos taking into account opposite stopping
double getSpeed () const
 return speed for passing waypoint / skipping on-demand stop
int getStateFlagsOld () const
 return flags as used by Vehicle::getStopState
SUMOTime getUntil () const
 return until / ended time
void initPars (const SUMOVehicleParameter::Stop &stopPar)
 initialize attributes from the given stop parameters
bool isInRange (const double pos, const double tolerance) const
 whether the stop is in range of the given position
 MSStop (const SUMOVehicleParameter::Stop &par)
void write (OutputDevice &dev) const
 Write the current stop configuration (used for state saving).

Data Fields

MSStoppingPlacebusstop = nullptr
 (Optional) bus stop if one is assigned to the stop
MSStoppingPlacechargingStation = nullptr
 (Optional) charging station if one is assigned to the stop
MSStoppingPlacecontainerstop = nullptr
 (Optional) container stop if one is assigned to the stop
bool containerTriggered = false
 whether an arriving container lets the vehicle continue
SUMOTime duration = -1
 The stopping duration.
MSRouteIterator edge
 The edge in the route to stop at.
SUMOTime endBoarding = SUMOTime_MAX
 the maximum time at which persons may board this vehicle
bool isOpposite = false
 whether this an opposite-direction stop
bool joinTriggered = false
 whether coupling another vehicle (train) the vehicle continue
const MSLanelane = nullptr
 The lane to stop at (microsim only).
int numExpectedContainer = 0
 The number of still expected containers.
int numExpectedPerson = 0
 The number of still expected persons.
MSStoppingPlaceoverheadWireSegment = nullptr
 (Optional) overhead wire segment if one is assigned to the stop
MSParkingAreaparkingarea = nullptr
 (Optional) parkingArea if one is assigned to the stop
const SUMOVehicleParameter::Stop pars
 The stop parameter.
bool reached = false
 Information whether the stop has been reached.
const MESegmentsegment = nullptr
 The segment to stop at (mesosim only).
bool skipOnDemand = false
 whether the decision to skip this stop has been made
bool startedFromState = false
 whether the 'started' value was loaded from simulaton state
SUMOTime timeToBoardNextPerson = 0
 The time at which the vehicle is able to board another person.
SUMOTime timeToLoadNextContainer = 0
 The time at which the vehicle is able to load another container.
bool triggered = false
 whether an arriving person lets the vehicle continue

Detailed Description

Definition at line 44 of file MSStop.h.

Constructor & Destructor Documentation

◆ MSStop()

MSStop::MSStop ( const SUMOVehicleParameter::Stop & par)
inline

Definition at line 46 of file MSStop.h.

References pars.

Member Function Documentation

◆ getArrival()

SUMOTime MSStop::getArrival ( ) const

return arrival / started time

Definition at line 157 of file MSStop.cpp.

References MSGlobals::gUseStopStarted, and pars.

Referenced by MSBaseVehicle::addStop(), and getArrivalFallback().

Here is the caller graph for this function:

◆ getArrivalFallback()

SUMOTime MSStop::getArrivalFallback ( ) const

return arrival / started time or estimated arrival from until/duration

Definition at line 163 of file MSStop.cpp.

References getArrival(), getUntil(), and pars.

◆ getDescription()

std::string MSStop::getDescription ( ) const

get a short description for showing in the gui

Definition at line 69 of file MSStop.cpp.

References busstop, chargingStation, containerstop, lane, overheadWireSegment, parkingarea, pars, and toString().

Referenced by MSBaseVehicle::addStop().

Here is the caller graph for this function:

◆ getEdge()

const MSEdge * MSStop::getEdge ( ) const

Definition at line 54 of file MSStop.cpp.

References lane, and segment.

Referenced by MSStageDriving::canLeaveVehicle(), getEndPos(), and MSVehicle::processNextStop().

Here is the caller graph for this function:

◆ getEndPos()

double MSStop::getEndPos ( const SUMOVehicle & veh) const

return halting position for upcoming stop;

Definition at line 35 of file MSStop.cpp.

References busstop, chargingStation, containerstop, SUMOVehicle::getBrakeGap(), getEdge(), SUMOTrafficObject::getEdge(), SUMOTrafficObject::getPositionOnLane(), overheadWireSegment, parkingarea, pars, and STOP_END_SET.

Referenced by MSBaseVehicle::addStop(), MSLane::freeInsertion(), MSBaseVehicle::getStopEdges(), MSBaseVehicle::insertStop(), MSLane::insertVehicle(), MSVehicle::planMoveInternal(), and MSBaseVehicle::replaceStop().

Here is the caller graph for this function:

◆ getMinDuration()

SUMOTime MSStop::getMinDuration ( SUMOTime time) const

return minimum stop duration when starting stop at time

Definition at line 134 of file MSStop.cpp.

References duration, MSGlobals::gUseStopEnded, MAX2(), and pars.

Referenced by MSTriggeredRerouter::checkStopSwitch(), MSDevice_StationFinder::planOpportunisticCharging(), and MSVehicle::processNextStop().

Here is the caller graph for this function:

◆ getPlaces()

std::vector< MSStoppingPlace * > MSStop::getPlaces ( ) const

return all stoppingPlaces associated with this stop

Definition at line 188 of file MSStop.cpp.

References busstop, chargingStation, containerstop, overheadWireSegment, and parkingarea.

Referenced by MSTriggeredRerouter::checkStopSwitch().

Here is the caller graph for this function:

◆ getReachedThreshold()

double MSStop::getReachedThreshold ( ) const

return startPos taking into account opposite stopping

Definition at line 64 of file MSStop.cpp.

References isOpposite, lane, and pars.

Referenced by MSVehicle::processNextStop().

Here is the caller graph for this function:

◆ getSpeed()

double MSStop::getSpeed ( ) const

return speed for passing waypoint / skipping on-demand stop

Definition at line 176 of file MSStop.cpp.

References pars, and skipOnDemand.

Referenced by MSVehicle::estimateTimeToNextStop(), MSVehicle::planMoveInternal(), MSVehicle::processNextStop(), MSVehicle::resumeFromStopping(), and MSVehicle::updateBestLanes().

Here is the caller graph for this function:

◆ getStateFlagsOld()

int MSStop::getStateFlagsOld ( ) const

return flags as used by Vehicle::getStopState

Definition at line 128 of file MSStop.cpp.

References pars, and reached.

Referenced by LIBSUMO_NAMESPACE::Vehicle::getStopState().

Here is the caller graph for this function:

◆ getUntil()

SUMOTime MSStop::getUntil ( ) const

return until / ended time

Definition at line 151 of file MSStop.cpp.

References MSGlobals::gUseStopEnded, and pars.

Referenced by MSBaseVehicle::addStop(), getArrivalFallback(), MSVehicle::planMoveInternal(), MSDevice_StationFinder::planOpportunisticCharging(), and MSVehicle::processNextStop().

Here is the caller graph for this function:

◆ initPars()

◆ isInRange()

bool MSStop::isInRange ( const double pos,
const double tolerance ) const

whether the stop is in range of the given position

Definition at line 182 of file MSStop.cpp.

References pars.

Referenced by MSStageDriving::canLeaveVehicle().

Here is the caller graph for this function:

◆ write()

Field Documentation

◆ busstop

MSStoppingPlace* MSStop::busstop = nullptr

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

Definition at line 54 of file MSStop.h.

Referenced by MSBaseVehicle::addStop(), getDescription(), getEndPos(), getPlaces(), initPars(), MSVehicle::leaveLane(), MSVehicle::processNextStop(), MSVehicle::resumeFromStopping(), and write().

◆ chargingStation

MSStoppingPlace* MSStop::chargingStation = nullptr

◆ containerstop

MSStoppingPlace* MSStop::containerstop = nullptr

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

Definition at line 56 of file MSStop.h.

Referenced by MSBaseVehicle::addStop(), getDescription(), getEndPos(), getPlaces(), initPars(), MSVehicle::leaveLane(), MSVehicle::processNextStop(), MSVehicle::resumeFromStopping(), and write().

◆ containerTriggered

bool MSStop::containerTriggered = false

◆ duration

◆ edge

◆ endBoarding

SUMOTime MSStop::endBoarding = SUMOTime_MAX

the maximum time at which persons may board this vehicle

Definition at line 85 of file MSStop.h.

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

◆ isOpposite

bool MSStop::isOpposite = false

whether this an opposite-direction stop

Definition at line 87 of file MSStop.h.

Referenced by MSBaseVehicle::addStop(), getReachedThreshold(), MSLaneChanger::hasOppositeStop(), and MSVehicle::updateBestLanes().

◆ joinTriggered

bool MSStop::joinTriggered = false

whether coupling another vehicle (train) the vehicle continue

Definition at line 73 of file MSStop.h.

Referenced by MSVehicleControl::abortWaiting(), MSTriggeredRerouter::checkStopSwitch(), MSDevice_Taxi::dispatchShared(), initPars(), MSVehicle::processNextStop(), and MEVehicle::resumeFromStopping().

◆ lane

◆ numExpectedContainer

int MSStop::numExpectedContainer = 0

The number of still expected containers.

Definition at line 79 of file MSStop.h.

Referenced by MSVehicle::boardTransportables(), and initPars().

◆ numExpectedPerson

int MSStop::numExpectedPerson = 0

The number of still expected persons.

Definition at line 77 of file MSStop.h.

Referenced by MSVehicle::boardTransportables(), and initPars().

◆ overheadWireSegment

MSStoppingPlace* MSStop::overheadWireSegment = nullptr

(Optional) overhead wire segment if one is assigned to the stop

Todo
Check that this should really be a stopping place instance

Definition at line 63 of file MSStop.h.

Referenced by MSBaseVehicle::addStop(), getDescription(), getEndPos(), getPlaces(), and initPars().

◆ parkingarea

◆ pars

◆ reached

◆ segment

const MESegment* MSStop::segment = nullptr

The segment to stop at (mesosim only).

Definition at line 52 of file MSStop.h.

Referenced by MSBaseVehicle::addStop(), getEdge(), MSBaseVehicle::insertStop(), MEVehicle::processStop(), and MSBaseVehicle::replaceStop().

◆ skipOnDemand

bool MSStop::skipOnDemand = false

whether the decision to skip this stop has been made

Definition at line 89 of file MSStop.h.

Referenced by MSVehicle::boardTransportables(), getSpeed(), and MSVehicle::processNextStop().

◆ startedFromState

bool MSStop::startedFromState = false

whether the 'started' value was loaded from simulaton state

Definition at line 91 of file MSStop.h.

Referenced by MSVehicle::processNextStop().

◆ timeToBoardNextPerson

SUMOTime MSStop::timeToBoardNextPerson = 0

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

Definition at line 81 of file MSStop.h.

Referenced by MSVehicle::boardTransportables(), and MSDevice_Transportable::notifyMove().

◆ timeToLoadNextContainer

SUMOTime MSStop::timeToLoadNextContainer = 0

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

Definition at line 83 of file MSStop.h.

Referenced by MSVehicle::boardTransportables(), and MSDevice_Transportable::notifyMove().

◆ triggered

bool MSStop::triggered = false

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