Eclipse SUMO - Simulation of Urban MObility
MSLink::ApproachingVehicleInformation Struct Reference

A structure holding the information about vehicles approaching a link. More...

#include <MSLink.h>

Public Member Functions

 ApproachingVehicleInformation (const SUMOTime _arrivalTime, const SUMOTime _leavingTime, const double _arrivalSpeed, const double _leaveSpeed, const bool _willPass, const SUMOTime _arrivalTimeBraking, const double _arrivalSpeedBraking, const SUMOTime _waitingTime, const double _dist, const double _speed)
 Constructor. More...
 

Data Fields

const double arrivalSpeed
 The estimated speed with which the vehicle arrives at the link (for headway computation) More...
 
const double arrivalSpeedBraking
 The estimated speed with which the vehicle arrives at the link if it starts braking(for headway computation) More...
 
const SUMOTime arrivalTime
 The time the vehicle's front arrives at the link. More...
 
const SUMOTime arrivalTimeBraking
 The time the vehicle's front arrives at the link if it starts braking. More...
 
const double dist
 The distance up to the current link. More...
 
const double leaveSpeed
 The estimated speed with which the vehicle leaves the link (for headway computation) More...
 
const SUMOTime leavingTime
 The estimated time at which the vehicle leaves the link. More...
 
const double speed
 The current speed. More...
 
const SUMOTime waitingTime
 The waiting duration at the current link. More...
 
const bool willPass
 Whether the vehicle wants to pass the link (. More...
 

Private Member Functions

ApproachingVehicleInformationoperator= (const ApproachingVehicleInformation &s)=delete
 invalidated assignment operator More...
 

Detailed Description

A structure holding the information about vehicles approaching a link.

Definition at line 92 of file MSLink.h.

Constructor & Destructor Documentation

◆ ApproachingVehicleInformation()

MSLink::ApproachingVehicleInformation::ApproachingVehicleInformation ( const SUMOTime  _arrivalTime,
const SUMOTime  _leavingTime,
const double  _arrivalSpeed,
const double  _leaveSpeed,
const bool  _willPass,
const SUMOTime  _arrivalTimeBraking,
const double  _arrivalSpeedBraking,
const SUMOTime  _waitingTime,
const double  _dist,
const double  _speed 
)
inline

Constructor.

Parameters
[in]waitingTimeThe time during which the vehicle is waiting at this link this needs to be placed here because MSVehicle::myWaitingTime is updated in between calls to opened() causing order dependencies

Definition at line 98 of file MSLink.h.

Member Function Documentation

◆ operator=()

ApproachingVehicleInformation& MSLink::ApproachingVehicleInformation::operator= ( const ApproachingVehicleInformation s)
privatedelete

invalidated assignment operator

Field Documentation

◆ arrivalSpeed

const double MSLink::ApproachingVehicleInformation::arrivalSpeed

The estimated speed with which the vehicle arrives at the link (for headway computation)

Definition at line 122 of file MSLink.h.

Referenced by MSLink::getZipperSpeed(), and MSLink::writeApproaching().

◆ arrivalSpeedBraking

const double MSLink::ApproachingVehicleInformation::arrivalSpeedBraking

The estimated speed with which the vehicle arrives at the link if it starts braking(for headway computation)

Definition at line 130 of file MSLink.h.

Referenced by MSLink::blockedByFoe(), and MSLink::writeApproaching().

◆ arrivalTime

const SUMOTime MSLink::ApproachingVehicleInformation::arrivalTime

The time the vehicle's front arrives at the link.

Definition at line 118 of file MSLink.h.

Referenced by MSLink::blockedByFoe(), GUIVehicle::drawAction_drawLinkItems(), MSLink::getZipperSpeed(), MSRailCrossing::updateCurrentPhase(), and MSLink::writeApproaching().

◆ arrivalTimeBraking

const SUMOTime MSLink::ApproachingVehicleInformation::arrivalTimeBraking

The time the vehicle's front arrives at the link if it starts braking.

Definition at line 128 of file MSLink.h.

Referenced by MSLink::blockedByFoe(), and MSLink::writeApproaching().

◆ dist

const double MSLink::ApproachingVehicleInformation::dist

The distance up to the current link.

Definition at line 134 of file MSLink.h.

Referenced by MSRailSignal::getClosest(), and MSLink::getZipperSpeed().

◆ leaveSpeed

const double MSLink::ApproachingVehicleInformation::leaveSpeed

The estimated speed with which the vehicle leaves the link (for headway computation)

Definition at line 124 of file MSLink.h.

Referenced by MSLink::blockedByFoe(), and MSLink::writeApproaching().

◆ leavingTime

const SUMOTime MSLink::ApproachingVehicleInformation::leavingTime

The estimated time at which the vehicle leaves the link.

Definition at line 120 of file MSLink.h.

Referenced by MSLink::blockedByFoe(), GUIVehicle::drawAction_drawLinkItems(), MSRailCrossing::updateCurrentPhase(), and MSLink::writeApproaching().

◆ speed

const double MSLink::ApproachingVehicleInformation::speed

The current speed.

Definition at line 136 of file MSLink.h.

Referenced by MSLink::getZipperSpeed().

◆ waitingTime

const SUMOTime MSLink::ApproachingVehicleInformation::waitingTime

The waiting duration at the current link.

Definition at line 132 of file MSLink.h.

Referenced by MSLink::blockedByFoe().

◆ willPass

const bool MSLink::ApproachingVehicleInformation::willPass

Whether the vehicle wants to pass the link (.

Todo:
: check semantics)

Definition at line 126 of file MSLink.h.

Referenced by MSLink::blockedByFoe(), MSLink::getLeaderInfo(), and MSLink::writeApproaching().


The documentation for this struct was generated from the following file: