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... | |
class | transportable_by_position_sorter |
Sorts transportables by their positions. More... | |
Public Types | |
typedef std::map< const MSEdge *, std::vector< MSLane * > * > | AllowedLanesCont |
Suceeding edges (keys) and allowed lanes to reach these edges (values). More... | |
typedef std::map < SUMOVehicleClass, AllowedLanesCont > | ClassedAllowedLanesCont |
Map from vehicle types to lanes that may be used to reach one of the next edges. More... | |
enum | EdgeBasicFunction { EDGEFUNCTION_UNKNOWN = -1, EDGEFUNCTION_NORMAL = 0, EDGEFUNCTION_CONNECTOR = 1, EDGEFUNCTION_INTERNAL = 2, EDGEFUNCTION_DISTRICT = 3, EDGEFUNCTION_CROSSING = 4, EDGEFUNCTION_WALKINGAREA = 5 } |
Defines possible edge types. More... | |
Public Member Functions | |
virtual void | addContainer (MSTransportable *container) const |
Add a container to myContainers. More... | |
void | addParameter (const std::string &key, const std::string &value) |
Adds a parameter. More... | |
void | addParameter (const std::map< std::string, std::string > &mapArg) |
Adds all given parameter. More... | |
void | addParameter (const Parameterised &p) |
Adds all given parameter. More... | |
virtual void | addPerson (MSTransportable *p) const |
void | addTo (const StoringVisitor &cont) const |
Adds this object to the given container. More... | |
bool | allowsLaneChanging () |
void | buildLaneChanger () |
Has to be called after all sucessors and predecessors have been set (after closeBuilding()) More... | |
bool | canChangeToOpposite () |
whether this edge allows changing to the opposite direction edge More... | |
virtual void | changeLanes (SUMOTime t) |
Performs lane changing on this edge. More... | |
void | clearParameter () |
Clears the parameter map. More... | |
void | closeBuilding () |
const std::vector< std::string > & | getCrossingEdges () const |
Gets the crossed edge ids. More... | |
SUMOReal | getCurrentTravelTime (const SUMOReal minSpeed=NUMERICAL_EPS) const |
Computes and returns the current travel time for this edge. More... | |
SUMOReal | getDistanceTo (const MSEdge *other) const |
optimistic air distance heuristic for use in routing More... | |
const std::string & | getID () const |
Returns the id. More... | |
SUMOReal | getLength () const |
return the length of the edge More... | |
const std::map< std::string, std::string > & | getMap () const |
Returns the inner key/value map. More... | |
SUMOReal | getMeanSpeed () const |
get the mean speed More... | |
SUMOReal | getMinimumTravelTime (const SUMOVehicle *const veh) const |
returns the minimum travel time for the given vehicle More... | |
const std::string & | getParameter (const std::string &key, const std::string &defaultValue) const |
Returns the value for a given key. More... | |
SVCPermissions | getPermissions () const |
SUMOReal | getRoutingSpeed () const |
Returns the averaged speed used by the routing device. More... | |
SUMOReal | getSpeedLimit () const |
Returns the speed limit of the edge The speed limit of the first lane is retured; should probably be the fastest edge. More... | |
const std::vector< SUMOReal > | getSubLaneSides () const |
Returns the right side offsets of this edge's sublanes. More... | |
SUMOReal | getVehicleMaxSpeed (const SUMOVehicle *const veh) const |
Returns the maximum speed the vehicle may use on this edge. More... | |
SUMOReal | getWidth () const |
Returns the edges's width (sum over all lanes) More... | |
bool | hasLaneChanger () const |
void | initialize (const std::vector< MSLane * > *lanes) |
Initialize the edge. More... | |
bool | isRoundabout () const |
bool | knowsParameter (const std::string &key) const |
Returns whether the parameter is known. More... | |
virtual void | lock () const |
grant exclusive access to the mesoscopic state More... | |
void | markAsRoundabout () |
void | markDelayed () const |
MSEdge (const std::string &id, int numericalID, const EdgeBasicFunction function, const std::string &streetName, const std::string &edgeType, int priority) | |
Constructor. More... | |
bool | prohibits (const SUMOVehicle *const vehicle) const |
Returns whether the vehicle (class) is not allowed on the edge. More... | |
void | rebuildAllowedLanes () |
void | recalcCache () |
Recalculates the cached values. More... | |
virtual void | removeContainer (MSTransportable *container) const |
Remove container from myContainers. More... | |
virtual void | removePerson (MSTransportable *p) const |
void | setCrossingEdges (const std::vector< std::string > &crossingEdges) |
Sets the crossed edge ids for a crossing edge. More... | |
void | setID (const std::string &newID) |
resets the id More... | |
void | setMaxSpeed (SUMOReal val) const |
Sets a new maximum speed for all lanes (used by TraCI and MSCalibrator) More... | |
virtual void | unlock () const |
release exclusive access to the mesoscopic state More... | |
virtual | ~MSEdge () |
Destructor. More... | |
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. More... | |
MSLane * | rightLane (const MSLane *const lane) const |
Returns the lane right to the one given, 0 if the given lane is rightmost. More... | |
MSLane * | parallelLane (const MSLane *const lane, int offset) const |
Returns the lane with the given offset parallel to the given lane one or 0 if it does not exist. More... | |
const std::vector< MSLane * > & | getLanes () const |
Returns this edge's lanes. More... | |
const std::set < MSTransportable * > & | getPersons () const |
Returns this edge's persons set. More... | |
std::vector< MSTransportable * > | getSortedPersons (SUMOTime timestep) const |
Returns this edge's persons sorted by pos. More... | |
std::vector< MSTransportable * > | getSortedContainers (SUMOTime timestep) const |
Returns this edge's containers sorted by pos. More... | |
const std::vector< MSLane * > * | allowedLanes (const MSEdge &destination, SUMOVehicleClass vclass=SVC_IGNORING) const |
Get the allowed lanes to reach the destination-edge. More... | |
const std::vector< MSLane * > * | allowedLanes (SUMOVehicleClass vclass=SVC_IGNORING) const |
Get the allowed lanes for the given vehicle class. More... | |
Access to other edge attributes | |
EdgeBasicFunction | getPurpose () const |
Returns the edge type (EdgeBasicFunction) More... | |
bool | isInternal () const |
return whether this edge is an internal edge More... | |
bool | isCrossing () const |
return whether this edge is a pedestrian crossing More... | |
bool | isWalkingArea () const |
return whether this edge is walking area More... | |
bool | isTaz () const |
int | getNumericalID () const |
Returns the numerical id of the edge. More... | |
const std::string & | getStreetName () const |
Returns the street name of the edge. More... | |
const std::string & | getEdgeType () const |
Returns the type of the edge. More... | |
int | getPriority () const |
Returns the priority of the edge. More... | |
Access to succeeding/predecessing edges | |
void | addSuccessor (MSEdge *edge) |
Adds an edge to the list of edges which may be reached from this edge and to the incoming of the other edge. More... | |
const MSEdgeVector & | getIncomingEdges () const |
Returns the list of edges from which this edge may be reached. More... | |
const std::vector< MSEdge * > & | getOutgoingEdges () const |
Returns the list of edges that may be reached from this edge. More... | |
int | getNumSuccessors () const |
Returns the number of edges that may be reached from this edge. More... | |
const MSEdgeVector & | getSuccessors () const |
Returns the following edges. More... | |
const MSEdgeVector & | getSuccessors (SUMOVehicleClass vClass) const |
Returns the following edges, restricted by vClass. More... | |
int | getNumPredecessors () const |
Returns the number of edges this edge is connected to. More... | |
const MSEdgeVector & | getPredecessors () const |
Returns the edge at the given position from the list of reachable edges. More... | |
const MSJunction * | getFromJunction () const |
const MSJunction * | getToJunction () const |
void | setJunctions (MSJunction *from, MSJunction *to) |
Access to vaporizing interface | |
bool | isVaporizing () const |
Returns whether vehicles on this edge shall be vaporized. More... | |
SUMOTime | incVaporization (SUMOTime t) |
Enables vaporization. More... | |
SUMOTime | decVaporization (SUMOTime t) |
Disables vaporization. More... | |
Methods releated to vehicle insertion | |
bool | insertVehicle (SUMOVehicle &v, SUMOTime time, const bool checkOnly=false) const |
Tries to insert the given vehicle into the network. More... | |
MSLane * | getFreeLane (const std::vector< MSLane * > *allowed, const SUMOVehicleClass vclass) const |
Finds the emptiest lane allowing the vehicle class. More... | |
MSLane * | getDepartLane (MSVehicle &veh) const |
Finds a depart lane for the given vehicle parameters. More... | |
SUMOTime | getLastFailedInsertionTime () const |
Returns the last time a vehicle could not be inserted. More... | |
void | setLastFailedInsertionTime (SUMOTime time) const |
Sets the last time a vehicle could not be inserted. More... | |
Static Public Member Functions | |
static void | clear () |
Clears the dictionary. More... | |
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. More... | |
static MSEdge * | dictionary (const std::string &id) |
Returns the MSEdge associated to the key id if exists, otherwise returns 0. More... | |
static int | dictSize () |
Returns the number of edges. More... | |
static const MSEdgeVector & | getAllEdges () |
Returns all edges with a numerical id. More... | |
template<class T > | |
static std::string | getIDSecure (const T *obj, const std::string &fallBack="NULL") |
get an identifier for Named-like object which may be Null More... | |
static SUMOReal | getTravelTimeStatic (const MSEdge *const edge, const SUMOVehicle *const veh, SUMOReal time) |
Returns the travel time for the given edge. More... | |
static void | insertIDs (std::vector< std::string > &into) |
Inserts IDs of all known edges into the given vector. More... | |
Static parser helper | |
static void | parseEdgesList (const std::string &desc, ConstMSEdgeVector &into, const std::string &rid) |
Parses the given string assuming it contains a list of edge ids divided by spaces. More... | |
static void | parseEdgesList (const std::vector< std::string > &desc, ConstMSEdgeVector &into, const std::string &rid) |
Parses the given string vector assuming it edge ids. More... | |
Protected Member Functions | |
const std::vector< MSLane * > * | allowedLanes (const MSEdge *destination, SUMOVehicleClass vclass=SVC_IGNORING) const |
Get the allowed lanes to reach the destination-edge. More... | |
const std::vector< MSLane * > * | getAllowedLanesWithDefault (const AllowedLanesCont &c, const MSEdge *dest) const |
lookup in map and return 0 if not found More... | |
Protected Attributes | |
bool | myAmDelayed |
whether this edge had a vehicle with less than max speed on it More... | |
bool | myAmRoundabout |
whether this edge belongs to a roundabout More... | |
std::map< SUMOVehicleClass, MSEdgeVector > | myClassesSuccessorMap |
The successors available for a given vClass. More... | |
std::set< MSTransportable * > | myContainers |
Containers on the edge. More... | |
std::vector< std::string > | myCrossingEdges |
The crossed edges id for a crossing edge. On not crossing edges it is empty. More... | |
std::string | myEdgeType |
the type of the edge (optionally used during network creation) More... | |
SUMOReal | myEmptyTraveltime |
the traveltime on the empty edge (cached value for speedup) More... | |
MSJunction * | myFromJunction |
the junctions for this edge More... | |
const EdgeBasicFunction | myFunction |
the purpose of the edge More... | |
std::string | myID |
The name of the object. More... | |
MSLaneChanger * | myLaneChanger |
This member will do the lane-change. More... | |
const 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. More... | |
SUMOTime | myLastFailedInsertionTime |
The time of last insertion failure. More... | |
SUMOReal | myLength |
the length of the edge (cached value for speedup) More... | |
const int | myNumericalID |
This edge's numerical id. More... | |
std::set< MSTransportable * > | myPersons |
Persons on the edge for drawing and pushbutton. More... | |
MSEdgeVector | myPredecessors |
The preceeding edges. More... | |
const int | myPriority |
the priority of the edge (used during network creation) More... | |
std::string | myStreetName |
the real-world name of this edge (need not be unique) More... | |
std::vector< SUMOReal > | mySublaneSides |
the right side for each sublane on this edge More... | |
MSEdgeVector | mySuccessors |
The succeeding edges. More... | |
MSJunction * | myToJunction |
int | myVaporizationRequests |
Vaporizer counter. More... | |
SUMOReal | myWidth |
Edge width [m]. More... | |
Storages for allowed lanes (depending on vehicle classes) | |
AllowedLanesCont | myAllowed |
Associative container from destination-edge to allowed-lanes. More... | |
ClassedAllowedLanesCont | myClassedAllowed |
From vehicle class to lanes allowed to be used by it. More... | |
SVCPermissions | myMinimumPermissions |
The intersection of lane permissions for this edge. More... | |
SVCPermissions | myCombinedPermissions |
The union of lane permissions for this edge. More... | |
Private Member Functions | |
MSEdge (const MSEdge &) | |
Invalidated copy constructor. More... | |
MSEdge & | operator= (const MSEdge &) |
assignment operator. More... | |
Static edge container | |
typedef std::map< std::string, MSEdge * > | DictType |
definition of the static dictionary type More... | |
static DictType | myDict |
Static dictionary to associate string-ids with objects. More... | |
static MSEdgeVector | myEdges |
Static list of edges. More... | |
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 |
|
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, |
int | numericalID, | ||
const EdgeBasicFunction | function, | ||
const std::string & | streetName, | ||
const std::string & | edgeType, | ||
int | priority | ||
) |
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] | function | A basic type of the edge |
[in] | streetName | The street name for that edge |
Definition at line 75 of file MSEdge.cpp.
|
virtual |
Destructor.
Definition at line 94 of file MSEdge.cpp.
References myAllowed, myClassedAllowed, myLaneChanger, and myLanes.
|
private |
Invalidated copy constructor.
|
inlinevirtual |
Add a container to myContainers.
Reimplemented in GUIEdge.
Definition at line 626 of file MSEdge.h.
References myContainers.
Referenced by GUIEdge::addContainer(), and MSTransportable::Stage_Waiting::proceed().
|
inherited |
Adds a parameter.
[in] | key | The parameter's name |
[in] | value | The parameter's value |
Definition at line 53 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by SUMORouteHandler::addParam(), NLHandler::addParam(), PCLoaderOSM::addPOI(), PCLoaderOSM::addPolygon(), NBTrafficLightDefinition::compute(), NIImporter_OpenDrive::loadNetwork(), NIImporter_MATSim::EdgesHandler::myStartElement(), TraCIServerAPI_Edge::processSet(), TraCIServerAPI_POI::processSet(), TraCIServerAPI_TLS::processSet(), TraCIServerAPI_Polygon::processSet(), and TraCIServerAPI_Lane::processSet().
|
inherited |
Adds all given parameter.
[in] | mapArg | The keys/values to insert |
Definition at line 59 of file Parameterised.cpp.
References Parameterised::myMap.
|
inherited |
Adds all given parameter.
[in] | p | The keys/values to insert |
Definition at line 67 of file Parameterised.cpp.
References Parameterised::myMap.
|
inlinevirtual |
Reimplemented in GUIEdge.
Definition at line 614 of file MSEdge.h.
References myPersons.
Referenced by GUIEdge::addPerson(), and MSTransportable::Stage_Waiting::proceed().
|
inline |
Adds an edge to the list of edges which may be reached from this edge and to the incoming of the other edge.
This is mainly used by the taz (district) parsing
[in] | edge | The edge to add |
Definition at line 323 of file MSEdge.h.
References myPredecessors, and mySuccessors.
Referenced by NLHandler::addDistrict().
|
inlineinherited |
Adds this object to the given container.
in,filled] | cont The container to add this item to |
Definition at line 129 of file Named.h.
References Named::StoringVisitor::add().
const std::vector< MSLane * > * MSEdge::allowedLanes | ( | const MSEdge & | destination, |
SUMOVehicleClass | vclass = SVC_IGNORING |
||
) | 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 300 of file MSEdge.cpp.
Referenced by allowedLanes(), MSVehicleTransfer::checkInsertions(), getDepartLane(), getFreeLane(), MS_E2_ZS_CollectorOverLanes::getLanePredeccessorLanes(), getSuccessors(), MESegment::MESegment(), MSLane::by_connections_to_sorter::operator()(), MSBaseVehicle::reroute(), and MSVehicle::updateBestLanes().
const std::vector< MSLane * > * MSEdge::allowedLanes | ( | SUMOVehicleClass | vclass = SVC_IGNORING | ) | 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 306 of file MSEdge.cpp.
References allowedLanes().
|
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 322 of file MSEdge.cpp.
References MSLane::allowsVehicleClass(), getAllowedLanesWithDefault(), MSLane::getEdge(), myAllowed, myClassedAllowed, and myMinimumPermissions.
bool MSEdge::allowsLaneChanging | ( | ) |
Definition at line 228 of file MSEdge.cpp.
References EDGEFUNCTION_INTERNAL, MSLinkContHelper::getConnectingLink(), MSLane::getLogicalPredecessorLane(), MSLink::getState(), LINKSTATE_ALLWAY_STOP, LINKSTATE_DEADEND, LINKSTATE_EQUAL, LINKSTATE_MINOR, LINKSTATE_STOP, myFunction, and myLanes.
Referenced by buildLaneChanger().
void MSEdge::buildLaneChanger | ( | ) |
Has to be called after all sucessors and predecessors have been set (after closeBuilding())
Definition at line 210 of file MSEdge.cpp.
References allowsLaneChanging(), canChangeToOpposite(), MSGlobals::gLaneChangeDuration, MSGlobals::gLateralResolution, myLaneChanger, and myLanes.
bool MSEdge::canChangeToOpposite | ( | ) |
whether this edge allows changing to the opposite direction edge
Definition at line 857 of file MSEdge.cpp.
References myLanes.
Referenced by buildLaneChanger(), and MSLaneChanger::changeOpposite().
|
virtual |
Performs lane changing on this edge.
Definition at line 578 of file MSEdge.cpp.
References EDGEFUNCTION_INTERNAL, MSLinkContHelper::getConnectingLink(), MSLane::getLogicalPredecessorLane(), MSLink::getState(), MSLaneChanger::laneChange(), LINKSTATE_ALLWAY_STOP, LINKSTATE_DEADEND, LINKSTATE_EQUAL, LINKSTATE_MINOR, LINKSTATE_STOP, LINKSTATE_ZIPPER, myFunction, myLaneChanger, and myLanes.
Referenced by MSEdgeControl::changeLanes().
|
static |
Clears the dictionary.
Definition at line 712 of file MSEdge.cpp.
References myDict.
Referenced by MSNet::clearAll(), and MSVehicle::updateBestLanes().
|
inherited |
Clears the parameter map.
Definition at line 91 of file Parameterised.cpp.
References Parameterised::myMap.
void MSEdge::closeBuilding | ( | ) |
Definition at line 166 of file MSEdge.cpp.
References MELoop::buildSegmentsFor(), MSLane::getEdge(), OptionsCont::getOptions(), MSGlobals::gMesoNet, MSGlobals::gUseMesoSim, myAllowed, myLanes, myPredecessors, 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 390 of file MSEdge.cpp.
References myVaporizationRequests.
Referenced by NLTriggerBuilder::buildVaporizer().
|
static |
Inserts edge into the static dictionary Returns true if the key id isn't already in the dictionary. Otherwise returns false.
Definition at line 673 of file MSEdge.cpp.
References getNumericalID(), myDict, and myEdges.
Referenced by NLHandler::addConnection(), NLHandler::addDistrict(), NLHandler::addDistrictEdge(), NLBuilder::EdgeFloatTimeLineRetriever_EdgeEffort::addEdgeWeight(), NLBuilder::EdgeFloatTimeLineRetriever_EdgeTravelTime::addEdgeWeight(), NLHandler::addRoundabout(), MEVehicle::addStop(), NLEdgeControlBuilder::beginEdgeParsing(), NLTriggerBuilder::buildVaporizer(), NLHandler::closeEdge(), TraCIServerAPI_Simulation::convertCartesianToRoadMap(), NLDetectorBuilder::getEdgeChecking(), TraCIServerAPI_Simulation::getLaneChecking(), TraCIServerAPI_Edge::getShape(), MSPedestrianPushButton::loadPushButtons(), NLHandler::myEndElement(), MSRouteHandler::myStartElement(), MSTriggeredRerouter::myStartElement(), NLTriggerBuilder::parseAndBuildRerouter(), parseEdgesList(), MSRouteHandler::parseFromViaTo(), TraCIServerAPI_Edge::processGet(), TraCIServerAPI_Vehicle::processGet(), TraCIServerAPI_Edge::processSet(), TraCIServerAPI_Route::processSet(), TraCIServerAPI_Vehicle::processSet(), MSBaseVehicle::reroute(), and TraCIServerAPI_Vehicle::vtdMap().
|
static |
Returns the MSEdge associated to the key id if exists, otherwise returns 0.
Definition at line 689 of file MSEdge.cpp.
References myDict.
|
static |
Returns the number of edges.
Definition at line 700 of file MSEdge.cpp.
References myDict.
Referenced by GUIEdge::fill(), and MSStateHandler::saveState().
|
static |
Returns all edges with a numerical id.
Definition at line 706 of file MSEdge.cpp.
References myEdges.
Referenced by MSNet::getRouterEffort(), MSDevice_Routing::getRouterTT(), MSNet::getRouterTT(), MSPModel_Striping::initWalkingAreaPaths(), MSPedestrianPushButton::loadCrossingEdgeMap(), MSStateHandler::myStartElement(), GUIApplicationWindow::onCmdEditChosen(), MSDevice_Routing::reroute(), and MSStateHandler::saveState().
|
protected |
lookup in map and return 0 if not found
Definition at line 312 of file MSEdge.cpp.
Referenced by allowedLanes().
|
inline |
Gets the crossed edge ids.
Definition at line 310 of file MSEdge.h.
References myCrossingEdges.
Referenced by MSPedestrianPushButton::loadCrossingEdgeMap().
SUMOReal MSEdge::getCurrentTravelTime | ( | const SUMOReal | minSpeed = NUMERICAL_EPS | ) | const |
Computes and returns the current travel time for this edge.
The mean speed of all lanes is used to compute the travel time. To avoid infinite travel times, the given minimum speed is used.
[in] | minSpeed | The minimumSpeed to assume if traffic on this edge is stopped |
Definition at line 656 of file MSEdge.cpp.
References getLength(), getMeanSpeed(), MAX2(), myAmDelayed, and myEmptyTraveltime.
Referenced by MSVehicleTransfer::add(), MSVehicleTransfer::checkInsertions(), TraCIServerAPI_Edge::processGet(), and MSFullExport::writeEdge().
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 417 of file MSEdge.cpp.
References allowedLanes(), MSRoute::begin(), DEPART_LANE_ALLOWED_FREE, DEPART_LANE_BEST_FREE, DEPART_LANE_DEFAULT, DEPART_LANE_FIRST_ALLOWED, 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(), SUMOReal, and MSVehicle::updateBestLanes().
Referenced by insertVehicle().
optimistic air distance heuristic for use in routing
[in] | other | The edge to which the distance shall be returned |
Definition at line 759 of file MSEdge.cpp.
References Position::distanceTo2D(), getFromJunction(), getLanes(), MSJunction::getPosition(), and getToJunction().
|
inline |
Returns the type of the edge.
Definition at line 288 of file MSEdge.h.
References myEdgeType.
Referenced by GUILane::getParameterWindow(), and MSLane::MSLane().
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 397 of file MSEdge.cpp.
References allowedLanes(), max, and SUMOReal.
Referenced by MSVehicleTransfer::checkInsertions(), and getDepartLane().
|
inline |
Definition at line 383 of file MSEdge.h.
References myFromJunction.
Referenced by MSPModel::canTraverse(), MSPModel_NonInteracting::PState::computeWalkingTime(), getDistanceTo(), MSPModel_Striping::getNextLane(), MSPModel_Striping::PState::PState(), and MSLink::setRequestInformation().
|
inlineinherited |
Returns the id.
Definition at line 66 of file Named.h.
References Named::myID.
Referenced by NIImporter_SUMO::_loadNetwork(), MSVehicle::adaptToLeader(), MSVehicle::adaptToLeaders(), PCPolyContainer::add(), MSVehicleTransfer::add(), TraCIServerAPI_Lane::StoringVisitor::add(), MSDetectorControl::add(), Named::StoringVisitor::add(), ShapeContainer::add(), IntermodalRouter< E, L, N, V >::addAccess(), NLTriggerBuilder::addAccess(), RORouteDef::addAlternative(), MSLane::addApproachingLane(), MSNet::addBusStop(), MSNet::addChargingStation(), NBLoadedSUMOTLDef::addConnection(), NLHandler::addConnection(), MSNet::addContainerStop(), NIXMLConnectionsHandler::addCrossing(), RODFDetectorCon::addDetector(), RONet::addEdge(), ROJTREdge::addFollowerProbability(), MSTLLogicControl::TLSLogicVariants::addLogic(), RONet::addNode(), NIImporter_SUMO::addPhase(), GUIEdge::addRerouter(), NBEdge::addRestrictedLane(), RONet::addRouteDef(), NBDistrict::addSink(), NBDistrict::addSource(), NIXMLEdgesHandler::addSplit(), NBTrafficLightLogic::addStep(), MSRouteHandler::addStop(), ROVehicle::addStop(), MSVehicle::addStop(), NBEdge::addStraightConnections(), NIXMLTrafficLightsHandler::addTlConnection(), NIVissimDisturbance::addToNode(), MSVehicle::addTraciBusOrContainerStop(), MSVehicle::addTraciStop(), AGActivityTripWriter::addTrip(), GUITrafficLightLogicWrapper::begin2TrackPhases(), MSTransportable::Stage_Waiting::beginEventOutput(), MSTransportable::Stage_Driving::beginEventOutput(), NLEdgeControlBuilder::build(), NIVisumTL::build(), RODFNet::buildApproachList(), MS_E2_ZS_CollectorOverLanes::buildCollector(), MSSOTLE2Sensors::buildContinueSensior(), MSSOTLE2Sensors::buildCountSensorForLane(), MSSOTLE2Sensors::buildCountSensorForOutLane(), NBNode::buildCrossings(), NBNode::buildCrossingsAndWalkingAreas(), NIImporter_VISUM::buildDistrictNode(), NIVissimConnection::buildEdgeConnections(), RODFNet::buildEdgeFlowMap(), GNETLSEditorFrame::buildIinternalLanes(), NBEdge::buildInnerEdges(), NGEdge::buildNBEdge(), NIVissimEdge::buildNBEdge(), NBRampsComputer::buildOffRamp(), NBRampsComputer::buildOnRamp(), MELoop::buildSegmentsFor(), MSSOTLE2Sensors::buildSensorForLane(), MSSOTLE2Sensors::buildSensorForOutLane(), NBNode::buildWalkingAreas(), MSBaseVehicle::calculateArrivalParams(), MSSwarmTrafficLightLogic::calculateEtaDiff(), MSSwarmTrafficLightLogic::calculateEtaRatio(), MSSOTLPolicyBasedTrafficLightLogic::canRelease(), MSLaneChanger::changeOpposite(), MELoop::changeSegment(), MSSimpleTrafficLightLogic::changeStepAndDuration(), NBEdge::checkGeometry(), MSVehicleTransfer::checkInsertions(), MSVehicle::checkRewindLinkLanes(), MSSwarmTrafficLightLogic::choosePolicy(), ODDistrictHandler::closeDistrict(), NLHandler::closeEdge(), RORouteHandler::closeRouteDistribution(), RORouteHandler::closeVehicle(), NBTrafficLightDefinition::collectAllLinks(), NBLoadedSUMOTLDef::collectEdges(), NBTrafficLightDefinition::collectEdges(), NBLoadedSUMOTLDef::collectEdgeVectors(), NBLoadedTLDef::collectLinks(), ROJTRRouter::compute(), NBTrafficLightDefinition::compute(), NBNode::computeInternalLaneShape(), NBEdge::computeLaneShapes(), NBNode::computeLogic(), NBOwnTLDef::computeLogicAndConts(), NBNode::computeNodeShape(), NBNodeShapeComputer::computeNodeShapeDefault(), NBNodeShapeComputer::computeNodeShapeSmall(), RODFNet::computeRoutesFor(), NBTrafficLightLogicCont::computeSingleLogic(), NBNode::computeSmoothShape(), NBTurningDirectionsComputer::computeTurnDirectionsForNode(), NGNet::connect(), NLDetectorBuilder::convUncontE2PosLength(), MSSOTLWaveTrafficLightLogic::countVehicles(), MSSOTLE2Sensors::countVehicles(), GUINet::createTLWrapper(), MSSOTLPolicyBasedTrafficLightLogic::decideNextPhase(), MSSwarmTrafficLightLogic::decideNextPhase(), MSDeterministicHiLevelTrafficLightLogic::decidePolicy(), MSSwarmTrafficLightLogic::decidePolicy(), NIVissimDistrictConnection::dict_BuildDistricts(), NBEdge::divideOnEdges(), NBEdge::divideSelectedLanesOnEdges(), MSTransportable::Stage_Waiting::endEventOutput(), MSTransportable::Stage_Driving::endEventOutput(), MSE3Collector::enter(), METriggeredCalibrator::execute(), MSCalibrator::execute(), Command_SaveTLSState::execute(), Command_SaveTLSSwitchStates::execute(), Command_SaveTLSSwitches::execute(), MSVTypeProbe::execute(), MSPModel_Striping::MovePedestrians::execute(), MSVehicle::executeMove(), MSLane::executeMovements(), NBNodeCont::extract(), NBTrafficLightLogicCont::extract(), NBEdgeCont::extract(), TraCIServerAPI_Vehicle::findCloserLane(), NBRampsComputer::fulfillsRampConstraints(), RODFDetectorCon::getAggFlowFor(), RODFDetectorCon::getAnyDetectorForEdge(), GNEConnection::getAttribute(), MSVehicle::getBackPosition(), MSNet::getBusStopID(), MSVehicle::getCenterOnEdge(), MSDevice_Battery::getChargingStationID(), MSNet::getChargingStationID(), NBEdge::getConnection(), NBEdge::getConnectionRef(), MSNet::getContainerStopID(), NBEdge::getCrossingAngle(), RODFNet::getDetectorEdge(), MSMeanData::getEdgeID(), MSE2Collector::getEstimateQueueLength(), NBEdge::getFirstNonPedestrianLane(), MSLane::getFollower(), MSLane::getFollowerOnConsecutive(), MSLane::getFollowersOnConsecutive(), GNEEdge::getGNEJunctionDest(), GNEEdge::getGNEJunctionSource(), MS_E2_ZS_CollectorOverLanes::getLanePredeccessorLanes(), MSLane::getLastVehicleInformation(), MSVehicle::getLatOffset(), MSLane::getLeader(), MSLane::getLeaderOnConsecutive(), MSLane::getLeadersOnConsecutive(), MSDeterministicHiLevelTrafficLightLogic::getMeanSpeedForInputLanes(), MSDeterministicHiLevelTrafficLightLogic::getMeanSpeedForOutputLanes(), NIImporter_VISUM::getNamedEdgeContinuating(), MSPerson::getNextEdge(), MSPModel_Striping::getNextLane(), MSLane::getOppositeFollower(), MSLane::getOppositeLeader(), MSLane::getOppositePos(), GUIVehicle::getParameterWindow(), GUILane::getParentName(), MSLane::getPartialBehind(), MSSOTLTrafficLightLogic::getPhaseIndexWithMaxCTS(), MSSwarmTrafficLightLogic::getPheromoneForInputLanes(), MSSwarmTrafficLightLogic::getPheromoneForOutputLanes(), GUITrafficLightLogicWrapper::getPopUpMenu(), NLTriggerBuilder::getPosition(), NLDetectorBuilder::getPositionChecking(), NBNode::getPossiblySplittedIncoming(), NBNode::getPossiblySplittedOutgoing(), NIImporter_VISUM::getReversedContinuating(), MSVehicleControl::getWaitingVehicle(), MSLink::getZipperSpeed(), NBNode::guessCrossings(), RODFDetectorCon::guessEmptyFlows(), NBEdgeCont::guessSidewalks(), NBNodeCont::guessTLs(), GUITLLogicPhasesTrackerWindow::GUITLLogicPhasesTrackerWindow(), MSLane::handleCollisionBetween(), NBEdgeCont::ignoreFilterMatch(), MSDeterministicHiLevelTrafficLightLogic::init(), MSRailSignal::init(), MSActuatedTrafficLightLogic::init(), MSTrafficLightLogic::init(), MSSwarmTrafficLightLogic::init(), NIImporter_SUMO::initTrafficLightLogic(), NIXMLTrafficLightsHandler::initTrafficLightLogic(), NBDistrictCont::insert(), NBNodeCont::insert(), NBTrafficLightLogicCont::insert(), NBEdgeCont::insert(), insertVehicle(), IntermodalNetwork< E, L, N, V >::IntermodalNetwork(), GNEJunction::invalidateTLS(), NBNode::invalidateTLS(), MSTLLogicControl::isActive(), MSPedestrianPushButton::isActiveForEdge(), MSPedestrianPushButton::isActiveOnAnySideOfTheRoad(), RODFNet::isDestination(), RODFNet::isFalseSource(), MSLane::isInsertionSuccess(), RODFNet::isSource(), MSSOTLTrafficLightLogic::isThresholdPassed(), NBNodeCont::joinJunctions(), NBEdgeCont::joinSameNodeConnectingEdges(), MSE3Collector::leave(), MSE3Collector::leaveFront(), MSDevice_BTreceiver::BTreceiverUpdate::leaveRange(), MSPedestrianPushButton::loadCrossingEdgeMap(), NIImporter_OpenDrive::loadNetwork(), MSPedestrianPushButton::loadPushButtons(), NBEdge::MainDirections::MainDirections(), ODDistrictCont::makeDistricts(), NBNodeCont::mapToNumericalIDs(), NBEdgeCont::mapToNumericalIDs(), GNEJunction::markAsModified(), MSSOTLE2Sensors::meanVehiclesSpeed(), METriggeredCalibrator::METriggeredCalibrator(), MSPModel_Striping::moveInDirection(), MSPModel_Striping::moveInDirectionOnLane(), NBRampsComputer::moveRampRight(), MSPModel_Striping::PState::moveToNextLane(), MSCalibrator::MSCalibrator(), MSChargingStation::MSChargingStation(), MSDevice_Battery::MSDevice_Battery(), NBLoadedTLDef::myCompute(), NIXMLEdgesHandler::myEndElement(), NIImporter_SUMO::myEndElement(), NIXMLConnectionsHandler::myStartElement(), MSLaneSpeedTrigger::myStartElement(), MSTriggeredRerouter::myStartElement(), NBConnection::NBConnection(), NBRequest::NBRequest(), MSDevice_BTreceiver::notifyEnter(), MSDevice_BTsender::notifyEnter(), MSDevice_Example::notifyEnter(), MSDevice_Tripinfo::notifyEnter(), MSCalibrator::VehicleRemover::notifyEnter(), MSTriggeredRerouter::notifyEnter(), MSDevice_Transportable::notifyLeave(), MSDevice_Example::notifyLeave(), MSDevice_Tripinfo::notifyLeave(), MSDevice_BTreceiver::notifyLeave(), MSDevice_BTsender::notifyLeave(), MSDevice_Example::notifyMove(), MSDevice_BTreceiver::notifyMove(), MSDevice_BTsender::notifyMove(), MSE2Collector::notifyMove(), GUIViewTraffic::onGamingClick(), GNEViewNet::onLeftBtnPress(), RORouteHandler::openRoute(), Named::ComparatorIdLess::operator()(), NBTurningDirectionsComputer::combination_by_angle_sorter::operator()(), RODFNet::idComp::operator()(), NBNetBuilder::by_id_sorter::operator()(), NBOwnTLDef::edge_by_incoming_priority_sorter::operator()(), NBContHelper::same_connection_edge_sorter::operator()(), NBContHelper::edge_by_angle_to_nodeShapeCentroid_sorter::operator()(), NBNode::nodes_by_id_sorter::operator()(), MSEdge::by_id_sorter::operator()(), NIImporter_VISUM::parse_EdgePolys(), NIImporter_VISUM::parse_Lanes(), NIImporter_VISUM::parse_LanesConnections(), NIImporter_VISUM::parse_Turns(), NIImporter_VISUM::parse_TurnsToSignalGroups(), NIXMLConnectionsHandler::parseDeprecatedLaneDefinition(), NIXMLConnectionsHandler::parseLaneBound(), MSRouteHandler::parseWalkPositions(), NBLoadedSUMOTLDef::patchIfCrossingsAdded(), MSLCM_SL2015::patchSpeed(), MSLCM_LC2013::patchSpeed(), NBLoadedTLDef::SignalGroup::patchTYellow(), MSVehicle::planMove(), MSLane::planMovements(), MSRightOfWayJunction::postloadInit(), NBEdge::prepareEdgePriorities(), MSAbstractLaneChangeModel::primaryLaneChanged(), AGStreet::print(), TraCIServerAPI_TLS::processGet(), TraCIServerAPI_InductionLoop::processGet(), TraCIServerAPI_Vehicle::processGet(), TraCIServerAPI_Person::processGet(), TraCIServerAPI_ArealDetector::processGet(), TraCIServerAPI_Lane::processGet(), MSVehicle::processNextStop(), TraCIServerAPI_Vehicle::processSet(), NIXMLNodesHandler::processTrafficLightDefinitions(), NWWriter_SUMO::prohibitionConnection(), MSPModel_Striping::PState::PState(), NBEdgeCont::recheckPostProcessConnections(), NIImporter_OpenStreetMap::reconstructLayerElevation(), NBLoadedTLDef::SignalGroup::remapIncoming(), NBLoadedTLDef::SignalGroup::remapOutgoing(), NBLoadedSUMOTLDef::removeConnection(), NBNodeCont::removeIsolatedRoads(), MSCalibrator::removePending(), NBNode::removeSelfLoops(), NBEdgeCont::removeUnwishedEdges(), NBNodeCont::rename(), NBEdgeCont::rename(), GNENet::renameEdge(), GNENet::renameJunction(), RORouteDef::repairCurrentRoute(), NBConnection::replaceFrom(), MSBaseVehicle::replaceRouteEdges(), NBConnection::replaceTo(), NIImporter_DlrNavteq::TrafficlightsHandler::report(), MSBaseVehicle::reroute(), MSLane::resetPartialOccupation(), NBEdge::restoreRestrictedLane(), GNEEdge::retrieveConnection(), NIXMLTrafficLightsHandler::retrieveLaneIndex(), RODFNet::revalidateFlows(), RONet::saveAndRemoveRoutesUntil(), ROPerson::Ride::saveAsXML(), MSBaseVehicle::saveState(), MSLane::saveState(), MSDevice_Battery::setAirDragCoefficient(), NBNodeCont::setAsTLControlled(), MSChargingStation::setChargeDelay(), MSChargingStation::setChargingPower(), MSDevice_Battery::setConstantPowerIntake(), NBEdge::setControllingTLInformation(), MSChargingStation::setEfficency(), MSDevice_Battery::setFrontSurfaceArea(), MSDevice_Battery::setInternalMomentOfInertia(), GNEJunction::setLogicValid(), MSDevice_Battery::setMass(), MSDevice_Battery::setMaximumBatteryCapacity(), NIXMLEdgesHandler::setNodes(), MSLane::setPartialOccupation(), MSDevice_Battery::setPowerMax(), MSDevice_Battery::setPropulsionEfficiency(), MSDevice_Battery::setRadialDragCoefficient(), MSDevice_Battery::setRecuperationEfficiency(), MSLink::setRequestInformation(), MSDevice_Battery::setRollDragCoefficient(), NBLoadedSUMOTLDef::setTLControllingInformation(), NBOwnTLDef::setTLControllingInformation(), NBTrafficLightLogicCont::setTLControllingInformation(), NBLoadedTLDef::setTLControllingInformation(), NBEdge::shiftPositionAtNode(), NBEdgeCont::splitAt(), MSLane::succLinkSec(), GUITrafficLightLogicWrapper::switchTLSLogic(), MELoop::teleportVehicle(), METriggeredCalibrator::tryEmit(), MSSOTLTrafficLightLogic::trySwitch(), MSVehicle::updateBestLanes(), MSSOTLTrafficLightLogic::updateCTS(), GNETLSEditorFrame::updateDescription(), MSSwarmTrafficLightLogic::updatePheromoneLevels(), MSSwarmTrafficLightLogic::updateSensitivities(), MSDevice_BTreceiver::BTreceiverUpdate::updateVisibility(), TraCIServerAPI_Vehicle::vtdMap(), MSLCM_LC2013::wantsChange(), MSLCM_SL2015::wantsChangeSublane(), MSEmissionExport::write(), MSBatteryExport::write(), MSFCDExport::write(), MSInstantInductLoop::write(), NBSign::writeAsPOI(), NWWriter_SUMO::writeConnection(), NWWriter_SUMO::writeDistrict(), MSFullExport::writeEdge(), MSXMLRawOut::writeEdge(), NWWriter_SUMO::writeEdge(), MSMeanData::writeEdge(), NWWriter_XML::writeEdgesAndConnections(), RODFDetector::writeEmitterDefinition(), RODFDetectorCon::writeEmitterPOIs(), RODFDetectorCon::writeEmitters(), RODFDetectorCon::writeEndRerouterDetectors(), NWWriter_SUMO::writeInternalConnections(), writeInterval(), NWWriter_SUMO::writeJunction(), MSQueueExport::writeLane(), MSFullExport::writeLane(), NWWriter_DlrNavteq::writeLinksUnsplitted(), NWWriter_OpenDrive::writeNetwork(), NWWriter_XML::writeNodes(), NWWriter_DlrNavteq::writeNodesUnsplitted(), NWWriter_SUMO::writeRoundabout(), RODFDetectorCon::writeSpeedTrigger(), NWWriter_DlrNavteq::writeTrafficSignals(), MSFCDExport::writeTransportable(), RODFDetectorCon::writeValidationDetectors(), MSFullExport::writeVehicles(), PointOfInterest::writeXML(), SUMO::Polygon::writeXML(), MSRouteProbe::writeXMLOutput(), MSE2Collector::writeXMLOutput(), MSInductLoop::writeXMLOutput(), and RONet::~RONet().
|
inlinestaticinherited |
get an identifier for Named-like object which may be Null
Definition at line 59 of file Named.h.
Referenced by MSLCM_LC2013::_wantsChange(), MSLCM_SL2015::_wantsChangeSublane(), MSLaneChanger::changeOpposite(), MSLaneChanger::continueChange(), MSVehicle::getBackPositionOnLane(), MSVehicle::getCenterOnEdge(), MSLane::getFollowerOnConsecutive(), MSLane::getFollowersOnConsecutive(), MSVehicle::getLatOffset(), operator<<(), MSLCM_SL2015::saveBlockerLength(), MSLCM_LC2013::saveBlockerLength(), MSLCM_LC2013::slowDownForBlocked(), MSLCM_SL2015::slowDownForBlocked(), MSLaneChangerSublane::startChangeSublane(), MSLeaderInfo::toString(), MSLeaderDistanceInfo::toString(), toString(), MSCriticalFollowerDistanceInfo::toString(), MSVehicle::updateBestLanes(), and MSAbstractLaneChangeModel::updateShadowLane().
|
inline |
Returns the list of edges from which this edge may be reached.
Definition at line 332 of file MSEdge.h.
References myPredecessors.
Referenced by NLEdgeControlBuilder::build(), MS_E2_ZS_CollectorOverLanes::getLanePredeccessorLanes(), MSLane::getLogicalPredecessorLane(), getWalkingAreas(), and MSPModel_Striping::initWalkingAreaPaths().
|
inline |
Returns this edge's lanes.
Definition at line 192 of file MSEdge.h.
References myLanes.
Referenced by MSVehicleTransfer::add(), NLHandler::addConnection(), GUIEdge::addRerouter(), MSRouteHandler::addStop(), MELoop::buildSegmentsFor(), MSBaseVehicle::calculateArrivalParams(), MSEdgeControl::changeLanes(), MSVehicleTransfer::checkInsertions(), GUIEdge::closeTraffic(), MSRouteHandler::closeVehicle(), MSLCM_SL2015::computeSublaneShift(), CState::computeTranshipTime(), GUILane::drawMarkings(), MS_E2_ZS_CollectorOverLanes::extendTo(), TraCIServerAPI_Vehicle::findCloserLane(), MEVehicle::getAngle(), GUIEdge::getColorValue(), getDistanceTo(), MSTransportable::Stage::getEdgeAngle(), GUILane::getEdgeLaneNumber(), MSTransportable::Stage::getEdgePosition(), TraCIServerAPI_Simulation::getLaneChecking(), MSVehicle::getLaneIndex(), MESegment::getLink(), MSInsertionControl::getPendingEmits(), GUIEdge::getPopUpMenu(), MEVehicle::getPosition(), GUIContainer::getPosition(), MSVehicle::getPosition(), GUIEdge::getScaleValue(), GUIEdge::getSegmentAtPosition(), TraCIServerAPI_Edge::getShape(), MEVehicle::getSlope(), getSpeedLimit(), GUIEdge::getTotalLength(), getVehicleMaxSpeed(), GUICalibrator::GUICalibrator(), GUITriggeredRerouter::GUITriggeredRerouterEdge::GUITriggeredRerouterEdge(), MSVehicle::Influencer::influenceChangeDecision(), GUINet::initGUIStructures(), MSCalibrator::invalidJam(), MSPedestrianPushButton::isActiveForEdge(), GUISUMOViewParent::isSelected(), MESegment::MESegment(), MSCalibrator::MSCalibrator(), MSRouteProbe::MSRouteProbe(), GUIMEInductLoop::MyWrapper::MyWrapper(), MSLCM_DK2008::patchSpeed(), MSLCM_SL2015::prepareStep(), TraCIServerAPI_Edge::processGet(), TraCIServerAPI_Vehicle::processGet(), TraCIServerAPI_Edge::processSet(), TraCIServerAPI_Vehicle::processSet(), MSCalibrator::remainingVehicleCapacity(), GUIEdge::setFunctionalColor(), MSVehicle::updateBestLanes(), MSLCM_SL2015::updateExpectedSublaneSpeeds(), TraCIServerAPI_Vehicle::vtdMap(), MSQueueExport::writeEdge(), MSFullExport::writeEdge(), MSXMLRawOut::writeEdge(), MSMeanData::writeEdge(), MSFCDExport::writeTransportable(), and MEInductLoop::writeXMLOutput().
|
inline |
Returns the last time a vehicle could not be inserted.
Definition at line 530 of file MSEdge.h.
References myLastFailedInsertionTime.
Referenced by MSInsertionControl::checkCandidates().
|
inline |
return the length of the edge
Definition at line 591 of file MSEdge.h.
References myLength.
Referenced by NLTriggerBuilder::buildCalibrator(), MELoop::buildSegmentsFor(), MSDevice_Tripinfo::computeLengthAndDuration(), MSPModel_NonInteracting::PState::computeWalkingTime(), MSDevice_Routing::getAssumedSpeed(), getCurrentTravelTime(), MSRoute::getDistanceBetween(), MSTransportable::Stage_Driving::getEdgePos(), MSDevice_Routing::getEffort(), getMeanSpeed(), getMinimumTravelTime(), MSPModel_Striping::getNextLane(), GUIEdge::getParameterWindow(), GUIEdge::getTotalLength(), insertVehicle(), MSCalibrator::MSCalibrator(), MSRouteHandler::parseWalkPos(), MSCalibrator::remainingVehicleCapacity(), MELoop::teleportVehicle(), MSVehicle::updateBestLanes(), TraCIServerAPI_Vehicle::vtdMap(), and MSMeanData::writeEdge().
|
inlineinherited |
Returns the inner key/value map.
Definition at line 107 of file Parameterised.h.
References Parameterised::myMap.
Referenced by NBTrafficLightDefinition::compute(), MSDevice_Vehroutes::generateOutput(), GUIPerson::getParameterWindow(), GUIMEVehicle::getTypeParameterWindow(), GUIVehicle::getTypeParameterWindow(), TraCIServerAPI_TLS::processGet(), ROVehicle::saveAsXML(), ROPerson::saveAsXML(), SUMOVTypeParameter::write(), PointOfInterest::writeXML(), and SUMO::Polygon::writeXML().
SUMOReal MSEdge::getMeanSpeed | ( | ) | const |
get the mean speed
Definition at line 629 of file MSEdge.cpp.
References getLength(), getSpeedLimit(), MSGlobals::gMesoNet, MSGlobals::gUseMesoSim, myEmptyTraveltime, myLanes, and SUMOReal.
Referenced by GUIEdge::getColorValue(), getCurrentTravelTime(), GUIEdge::getParameterWindow(), GUIEdge::getRelativeSpeed(), GUIEdge::getScaleValue(), and TraCIServerAPI_Edge::processGet().
|
inline |
returns the minimum travel time for the given vehicle
Definition at line 448 of file MSEdge.h.
References EDGEFUNCTION_DISTRICT, getLength(), getSpeedLimit(), getVehicleMaxSpeed(), and myFunction.
Referenced by MSDevice_Routing::getEffort(), and MSNet::getTravelTime().
|
inline |
Returns the numerical id of the edge.
Definition at line 275 of file MSEdge.h.
References myNumericalID.
Referenced by MELoop::buildSegmentsFor(), MSEdgeControl::changeLanes(), MELoop::changeSegment(), dictionary(), MSMeanData_Amitran::getEdgeID(), MSDevice_Routing::getEffort(), MELoop::getSegmentForEdge(), MSStateHandler::myStartElement(), and MELoop::nextSegment().
|
inline |
Returns the number of edges this edge is connected to.
Definition at line 369 of file MSEdge.h.
References myPredecessors.
Referenced by MSRouteHandler::parseFromViaTo().
|
inline |
Returns the number of edges that may be reached from this edge.
Definition at line 346 of file MSEdge.h.
References mySuccessors.
Referenced by NLEdgeControlBuilder::build(), MESegment::MESegment(), and MSRouteHandler::parseFromViaTo().
|
inline |
Returns the list of edges that may be reached from this edge.
Definition at line 339 of file MSEdge.h.
References mySuccessors.
Referenced by getWalkingAreas().
|
inherited |
Returns the value for a given key.
[in] | key | The key to ask for |
[in] | defaultValue | The default value to return if no value is stored under the key |
Definition at line 81 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by MSDevice_Battery::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), MSDevice::equippedByDefaultAssignmentOptions(), MSSwarmTrafficLightLogic::getBetaNo(), MSSwarmTrafficLightLogic::getBetaSp(), MSSwarmTrafficLightLogic::getChangePlanProbability(), MSSOTLTrafficLightLogic::getDecayConstant(), MSSwarmTrafficLightLogic::getForgettingCox(), MSSwarmTrafficLightLogic::getGammaNo(), MSSwarmTrafficLightLogic::getGammaSp(), MSTLLogicControl::WAUTSwitchProcedure::getGSPValue(), MSSOTLTrafficLightLogic::getInputSensorsLength(), MSSwarmTrafficLightLogic::getLearningCox(), MSSwarmTrafficLightLogic::getMaxCongestionDuration(), MSSOTLRequestPolicy::getMinDecisionalPhaseDuration(), MSSOTLRequestTrafficLightLogic::getMinDecisionalPhaseDuration(), MSSOTLTrafficLightLogic::getMode(), MSSOTLTrafficLightLogic::getOutputSensorsLength(), MSSwarmTrafficLightLogic::getPheroMaxVal(), MSSwarmTrafficLightLogic::getPoliciesParam(), MSSwarmTrafficLightLogic::getReinforcementMode(), MSSOTLTrafficLightLogic::getSpeedThreshold(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::getStretchAreaNo(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::getStretchBereichDef(), MSSwarmTrafficLightLogic::getThetaInit(), MSSwarmTrafficLightLogic::getThetaMax(), MSSwarmTrafficLightLogic::getThetaMin(), MSSOTLTrafficLightLogic::getThreshold(), PushButtonLogic::init(), MSSOTLPhasePolicy::init(), SigmoidLogic::init(), MSSOTLTrafficLightLogic::isDecayThresholdActivated(), MSSOTLTrafficLightLogic::isPushButtonPressed(), MSActuatedTrafficLightLogic::MSActuatedTrafficLightLogic(), MSSOTLPolicy::MSSOTLPolicy(), MSSOTLPolicy5DFamilyStimulus::MSSOTLPolicy5DFamilyStimulus(), MSSwarmTrafficLightLogic::MSSwarmTrafficLightLogic(), TraCIServerAPI_Edge::processGet(), TraCIServerAPI_POI::processGet(), TraCIServerAPI_Route::processGet(), TraCIServerAPI_TLS::processGet(), TraCIServerAPI_VehicleType::processGet(), TraCIServerAPI_Polygon::processGet(), TraCIServerAPI_Vehicle::processGet(), TraCIServerAPI_Person::processGet(), TraCIServerAPI_Lane::processGet(), MSSOTLPolicyDesirability::readParameter(), and TraCIServerAPI_Vehicle::vtdMap().
|
inline |
Definition at line 562 of file MSEdge.h.
References myCombinedPermissions.
Referenced by getWalking(), and MSPedestrianPushButton::MSPedestrianPushButton().
|
inline |
Returns this edge's persons set.
Avoids the creation of new vector as in getSortedPersons
Definition at line 201 of file MSEdge.h.
References myPersons.
Referenced by MSPedestrianPushButton::isActiveForEdge().
|
inline |
Returns the edge at the given position from the list of reachable edges.
[in] | pos | The position of the list within the list of approached |
Definition at line 378 of file MSEdge.h.
References myPredecessors.
Referenced by MSPedestrianPushButton::isActiveForEdge().
|
inline |
Returns the priority of the edge.
Definition at line 294 of file MSEdge.h.
References myPriority.
Referenced by GUILane::getColorValue(), GUILane::getParameterWindow(), and GUILane::getScaleValue().
|
inline |
Returns the edge type (EdgeBasicFunction)
Definition at line 249 of file MSEdge.h.
References myFunction.
Referenced by MSLCM_LC2013::_wantsChange(), MSLCM_SL2015::_wantsChangeSublane(), MSLane::addApproachingLane(), MSLane::appropriate(), MSVehicle::checkRewindLinkLanes(), GUILane::drawGL(), MSVehicle::enterLaneAtMove(), MSVehicle::getBestLanesContinuation(), GUIEdge::getBoundary(), GUIEdge::getColorValue(), GUIEdge::getIDs(), MSLane::getInternalFollower(), MSLink::getInternalLengthsAfter(), MSLCM_LC2013::getRoundaboutAheadInfo(), GUIEdge::getTotalLength(), insertVehicle(), MSLane::isInternal(), MSLink::lastWasContMajor(), MSLCM_DK2008::patchSpeed(), MSVehicle::planMoveInternal(), MSDevice_Routing::preInsertionReroute(), MSVehicle::updateBestLanes(), TraCIServerAPI_Vehicle::vtdMap(), MSLCM_DK2008::wantsChangeToLeft(), and MSLCM_DK2008::wantsChangeToRight().
SUMOReal MSEdge::getRoutingSpeed | ( | ) | const |
Returns the averaged speed used by the routing device.
Definition at line 666 of file MSEdge.cpp.
References MSDevice_Routing::getAssumedSpeed().
Referenced by GUIEdge::getColorValue(), GUILane::getColorValue(), GUIEdge::getParameterWindow(), and GUILane::getParameterWindow().
std::vector< MSTransportable * > MSEdge::getSortedContainers | ( | SUMOTime | timestep | ) | const |
Returns this edge's containers sorted by pos.
Definition at line 802 of file MSEdge.cpp.
References myContainers.
Referenced by MSXMLRawOut::writeEdge().
std::vector< MSTransportable * > MSEdge::getSortedPersons | ( | SUMOTime | timestep | ) | const |
Returns this edge's persons sorted by pos.
Definition at line 794 of file MSEdge.cpp.
References myPersons.
Referenced by TraCIServerAPI_Edge::processGet(), and MSXMLRawOut::writeEdge().
SUMOReal MSEdge::getSpeedLimit | ( | ) | const |
Returns the speed limit of the edge The speed limit of the first lane is retured; should probably be the fastest edge.
Definition at line 769 of file MSEdge.cpp.
References getLanes().
Referenced by GUIApplicationWindow::checkGamingEvents(), METriggeredCalibrator::execute(), MESegment::getMeanSpeed(), getMeanSpeed(), getMinimumTravelTime(), MESegment::getNextInsertionTime(), GUIEdge::getParameterWindow(), insertVehicle(), METriggeredCalibrator::invalidJam(), MSCalibrator::invalidJam(), recalcCache(), MESegment::recomputeJamThreshold(), MSCalibrator::remainingVehicleCapacity(), MELoop::teleportVehicle(), and MSMeanData::writeEdge().
|
inline |
Returns the street name of the edge.
Definition at line 282 of file MSEdge.h.
References myStreetName.
Referenced by GUIEdge::drawGL(), and GUILane::getParameterWindow().
|
inline |
Returns the right side offsets of this edge's sublanes.
Definition at line 574 of file MSEdge.h.
References mySublaneSides.
Referenced by MSLCM_SL2015::_wantsChangeSublane(), and MSLCM_SL2015::prepareStep().
|
inline |
Returns the following edges.
Definition at line 353 of file MSEdge.h.
References mySuccessors.
Referenced by NLEdgeControlBuilder::build(), MSLane::getInternalFollower(), MSPModel_Striping::initWalkingAreaPaths(), MSPedestrianPushButton::isActiveForEdge(), MESegment::MESegment(), and TraCIServerAPI_Vehicle::vtdMap().
const MSEdgeVector & MSEdge::getSuccessors | ( | SUMOVehicleClass | vClass | ) | const |
Returns the following edges, restricted by vClass.
[in] | vClass | The vClass for which to restrict the successors |
Definition at line 820 of file MSEdge.cpp.
References allowedLanes(), EDGEFUNCTION_DISTRICT, MSNet::getInstance(), myClassesSuccessorMap, myFunction, mySuccessors, and SVC_IGNORING.
|
inline |
Definition at line 387 of file MSEdge.h.
References myToJunction.
Referenced by MSPModel::canTraverse(), MSPModel_NonInteracting::PState::computeWalkingTime(), getDistanceTo(), MSPModel_Striping::getNextLane(), MSRailSignal::init(), MSJunction::isLeader(), and MSPModel_Striping::PState::PState().
|
inlinestatic |
Returns the travel time for the given edge.
[in] | edge | The edge for which the travel time shall be retrieved |
[in] | veh | The vehicle for which the travel time on this edge shall be retrieved |
[in] | time | The time for which the travel time shall be returned [s] |
Definition at line 466 of file MSEdge.h.
References MSNet::getInstance(), and MSNet::getTravelTime().
SUMOReal MSEdge::getVehicleMaxSpeed | ( | const SUMOVehicle *const | veh | ) | const |
Returns the maximum speed the vehicle may use on this edge.
Only the first lane is considered
Definition at line 776 of file MSEdge.cpp.
References getLanes().
Referenced by GUIMEVehicle::getColorValue(), getMinimumTravelTime(), insertVehicle(), MSDevice_Tripinfo::notifyMove(), MSDevice_Tripinfo::notifyMoveInternal(), and MESegment::receive().
|
inline |
Returns the edges's width (sum over all lanes)
Definition at line 569 of file MSEdge.h.
References myWidth.
Referenced by MSLCM_SL2015::_wantsChangeSublane(), MSLCM_SL2015::checkBlocking(), and MSLCM_SL2015::keepLatGap().
|
inline |
Definition at line 650 of file MSEdge.h.
References myLaneChanger.
Referenced by MSLCM_LC2013::_patchSpeed().
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 383 of file MSEdge.cpp.
References myVaporizationRequests.
Referenced by NLTriggerBuilder::buildVaporizer().
void MSEdge::initialize | ( | const std::vector< MSLane * > * | lanes | ) |
Initialize the edge.
[in] | allowed | Information which edges may be reached from which lanes |
[in] | lanes | List of this edge's lanes |
Definition at line 110 of file MSEdge.cpp.
References EDGEFUNCTION_DISTRICT, MSGlobals::gLaneChangeDuration, MSGlobals::gLateralResolution, myCombinedPermissions, myFunction, myLanes, mySublaneSides, myWidth, MSLeaderInfo::numSublanes(), recalcCache(), SUMOReal, and SVCAll.
Referenced by NLHandler::addDistrict(), and NLEdgeControlBuilder::closeEdge().
|
static |
Inserts IDs of all known edges into the given vector.
Definition at line 721 of file MSEdge.cpp.
References myDict.
Referenced by TraCIServerAPI_Edge::processGet().
bool MSEdge::insertVehicle | ( | SUMOVehicle & | v, |
SUMOTime | time, | ||
const bool | checkOnly = false |
||
) | 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 but only if the checkOnly argument is false. The check needs to be certain only in the negative case (if false is returned, there is no way this vehicle would be inserted).
[in] | v | The vehicle to insert |
[in] | time | The current simulation time |
[in] | checkOnly | whether we perform only the check without actually inserting |
Definition at line 472 of file MSEdge.cpp.
References MSVehicleType::computeChosenSpeedDeviation(), DEPART_LANE_DEFAULT, DEPART_LANE_FIRST_ALLOWED, DEPART_LANE_GIVEN, DEPART_POS_FREE, DEPART_POS_GIVEN, DEPART_POS_RANDOM, DEPART_POS_RANDOM_FREE, DEPART_SPEED_GIVEN, SUMOVehicleParameter::departLaneProcedure, SUMOVehicleParameter::departPos, SUMOVehicleParameter::departPosProcedure, SUMOVehicleParameter::departSpeed, SUMOVehicleParameter::departSpeedProcedure, MSInsertionControl::descheduleDeparture(), EDGEFUNCTION_DISTRICT, MSGlobals::gCheckRoutes, MSLane::getBruttoOccupancy(), SUMOVehicle::getChosenSpeedFactor(), getDepartLane(), SUMOVehicle::getEdge(), Named::getID(), SUMOVehicle::getID(), MSNet::getInsertionControl(), MSNet::getInstance(), getLength(), MSVehicleType::getLengthWithGap(), MESegment::getNextSegment(), SUMOVehicle::getParameter(), getPurpose(), MELoop::getSegmentForEdge(), MSVehicleType::getSpeedDeviation(), MSVehicleType::getSpeedFactor(), getSpeedLimit(), getVehicleMaxSpeed(), SUMOVehicle::getVehicleType(), MSGlobals::gMesoNet, MSGlobals::gUseMesoSim, MESegment::hasSpaceFor(), SUMOVehicle::hasValidRoute(), SUMOVehicleParameter::id, MESegment::initialise(), MSLane::insertVehicle(), isTaz(), isVaporizing(), myLanes, myLength, RandHelper::rand(), SUMOVehicle::setChosenSpeedFactor(), SUMOReal, time2string(), toString(), and WRITE_WARNING.
Referenced by MSInsertionControl::checkCandidates(), and MSCalibrator::execute().
|
inline |
return whether this edge is a pedestrian crossing
Definition at line 259 of file MSEdge.h.
References EDGEFUNCTION_CROSSING, and myFunction.
Referenced by MSSwarmTrafficLightLogic::allowLine(), MSSOTLE2Sensors::buildContinueSensior(), MSSOTLE2Sensors::buildSensorForLane(), MSPModel_Striping::getNextLane(), MSPedestrianPushButton::loadCrossingEdgeMap(), and MSPedestrianPushButton::MSPedestrianPushButton().
|
inline |
return whether this edge is an internal edge
Definition at line 254 of file MSEdge.h.
References EDGEFUNCTION_INTERNAL, and myFunction.
Referenced by NLEdgeControlBuilder::build(), MSSOTLE2Sensors::buildContinueSensior(), MSSOTLE2Sensors::buildSensorForLane(), MSLaneChanger::checkChange(), MSDevice_Tripinfo::computeLengthAndDuration(), MSLane::detectCollisions(), MSPModel_Striping::getNextLane(), MSVehicle::planMoveInternal(), TraCIServerAPI_Vehicle::processGet(), MSVehicle::replaceRoute(), MSLink::setRequestInformation(), and MSVehicle::unsafeLinkAhead().
|
inline |
Definition at line 638 of file MSEdge.h.
References myAmRoundabout.
Referenced by MSVehicle::checkRewindLinkLanes(), MSLCM_LC2013::distanceAlongNextRoundabout(), MSVehicle::executeMove(), and MSLCM_LC2013::getRoundaboutAheadInfo().
|
inline |
Definition at line 268 of file MSEdge.h.
References EDGEFUNCTION_DISTRICT, and myFunction.
Referenced by MSBaseVehicle::calculateArrivalParams(), insertVehicle(), and MSBaseVehicle::MSBaseVehicle().
|
inline |
Returns whether vehicles on this edge shall be vaporized.
Definition at line 406 of file MSEdge.h.
References myVaporizationRequests.
Referenced by MSVehicle::executeMove(), MSLane::executeMovements(), and insertVehicle().
|
inline |
return whether this edge is walking area
Definition at line 264 of file MSEdge.h.
References EDGEFUNCTION_WALKINGAREA, and myFunction.
Referenced by MSSwarmTrafficLightLogic::allowLine(), MSSOTLE2Sensors::buildContinueSensior(), MSSOTLE2Sensors::buildSensorForLane(), MSPModel_Striping::getNextLane(), MSPModel_Striping::getNextLaneObstacles(), getWalking(), MSPModel_Striping::initWalkingAreaPaths(), MSPModel_Striping::moveInDirection(), MSPedestrianPushButton::MSPedestrianPushButton(), and MSPModel_Striping::PState::PState().
|
inherited |
Returns whether the parameter is known.
[in] | key | The key to ask for |
Definition at line 75 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by MSDevice_Example::buildVehicleDevices(), and MSDevice::equippedByDefaultAssignmentOptions().
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 273 of file MSEdge.cpp.
References parallelLane().
|
inlinevirtual |
grant exclusive access to the mesoscopic state
Reimplemented in GUIEdge.
Definition at line 661 of file MSEdge.h.
Referenced by MESegment::receive(), and MESegment::removeCar().
|
inline |
Definition at line 642 of file MSEdge.h.
References myAmRoundabout.
Referenced by NLHandler::addRoundabout(), and NLEdgeControlBuilder::build().
|
inline |
Definition at line 646 of file MSEdge.h.
References myAmDelayed.
Referenced by MSLane::incorporateVehicle(), MSLane::integrateNewVehicle(), and MEVehicle::setEventTime().
Returns the lane with the given offset parallel to the given lane one or 0 if it does not exist.
[in] | lane | The base lane |
[in] | offset | The offset of the result lane |
Definition at line 285 of file MSEdge.cpp.
References myLanes.
Referenced by MSLane::getParallelLane(), leftLane(), and rightLane().
|
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 729 of file MSEdge.cpp.
References BinaryFormatter::BF_ROUTE, StringTokenizer::getVector(), and FileHelpers::readEdgeVector().
Referenced by MSStateHandler::myStartElement(), MSRouteHandler::myStartElement(), MSRouteHandler::openRoute(), MSRouteHandler::parseFromViaTo(), and TraCIServerAPI_Vehicle::processSet().
|
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 744 of file MSEdge.cpp.
References dictionary().
|
inline |
Returns whether the vehicle (class) is not allowed on the edge.
Definition at line 554 of file MSEdge.h.
References MSVehicleType::getVehicleClass(), SUMOVehicle::getVehicleType(), and myCombinedPermissions.
void MSEdge::rebuildAllowedLanes | ( | ) |
Definition at line 251 of file MSEdge.cpp.
References myClassedAllowed, myClassesSuccessorMap, myCombinedPermissions, myLanes, myMinimumPermissions, and SVCAll.
Referenced by closeBuilding(), GUIEdge::closeTraffic(), GUILane::closeTraffic(), TraCIServerAPI_Edge::processSet(), and TraCIServerAPI_Lane::processSet().
void MSEdge::recalcCache | ( | ) |
Recalculates the cached values.
Definition at line 136 of file MSEdge.cpp.
References MSLane::getLinkCont(), MSLink::getMesoTLSPenalty(), getSpeedLimit(), MSGlobals::gMesoTLSPenalty, MAX2(), MIN2(), myEmptyTraveltime, myLanes, myLength, NUMERICAL_EPS, and STEPS2TIME.
Referenced by initialize(), MSTrafficLightLogic::initMesoTLSPenalties(), MSLane::setLength(), and MSLane::setMaxSpeed().
|
inlinevirtual |
Remove container from myContainers.
Reimplemented in GUIEdge.
Definition at line 631 of file MSEdge.h.
References myContainers.
Referenced by MSTransportableControl::abortWaiting(), MSTransportableControl::loadAnyWaiting(), MSContainer::MSContainerStage_Tranship::proceed(), MSContainer::proceed(), and GUIEdge::removeContainer().
|
inlinevirtual |
Reimplemented in GUIEdge.
Definition at line 618 of file MSEdge.h.
References myPersons.
Referenced by MSTransportableControl::abortWaiting(), MSTransportableControl::boardAnyWaiting(), MSPerson::MSPersonStage_Walking::proceed(), MSPerson::proceed(), and GUIEdge::removePerson().
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 279 of file MSEdge.cpp.
References parallelLane().
|
inline |
Sets the crossed edge ids for a crossing edge.
Definition at line 302 of file MSEdge.h.
References myCrossingEdges.
Referenced by NLEdgeControlBuilder::addCrossingEdges().
|
inlineinherited |
resets the id
[in] | newID | The new id of this object |
Definition at line 74 of file Named.h.
References Named::myID.
Referenced by NBNodeCont::mapToNumericalIDs(), NBEdgeCont::mapToNumericalIDs(), NBNodeCont::rename(), and NBEdgeCont::rename().
|
inline |
Definition at line 392 of file MSEdge.h.
References myFromJunction, and myToJunction.
Referenced by NLHandler::myEndElement().
|
inline |
Sets the last time a vehicle could not be inserted.
[in] | time | the new value |
Definition at line 538 of file MSEdge.h.
References myLastFailedInsertionTime.
void MSEdge::setMaxSpeed | ( | SUMOReal | val | ) | const |
Sets a new maximum speed for all lanes (used by TraCI and MSCalibrator)
[in] | val | the new speed in m/s |
Definition at line 783 of file MSEdge.cpp.
References myLanes.
Referenced by METriggeredCalibrator::execute(), and MSCalibrator::execute().
|
inlinevirtual |
release exclusive access to the mesoscopic state
Reimplemented in GUIEdge.
Definition at line 664 of file MSEdge.h.
Referenced by MESegment::receive(), and MESegment::removeCar().
|
protected |
Associative container from destination-edge to allowed-lanes.
Definition at line 803 of file MSEdge.h.
Referenced by allowedLanes(), closeBuilding(), and ~MSEdge().
|
mutableprotected |
whether this edge had a vehicle with less than max speed on it
Definition at line 834 of file MSEdge.h.
Referenced by getCurrentTravelTime(), and markDelayed().
|
protected |
whether this edge belongs to a roundabout
Definition at line 837 of file MSEdge.h.
Referenced by isRoundabout(), and markAsRoundabout().
|
mutableprotected |
From vehicle class to lanes allowed to be used by it.
Definition at line 807 of file MSEdge.h.
Referenced by allowedLanes(), rebuildAllowedLanes(), and ~MSEdge().
|
mutableprotected |
The successors available for a given vClass.
Definition at line 861 of file MSEdge.h.
Referenced by getSuccessors(), and rebuildAllowedLanes().
|
protected |
The union of lane permissions for this edge.
Definition at line 812 of file MSEdge.h.
Referenced by getPermissions(), initialize(), prohibits(), and rebuildAllowedLanes().
|
mutableprotected |
Containers on the edge.
Definition at line 797 of file MSEdge.h.
Referenced by addContainer(), GUIEdge::drawGL(), getSortedContainers(), and removeContainer().
|
protected |
The crossed edges id for a crossing edge. On not crossing edges it is empty.
Definition at line 781 of file MSEdge.h.
Referenced by getCrossingEdges(), and setCrossingEdges().
|
staticprotected |
Static dictionary to associate string-ids with objects.
Definition at line 851 of file MSEdge.h.
Referenced by clear(), dictionary(), dictSize(), GUIEdge::fill(), GUIEdge::getIDs(), GUIEdge::getTotalLength(), and insertIDs().
|
staticprotected |
Static list of edges.
Definition at line 856 of file MSEdge.h.
Referenced by dictionary(), and getAllEdges().
|
protected |
the type of the edge (optionally used during network creation)
Definition at line 819 of file MSEdge.h.
Referenced by getEdgeType().
|
protected |
the traveltime on the empty edge (cached value for speedup)
Definition at line 831 of file MSEdge.h.
Referenced by getCurrentTravelTime(), getMeanSpeed(), and recalcCache().
|
protected |
the junctions for this edge
Definition at line 790 of file MSEdge.h.
Referenced by getFromJunction(), and setJunctions().
|
protected |
the purpose of the edge
Definition at line 772 of file MSEdge.h.
Referenced by allowsLaneChanging(), changeLanes(), GUIEdge::drawGL(), getMinimumTravelTime(), getPurpose(), getSuccessors(), initialize(), isCrossing(), isInternal(), isTaz(), and isWalkingArea().
|
protectedinherited |
The name of the object.
Definition at line 136 of file Named.h.
Referenced by GUI_E2_ZS_CollectorOverLanes::buildCollector(), RODFDetector::buildDestinationDistribution(), NGEdge::buildNBEdge(), NGNode::buildNBNode(), MSSOTLTrafficLightLogic::checkPhases(), NBNode::computeNodeShape(), METriggeredCalibrator::execute(), MSCalibrator::execute(), Named::getID(), NBEdge::getLaneID(), NBEdge::getLaneIDInsecure(), ROEdge::getStoredEffort(), ROEdge::getTravelTime(), MSActuatedTrafficLightLogic::init(), MSCalibrator::init(), NBEdge::init(), MSLane::isInsertionSuccess(), MSCalibrator::myStartElement(), MSCalibrator::VehicleRemover::notifyEnter(), MSMeanData::openInterval(), RORouteDef::preComputeCurrentRoute(), NBEdge::reinitNodes(), MSRoute::release(), Named::setID(), MSSOTLTrafficLightLogic::setToATargetPhase(), NBEdge::splitGeometry(), RODFDetector::writeEmitterDefinition(), MSXMLRawOut::writeLane(), NBNode::writeLogic(), RODFDetector::writeSingleSpeedTrigger(), MEInductLoop::writeXMLOutput(), MSCalibrator::writeXMLOutput(), and MSE3Collector::writeXMLOutput().
|
protected |
This member will do the lane-change.
Definition at line 769 of file MSEdge.h.
Referenced by buildLaneChanger(), changeLanes(), hasLaneChanger(), and ~MSEdge().
|
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 766 of file MSEdge.h.
Referenced by allowsLaneChanging(), buildLaneChanger(), canChangeToOpposite(), changeLanes(), closeBuilding(), GUIEdge::drawGL(), GUIEdge::drawMesoVehicles(), GUIEdge::getAllowedSpeed(), GUIEdge::getBoundary(), GUIEdge::getBruttoOccupancy(), getDepartLane(), GUIEdge::getLane(), getLanes(), getMeanSpeed(), GUIEdge::getParameterWindow(), initialize(), insertVehicle(), parallelLane(), rebuildAllowedLanes(), recalcCache(), setMaxSpeed(), and ~MSEdge().
|
mutableprotected |
The time of last insertion failure.
Definition at line 778 of file MSEdge.h.
Referenced by getLastFailedInsertionTime(), and setLastFailedInsertionTime().
|
protected |
the length of the edge (cached value for speedup)
Definition at line 828 of file MSEdge.h.
Referenced by getLength(), insertVehicle(), and recalcCache().
|
protected |
The intersection of lane permissions for this edge.
Definition at line 810 of file MSEdge.h.
Referenced by allowedLanes(), and rebuildAllowedLanes().
|
protected |
|
mutableprotected |
Persons on the edge for drawing and pushbutton.
Definition at line 794 of file MSEdge.h.
Referenced by addPerson(), GUIEdge::drawGL(), getPersons(), getSortedPersons(), and removePerson().
|
protected |
The preceeding edges.
Definition at line 787 of file MSEdge.h.
Referenced by addSuccessor(), closeBuilding(), GUIEdge::getBoundary(), getIncomingEdges(), getNumPredecessors(), and getPredecessors().
|
protected |
the priority of the edge (used during network creation)
Definition at line 822 of file MSEdge.h.
Referenced by getPriority().
|
protected |
the real-world name of this edge (need not be unique)
Definition at line 816 of file MSEdge.h.
Referenced by GUIEdge::drawGL(), and getStreetName().
|
protected |
the right side for each sublane on this edge
Definition at line 840 of file MSEdge.h.
Referenced by getSubLaneSides(), and initialize().
|
protected |
The succeeding edges.
Definition at line 784 of file MSEdge.h.
Referenced by addSuccessor(), closeBuilding(), GUIEdge::getBoundary(), getNumSuccessors(), getOutgoingEdges(), and getSuccessors().
|
protected |
Definition at line 791 of file MSEdge.h.
Referenced by getToJunction(), and setJunctions().
|
protected |
Vaporizer counter.
Definition at line 775 of file MSEdge.h.
Referenced by decVaporization(), incVaporization(), and isVaporizing().
|
protected |
Edge width [m].
Definition at line 825 of file MSEdge.h.
Referenced by getWidth(), and initialize().