![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <MSRailSignal.h>
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... | |
DriveWay & | getDriveWay (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... | |
Data Fields | |
std::vector< DriveWay > | myDriveways |
all driveways immediately following this link More... | |
SUMOTime | myLastRerouteTime |
SUMOVehicle * | myLastRerouteVehicle |
MSLink * | myLink |
bool | myUniqueDriveWay |
whether there is only a single DriveWay following this link More... | |
Definition at line 317 of file MSRailSignal.h.
MSRailSignal::LinkInfo::LinkInfo | ( | MSLink * | link | ) |
constructor
Definition at line 336 of file MSRailSignal.cpp.
References buildDriveWay(), MSLane::getEdge(), and MSLink::getLane().
MSRailSignal::DriveWay & MSRailSignal::LinkInfo::buildDriveWay | ( | MSRouteIterator | first, |
MSRouteIterator | end | ||
) |
construct a new driveway by searching along the given route until all block structures are found
Definition at line 388 of file MSRailSignal.cpp.
References DEBUG_COND_LINKINFO, MSRailSignal::describeLinks(), MSLane::getBidiLane(), Named::getID(), and toString().
Referenced by LinkInfo().
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 353 of file MSRailSignal.cpp.
References MSRoute::end(), SUMOVehicle::getCurrentRouteEdge(), SUMOVehicle::getRoute(), and WRITE_WARNING.
std::string MSRailSignal::LinkInfo::getID | ( | ) | const |
return id for this railsignal-link
Definition at line 347 of file MSRailSignal.cpp.
References toString().
void MSRailSignal::LinkInfo::reroute | ( | SUMOVehicle * | veh, |
const MSEdgeVector & | occupied | ||
) |
try rerouting vehicle if reservation failed
Definition at line 453 of file MSRailSignal.cpp.
References DEBUG_COND_LINKINFO, MSNet::getCurrentTimeStep(), SUMOVehicle::getDevice(), MSRoute::getEdges(), SUMOTrafficObject::getID(), Named::getID(), MSNet::getInstance(), MSDevice_Routing::getPeriod(), SUMOVehicle::getRoute(), MSRoutingEngine::getRouterTT(), SUMOVehicle::reroute(), SIMTIME, toString(), and UNUSED_PARAMETER.
std::vector<DriveWay> MSRailSignal::LinkInfo::myDriveways |
all driveways immediately following this link
Definition at line 327 of file MSRailSignal.h.
Referenced by MSRailSignal::hasOncomingRailTraffic().
SUMOTime MSRailSignal::LinkInfo::myLastRerouteTime |
Definition at line 341 of file MSRailSignal.h.
SUMOVehicle* MSRailSignal::LinkInfo::myLastRerouteVehicle |
Definition at line 342 of file MSRailSignal.h.
MSLink* MSRailSignal::LinkInfo::myLink |
Definition at line 321 of file MSRailSignal.h.
bool MSRailSignal::LinkInfo::myUniqueDriveWay |
whether there is only a single DriveWay following this link
Definition at line 324 of file MSRailSignal.h.