Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
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 double _arrivalSpeedBraking, const SUMOTime _waitingTime, const double _dist, const double _speed, const double _latOffset)
 Constructor.

Data Fields

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

Detailed Description

A structure holding the information about vehicles approaching a link.

Definition at line 117 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 double _arrivalSpeedBraking,
const SUMOTime _waitingTime,
const double _dist,
const double _speed,
const double _latOffset )
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 123 of file MSLink.h.

References arrivalSpeed, arrivalSpeedBraking, arrivalTime, dist, latOffset, leaveSpeed, leavingTime, speed, waitingTime, and willPass.

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 147 of file MSLink.h.

Referenced by ApproachingVehicleInformation(), 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 153 of file MSLink.h.

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

◆ arrivalTime

const SUMOTime MSLink::ApproachingVehicleInformation::arrivalTime

◆ dist

const double MSLink::ApproachingVehicleInformation::dist

The distance up to the current link.

Definition at line 157 of file MSLink.h.

Referenced by ApproachingVehicleInformation(), MSLink::blockedByFoe(), MSLink::getZipperSpeed(), and MSRailCrossing::updateCurrentPhase().

◆ latOffset

const double MSLink::ApproachingVehicleInformation::latOffset

The lateral offset from the center of the entering lane.

Definition at line 161 of file MSLink.h.

Referenced by ApproachingVehicleInformation().

◆ leaveSpeed

const double MSLink::ApproachingVehicleInformation::leaveSpeed

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

Definition at line 149 of file MSLink.h.

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

◆ leavingTime

const SUMOTime MSLink::ApproachingVehicleInformation::leavingTime

The estimated time at which the vehicle leaves the link.

Definition at line 145 of file MSLink.h.

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

◆ speed

const double MSLink::ApproachingVehicleInformation::speed

The current speed.

Definition at line 159 of file MSLink.h.

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

◆ waitingTime

const SUMOTime MSLink::ApproachingVehicleInformation::waitingTime

The waiting duration at the current link.

Definition at line 155 of file MSLink.h.

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

◆ willPass

const bool MSLink::ApproachingVehicleInformation::willPass

Whether the vehicle wants to pass the link (.

Todo
: check semantics)

Definition at line 151 of file MSLink.h.

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


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