|
SUMO - Simulation of Urban MObility
|
A road/street connecting two junctions. More...
#include <MSEdge.h>
Data Structures | |
| class | by_id_sorter |
| Sorts edges by their ids. More... | |
Public Types | |
| typedef std::map< const MSEdge *, std::vector< MSLane * > * > | AllowedLanesCont |
| Suceeding edges (keys) and allowed lanes to reach these edges (values). | |
| typedef std::map < SUMOVehicleClass, AllowedLanesCont > | ClassedAllowedLanesCont |
| Map from vehicle types to lanes that may be used to reach one of the next edges. | |
| enum | EdgeBasicFunction { EDGEFUNCTION_UNKNOWN = -1, EDGEFUNCTION_NORMAL = 0, EDGEFUNCTION_CONNECTOR = 1, EDGEFUNCTION_INTERNAL = 2, EDGEFUNCTION_DISTRICT = 3 } |
Defines possible edge types. More... | |
Public Member Functions | |
| virtual void | changeLanes (SUMOTime t) |
| Performs lane changing on this edge. | |
| void | closeBuilding () |
| SUMOReal | getCurrentTravelTime () const |
| Computes and returns the current travel time for this edge. | |
| void | initialize (std::vector< MSLane * > *lanes, EdgeBasicFunction function) |
| Initialize the edge. | |
| MSEdge (const std::string &id, unsigned int numericalID, const std::string &streetName="") | |
| Constructor. | |
| bool | prohibits (const SUMOVehicle *const vehicle) const |
| Returns whether the vehicle (class) is not allowed on the edge. | |
| void | rebuildAllowedLanes () |
| virtual | ~MSEdge () |
| Destructor. | |
Access to the edge's lanes | |
| MSLane * | leftLane (const MSLane *const lane) const |
| Returns the lane left to the one given, 0 if the given lane is leftmost. | |
| MSLane * | rightLane (const MSLane *const lane) const |
| Returns the lane right to the one given, 0 if the given lane is rightmost. | |
| const std::vector< MSLane * > & | getLanes () const |
| Returns this edge's lanes. | |
| const std::vector< MSLane * > * | allowedLanes (const MSEdge &destination, SUMOVehicleClass vclass=SVC_UNKNOWN) const |
| Get the allowed lanes to reach the destination-edge. | |
| const std::vector< MSLane * > * | allowedLanes (SUMOVehicleClass vclass=SVC_UNKNOWN) const |
| Get the allowed lanes for the given vehicle class. | |
Access to other edge attributes | |
| const std::string & | getID () const |
| Returns the id of the edge. | |
| EdgeBasicFunction | getPurpose () const |
| Returns the edge type (EdgeBasicFunction) | |
| unsigned int | getNumericalID () const |
| Returns the numerical id of the edge. | |
| const std::string & | getStreetName () const |
| Returns the street name of the edge. | |
Access to succeeding/predecessing edges | |
| void | addFollower (MSEdge *edge) |
| Returns the list of edges which may be reached from this edge. | |
| const std::vector< MSEdge * > & | getIncomingEdges () const |
| Returns the list of edges from which this edge may be reached. | |
| unsigned int | getNoFollowing () const |
| Returns the number of edges that may be reached from this edge. | |
| const MSEdge * | getFollower (unsigned int n) const |
| Returns the n-th of the following edges. | |
Access to vaporizing interface | |
| bool | isVaporizing () const |
| Returns whether vehicles on this edge shall be vaporized. | |
| SUMOTime | incVaporization (SUMOTime t) |
| Enables vaporization. | |
| SUMOTime | decVaporization (SUMOTime t) |
| Disables vaporization. | |
Methods releated to vehicle insertion | |
| bool | insertVehicle (SUMOVehicle &v, SUMOTime time) const |
| Tries to insert the given vehicle into the network. | |
| MSLane * | getFreeLane (const std::vector< MSLane * > *allowed, const SUMOVehicleClass vclass) const |
| Finds the emptiest lane allowing the vehicle class. | |
| MSLane * | getDepartLane (const MSVehicle &veh) const |
| Finds a depart lane for the given vehicle parameters. | |
| SUMOTime | getLastFailedInsertionTime () const |
| Returns the last time a vehicle could not be inserted. | |
| void | setLastFailedInsertionTime (SUMOTime time) const |
| Sets the last time a vehicle could not be inserted. | |
Static Public Member Functions | |
| static void | clear () |
| Clears the dictionary. | |
| static bool | dictionary (const std::string &id, MSEdge *edge) |
| Inserts edge into the static dictionary Returns true if the key id isn't already in the dictionary. Otherwise returns false. | |
| static MSEdge * | dictionary (const std::string &id) |
| Returns the MSEdge associated to the key id if exists, otherwise returns 0. | |
| static MSEdge * | dictionary (size_t index) |
| Returns the MSEdge at the index. | |
| static size_t | dictSize () |
| Returns the number of edges. | |
| static void | insertIDs (std::vector< std::string > &into) |
| Inserts IDs of all known edges into the given vector. | |
Static parser helper | |
| static void | parseEdgesList (const std::string &desc, std::vector< const MSEdge * > &into, const std::string &rid) |
| Parses the given string assuming it contains a list of edge ids divided by spaces. | |
| static void | parseEdgesList (const std::vector< std::string > &desc, std::vector< const MSEdge * > &into, const std::string &rid) |
| Parses the given string vector assuming it edge ids. | |
Protected Member Functions | |
| const std::vector< MSLane * > * | allowedLanes (const MSEdge *destination, SUMOVehicleClass vclass=SVC_UNKNOWN) const |
| Get the allowed lanes to reach the destination-edge. | |
Protected Attributes | |
| EdgeBasicFunction | myFunction |
| the purpose of the edge | |
| std::string | myID |
| Unique ID. | |
| MSLaneChanger * | myLaneChanger |
| This member will do the lane-change. | |
| std::vector< MSLane * > * | myLanes |
| Container for the edge's lane; should be sorted: (right-hand-traffic) the more left the lane, the higher the container-index. | |
| SUMOTime | myLastFailedInsertionTime |
| The time of last insertion failure. | |
| unsigned int | myNumericalID |
| This edge's numerical id. | |
| std::vector< MSEdge * > | myPredeccesors |
| The preceeding edges. | |
| std::vector< MSEdge * > | mySuccessors |
| The succeeding edges. | |
| int | myVaporizationRequests |
| Vaporizer counter. | |
Storages for allowed lanes (depending on vehicle classes) | |
| AllowedLanesCont | myAllowed |
| Associative container from destination-edge to allowed-lanes. | |
| ClassedAllowedLanesCont | myClassedAllowed |
| From vehicle class to lanes allowed to be used by it. | |
| bool | myHaveClassConstraints |
| Whether any class constraints exist for this edge. | |
| std::string | myStreetName |
Private Member Functions | |
| MSEdge (const MSEdge &) | |
| Invalidated copy constructor. | |
| MSEdge & | operator= (const MSEdge &) |
| assignment operator. | |
Static edge container | |
| typedef std::map< std::string, MSEdge * > | DictType |
| definition of the static dictionary type | |
| static DictType | myDict |
| Static dictionary to associate string-ids with objects. | |
| static std::vector< MSEdge * > | myEdges |
| Static list of edges. | |
A road/street connecting two junctions.
A single connection between two junctions. Holds lanes which are reponsible for vehicle movements.
| typedef std::map< const MSEdge*, std::vector<MSLane*>* > MSEdge::AllowedLanesCont |
| typedef std::map< SUMOVehicleClass, AllowedLanesCont > MSEdge::ClassedAllowedLanesCont |
typedef std::map< std::string, MSEdge* > MSEdge::DictType [protected] |
Defines possible edge types.
For different purposes, it is necessary to know whether the edge is a normal street or something special.
| MSEdge::MSEdge | ( | const std::string & | id, |
| unsigned int | numericalID, | ||
| const std::string & | streetName = "" |
||
| ) |
Constructor.
After calling this constructor, the edge is not yet initialised completely. A call to "initialize" with proper values is needed for this.
| [in] | id | The id of the edge |
| [in] | numericalID | The numerical id (index) of the edge |
| [in] | streetName | The street name for that edge |
Definition at line 69 of file MSEdge.cpp.
| MSEdge::~MSEdge | ( | ) | [virtual] |
Destructor.
Definition at line 76 of file MSEdge.cpp.
References myAllowed, myClassedAllowed, myLaneChanger, and myLanes.
| MSEdge::MSEdge | ( | const MSEdge & | ) | [private] |
Invalidated copy constructor.
| void MSEdge::addFollower | ( | MSEdge * | edge | ) | [inline] |
Returns the list of edges which may be reached from this edge.
Definition at line 226 of file MSEdge.h.
References mySuccessors.
Referenced by NLHandler::addDistrict(), and NLHandler::addDistrictEdge().
| const std::vector< MSLane * > * MSEdge::allowedLanes | ( | const MSEdge * | destination, |
| SUMOVehicleClass | vclass = SVC_UNKNOWN |
||
| ) | const [protected] |
Get the allowed lanes to reach the destination-edge.
If there is no such edge, get 0. Then you are on the wrong edge.
| [in] | destination | The edge to reach |
| [in] | vclass | The vehicle class for which this information shall be returned |
Definition at line 208 of file MSEdge.cpp.
References myAllowed, myClassedAllowed, myHaveClassConstraints, and SVC_UNKNOWN.
| const std::vector< MSLane * > * MSEdge::allowedLanes | ( | const MSEdge & | destination, |
| SUMOVehicleClass | vclass = SVC_UNKNOWN |
||
| ) | const |
Get the allowed lanes to reach the destination-edge.
If there is no such edge, get 0. Then you are on the wrong edge.
| [in] | destination | The edge to reach |
| [in] | vclass | The vehicle class for which this information shall be returned |
Definition at line 196 of file MSEdge.cpp.
Referenced by allowedLanes(), MSVehicleTransfer::checkInsertions(), MSVehicle::getBestLanes(), getDepartLane(), getFreeLane(), MS_E2_ZS_CollectorOverLanes::getLanePredeccessorLanes(), MSLane::by_connections_to_sorter::operator()(), and MSLane::succLinkSec().
| const std::vector< MSLane * > * MSEdge::allowedLanes | ( | SUMOVehicleClass | vclass = SVC_UNKNOWN | ) | const |
Get the allowed lanes for the given vehicle class.
If there is no such edge, get 0. Then you are on the wrong edge.
| [in] | vclass | The vehicle class for which this information shall be returned |
Definition at line 202 of file MSEdge.cpp.
References allowedLanes().
| void MSEdge::changeLanes | ( | SUMOTime | t | ) | [virtual] |
Performs lane changing on this edge.
Definition at line 357 of file MSEdge.cpp.
References EDGEFUNCTION_INTERNAL, MSLaneChanger::laneChange(), myFunction, and myLaneChanger.
Referenced by MSEdgeControl::changeLanes().
| void MSEdge::clear | ( | ) | [static] |
Clears the dictionary.
Definition at line 472 of file MSEdge.cpp.
References myDict.
Referenced by MSNet::clearAll().
| void MSEdge::closeBuilding | ( | ) |
Definition at line 103 of file MSEdge.cpp.
References MSLane::getEdge(), myAllowed, myLanes, myPredeccesors, mySuccessors, and rebuildAllowedLanes().
Disables vaporization.
The internal vaporization counter is decreased what disables the vaporization if it was only once enabled. Called from the event handler.
| [in] | t | The current time (unused) |
| ProcessError | not thrown by this method, just derived |
Definition at line 240 of file MSEdge.cpp.
References myVaporizationRequests.
Referenced by NLTriggerBuilder::buildVaporizer().
Inserts edge into the static dictionary Returns true if the key id isn't already in the dictionary. Otherwise returns false.
Definition at line 432 of file MSEdge.cpp.
References getNumericalID(), myDict, and myEdges.
Referenced by NLHandler::addConnection(), NLHandler::addDistrict(), NLHandler::addDistrictEdge(), NLBuilder::EdgeFloatTimeLineRetriever_EdgeTravelTime::addEdgeWeight(), NLBuilder::EdgeFloatTimeLineRetriever_EdgeEffort::addEdgeWeight(), NLEdgeControlBuilder::beginEdgeParsing(), NLTriggerBuilder::buildVaporizer(), MSDevice_Routing::buildVehicleDevices(), NLHandler::closeEdge(), TraCIServerAPI_Simulation::convertCartesianToRoadMap(), GUINet::getEdgeBoundary(), NLDetectorBuilder::getEdgeChecking(), TraCIServerAPI_Simulation::getLaneChecking(), MSTriggeredRerouter::myStartElement(), MSRouteHandler::myStartElement(), NLTriggerBuilder::parseAndBuildRerouter(), parseEdgesList(), MSDevice_Routing::preInsertionReroute(), TraCIServerAPI_Vehicle::processGet(), TraCIServerAPI_Edge::processGet(), TraCIServerAPI_Vehicle::processSet(), TraCIServerAPI_Route::processSet(), TraCIServerAPI_Edge::processSet(), and MSBaseVehicle::reroute().
| MSEdge * MSEdge::dictionary | ( | const std::string & | id | ) | [static] |
Returns the MSEdge associated to the key id if exists, otherwise returns 0.
Definition at line 448 of file MSEdge.cpp.
References myDict.
| MSEdge * MSEdge::dictionary | ( | size_t | index | ) | [static] |
| size_t MSEdge::dictSize | ( | ) | [static] |
Returns the number of edges.
Definition at line 466 of file MSEdge.cpp.
References myDict.
Referenced by TraCIServerAPI_Simulation::commandDistanceRequest(), GUIEdge::fill(), MSTriggeredRerouter::notifyEnter(), MSDevice_Routing::preInsertionReroute(), TraCIServerAPI_Vehicle::processSet(), and MSDevice_Routing::wrappedRerouteCommandExecute().
| SUMOReal MSEdge::getCurrentTravelTime | ( | ) | const |
Computes and returns the current travel time for this edge.
The mean travel time of all lanes is summed and divided by the number of lanes. If the result is zero, 1000000. (a very large number) is returned, otherwise the edge's length divided by this speed.
Definition at line 387 of file MSEdge.cpp.
References myLanes, and SUMOReal.
Referenced by MSVehicleTransfer::addVeh(), MSVehicleTransfer::checkInsertions(), and TraCIServerAPI_Edge::processGet().
Finds a depart lane for the given vehicle parameters.
Depending on the depart lane procedure a depart lane is chosen. Repeated calls with the same vehicle may return different results if the procedure is "random" or "free". In case no appropriate lane was found, 0 is returned.
| [in] | veh | The vehicle to get the depart lane for |
Definition at line 266 of file MSEdge.cpp.
References allowedLanes(), MSRoute::begin(), DEPART_LANE_ALLOWED_FREE, DEPART_LANE_BEST_FREE, DEPART_LANE_DEFAULT, DEPART_LANE_FREE, DEPART_LANE_GIVEN, DEPART_LANE_RANDOM, SUMOVehicleParameter::departLane, SUMOVehicleParameter::departLaneProcedure, MSVehicle::getBestLanes(), getFreeLane(), MSBaseVehicle::getParameter(), RandHelper::getRandomFrom(), MSBaseVehicle::getRoute(), MSVehicleType::getVehicleClass(), MSBaseVehicle::getVehicleType(), myLanes, MSRoute::size(), and SUMOReal.
Referenced by insertVehicle().
| const MSEdge* MSEdge::getFollower | ( | unsigned int | n | ) | const [inline] |
Returns the n-th of the following edges.
| [in] | n | The index within following edges of the edge to return |
Definition at line 250 of file MSEdge.h.
References mySuccessors.
Referenced by MSRouteHandler::myStartElement().
| MSLane * MSEdge::getFreeLane | ( | const std::vector< MSLane * > * | allowed, |
| const SUMOVehicleClass | vclass | ||
| ) | const |
Finds the emptiest lane allowing the vehicle class.
The emptiest lane is the one with the fewest vehicles on. If there is more than one, the first according to its index in the lane container is chosen.
If allowed==0, the lanes allowed for the given vehicle class will be used.
| [in] | allowed | The lanes to choose from |
| [in] | vclass | The vehicle class to look for |
Definition at line 247 of file MSEdge.cpp.
References allowedLanes(), and MSLane::getVehicleNumber().
Referenced by MSVehicleTransfer::checkInsertions(), and getDepartLane().
| const std::string& MSEdge::getID | ( | ) | const [inline] |
Returns the id of the edge.
Definition at line 189 of file MSEdge.h.
References myID.
Referenced by MSVehicleTransfer::checkInsertions(), NLHandler::closeEdge(), MS_E2_ZS_CollectorOverLanes::getLanePredeccessorLanes(), NLHandler::getLanesFromIndices(), MSDevice_Person::notifyLeave(), MSEdge::by_id_sorter::operator()(), TraCIServerAPI_Vehicle::processGet(), TraCIServerAPI_Lane::processGet(), MSXMLRawOut::writeEdge(), and MSMeanData::writeEdge().
| const std::vector<MSEdge*>& MSEdge::getIncomingEdges | ( | ) | const [inline] |
Returns the list of edges from which this edge may be reached.
Definition at line 234 of file MSEdge.h.
References myPredeccesors.
Referenced by MS_E2_ZS_CollectorOverLanes::getLanePredeccessorLanes(), and MSLane::getLogicalPredecessorLane().
| const std::vector<MSLane*>& MSEdge::getLanes | ( | ) | const [inline] |
Returns this edge's lanes.
Definition at line 154 of file MSEdge.h.
References myLanes.
Referenced by MSVehicleTransfer::addVeh(), MSBaseVehicle::calculateArrivalPos(), MSEdgeControl::changeLanes(), MSVehicle::Influencer::checkForLaneChanges(), GUITriggeredRerouter::drawGL(), MS_E2_ZS_CollectorOverLanes::extendTo(), MSVehicle::getBestLanes(), GUILaneWrapper::getEdgeLaneNumber(), MSDevice_Routing::getEffort(), TraCIServerAPI_Simulation::getLaneChecking(), NLHandler::getLanesFromIndices(), MSNet::EdgeWeightsProxi::getTravelTime(), GUITriggeredRerouter::GUITriggeredRerouter(), GUINet::initGUIStructures(), insertVehicle(), GUISUMOViewParent::isSelected(), MSRouteProbe::MSRouteProbe(), MSLCM_DK2004::patchSpeed(), TraCIServerAPI_Vehicle::processGet(), TraCIServerAPI_Edge::processGet(), TraCIServerAPI_Vehicle::processSet(), TraCIServerAPI_Edge::processSet(), MSXMLRawOut::writeEdge(), and MSMeanData::writeEdge().
| SUMOTime MSEdge::getLastFailedInsertionTime | ( | ) | const [inline] |
Returns the last time a vehicle could not be inserted.
Definition at line 357 of file MSEdge.h.
References myLastFailedInsertionTime.
| unsigned int MSEdge::getNoFollowing | ( | ) | const [inline] |
Returns the number of edges that may be reached from this edge.
Definition at line 242 of file MSEdge.h.
References mySuccessors.
Referenced by MSRouteHandler::myStartElement().
| unsigned int MSEdge::getNumericalID | ( | ) | const [inline] |
Returns the numerical id of the edge.
Definition at line 206 of file MSEdge.h.
References myNumericalID.
Referenced by MSEdgeControl::changeLanes(), and dictionary().
| EdgeBasicFunction MSEdge::getPurpose | ( | ) | const [inline] |
Returns the edge type (EdgeBasicFunction)
Definition at line 198 of file MSEdge.h.
References myFunction.
Referenced by MSLane::appropriate(), MSVehicle::checkRewindLinkLanes(), GUILaneWrapper::drawGL(), MSVehicle::enterLaneAtMove(), MSVehicle::getBestLanesContinuation(), GUIEdge::getIDs(), and MSVehicle::vsafeCriticalCont().
| const std::string& MSEdge::getStreetName | ( | ) | const [inline] |
Returns the street name of the edge.
Definition at line 213 of file MSEdge.h.
References myStreetName.
Referenced by GUIEdge::drawGL().
Enables vaporization.
The internal vaporization counter is increased enabling the vaporization. Called from the event handler.
| [in] | t | The current time (unused) |
| ProcessError | not thrown by this method, just derived |
Definition at line 233 of file MSEdge.cpp.
References myVaporizationRequests.
Referenced by NLTriggerBuilder::buildVaporizer().
| void MSEdge::initialize | ( | std::vector< MSLane * > * | lanes, |
| EdgeBasicFunction | function | ||
| ) |
Initialize the edge.
| [in] | allowed | Information which edges may be reached from which lanes |
| [in] | lanes | List of this edge's lanes |
| [in] | function | A basic type of the edge |
Definition at line 92 of file MSEdge.cpp.
References EDGEFUNCTION_DISTRICT, EDGEFUNCTION_INTERNAL, OptionsCont::getOptions(), myFunction, myLaneChanger, and myLanes.
Referenced by NLHandler::addDistrict(), and NLEdgeControlBuilder::closeEdge().
| void MSEdge::insertIDs | ( | std::vector< std::string > & | into | ) | [static] |
Inserts IDs of all known edges into the given vector.
Definition at line 481 of file MSEdge.cpp.
References myDict.
Referenced by TraCIServerAPI_Edge::processGet().
| bool MSEdge::insertVehicle | ( | SUMOVehicle & | v, |
| SUMOTime | time | ||
| ) | const |
Tries to insert the given vehicle into the network.
The procedure for choosing the proper lane is determined, first. In dependance to this, the proper lane is chosen.
Insertion itself is done by calling the chose lane's "insertVehicle" method.
| [in] | v | The vehicle to insert |
| [in] | time | The current simulation time |
Definition at line 313 of file MSEdge.cpp.
References DEPART_POS_FREE, DEPART_POS_GIVEN, DEPART_POS_RANDOM, DEPART_POS_RANDOM_FREE, SUMOVehicleParameter::departPos, SUMOVehicleParameter::departPosProcedure, getDepartLane(), getLanes(), SUMOVehicle::getParameter(), MSLane::insertVehicle(), isVaporizing(), RandHelper::rand(), and SUMOReal.
| bool MSEdge::isVaporizing | ( | ) | const [inline] |
Returns whether vehicles on this edge shall be vaporized.
Definition at line 263 of file MSEdge.h.
References myVaporizationRequests.
Referenced by insertVehicle(), MSVehicle::moveChecked(), and MSLane::setCritical().
Returns the lane left to the one given, 0 if the given lane is leftmost.
| [in] | lane | The lane right to the one to be returned |
Definition at line 176 of file MSEdge.cpp.
References myLanes.
Referenced by MSLane::getLeftLane().
| void MSEdge::parseEdgesList | ( | const std::string & | desc, |
| std::vector< const MSEdge * > & | into, | ||
| const std::string & | rid | ||
| ) | [static] |
Parses the given string assuming it contains a list of edge ids divided by spaces.
Splits the string at spaces, uses polymorph method to generate edge vector.
| [in] | desc | The string containing space-separated edge ids |
| [out] | into | The vector to fill |
| [in] | rid | The id of the route these description belongs to; used for error message generation |
| ProcessError | If one of the strings contained is not a known edge id |
Definition at line 489 of file MSEdge.cpp.
References StringTokenizer::getVector().
Referenced by MSRouteHandler::myStartElement(), MSRouteHandler::openRoute(), and TraCIServerAPI_Vehicle::processSet().
| void MSEdge::parseEdgesList | ( | const std::vector< std::string > & | desc, |
| std::vector< const MSEdge * > & | into, | ||
| const std::string & | rid | ||
| ) | [static] |
Parses the given string vector assuming it edge ids.
| [in] | desc | The string vector containing edge ids |
| [out] | into | The vector to fill |
| [in] | rid | The id of the route these description belongs to; used for error message generation |
| ProcessError | If one of the strings contained is not a known edge id |
Definition at line 497 of file MSEdge.cpp.
References dictionary().
| bool MSEdge::prohibits | ( | const SUMOVehicle *const | vehicle | ) | const |
Returns whether the vehicle (class) is not allowed on the edge.
Definition at line 417 of file MSEdge.cpp.
References EDGEFUNCTION_DISTRICT, MSVehicleType::getVehicleClass(), SUMOVehicle::getVehicleType(), myFunction, myHaveClassConstraints, and myLanes.
| void MSEdge::rebuildAllowedLanes | ( | ) |
Definition at line 133 of file MSEdge.cpp.
References myAllowed, myClassedAllowed, myHaveClassConstraints, and myLanes.
Referenced by closeBuilding(), TraCIServerAPI_Lane::processSet(), and TraCIServerAPI_Edge::processSet().
Returns the lane right to the one given, 0 if the given lane is rightmost.
| [in] | lane | The lane left to the one to be returned |
Definition at line 186 of file MSEdge.cpp.
References myLanes.
Referenced by MSLane::getRightLane().
| void MSEdge::setLastFailedInsertionTime | ( | SUMOTime | time | ) | const [inline] |
Sets the last time a vehicle could not be inserted.
| [in] | time | the new value |
Definition at line 365 of file MSEdge.h.
References myLastFailedInsertionTime.
AllowedLanesCont MSEdge::myAllowed [protected] |
Associative container from destination-edge to allowed-lanes.
Definition at line 497 of file MSEdge.h.
Referenced by allowedLanes(), closeBuilding(), rebuildAllowedLanes(), and ~MSEdge().
ClassedAllowedLanesCont MSEdge::myClassedAllowed [protected] |
From vehicle class to lanes allowed to be used by it.
Definition at line 500 of file MSEdge.h.
Referenced by allowedLanes(), rebuildAllowedLanes(), and ~MSEdge().
MSEdge::DictType MSEdge::myDict [static, protected] |
Static dictionary to associate string-ids with objects.
Definition at line 519 of file MSEdge.h.
Referenced by clear(), dictionary(), dictSize(), GUIEdge::fill(), GUIEdge::getIDs(), and insertIDs().
std::vector< MSEdge * > MSEdge::myEdges [static, protected] |
Static list of edges.
Definition at line 524 of file MSEdge.h.
Referenced by dictionary().
EdgeBasicFunction MSEdge::myFunction [protected] |
the purpose of the edge
Definition at line 477 of file MSEdge.h.
Referenced by changeLanes(), GUIEdge::drawGL(), getPurpose(), initialize(), and prohibits().
bool MSEdge::myHaveClassConstraints [protected] |
Whether any class constraints exist for this edge.
Definition at line 503 of file MSEdge.h.
Referenced by allowedLanes(), prohibits(), and rebuildAllowedLanes().
std::string MSEdge::myID [protected] |
MSLaneChanger* MSEdge::myLaneChanger [protected] |
This member will do the lane-change.
Definition at line 474 of file MSEdge.h.
Referenced by changeLanes(), initialize(), and ~MSEdge().
std::vector<MSLane*>* MSEdge::myLanes [protected] |
Container for the edge's lane; should be sorted: (right-hand-traffic) the more left the lane, the higher the container-index.
Definition at line 471 of file MSEdge.h.
Referenced by closeBuilding(), getCurrentTravelTime(), getDepartLane(), getLanes(), GUIEdge::getParameterWindow(), GUIEdge::initGeometry(), initialize(), leftLane(), prohibits(), rebuildAllowedLanes(), rightLane(), and ~MSEdge().
SUMOTime MSEdge::myLastFailedInsertionTime [mutable, protected] |
The time of last insertion failure.
Definition at line 483 of file MSEdge.h.
Referenced by getLastFailedInsertionTime(), and setLastFailedInsertionTime().
unsigned int MSEdge::myNumericalID [protected] |
std::vector<MSEdge*> MSEdge::myPredeccesors [protected] |
The preceeding edges.
Definition at line 489 of file MSEdge.h.
Referenced by closeBuilding(), and getIncomingEdges().
std::string MSEdge::myStreetName [protected] |
Definition at line 505 of file MSEdge.h.
Referenced by GUIEdge::drawGL(), and getStreetName().
std::vector<MSEdge*> MSEdge::mySuccessors [protected] |
The succeeding edges.
Definition at line 486 of file MSEdge.h.
Referenced by addFollower(), closeBuilding(), getFollower(), and getNoFollowing().
int MSEdge::myVaporizationRequests [protected] |
Vaporizer counter.
Definition at line 480 of file MSEdge.h.
Referenced by decVaporization(), incVaporization(), and isVaporizing().