Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
MSRailSignal::LinkInfo Struct Reference

#include <MSRailSignal.h>

Collaboration diagram for MSRailSignal::LinkInfo:
[legend]

Public Member Functions

MSDriveWaygetDriveWay (const SUMOVehicle *)
 retrieve an existing Driveway or construct a new driveway based on the vehicles route
 
MSDriveWaygetDriveWay (MSRouteIterator firstIt, MSRouteIterator endIt, const std::string &info="")
 
std::string getID () const
 return id for this railsignal-link
 
 LinkInfo (MSLink *link)
 constructor
 
void reroute (SUMOVehicle *veh, const MSEdgeVector &occupied)
 try rerouting vehicle if reservation failed
 
void reset ()
 init LinkInfo
 
 ~LinkInfo ()
 Destructor.
 

Data Fields

std::vector< MSDriveWay * > myDriveways
 all driveways immediately following this link
 
SUMOTime myLastRerouteTime
 
SUMOVehiclemyLastRerouteVehicle
 
MSLinkmyLink
 

Detailed Description

Definition at line 318 of file MSRailSignal.h.

Constructor & Destructor Documentation

◆ LinkInfo()

MSRailSignal::LinkInfo::LinkInfo ( MSLink link)

constructor

Definition at line 444 of file MSRailSignal.cpp.

References reset().

◆ ~LinkInfo()

MSRailSignal::LinkInfo::~LinkInfo ( )

Destructor.

Definition at line 449 of file MSRailSignal.cpp.

Member Function Documentation

◆ getDriveWay() [1/2]

MSDriveWay & MSRailSignal::LinkInfo::getDriveWay ( const SUMOVehicle veh)

retrieve an existing Driveway or construct a new driveway based on the vehicles route

Definition at line 471 of file MSRailSignal.cpp.

References MSRoute::begin(), MSDriveWay::buildDriveWay(), MSRoute::end(), MSDriveWay::getClickableTLLinkID(), SUMOVehicle::getCurrentRouteEdge(), MSRoute::getEdges(), Named::getID(), MSNet::getInstance(), MSEdge::getLength(), MSRailSignal::getNewDrivewayID(), SUMOVehicle::getRoute(), SUMOTrafficObject::getRoutePosition(), SUMOTrafficObject::getSpeed(), SPEED2DIST, time2string(), and WRITE_WARNING.

Referenced by MSRailSignal::initDriveWays(), and MSRailSignal::storeTraCIVehicles().

Here is the caller graph for this function:

◆ getDriveWay() [2/2]

MSDriveWay & MSRailSignal::LinkInfo::getDriveWay ( MSRouteIterator  firstIt,
MSRouteIterator  endIt,
const std::string &  info = "" 
)

◆ getID()

std::string MSRailSignal::LinkInfo::getID ( ) const

return id for this railsignal-link

Definition at line 465 of file MSRailSignal.cpp.

References toString().

◆ reroute()

◆ reset()

void MSRailSignal::LinkInfo::reset ( )

init LinkInfo

Definition at line 457 of file MSRailSignal.cpp.

Referenced by LinkInfo().

Here is the caller graph for this function:

Field Documentation

◆ myDriveways

std::vector<MSDriveWay*> MSRailSignal::LinkInfo::myDriveways

all driveways immediately following this link

Definition at line 328 of file MSRailSignal.h.

Referenced by MSRailSignal::storeTraCIVehicles().

◆ myLastRerouteTime

SUMOTime MSRailSignal::LinkInfo::myLastRerouteTime

Definition at line 343 of file MSRailSignal.h.

◆ myLastRerouteVehicle

SUMOVehicle* MSRailSignal::LinkInfo::myLastRerouteVehicle

Definition at line 344 of file MSRailSignal.h.

◆ myLink

MSLink* MSRailSignal::LinkInfo::myLink

Definition at line 325 of file MSRailSignal.h.

Referenced by MSRailSignal::storeTraCIVehicles().


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