Eclipse SUMO - Simulation of Urban MObility
|
#include <MSRailSignal.h>
Public Member Functions | |
MSDriveWay & | getDriveWay (const SUMOVehicle *) |
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 | |
std::vector< MSDriveWay * > | myDriveways |
all driveways immediately following this link | |
SUMOTime | myLastRerouteTime |
SUMOVehicle * | myLastRerouteVehicle |
MSLink * | myLink |
Definition at line 313 of file MSRailSignal.h.
MSRailSignal::LinkInfo::LinkInfo | ( | MSLink * | link | ) |
MSRailSignal::LinkInfo::~LinkInfo | ( | ) |
Destructor.
Definition at line 449 of file MSRailSignal.cpp.
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().
MSDriveWay & MSRailSignal::LinkInfo::getDriveWay | ( | MSRouteIterator | firstIt, |
MSRouteIterator | endIt, | ||
const std::string & | info = "" |
||
) |
Definition at line 509 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 465 of file MSRailSignal.cpp.
References toString().
void MSRailSignal::LinkInfo::reroute | ( | SUMOVehicle * | veh, |
const MSEdgeVector & | occupied | ||
) |
try rerouting vehicle if reservation failed
Definition at line 532 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 457 of file MSRailSignal.cpp.
Referenced by LinkInfo().
std::vector<MSDriveWay*> MSRailSignal::LinkInfo::myDriveways |
all driveways immediately following this link
Definition at line 323 of file MSRailSignal.h.
Referenced by MSRailSignal::storeTraCIVehicles().
SUMOTime MSRailSignal::LinkInfo::myLastRerouteTime |
Definition at line 338 of file MSRailSignal.h.
SUMOVehicle* MSRailSignal::LinkInfo::myLastRerouteVehicle |
Definition at line 339 of file MSRailSignal.h.
MSLink* MSRailSignal::LinkInfo::myLink |
Definition at line 320 of file MSRailSignal.h.
Referenced by MSRailSignal::storeTraCIVehicles().