Eclipse SUMO - Simulation of Urban MObility
MSRailSignal::LinkInfo Struct Reference

#include <MSRailSignal.h>

Collaboration diagram for MSRailSignal::LinkInfo:
[legend]

Public Member Functions

DriveWay buildDriveWay (MSRouteIterator first, MSRouteIterator end)
 construct a new driveway by searching along the given route until all block structures are found More...
 
DriveWaygetDriveWay (const SUMOVehicle *)
 retrieve an existing Driveway or construct a new driveway based on the vehicles route More...
 
std::string getID () const
 return id for this railsignal-link More...
 
 LinkInfo (MSLink *link)
 constructor More...
 
void reroute (SUMOVehicle *veh, const MSEdgeVector &occupied)
 try rerouting vehicle if reservation failed More...
 
void reset ()
 init LinkInfo More...
 

Data Fields

std::vector< DriveWaymyDriveways
 all driveways immediately following this link More...
 
SUMOTime myLastRerouteTime
 
SUMOVehiclemyLastRerouteVehicle
 
MSLinkmyLink
 
bool myUniqueDriveWay
 whether there is only a single DriveWay following this link More...
 

Detailed Description

Definition at line 392 of file MSRailSignal.h.

Constructor & Destructor Documentation

◆ LinkInfo()

MSRailSignal::LinkInfo::LinkInfo ( MSLink link)

constructor

Definition at line 547 of file MSRailSignal.cpp.

References reset().

Member Function Documentation

◆ buildDriveWay()

◆ getDriveWay()

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

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

Definition at line 573 of file MSRailSignal.cpp.

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

Referenced by MSRailSignal::storeTraCIVehicles().

Here is the caller graph for this function:

◆ getID()

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

return id for this railsignal-link

Definition at line 567 of file MSRailSignal.cpp.

References toString().

◆ reroute()

◆ reset()

void MSRailSignal::LinkInfo::reset ( )

init LinkInfo

Definition at line 554 of file MSRailSignal.cpp.

Referenced by LinkInfo().

Here is the caller graph for this function:

Field Documentation

◆ myDriveways

std::vector<DriveWay> MSRailSignal::LinkInfo::myDriveways

all driveways immediately following this link

Definition at line 402 of file MSRailSignal.h.

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

◆ myLastRerouteTime

SUMOTime MSRailSignal::LinkInfo::myLastRerouteTime

Definition at line 419 of file MSRailSignal.h.

◆ myLastRerouteVehicle

SUMOVehicle* MSRailSignal::LinkInfo::myLastRerouteVehicle

Definition at line 420 of file MSRailSignal.h.

◆ myLink

MSLink* MSRailSignal::LinkInfo::myLink

Definition at line 396 of file MSRailSignal.h.

Referenced by MSRailSignal::storeTraCIVehicles().

◆ myUniqueDriveWay

bool MSRailSignal::LinkInfo::myUniqueDriveWay

whether there is only a single DriveWay following this link

Definition at line 399 of file MSRailSignal.h.


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