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... | |
void | reset () |
init LinkInfo More... | |
Data Fields | |
std::vector< DriveWay > | myDriveways |
all driveways immediately following this link More... | |
SUMOTime | myLastRerouteTime |
SUMOVehicle * | myLastRerouteVehicle |
MSLink * | myLink |
Definition at line 410 of file MSRailSignal.h.
MSRailSignal::LinkInfo::LinkInfo | ( | MSLink * | link | ) |
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 683 of file MSRailSignal.cpp.
References MSRailSignal::appendMapIndex(), MSRailSignal::DriveWay::buildRoute(), MSRailSignal::DriveWay::checkFlanks(), DEBUG_COND_LINKINFO, MSRailSignal::describeLinks(), MSRailSignal::DriveWay::findFlankProtection(), MSLane::getBidiLane(), Named::getID(), MSRailSignalControl::getInstance(), MSRailSignal::DriveWay::myBidi, MSRailSignal::DriveWay::myBidiExtended, MSRailSignal::DriveWay::myConflictLanes, MSRailSignal::DriveWay::myCoreSize, MSRailSignal::DriveWay::myFlank, MSRailSignal::DriveWay::myFlankSwitches, MSRailSignal::DriveWay::myForward, MSRailSignal::myMovingBlock, MSRailSignal::DriveWay::myNumericalID, MSRailSignal::DriveWay::myProtectedBidi, MSRailSignal::DriveWay::myProtectingSwitches, MSRailSignal::DriveWay::myRoute, MSRailSignalControl::registerProtectedDriveway(), and toString().
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 616 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(), MSRailSignal::DriveWay::myFoundSignal, MSRailSignal::DriveWay::myRoute, SIMTIME, SPEED2DIST, time2string(), toString(), and WRITE_WARNING.
Referenced by MSRailSignal::initDriveWays(), and MSRailSignal::storeTraCIVehicles().
std::string MSRailSignal::LinkInfo::getID | ( | ) | const |
return id for this railsignal-link
Definition at line 610 of file MSRailSignal.cpp.
References toString().
void MSRailSignal::LinkInfo::reroute | ( | SUMOVehicle * | veh, |
const MSEdgeVector & | occupied | ||
) |
try rerouting vehicle if reservation failed
Definition at line 763 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 602 of file MSRailSignal.cpp.
Referenced by LinkInfo().
std::vector<DriveWay> MSRailSignal::LinkInfo::myDriveways |
all driveways immediately following this link
Definition at line 417 of file MSRailSignal.h.
Referenced by MSRailSignal::hasOncomingRailTraffic(), MSRailSignal::initDriveWays(), and MSRailSignal::storeTraCIVehicles().
SUMOTime MSRailSignal::LinkInfo::myLastRerouteTime |
Definition at line 434 of file MSRailSignal.h.
SUMOVehicle* MSRailSignal::LinkInfo::myLastRerouteVehicle |
Definition at line 435 of file MSRailSignal.h.
MSLink* MSRailSignal::LinkInfo::myLink |
Definition at line 414 of file MSRailSignal.h.
Referenced by MSRailSignal::storeTraCIVehicles().