![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <MSRailSignal.h>
Public Member Functions | |
| MSDriveWay & | getDriveWay (const SUMOVehicle *, int searchStart=-1) |
| retrieve an existing Driveway or construct a new driveway based on the vehicles route | |
| MSDriveWay & | getDriveWay (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 | |
| bool | myControlled |
| whether this link is used for railway operations | |
| std::vector< MSDriveWay * > | myDriveways |
| all driveways immediately following this link | |
| SUMOTime | myLastRerouteTime |
| SUMOVehicle * | myLastRerouteVehicle |
| MSLink * | myLink |
Definition at line 318 of file MSRailSignal.h.
| MSRailSignal::LinkInfo::LinkInfo | ( | MSLink * | link | ) |
| MSRailSignal::LinkInfo::~LinkInfo | ( | ) |
Destructor.
Definition at line 469 of file MSRailSignal.cpp.
| MSDriveWay & MSRailSignal::LinkInfo::getDriveWay | ( | const SUMOVehicle * | veh, |
| int | searchStart = -1 |
||
| ) |
retrieve an existing Driveway or construct a new driveway based on the vehicles route
Definition at line 493 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().
| MSDriveWay & MSRailSignal::LinkInfo::getDriveWay | ( | MSRouteIterator | firstIt, |
| MSRouteIterator | endIt, | ||
| const std::string & | info = "" |
||
| ) |
Definition at line 532 of file MSRailSignal.cpp.
References MSDriveWay::buildDriveWay(), Named::getID(), MSRailSignal::getNewDrivewayID(), MSDriveWay::getRoute(), MSDriveWay::setVehicle(), SIMTIME, toString(), and UNUSED_PARAMETER.
| std::string MSRailSignal::LinkInfo::getID | ( | ) | const |
return id for this railsignal-link
Definition at line 487 of file MSRailSignal.cpp.
References toString().
| void MSRailSignal::LinkInfo::reroute | ( | SUMOVehicle * | veh, |
| const MSEdgeVector & | occupied | ||
| ) |
try rerouting vehicle if reservation failed
Definition at line 555 of file MSRailSignal.cpp.
References DEBUG_COND_LINKINFO, MSNet::getCurrentTimeStep(), SUMOTrafficObject::getDevice(), MSRoute::getEdges(), Named::getID(), MSNet::getInstance(), MSDevice_Routing::getPeriod(), SUMOVehicle::getRoute(), MSDevice_Routing::mayRerouteRailSignal(), MSRoutingEngine::reroute(), SIMTIME, and toString().
| void MSRailSignal::LinkInfo::reset | ( | ) |
init LinkInfo
Definition at line 477 of file MSRailSignal.cpp.
References isRailwayOrShared().
Referenced by LinkInfo().
| bool MSRailSignal::LinkInfo::myControlled |
whether this link is used for railway operations
Definition at line 347 of file MSRailSignal.h.
| std::vector<MSDriveWay*> MSRailSignal::LinkInfo::myDriveways |
all driveways immediately following this link
Definition at line 328 of file MSRailSignal.h.
Referenced by MSRailSignal::storeTraCIVehicles().
| SUMOTime MSRailSignal::LinkInfo::myLastRerouteTime |
Definition at line 343 of file MSRailSignal.h.
| SUMOVehicle* MSRailSignal::LinkInfo::myLastRerouteVehicle |
Definition at line 344 of file MSRailSignal.h.
| MSLink* MSRailSignal::LinkInfo::myLink |
Definition at line 325 of file MSRailSignal.h.
Referenced by MSRailSignal::storeTraCIVehicles().