SUMO - Simulation of Urban MObility
|
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 SUMOReal _arrivalSpeed, const SUMOReal _leaveSpeed, const bool _willPass, const SUMOTime _arrivalTimeBraking, const SUMOReal _arrivalSpeedBraking, const SUMOTime _waitingTime, const SUMOReal _dist) | |
Constructor. More... | |
Data Fields | |
const SUMOReal | arrivalSpeed |
The estimated speed with which the vehicle arrives at the link (for headway computation) More... | |
const SUMOReal | 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 SUMOReal | dist |
The distance up to the current link. More... | |
const SUMOReal | 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 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 | |
ApproachingVehicleInformation & | operator= (const ApproachingVehicleInformation &s) |
invalidated assignment operator More... | |
A structure holding the information about vehicles approaching a link.
|
inline |
Constructor.
[in] | waitingTime | The 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 |
|
private |
invalidated assignment operator
const SUMOReal MSLink::ApproachingVehicleInformation::arrivalSpeed |
The estimated speed with which the vehicle arrives at the link (for headway computation)
Definition at line 125 of file MSLink.h.
Referenced by MSLink::writeApproaching().
const SUMOReal MSLink::ApproachingVehicleInformation::arrivalSpeedBraking |
The estimated speed with which the vehicle arrives at the link if it starts braking(for headway computation)
Definition at line 133 of file MSLink.h.
Referenced by MSLink::blockedByFoe(), and MSLink::writeApproaching().
const SUMOTime MSLink::ApproachingVehicleInformation::arrivalTime |
The time the vehicle's front arrives at the link.
Definition at line 121 of file MSLink.h.
Referenced by MSLink::blockedByFoe(), GUIVehicle::drawAction_drawLinkItems(), MSLink::getZipperSpeed(), MSRailCrossing::updateCurrentPhase(), and MSLink::writeApproaching().
const SUMOTime MSLink::ApproachingVehicleInformation::arrivalTimeBraking |
The time the vehicle's front arrives at the link if it starts braking.
Definition at line 131 of file MSLink.h.
Referenced by MSLink::blockedByFoe(), and MSLink::writeApproaching().
const SUMOReal MSLink::ApproachingVehicleInformation::dist |
The distance up to the current link.
Definition at line 137 of file MSLink.h.
Referenced by MSLink::getZipperSpeed().
const SUMOReal MSLink::ApproachingVehicleInformation::leaveSpeed |
The estimated speed with which the vehicle leaves the link (for headway computation)
Definition at line 127 of file MSLink.h.
Referenced by MSLink::blockedByFoe(), and MSLink::writeApproaching().
const SUMOTime MSLink::ApproachingVehicleInformation::leavingTime |
The estimated time at which the vehicle leaves the link.
Definition at line 123 of file MSLink.h.
Referenced by MSLink::blockedByFoe(), GUIVehicle::drawAction_drawLinkItems(), MSRailCrossing::updateCurrentPhase(), and MSLink::writeApproaching().
const SUMOTime MSLink::ApproachingVehicleInformation::waitingTime |
The waiting duration at the current link.
Definition at line 135 of file MSLink.h.
Referenced by MSLink::blockedByFoe().
const bool MSLink::ApproachingVehicleInformation::willPass |
Whether the vehicle wants to pass the link (.
Definition at line 129 of file MSLink.h.
Referenced by MSLink::blockedByFoe(), and MSLink::writeApproaching().