![]() |
SUMO - Simulation of Urban MObility
|
The representation of a single edge during network building. More...
#include <NBEdge.h>
Data Structures | |
struct | Connection |
A structure which describes a connection between edges or lanes. More... | |
class | connections_conflict_finder |
class | connections_finder |
class | connections_fromlane_finder |
class | connections_relative_edgelane_sorter |
Class to sort edges by their angle. More... | |
class | connections_toedge_finder |
class | connections_toedgelane_finder |
struct | Lane |
An (internal) definition of a single lane of an edge. More... | |
class | MainDirections |
Holds (- relative to the edge it is build from -!!!) the list of main directions a vehicle that drives on this street may take on the junction the edge ends in The back direction is not regarded. More... | |
class | tls_disable_finder |
struct | TLSDisabledConnection |
TLS Disabled Connections. More... | |
class | ToEdgeConnectionsAdder |
A class that being a bresenham-callback assigns the incoming lanes to the edges. More... | |
Public Types | |
enum | EdgeBuildingStep { INIT_REJECT_CONNECTIONS, INIT, EDGE2EDGES, LANES2EDGES, LANES2LANES_RECHECK, LANES2LANES_DONE, LANES2LANES_USER } |
Current state of the edge within the building process. More... | |
enum | JunctionPriority { MINOR_ROAD = 0, PRIORITY_ROAD = 1, ROUNDABOUT = 1000 } |
junction priority values set by setJunctionPriority More... | |
enum | Lane2LaneInfoType { L2L_COMPUTED, L2L_USER, L2L_VALIDATED } |
Modes of setting connections between lanes. More... | |
Public Member Functions | |
void | addBikeLane (double width) |
add a bicycle lane of the given width and shift existing connctions More... | |
void | addCrossingPointsAsIncomingWithGivenOutgoing (NBEdge *o, PositionVector &into) |
add crossing points as incoming with given outgoing More... | |
void | addLane (int index, bool recompute=true) |
add lane 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... | |
void | addSidewalk (double width) |
add a pedestrian sidewalk of the given width and shift existing connctions More... | |
void | addSign (NBSign sign) |
add Sign More... | |
void | addTo (const StoringVisitor &cont) const |
Adds this object to the given container. More... | |
void | allowVehicleClass (int lane, SUMOVehicleClass vclass) |
set allowed class for the given lane or for all lanes if -1 is given More... | |
void | append (NBEdge *continuation) |
append another edge More... | |
void | appendTurnaround (bool noTLSControlled, bool checkPermissions) |
Add a connection to the previously computed turnaround, if wished. More... | |
void | buildInnerEdges (const NBNode &n, int noInternalNoSplits, int &linkIndex, int &splitIndex) |
void | clearControllingTLInformation () |
clears tlID for all connections More... | |
void | clearParameter () |
Clears the parameter map. More... | |
bool | computeEdge2Edges (bool noLeftMovers) |
computes the edge (step1: computation of approached edges) More... | |
bool | computeLanes2Edges () |
computes the edge, step2: computation of which lanes approach the edges) More... | |
PositionVector | cutAtIntersection (const PositionVector &old) const |
cut shape at the intersection shapes More... | |
void | decLaneNo (int by) |
decrement lane More... | |
void | declareConnectionsAsLoaded (EdgeBuildingStep step=LANES2LANES_USER) |
declares connections as fully loaded. This is needed to avoid recomputing connections if an edge has no connections intentionally. More... | |
void | deleteLane (int index, bool recompute=true) |
delete lane More... | |
void | disableConnection4TLS (int fromLane, NBEdge *toEdge, int toLane) |
disable connections for TLS More... | |
void | disallowVehicleClass (int lane, SUMOVehicleClass vclass) |
set disallowed class for the given lane or for all lanes if -1 is given More... | |
void | dismissVehicleClassInformation () |
dimiss vehicle class information More... | |
bool | expandableBy (NBEdge *possContinuation) const |
Check if Node is expandable. More... | |
double | getAngleAtNode (const NBNode *const node) const |
Returns the angle of the edge's geometry at the given node. More... | |
double | getAngleAtNodeToCenter (const NBNode *const node) const |
Returns the angle of from the node shape center to where the edge meets the node shape. More... | |
PositionVector | getCCWBoundaryLine (const NBNode &n) const |
get the outer boundary of this edge when going counter-clock-wise around the given node More... | |
double | getCrossingAngle (NBNode *node) |
return the angle for computing pedestrian crossings at the given node More... | |
PositionVector | getCWBoundaryLine (const NBNode &n) const |
get the outer boundary of this edge when going clock-wise around the given node More... | |
double | getDouble (const std::string &key, const double defaultValue) const |
Returns the value for a given key converted to a double. More... | |
NBEdge::Lane | getFirstNonPedestrianLane (int direction) const |
get first non-pedestrian lane More... | |
int | getFirstNonPedestrianLaneIndex (int direction, bool exclusive=false) const |
return the first lane with permissions other than SVC_PEDESTRIAN and 0 More... | |
const std::string & | getID () const |
Returns the id. More... | |
int | getJunctionPriority (const NBNode *const node) const |
Returns the junction priority (normalised for the node currently build) More... | |
std::string | getLaneID (int lane) const |
get Lane ID (Secure) More... | |
std::string | getLaneIDInsecure (int lane) const |
get Lane ID (Insecure) More... | |
double | getLaneSpeed (int lane) const |
get lane speed More... | |
Lane & | getLaneStruct (int lane) |
const Lane & | getLaneStruct (int lane) const |
const std::map< std::string, std::string > & | getMap () const |
Returns the inner key/value map. More... | |
double | getMaxLaneOffset () |
get max lane offset More... | |
const std::string & | getParameter (const std::string &key, const std::string &defaultValue) const |
Returns the value for a given key. More... | |
SVCPermissions | getPermissions (int lane=-1) const |
get the union of allowed classes over all lanes or for a specific lane More... | |
std::set< SVCPermissions > | getPermissionVariants (int iStart, int iEnd) const |
return all permission variants within the specified lane range [iStart, iEnd[ More... | |
const std::vector< NBSign > & | getSigns () const |
get Signs More... | |
NBEdge * | getTurnDestination (bool possibleDestination=false) const |
const std::string & | getTypeID () const |
get ID of type More... | |
bool | hasAccelLane () const |
whether one of the lanes is an acceleration lane More... | |
bool | hasLaneSpecificEndOffset () const |
whether lanes differ in offset More... | |
bool | hasLaneSpecificPermissions () const |
whether lanes differ in allowed vehicle classes More... | |
bool | hasLaneSpecificSpeed () const |
whether lanes differ in speed More... | |
bool | hasLaneSpecificWidth () const |
whether lanes differ in width More... | |
bool | hasPermissions () const |
whether at least one lane has restrictions More... | |
bool | hasSignalisedConnectionTo (const NBEdge *const e) const |
Check if edge has signalised connections. More... | |
void | incLaneNo (int by) |
increment lane More... | |
bool | isNearEnough2BeJoined2 (NBEdge *e, double threshold) const |
Check if edge is near enought to be joined to another edge. More... | |
bool | isTurningDirectionAt (const NBEdge *const edge) const |
Returns whether the given edge is the opposite direction to this edge. More... | |
bool | knowsParameter (const std::string &key) const |
Returns whether the parameter is known. More... | |
bool | lanesWereAssigned () const |
Check if lanes were assigned. More... | |
void | markAsInLane2LaneState () |
mark edge as in lane to state lane More... | |
bool | mayBeTLSControlled (int fromLane, NBEdge *toEdge, int toLane) const |
return true if certain connection must be controlled by TLS More... | |
void | moveOutgoingConnectionsFrom (NBEdge *e, int laneOff) |
move outgoing connection More... | |
NBEdge (const std::string &id, NBNode *from, NBNode *to, std::string type, double speed, int nolanes, int priority, double width, double offset, const std::string &streetName="", LaneSpreadFunction spread=LANESPREAD_RIGHT) | |
Constructor. More... | |
NBEdge (const std::string &id, NBNode *from, NBNode *to, std::string type, double speed, int nolanes, int priority, double width, double offset, PositionVector geom, const std::string &streetName="", const std::string &origID="", LaneSpreadFunction spread=LANESPREAD_RIGHT, bool tryIgnoreNodePositions=false) | |
Constructor. More... | |
NBEdge (const std::string &id, NBNode *from, NBNode *to, NBEdge *tpl, const PositionVector &geom=PositionVector(), int numLanes=-1) | |
Constructor. More... | |
bool | needsLaneSpecificOutput () const |
whether at least one lane has values differing from the edges values More... | |
void | preferVehicleClass (int lane, SUMOVehicleClass vclass) |
prefer certain vehicle class More... | |
bool | recheckLanes () |
recheck whether all lanes within the edge are all right and optimises the connections once again More... | |
void | reinit (NBNode *from, NBNode *to, const std::string &type, double speed, int nolanes, int priority, PositionVector geom, double width, double offset, const std::string &streetName, LaneSpreadFunction spread=LANESPREAD_RIGHT, bool tryIgnoreNodePositions=false) |
Resets initial values. More... | |
void | reinitNodes (NBNode *from, NBNode *to) |
Resets nodes but keeps all other values the same (used when joining) More... | |
void | resetNodeBorder (const NBNode *node) |
void | restoreBikelane (std::vector< NBEdge::Lane > oldLanes, PositionVector oldGeometry, std::vector< NBEdge::Connection > oldConnections) |
restore an previously added BikeLane More... | |
void | restoreSidewalk (std::vector< NBEdge::Lane > oldLanes, PositionVector oldGeometry, std::vector< NBEdge::Connection > oldConnections) |
restore an previously added sidewalk More... | |
void | setAcceleration (int lane, bool accelRamp) |
marks one lane as acceleration lane More... | |
bool | setControllingTLInformation (const NBConnection &c, const std::string &tlID) |
Returns if the link could be set as to be controlled. More... | |
void | setEndOffset (int lane, double offset) |
set lane specific end-offset (negative lane implies set for all lanes) More... | |
void | setID (const std::string &newID) |
resets the id More... | |
void | setJunctionPriority (const NBNode *const node, int prio) |
Sets the junction priority of the edge. More... | |
void | setLaneWidth (int lane, double width) |
set lane specific width (negative lane implies set for all lanes) More... | |
void | setLoadedLength (double val) |
set loaded lenght More... | |
void | setNodeBorder (const NBNode *node, const Position &p, const Position &p2, bool rectangularCut) |
Set Node border. More... | |
void | setPermissions (SVCPermissions permissions, int lane=-1) |
set allowed/disallowed classes for the given lane or for all lanes if -1 is given More... | |
void | setPreferredVehicleClass (SVCPermissions permissions, int lane=-1) |
set preferred Vehicle Class More... | |
void | setSpeed (int lane, double speed) |
set lane specific speed (negative lane implies set for all lanes) More... | |
void | setTurningDestination (NBEdge *e, bool onlyPossible=false) |
Sets the turing destination at the given edge. More... | |
NBNode * | tryGetNodeAtPosition (double pos, double tolerance=5.0) const |
Returns the node at the given edges length (using an epsilon) More... | |
void | writeParams (OutputDevice &out) const |
~NBEdge () | |
Destructor. More... | |
Applying offset | |
void | reshiftPosition (double xoff, double yoff) |
Applies an offset to the edge. More... | |
void | mirrorX () |
mirror coordinates along the x-axis More... | |
Atomar getter methods | |
int | getNumLanes () const |
Returns the number of lanes. More... | |
int | getPriority () const |
Returns the priority of the edge. More... | |
NBNode * | getFromNode () const |
Returns the origin node of the edge. More... | |
NBNode * | getToNode () const |
Returns the destination node of the edge. More... | |
double | getStartAngle () const |
Returns the angle at the start of the edge (relative to the node shape center) The angle is computed in computeAngle() More... | |
double | getEndAngle () const |
Returns the angle at the end of the edge (relative to the node shape center) The angle is computed in computeAngle() More... | |
double | getShapeStartAngle () const |
Returns the angle at the start of the edge. More... | |
double | getShapeEndAngle () const |
Returns the angle at the end of the edge. More... | |
double | getTotalAngle () const |
Returns the angle at the start of the edge. More... | |
double | getLength () const |
Returns the computed length of the edge. More... | |
double | getLoadedLength () const |
Returns the length was set explicitly or the computed length if it wasn't set. More... | |
double | getFinalLength () const |
get length that will be assigned to the lanes in the final network More... | |
bool | hasLoadedLength () const |
Returns whether a length was set explicitly. More... | |
double | getSpeed () const |
Returns the speed allowed on this edge. More... | |
EdgeBuildingStep | getStep () const |
The building step of this edge. More... | |
double | getLaneWidth () const |
Returns the default width of lanes of this edge. More... | |
double | getLaneWidth (int lane) const |
Returns the width of the lane of this edge. More... | |
double | getTotalWidth () const |
Returns the combined width of all lanes of this edge. More... | |
const std::string & | getStreetName () const |
Returns the street name of this edge. More... | |
void | setStreetName (const std::string &name) |
sets the street name of this edge More... | |
double | getEndOffset () const |
Returns the offset to the destination node. More... | |
double | getEndOffset (int lane) const |
Returns the offset to the destination node a the specified lane. More... | |
double | getSignalOffset () const |
Returns the offset of a traffic signal from the end of this edge. More... | |
void | setSignalOffset (double offset) |
sets the offset of a traffic signal from the end of this edge More... | |
const std::vector< NBEdge::Lane > & | getLanes () const |
Returns the lane definitions. More... | |
Edge geometry access and computation | |
const PositionVector & | getGeometry () const |
Returns the geometry of the edge. More... | |
const PositionVector | getInnerGeometry () const |
Returns the geometry of the edge without the endpoints. More... | |
bool | hasDefaultGeometry () const |
Returns whether the geometry consists only of the node positions. More... | |
bool | hasDefaultGeometryEndpoints () const |
Returns whether the geometry is terminated by the node positions This default may be violated by initializing with tryIgnoreNodePositions=true' or with setGeometry() non-default endpoints are useful to control the generated node shape. More... | |
bool | hasDefaultGeometryEndpointAtNode (const NBNode *node) const |
Returns whether the geometry is terminated by the node positions This default may be violated by initializing with tryIgnoreNodePositions=true' or with setGeometry() non-default endpoints are useful to control the generated node shape. More... | |
void | setGeometry (const PositionVector &g, bool inner=false) |
(Re)sets the edge's geometry More... | |
void | addGeometryPoint (int index, const Position &p) |
Adds a further geometry point. More... | |
void | extendGeometryAtNode (const NBNode *node, double maxExtent) |
linearly extend the geometry at the given node More... | |
void | shortenGeometryAtNode (const NBNode *node, double reduction) |
linearly extend the geometry at the given node More... | |
void | shiftPositionAtNode (NBNode *node, NBEdge *opposite) |
shift geometry at the given node to avoid overlap More... | |
void | computeEdgeShape () |
Recomputeds the lane shapes to terminate at the node shape For every lane the intersection with the fromNode and toNode is calculated and the lane shorted accordingly. The edge length is then set to the average of all lane lenghts (which may differ). This average length is used as the lane length when writing the network. More... | |
const PositionVector & | getLaneShape (int i) const |
Returns the shape of the nth lane. More... | |
void | setLaneSpreadFunction (LaneSpreadFunction spread) |
(Re)sets how the lanes lateral offset shall be computed More... | |
LaneSpreadFunction | getLaneSpreadFunction () const |
Returns how this edge's lanes' lateral offset is computed. More... | |
bool | splitGeometry (NBEdgeCont &ec, NBNodeCont &nc) |
Splits this edge at geometry points. More... | |
void | reduceGeometry (const double minDist) |
Removes points with a distance lesser than the given. More... | |
void | checkGeometry (const double maxAngle, const double minRadius, bool fix) |
Check the angles of successive geometry segments. More... | |
Setting/getting special types | |
Marks this edge as a macroscopic connector | |
void | setAsMacroscopicConnector () |
bool | isMacroscopicConnector () const |
Returns whether this edge was marked as a macroscopic connector. More... | |
void | setIsInnerEdge () |
Marks this edge being within an intersection. More... | |
bool | isInnerEdge () const |
Returns whether this edge was marked as being within an intersection. More... | |
Static Public Member Functions | |
static bool | connections_sorter (const Connection &c1, const Connection &c2) |
connections_sorter sort by fromLane, toEdge and toLane 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 Public Attributes | |
static const double | ANGLE_LOOKAHEAD = 10.0 |
the distance at which to take the default angle More... | |
static const double | UNSPECIFIED_CONTPOS = -1 |
unspecified internal junction position More... | |
static const int | UNSPECIFIED_INTERNAL_LANE_INDEX = -1 |
internal lane computation not yet done More... | |
static const double | UNSPECIFIED_LOADED_LENGTH = -1 |
no length override given More... | |
static const double | UNSPECIFIED_OFFSET = 0 |
unspecified lane offset More... | |
static const double | UNSPECIFIED_SIGNAL_OFFSET = -1 |
unspecified signal offset More... | |
static const double | UNSPECIFIED_SPEED = -1 |
unspecified lane speed More... | |
static const double | UNSPECIFIED_VISIBILITY_DISTANCE = -1 |
unspecified foe visibility for connections More... | |
static const double | UNSPECIFIED_WIDTH = -1 |
unspecified lane width More... | |
Protected Attributes | |
std::string | myID |
The name of the object. More... | |
Private Member Functions | |
void | addRestrictedLane (double width, SUMOVehicleClass vclass) |
add a lane of the given width, restricted to the given class and shift existing connections More... | |
void | addStraightConnections (const EdgeVector *outgoing, const std::vector< int > &availableLanes, const std::vector< int > *priorities) |
add some straight connections More... | |
void | computeAngle () |
computes the angle of this edge and stores it in myAngle More... | |
PositionVector | computeLaneShape (int lane, double offset) const |
Computes the shape for the given lane. More... | |
void | computeLaneShapes () |
compute lane shapes More... | |
void | divideOnEdges (const EdgeVector *outgoing) |
divides the lanes on the outgoing edges More... | |
void | divideSelectedLanesOnEdges (const EdgeVector *outgoing, const std::vector< int > &availableLanes, const std::vector< int > *priorities) |
divide selected lanes on edges More... | |
void | init (int noLanes, bool tryIgnoreNodePositions, const std::string &origID) |
Initialization routines common to all constructors. More... | |
NBEdge (const NBEdge &s) | |
invalidated copy constructor More... | |
NBEdge & | operator= (const NBEdge &s) |
invalidated assignment operator More... | |
std::vector< int > * | prepareEdgePriorities (const EdgeVector *outgoing) |
recomputes the edge priorities and manipulates them for a distribution of lanes on edges which is more like in real-life More... | |
void | restoreRestrictedLane (SUMOVehicleClass vclass, std::vector< NBEdge::Lane > oldLanes, PositionVector oldGeometry, std::vector< NBEdge::Connection > oldConnections) |
restore a restricted lane More... | |
PositionVector | startShapeAt (const PositionVector &laneShape, const NBNode *startNode, PositionVector nodeShape) const |
Static Private Member Functions | |
static int | computePrioritySum (const std::vector< int > &priorities) |
computes the sum of the given list's entries (sic!) More... | |
static double | firstIntersection (const PositionVector &v1, const PositionVector &v2, double width2) |
compute the first intersection point between the given lane geometries considering their rspective widths More... | |
Private Attributes | |
bool | myAmInnerEdge |
Information whether this is a junction-inner edge. More... | |
bool | myAmMacroscopicConnector |
Information whether this edge is a (macroscopic) connector. More... | |
std::vector< Connection > | myConnections |
List of connections to following edges. More... | |
std::vector< Connection > | myConnectionsToDelete |
List of connections marked for delayed removal. More... | |
double | myEndOffset |
This edges's offset to the intersection begin (will be applied to all lanes) More... | |
NBNode * | myFrom |
The source and the destination node. More... | |
int | myFromJunctionPriority |
The priority normalised for the node the edge is outgoing of. More... | |
PositionVector | myGeom |
The geometry for the edge. More... | |
std::vector< Lane > | myLanes |
Lane information. More... | |
LaneSpreadFunction | myLaneSpreadFunction |
The information about how to spread the lanes. More... | |
double | myLaneWidth |
This width of this edge's lanes. More... | |
double | myLength |
The length of the edge. More... | |
double | myLoadedLength |
An optional length to use (-1 if not valid) More... | |
NBEdge * | myPossibleTurnDestination |
The edge that would be the turn destination if there was one. More... | |
int | myPriority |
The priority of the edge. More... | |
double | mySignalOffset |
the offset of a traffic light signal from the end of this edge (-1 for None) More... | |
std::vector< NBSign > | mySigns |
the street signs along this edge More... | |
double | mySpeed |
The maximal speed. More... | |
EdgeBuildingStep | myStep |
The building step. More... | |
std::string | myStreetName |
The street name (or whatever arbitrary string you wish to attach) More... | |
std::vector< TLSDisabledConnection > | myTLSDisabledConnections |
vector with the disabled connections More... | |
NBNode * | myTo |
int | myToJunctionPriority |
The priority normalised for the node the edge is incoming in. More... | |
NBEdge * | myTurnDestination |
The turn destination edge (if a connection exists) More... | |
std::string | myType |
The type of the edge. More... | |
double | myStartAngle |
The angles of the edge. More... | |
double | myEndAngle |
double | myTotalAngle |
PositionVector | myFromBorder |
intersection borders (because the node shape might be invalid) More... | |
PositionVector | myToBorder |
Friends | |
class | GNEEdge |
class | GNEJunction |
class | GNELane |
class | NBEdgeCont |
class | NBEdgeSuccessorBuilder |
Setting and getting connections | |
bool | addEdge2EdgeConnection (NBEdge *dest) |
Adds a connection to another edge. More... | |
bool | addLane2LaneConnection (int fromLane, NBEdge *dest, int toLane, Lane2LaneInfoType type, bool mayUseSameDestination=false, bool mayDefinitelyPass=false, bool keepClear=true, double contPos=UNSPECIFIED_CONTPOS, double visibility=UNSPECIFIED_VISIBILITY_DISTANCE) |
Adds a connection between the specified this edge's lane and an approached one. More... | |
bool | addLane2LaneConnections (int fromLane, NBEdge *dest, int toLane, int no, Lane2LaneInfoType type, bool invalidatePrevious=false, bool mayDefinitelyPass=false) |
Builds no connections starting at the given lanes. More... | |
bool | setConnection (int lane, NBEdge *destEdge, int destLane, Lane2LaneInfoType type, bool mayUseSameDestination=false, bool mayDefinitelyPass=false, bool keepClear=true, double contPos=UNSPECIFIED_CONTPOS, double visibility=UNSPECIFIED_VISIBILITY_DISTANCE) |
Adds a connection to a certain lane of a certain edge. More... | |
void | insertConnection (NBEdge::Connection connection) |
insert a previously created NBEdge::connection More... | |
std::vector< Connection > | getConnectionsFromLane (int lane) const |
Returns connections from a given lane. More... | |
Connection | getConnection (int fromLane, const NBEdge *to, int toLane) const |
Returns the specified connection This method goes through "myConnections" and returns the specified one. More... | |
Connection & | getConnectionRef (int fromLane, const NBEdge *to, int toLane) |
Returns reference to the specified connection This method goes through "myConnections" and returns the specified one. More... | |
bool | hasConnectionTo (NBEdge *destEdge, int destLane, int fromLane=-1) const |
Retrieves info about a connection to a certain lane of a certain edge. More... | |
bool | isConnectedTo (const NBEdge *e) const |
Returns the information whethe a connection to the given edge has been added (or computed) More... | |
const std::vector< Connection > & | getConnections () const |
Returns the connections. More... | |
std::vector< Connection > & | getConnections () |
Returns the connections. More... | |
const EdgeVector * | getConnectedSorted () |
Returns the list of outgoing edges without the turnaround sorted in clockwise direction. More... | |
EdgeVector | getConnectedEdges () const |
Returns the list of outgoing edges unsorted. More... | |
EdgeVector | getIncomingEdges () const |
Returns the list of incoming edges unsorted. More... | |
std::vector< int > | getConnectionLanes (NBEdge *currentOutgoing) const |
Returns the list of lanes that may be used to reach the given edge. More... | |
void | sortOutgoingConnectionsByAngle () |
sorts the outgoing connections by their angle relative to their junction More... | |
void | sortOutgoingConnectionsByIndex () |
sorts the outgoing connections by their from-lane-index and their to-lane-index More... | |
void | remapConnections (const EdgeVector &incoming) |
Remaps the connection in a way that allows the removal of it. More... | |
void | removeFromConnections (NBEdge *toEdge, int fromLane=-1, int toLane=-1, bool tryLater=false, const bool adaptToLaneRemoval=false) |
Removes the specified connection(s) More... | |
bool | removeFromConnections (NBEdge::Connection connectionToRemove) |
remove an existent connection of edge More... | |
void | invalidateConnections (bool reallowSetting=false) |
invalidate current connections of edge More... | |
void | replaceInConnections (NBEdge *which, NBEdge *by, int laneOff) |
replace in current connections of edge More... | |
void | replaceInConnections (NBEdge *which, const std::vector< NBEdge::Connection > &origConns) |
replace in current connections of edge More... | |
void | copyConnectionsFrom (NBEdge *src) |
copy connections from antoher edge More... | |
void | shiftToLanesToEdge (NBEdge *to, int laneOff) |
modifify the toLane for all connections to the given edge More... | |
void | moveConnectionToLeft (int lane) |
void | moveConnectionToRight (int lane) |
bool | canMoveConnection (const Connection &con, int newFromLane) const |
whether the connection can originate on newFromLane More... | |
The representation of a single edge during network building.
Current state of the edge within the building process.
As the network is build in a cascaded way, considering loaded information, a counter holding the current step is needed. This is done by using this enumeration.
NBEdge::NBEdge | ( | const std::string & | id, |
NBNode * | from, | ||
NBNode * | to, | ||
std::string | type, | ||
double | speed, | ||
int | nolanes, | ||
int | priority, | ||
double | width, | ||
double | offset, | ||
const std::string & | streetName = "" , |
||
LaneSpreadFunction | spread = LANESPREAD_RIGHT |
||
) |
Constructor.
Use this if no edge geometry is given.
[in] | id | The id of the edge |
[in] | from | The node the edge starts at |
[in] | to | The node the edge ends at |
[in] | type | The type of the edge (my be =="") |
[in] | speed | The maximum velocity allowed on this edge |
[in] | nolanes | The number of lanes this edge has |
[in] | priority | This edge's priority |
[in] | width | This edge's lane width |
[in] | offset | Additional offset to the destination node |
[in] | streetName | The street name (need not be unique) |
[in] | spread | How the lateral offset of the lanes shall be computed |
Definition at line 245 of file NBEdge.cpp.
References init().
Referenced by splitGeometry().
NBEdge::NBEdge | ( | const std::string & | id, |
NBNode * | from, | ||
NBNode * | to, | ||
std::string | type, | ||
double | speed, | ||
int | nolanes, | ||
int | priority, | ||
double | width, | ||
double | offset, | ||
PositionVector | geom, | ||
const std::string & | streetName = "" , |
||
const std::string & | origID = "" , |
||
LaneSpreadFunction | spread = LANESPREAD_RIGHT , |
||
bool | tryIgnoreNodePositions = false |
||
) |
Constructor.
Use this if the edge's geometry is given.
[in] | id | The id of the edge |
[in] | from | The node the edge starts at |
[in] | to | The node the edge ends at |
[in] | type | The type of the edge (may be =="") |
[in] | speed | The maximum velocity allowed on this edge |
[in] | nolanes | The number of lanes this edge has |
[in] | priority | This edge's priority |
[in] | width | This edge's lane width |
[in] | offset | Additional offset to the destination node |
[in] | geom | The edge's geomatry |
[in] | streetName | The street name (need not be unique) |
[in] | origID | The original ID in the source network (need not be unique) |
[in] | spread | How the lateral offset of the lanes shall be computed |
[in] | tryIgnoreNodePositions | Does not add node geometries if geom.size()>=2 |
Definition at line 268 of file NBEdge.cpp.
References init().
NBEdge::NBEdge | ( | const std::string & | id, |
NBNode * | from, | ||
NBNode * | to, | ||
NBEdge * | tpl, | ||
const PositionVector & | geom = PositionVector() , |
||
int | numLanes = -1 |
||
) |
Constructor.
Use this to copy attribuets from another edge
[in] | id | The id of the edge |
[in] | from | The node the edge starts at |
[in] | to | The node the edge ends at |
[in] | tpl | The template edge to copy attributes from |
[in] | geom | The geometry to use (may be empty) |
[in] | numLanes | The number of lanes of the new edge (copy from tpl by default) |
Definition at line 293 of file NBEdge.cpp.
References getLaneSpeed(), getNumLanes(), getPermissions(), init(), MIN2(), myGeom, myLanes, myTo, setEndOffset(), setLaneWidth(), setPermissions(), and setSpeed().
NBEdge::~NBEdge | ( | ) |
Destructor.
Definition at line 452 of file NBEdge.cpp.
|
private |
invalidated copy constructor
void NBEdge::addBikeLane | ( | double | width | ) |
add a bicycle lane of the given width and shift existing connctions
Definition at line 3023 of file NBEdge.cpp.
References addRestrictedLane(), and SVC_BICYCLE.
Referenced by getTypeID(), NIImporter_OpenStreetMap::insertEdge(), and NIXMLEdgesHandler::myEndElement().
void NBEdge::addCrossingPointsAsIncomingWithGivenOutgoing | ( | NBEdge * | o, |
PositionVector & | into | ||
) |
add crossing points as incoming with given outgoing
Referenced by getTypeID().
bool NBEdge::addEdge2EdgeConnection | ( | NBEdge * | dest | ) |
Adds a connection to another edge.
If the given edge does not start at the node this edge ends on, false is returned.
All other cases return true. Though, a connection may not been added if this edge is in step "INIT_REJECT_CONNECTIONS". Also, this method assures that a connection to an edge is set only once, no multiple connections to next edge are stored.
After a first connection to an edge was set, the process step is set to "EDGE2EDGES".
[in] | dest | The connection's destination edge |
Definition at line 876 of file NBEdge.cpp.
References EDGE2EDGES, INIT_REJECT_CONNECTIONS, invalidateConnections(), myConnections, myFrom, myStep, and myTo.
Referenced by addLane2LaneConnection(), NIImporter_OpenStreetMap::RelationHandler::applyRestriction(), getLaneSpreadFunction(), NBEdgeCont::joinSameNodeConnectingEdges(), NIXMLConnectionsHandler::myStartElement(), NIImporter_VISUM::parse_Turns(), and remapConnections().
void NBEdge::addGeometryPoint | ( | int | index, |
const Position & | p | ||
) |
Adds a further geometry point.
Some importer do not know an edge's geometry when it is initialised. This method allows to insert further geometry points after the edge has been built.
[in] | index | The position at which the point shall be added |
[in] | p | The point to add |
Definition at line 769 of file NBEdge.cpp.
References myGeom.
Referenced by getGeometry(), and NIImporter_VISUM::parse_EdgePolys().
void NBEdge::addLane | ( | int | index, |
bool | recompute = true |
||
) |
add lane
Definition at line 2699 of file NBEdge.cpp.
References computeLaneShapes(), NBNode::getIncomingEdges(), invalidateConnections(), myFrom, and myLanes.
Referenced by GNEEdge::addLane(), getTypeID(), and incLaneNo().
bool NBEdge::addLane2LaneConnection | ( | int | fromLane, |
NBEdge * | dest, | ||
int | toLane, | ||
Lane2LaneInfoType | type, | ||
bool | mayUseSameDestination = false , |
||
bool | mayDefinitelyPass = false , |
||
bool | keepClear = true , |
||
double | contPos = UNSPECIFIED_CONTPOS , |
||
double | visibility = UNSPECIFIED_VISIBILITY_DISTANCE |
||
) |
Adds a connection between the specified this edge's lane and an approached one.
If the given edge does not start at the node this edge ends on, false is returned.
All other cases return true. Though, a connection may not been added if this edge is in step "INIT_REJECT_CONNECTIONS". Before the lane-to-lane connection is set, a connection between edges is established using "addEdge2EdgeConnection". Then, "setConnection" is called for inserting the lane-to-lane connection.
[in] | fromLane | The connection's starting lane (of this edge) |
[in] | dest | The connection's destination edge |
[in] | toLane | The connection's destination lane |
[in] | type | The connections's type |
[in] | mayUseSameDestination | Whether this connection may be set though connecting an already connected lane |
[in] | mayDefinitelyPass | Whether this connection is definitely undistrubed (special case for on-ramps) |
Definition at line 900 of file NBEdge.cpp.
References addEdge2EdgeConnection(), INIT_REJECT_CONNECTIONS, myFrom, myStep, myTo, and setConnection().
Referenced by NIImporter_SUMO::_loadNetwork(), addLane2LaneConnections(), NIVissimConnection::buildEdgeConnections(), getLaneSpreadFunction(), NBNodeCont::joinNodeClusters(), NIImporter_OpenDrive::loadNetwork(), moveOutgoingConnectionsFrom(), NIXMLEdgesHandler::myEndElement(), NIImporter_VISUM::parse_LanesConnections(), NIXMLConnectionsHandler::parseLaneBound(), NBEdgeCont::recheckPostProcessConnections(), NIImporter_DlrNavteq::ConnectedLanesHandler::report(), and NBEdgeCont::splitAt().
bool NBEdge::addLane2LaneConnections | ( | int | fromLane, |
NBEdge * | dest, | ||
int | toLane, | ||
int | no, | ||
Lane2LaneInfoType | type, | ||
bool | invalidatePrevious = false , |
||
bool | mayDefinitelyPass = false |
||
) |
Builds no connections starting at the given lanes.
If "invalidatePrevious" is true, a call to "invalidateConnections(true)" is done. This method loops through the given connections to set, calling "addLane2LaneConnection" for each.
[in] | fromLane | The first of the connections' starting lanes (of this edge) |
[in] | dest | The connections' destination edge |
[in] | toLane | The first of the connections' destination lanes |
[in] | no | The number of connections to set |
[in] | type | The connections' type |
[in] | invalidatePrevious | Whether previously set connection shall be deleted |
[in] | mayDefinitelyPass | Whether these connections are definitely undistrubed (special case for on-ramps) |
Definition at line 924 of file NBEdge.cpp.
References addLane2LaneConnection(), and invalidateConnections().
Referenced by NBRampsComputer::buildOffRamp(), NBRampsComputer::buildOnRamp(), NBNode::computeLanes2Lanes(), and getLaneSpreadFunction().
|
inherited |
Adds a parameter.
[in] | key | The parameter's name |
[in] | value | The parameter's value |
Definition at line 51 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by SUMORouteHandler::addParam(), NLHandler::addParam(), TraCI_POI::addParameter(), PCLoaderOSM::addPOI(), PCLoaderOSM::addPolygon(), NBTrafficLightDefinition::compute(), NIImporter_OpenStreetMap::insertEdge(), NIImporter_OpenDrive::loadNetwork(), MSStateHandler::myStartElement(), NIImporter_MATSim::EdgesHandler::myStartElement(), NIImporter_OpenStreetMap::EdgesHandler::myStartElement(), TraCIServerAPI_Edge::processSet(), TraCIServerAPI_TLS::processSet(), TraCI_Polygon::setParameter(), TraCI_Route::setParameter(), and TraCI_Lane::setParameter().
|
inherited |
Adds all given parameter.
[in] | mapArg | The keys/values to insert |
Definition at line 57 of file Parameterised.cpp.
References Parameterised::myMap.
|
inherited |
Adds all given parameter.
[in] | p | The keys/values to insert |
Definition at line 65 of file Parameterised.cpp.
References Parameterised::myMap.
|
private |
add a lane of the given width, restricted to the given class and shift existing connections
Definition at line 3035 of file NBEdge.cpp.
References computeLaneShapes(), disallowVehicleClass(), NBEdge::Connection::fromLane, Named::getID(), NBNode::getIncomingEdges(), LANESPREAD_CENTER, PositionVector::move2side(), myConnections, myFrom, myGeom, myLanes, myLaneSpreadFunction, myTo, NBNode::shiftTLConnectionLaneIndex(), toString(), and WRITE_WARNING.
Referenced by addBikeLane(), and addSidewalk().
void NBEdge::addSidewalk | ( | double | width | ) |
add a pedestrian sidewalk of the given width and shift existing connctions
Definition at line 3011 of file NBEdge.cpp.
References addRestrictedLane(), and SVC_PEDESTRIAN.
Referenced by getTypeID(), NBEdgeCont::guessSidewalks(), NIImporter_OpenStreetMap::insertEdge(), and NIXMLEdgesHandler::myEndElement().
|
inline |
add Sign
Definition at line 1186 of file NBEdge.h.
References cutAtIntersection(), mySigns, resetNodeBorder(), and setNodeBorder().
Referenced by NBEdgeCont::generateStreetSigns().
|
private |
add some straight connections
Definition at line 2157 of file NBEdge.cpp.
References DEBUGCOND, NBNode::getDirection(), Named::getID(), getNumLanes(), getPermissions(), LINKDIR_STRAIGHT, MIN2(), myConnections, myLanes, myTo, and SVC_PEDESTRIAN.
Referenced by divideSelectedLanesOnEdges().
|
inlineinherited |
Adds this object to the given container.
Definition at line 129 of file Named.h.
References Named::StoringVisitor::add().
void NBEdge::allowVehicleClass | ( | int | lane, |
SUMOVehicleClass | vclass | ||
) |
set allowed class for the given lane or for all lanes if -1 is given
Definition at line 2768 of file NBEdge.cpp.
References myLanes.
Referenced by NINavTeqHelper::addVehicleClasses(), NINavTeqHelper::addVehicleClassesV6(), getTypeID(), and preferVehicleClass().
void NBEdge::append | ( | NBEdge * | continuation | ) |
append another edge
Definition at line 2629 of file NBEdge.cpp.
References PositionVector::append(), computeAngle(), getLength(), getSignalOffset(), myConnections, myGeom, myLanes, myLength, myPossibleTurnDestination, mySignalOffset, myStep, myTo, myToBorder, myTurnDestination, and UNSPECIFIED_SIGNAL_OFFSET.
Referenced by getTypeID(), and NBNodeCont::removeUnwishedNodes().
void NBEdge::appendTurnaround | ( | bool | noTLSControlled, |
bool | checkPermissions | ||
) |
Add a connection to the previously computed turnaround, if wished.
If a turning direction exists (myTurnDestination!=0) and either the edge is not controlled by a tls or noTLSControlled is false, a connection to the edge stored in myTurnDestination is added (from the leftmost lane of this edge to the leftmost lane of myTurnDestination).
[in] | noTLSControlled | Whether the turnaround shall not be connected if this edge is controlled by a tls |
Definition at line 2339 of file NBEdge.cpp.
References getNumLanes(), getPermissions(), NBNode::getType(), NBNode::isTLControlled(), L2L_VALIDATED, myLanes, myTo, myTurnDestination, NODETYPE_RAIL_CROSSING, setConnection(), and SVC_PEDESTRIAN.
Referenced by getTypeID().
void NBEdge::buildInnerEdges | ( | const NBNode & | n, |
int | noInternalNoSplits, | ||
int & | linkIndex, | ||
int & | splitIndex | ||
) |
Definition at line 1363 of file NBEdge.cpp.
References NBNode::computeInternalLaneShape(), NBEdge::Connection::contPos, NBNode::Crossing::edges, PositionVector::extrapolate(), firstIntersection(), NBEdge::Connection::foeIncomingLanes, NBEdge::Connection::foeInternalLinks, NBNode::foes(), NBNode::forbids(), NBEdge::Connection::fromLane, NBNode::getCrossings(), NBNode::getDirection(), getEndOffset(), Named::getID(), NBNode::getIncomingEdges(), OptionsCont::getInt(), getJunctionPriority(), getLaneShape(), OptionsCont::getOptions(), getSpeed(), hasSignalisedConnectionTo(), NBEdge::Connection::haveVia, NBEdge::Connection::id, NBEdge::Connection::internalLaneIndex, NBNode::isTLControlled(), joinToString(), PositionVector::length(), LINKDIR_LEFT, LINKDIR_PARTLEFT, LINKDIR_PARTRIGHT, LINKDIR_RIGHT, LINKDIR_STRAIGHT, LINKDIR_TURN, myConnections, myTo, NBNode::needsCont(), POSITION_EPS, NBNode::rightTurnConflict(), NBNode::Crossing::shape, NBEdge::Connection::shape, split(), PositionVector::splitAt(), SVC_BICYCLE, NBEdge::Connection::toEdge, NBEdge::Connection::toLane, toString(), UNSPECIFIED_CONTPOS, NBEdge::Connection::viaID, NBEdge::Connection::viaShape, NBEdge::Connection::viaVmax, NBEdge::Connection::vmax, NBNode::Crossing::width, and WRITE_WARNING.
Referenced by declareConnectionsAsLoaded().
|
private |
whether the connection can originate on newFromLane
Definition at line 1326 of file NBEdge.cpp.
References getPermissions(), SVC_PEDESTRIAN, NBEdge::Connection::toEdge, and NBEdge::Connection::toLane.
Referenced by moveConnectionToLeft(), and moveConnectionToRight().
void NBEdge::checkGeometry | ( | const double | maxAngle, |
const double | minRadius, | ||
bool | fix | ||
) |
Check the angles of successive geometry segments.
[in] | maxAngle | The maximum angle allowed |
[in] | minRadius | The minimum turning radius allowed at the start and end |
[in] | fix | Whether to prune geometry points to avoid sharp turns at start and end |
Definition at line 830 of file NBEdge.cpp.
References PositionVector::angleAt2D(), GeomHelper::angleDiff(), DEG2RAD, Named::getID(), M_PI, myGeom, RAD2DEG, toString(), WRITE_MESSAGE, and WRITE_WARNING.
Referenced by getLaneSpreadFunction().
void NBEdge::clearControllingTLInformation | ( | ) |
clears tlID for all connections
Definition at line 2496 of file NBEdge.cpp.
References myConnections.
Referenced by getTypeID().
|
inherited |
Clears the parameter map.
Definition at line 99 of file Parameterised.cpp.
References Parameterised::myMap.
|
private |
computes the angle of this edge and stores it in myAngle
Definition at line 1670 of file NBEdge.cpp.
References ANGLE_LOOKAHEAD, Position::angleTo2D(), PositionVector::around(), DEBUGCOND, PositionVector::distance2D(), PositionVector::getCentroid(), Named::getID(), getNumLanes(), NBNode::getPosition(), NBNode::getShape(), LANESPREAD_RIGHT, GeomHelper::legacyDegree(), PositionVector::length(), PositionVector::length2D(), MIN2(), myEndAngle, myFrom, myGeom, myLanes, myLaneSpreadFunction, myStartAngle, myTo, myTotalAngle, POSITION_EPS, and PositionVector::positionAtOffset2D().
Referenced by append(), computeEdgeShape(), init(), mirrorX(), reinitNodes(), reshiftPosition(), and setGeometry().
bool NBEdge::computeEdge2Edges | ( | bool | noLeftMovers | ) |
computes the edge (step1: computation of approached edges)
Definition at line 1811 of file NBEdge.cpp.
References EDGE2EDGES, NBNode::getOutgoingEdges(), NBNode::isLeftMover(), myConnections, myStep, and myTo.
Referenced by getTypeID().
void NBEdge::computeEdgeShape | ( | ) |
Recomputeds the lane shapes to terminate at the node shape For every lane the intersection with the fromNode and toNode is calculated and the lane shorted accordingly. The edge length is then set to the average of all lane lenghts (which may differ). This average length is used as the lane length when writing the network.
Definition at line 676 of file NBEdge.cpp.
References computeAngle(), cutAtIntersection(), myLanes, and myLength.
Referenced by getGeometry().
bool NBEdge::computeLanes2Edges | ( | ) |
computes the edge, step2: computation of which lanes approach the edges)
Definition at line 1830 of file NBEdge.cpp.
References divideOnEdges(), EDGE2EDGES, getConnectedSorted(), LANES2EDGES, myConnections, and myStep.
Referenced by getTypeID().
|
private |
Computes the shape for the given lane.
Definition at line 1658 of file NBEdge.cpp.
References getLaneID(), PositionVector::move2side(), myGeom, and WRITE_WARNING.
Referenced by computeLaneShapes().
|
private |
compute lane shapes
Definition at line 1618 of file NBEdge.cpp.
References computeLaneShape(), Named::getID(), getLaneWidth(), LANESPREAD_RIGHT, myFrom, myGeom, myLanes, myLaneSpreadFunction, myTo, SUMO_const_laneOffset, SUMO_const_laneWidth, UNSPECIFIED_WIDTH, and WRITE_WARNING.
Referenced by addLane(), addRestrictedLane(), deleteLane(), init(), restoreRestrictedLane(), setGeometry(), and shortenGeometryAtNode().
|
staticprivate |
computes the sum of the given list's entries (sic!)
Definition at line 2329 of file NBEdge.cpp.
Referenced by divideSelectedLanesOnEdges().
|
static |
connections_sorter sort by fromLane, toEdge and toLane
Definition at line 2943 of file NBEdge.cpp.
References NBEdge::Connection::fromLane, NBEdge::Connection::toEdge, and NBEdge::Connection::toLane.
Referenced by sortOutgoingConnectionsByIndex().
void NBEdge::copyConnectionsFrom | ( | NBEdge * | src | ) |
copy connections from antoher edge
Definition at line 1319 of file NBEdge.cpp.
References myConnections, and myStep.
Referenced by getConnections(), and NBEdgeCont::splitAt().
PositionVector NBEdge::cutAtIntersection | ( | const PositionVector & | old | ) | const |
cut shape at the intersection shapes
Definition at line 610 of file NBEdge.cpp.
References GeomHelper::angleDiff(), PositionVector::beginEndAngle(), DEG2RAD, NBNode::geometryLike(), NBNode::getPosition(), PositionVector::getSubpart(), PositionVector::length(), myFrom, myFromBorder, myTo, myToBorder, POSITION_EPS, PositionVector::reverse(), startShapeAt(), and Position::z().
Referenced by addSign(), computeEdgeShape(), and getFinalLength().
void NBEdge::decLaneNo | ( | int | by | ) |
decrement lane
Definition at line 2749 of file NBEdge.cpp.
References deleteLane(), LANES2LANES_USER, myLanes, and myStep.
Referenced by getTypeID(), and NIXMLEdgesHandler::myEndElement().
|
inline |
declares connections as fully loaded. This is needed to avoid recomputing connections if an edge has no connections intentionally.
Definition at line 1168 of file NBEdge.h.
References buildInnerEdges(), and myStep.
Referenced by NIImporter_SUMO::_loadNetwork(), NBNodeCont::joinNodeClusters(), NIImporter_DlrNavteq::ConnectedLanesHandler::report(), and GNEEdge::setAttribute().
void NBEdge::deleteLane | ( | int | index, |
bool | recompute = true |
||
) |
delete lane
Definition at line 2734 of file NBEdge.cpp.
References computeLaneShapes(), NBNode::getIncomingEdges(), invalidateConnections(), myFrom, and myLanes.
Referenced by decLaneNo(), NIXMLEdgesHandler::deleteEdge(), getTypeID(), and GNEEdge::removeLane().
void NBEdge::disableConnection4TLS | ( | int | fromLane, |
NBEdge * | toEdge, | ||
int | toLane | ||
) |
disable connections for TLS
Definition at line 2504 of file NBEdge.cpp.
References NBEdge::TLSDisabledConnection::fromLane, myTLSDisabledConnections, NBEdge::TLSDisabledConnection::to, and NBEdge::TLSDisabledConnection::toLane.
Referenced by getTypeID(), and NIXMLConnectionsHandler::parseLaneBound().
void NBEdge::disallowVehicleClass | ( | int | lane, |
SUMOVehicleClass | vclass | ||
) |
set disallowed class for the given lane or for all lanes if -1 is given
Definition at line 2781 of file NBEdge.cpp.
References myLanes.
Referenced by addRestrictedLane(), getTypeID(), and NIImporter_DlrNavteq::EdgesHandler::report().
void NBEdge::dismissVehicleClassInformation | ( | ) |
dimiss vehicle class information
Definition at line 2934 of file NBEdge.cpp.
References myLanes, and SVCAll.
Referenced by NBEdgeCont::insert(), and isInnerEdge().
|
private |
divides the lanes on the outgoing edges
Definition at line 1963 of file NBEdge.cpp.
References DEBUGCOND, divideSelectedLanesOnEdges(), Named::getID(), getPermissions(), isForbidden(), myConnections, myLanes, prepareEdgePriorities(), sortOutgoingConnectionsByIndex(), SVC_BICYCLE, SVC_BUS, SVC_PASSENGER, SVC_PEDESTRIAN, and toString().
Referenced by computeLanes2Edges().
|
private |
divide selected lanes on edges
Definition at line 2043 of file NBEdge.cpp.
References addStraightConnections(), Bresenham::compute(), computePrioritySum(), DEBUGCOND, NBEdge::ToEdgeConnectionsAdder::getBuiltConnections(), Named::getID(), getNumLanes(), getPermissions(), getSpeed(), myConnections, myLanes, SVC_BICYCLE, SVC_PEDESTRIAN, and toString().
Referenced by divideOnEdges().
bool NBEdge::expandableBy | ( | NBEdge * | possContinuation | ) | const |
Check if Node is expandable.
!! if (myAllowedOnLanes!=possContinuation->myAllowedOnLanes || myNotAllowedOnLanes!=possContinuation->myNotAllowedOnLanes) { return false; }
Definition at line 2550 of file NBEdge.cpp.
References EDGE2EDGES, NBNode::FORWARD, getConnectedEdges(), getConnectionLanes(), getFirstNonPedestrianLaneIndex(), getPriority(), INIT, INIT_REJECT_CONNECTIONS, LANES2EDGES, LANES2LANES_DONE, LANES2LANES_RECHECK, LANES2LANES_USER, MAX2(), myConnections, myFrom, myLanes, myLaneSpreadFunction, mySpeed, myStep, and myTo.
Referenced by getTypeID().
void NBEdge::extendGeometryAtNode | ( | const NBNode * | node, |
double | maxExtent | ||
) |
linearly extend the geometry at the given node
Definition at line 526 of file NBEdge.cpp.
References PositionVector::extrapolate(), NBNode::getPosition(), PositionVector::getSubpart2D(), GeomHelper::INVALID_OFFSET, PositionVector::length2D(), myFrom, myGeom, myTo, and PositionVector::nearest_offset_to_point2D().
Referenced by getGeometry().
|
staticprivate |
compute the first intersection point between the given lane geometries considering their rspective widths
Definition at line 1530 of file NBEdge.cpp.
References PositionVector::intersectsAtLengths2D(), PositionVector::length(), max, MIN2(), PositionVector::move2side(), and POSITION_EPS.
Referenced by buildInnerEdges().
double NBEdge::getAngleAtNode | ( | const NBNode *const | node | ) | const |
Returns the angle of the edge's geometry at the given node.
The angle is signed, regards direction, and starts at 12 o'clock (north->south), proceeds positive clockwise.
[in] | node | The node for which the edge's angle shall be returned |
Definition at line 1576 of file NBEdge.cpp.
References PositionVector::angleAt2D(), GeomHelper::legacyDegree(), myFrom, myGeom, and myTo.
Referenced by NBNode::computeLanes2Lanes(), NBTurningDirectionsComputer::computeTurnDirectionsForNode(), NBRampsComputer::fulfillsRampConstraints(), NBNode::geometryLike(), NBNodesEdgesSorter::edge_by_junction_angle_sorter::getConvAngle(), getCrossingAngle(), NBNode::getDirection(), getTypeID(), NBEdgeCont::guessRoundabouts(), NBNode::isLeftMover(), NBNodeCont::joinJunctions(), NBRequest::laneConflict(), and NBEdgePriorityComputer::setPriorityJunctionPriorities().
double NBEdge::getAngleAtNodeToCenter | ( | const NBNode *const | node | ) | const |
Returns the angle of from the node shape center to where the edge meets the node shape.
The angle is signed, disregards direction, and starts at 12 o'clock (north->south), proceeds positive clockwise.
[in] | node | The node for which the edge's angle shall be returned |
Definition at line 1588 of file NBEdge.cpp.
References myEndAngle, myFrom, myStartAngle, and myTo.
Referenced by getTypeID(), and NBContHelper::edge_by_angle_to_nodeShapeCentroid_sorter::operator()().
PositionVector NBEdge::getCCWBoundaryLine | ( | const NBNode & | n | ) | const |
get the outer boundary of this edge when going counter-clock-wise around the given node
Definition at line 2532 of file NBEdge.cpp.
References getLaneWidth(), getNumLanes(), PositionVector::move2side(), myFrom, and myLanes.
Referenced by NBEdgeCont::checkOverlap(), and getTypeID().
EdgeVector NBEdge::getConnectedEdges | ( | ) | const |
Returns the list of outgoing edges unsorted.
Definition at line 1107 of file NBEdge.cpp.
References myConnections.
Referenced by NIVissimDisturbance::addToNode(), expandableBy(), NBTrafficLightDefinition::forbids(), getConnections(), NBContHelper::same_connection_edge_sorter::getMinMaxRelAngles(), GNEConnectorFrame::onCmdSelectConflicts(), remapConnections(), and NBNode::removeSelfLoops().
const EdgeVector * NBEdge::getConnectedSorted | ( | ) |
Returns the list of outgoing edges without the turnaround sorted in clockwise direction.
Definition at line 1070 of file NBEdge.cpp.
References NBNode::getOutgoingEdges(), myConnections, myConnectionsToDelete, myTo, and myTurnDestination.
Referenced by computeLanes2Edges(), and getConnections().
NBEdge::Connection NBEdge::getConnection | ( | int | fromLane, |
const NBEdge * | to, | ||
int | toLane | ||
) | const |
Returns the specified connection This method goes through "myConnections" and returns the specified one.
Definition at line 1022 of file NBEdge.cpp.
References Named::getID(), myConnections, and toString().
Referenced by NBRequest::getFoesString(), getLaneSpreadFunction(), NBRequest::getResponseString(), and NBRequest::mustBrake().
std::vector< int > NBEdge::getConnectionLanes | ( | NBEdge * | currentOutgoing | ) | const |
Returns the list of lanes that may be used to reach the given edge.
Definition at line 1132 of file NBEdge.cpp.
References myConnections, and myTurnDestination.
Referenced by NBNode::computeLanes2Lanes(), NBNode::ApproachingDivider::execute(), expandableBy(), and getConnections().
NBEdge::Connection & NBEdge::getConnectionRef | ( | int | fromLane, |
const NBEdge * | to, | ||
int | toLane | ||
) |
Returns reference to the specified connection This method goes through "myConnections" and returns the specified one.
Definition at line 1036 of file NBEdge.cpp.
References Named::getID(), myConnections, and toString().
Referenced by getLaneSpreadFunction(), and GNEConnection::getNBEdgeConnection().
|
inline |
Returns the connections.
Definition at line 834 of file NBEdge.h.
References myConnections.
Referenced by NIXMLTrafficLightsHandler::addTlConnection(), NBEdgeCont::checkGrade(), NBTrafficLightDefinition::collectReachable(), NBNode::computeLanes2Lanes(), NWWriter_SUMO::getOppositeInternalID(), NBNodeCont::joinNodeClusters(), NIImporter_OpenDrive::loadNetwork(), NBRequest::mustBrake(), GNEConnectorFrame::onCmdSelectConflicts(), GNEConnectorFrame::onCmdSelectDeadStarts(), GNEConnectorFrame::onCmdSelectPass(), NBEdgeCont::recheckPostProcessConnections(), GNEEdge::remakeGNEConnections(), GNEJunction::setLogicValid(), NWWriter_DlrNavteq::writeConnectedLanes(), NWWriter_XML::writeEdgesAndConnections(), NWWriter_SUMO::writeInternalConnections(), NWWriter_OpenDrive::writeNetwork(), NWWriter_SUMO::writeNetwork(), and NWWriter_XML::writeTrafficLights().
|
inline |
Returns the connections.
Definition at line 841 of file NBEdge.h.
References copyConnectionsFrom(), getConnectedEdges(), getConnectedSorted(), getConnectionLanes(), getIncomingEdges(), invalidateConnections(), isTurningDirectionAt(), myConnections, remapConnections(), removeFromConnections(), replaceInConnections(), setTurningDestination(), shiftToLanesToEdge(), sortOutgoingConnectionsByAngle(), and sortOutgoingConnectionsByIndex().
std::vector< NBEdge::Connection > NBEdge::getConnectionsFromLane | ( | int | lane | ) | const |
Returns connections from a given lane.
This method goes through "myConnections" and copies those which are starting at the given lane.
[in] | lane | The lane which connections shall be returned |
Definition at line 1010 of file NBEdge.cpp.
References myConnections.
Referenced by NIVissimTL::NIVissimTLSignal::addTo(), NBTrafficLightDefinition::collectAllLinks(), NBLoadedTLDef::collectLinks(), NBOwnTLDef::computeLogicAndConts(), NBOwnTLDef::computeUnblockedWeightedStreamNumber(), GNELane::drawLane2LaneConnections(), GNELane::drawLinkNo(), GNELane::drawTLSLinkNo(), getLaneSpreadFunction(), GNEConnectorFrame::handleLaneClick(), GNEConnectorFrame::initTargets(), moveOutgoingConnectionsFrom(), NBRequest::writeCrossingResponse(), and NBRequest::writeLaneResponse().
double NBEdge::getCrossingAngle | ( | NBNode * | node | ) |
return the angle for computing pedestrian crossings at the given node
Definition at line 2985 of file NBEdge.cpp.
References gDebugFlag1, getAngleAtNode(), getFromNode(), and Named::getID().
Referenced by NBNode::checkCrossing(), and getLanes().
PositionVector NBEdge::getCWBoundaryLine | ( | const NBNode & | n | ) | const |
get the outer boundary of this edge when going clock-wise around the given node
Definition at line 2514 of file NBEdge.cpp.
References getLaneWidth(), getNumLanes(), PositionVector::move2side(), myFrom, and myLanes.
Referenced by getTypeID().
|
inherited |
Returns the value for a given key converted to a double.
[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 89 of file Parameterised.cpp.
References TplConvert::_2double(), and Parameterised::myMap.
Referenced by MSDevice_Battery::buildVehicleDevices().
|
inline |
Returns the angle at the end of the edge (relative to the node shape center) The angle is computed in computeAngle()
Definition at line 452 of file NBEdge.h.
References getShapeEndAngle(), getShapeStartAngle(), and myEndAngle.
Referenced by NBContHelper::relative_incoming_edge_sorter::operator()(), and NBNode::rightTurnConflict().
|
inline |
Returns the offset to the destination node.
Definition at line 548 of file NBEdge.h.
References myEndOffset.
Referenced by NIImporter_SUMO::_loadNetwork(), buildInnerEdges(), GNEEdge::getAttribute(), getEndOffset(), and NWWriter_XML::writeEdgesAndConnections().
double NBEdge::getEndOffset | ( | int | lane | ) | const |
Returns the offset to the destination node a the specified lane.
Definition at line 2840 of file NBEdge.cpp.
References getEndOffset(), myLanes, and UNSPECIFIED_OFFSET.
double NBEdge::getFinalLength | ( | ) | const |
get length that will be assigned to the lanes in the final network
Definition at line 3128 of file NBEdge.cpp.
References cutAtIntersection(), getFromNode(), getLoadedLength(), OptionsCont::getOptions(), getToNode(), hasLoadedLength(), PositionVector::length(), myGeom, POSITION_EPS, PositionVector::push_back_noDoublePos(), and PositionVector::push_front_noDoublePos().
Referenced by GNEEdge::getAttribute(), getLoadedLength(), and NWWriter_SUMO::writeEdge().
NBEdge::Lane NBEdge::getFirstNonPedestrianLane | ( | int | direction | ) | const |
get first non-pedestrian lane
Definition at line 3001 of file NBEdge.cpp.
References getFirstNonPedestrianLaneIndex(), Named::getID(), and myLanes.
Referenced by getLanes().
int NBEdge::getFirstNonPedestrianLaneIndex | ( | int | direction, |
bool | exclusive = false |
||
) | const |
return the first lane with permissions other than SVC_PEDESTRIAN and 0
[in] | direction | The direction in which the lanes shall be checked |
[in] | exclusive | Whether lanes that allow pedestrians along with other classes shall be counted as non-pedestrian |
Definition at line 2955 of file NBEdge.cpp.
References NBNode::BACKWARD, NBNode::FORWARD, myLanes, SVC_PEDESTRIAN, and SVCAll.
Referenced by NBTrafficLightDefinition::collectEdges(), NBNode::computeLanes2Lanes(), expandableBy(), getFirstNonPedestrianLane(), and getLanes().
|
inline |
Returns the origin node of the edge.
Definition at line 427 of file NBEdge.h.
References myFrom.
Referenced by NBLoadedSUMOTLDef::addConnection(), NIXMLConnectionsHandler::addCrossing(), NIVissimDisturbance::addToNode(), NBLoadedTLDef::addToSignalGroup(), NBRampsComputer::buildOffRamp(), NBNode::buildWalkingAreas(), NBNode::checkCrossing(), NBEdgeCont::checkOverlap(), NBRampsComputer::computeRamps(), NBTurningDirectionsComputer::computeTurnDirectionsForNode(), NIVissimDistrictConnection::dict_BuildDistricts(), NBRampsComputer::fulfillsRampConstraints(), NBNodeCont::generateNodeClusters(), NBNodesEdgesSorter::edge_by_junction_angle_sorter::getConvAngle(), getCrossingAngle(), NBContHelper::edge_opposite_direction_sorter::getEdgeAngleAt(), getFinalLength(), NWWriter_DlrNavteq::getGraphLength(), NIImporter_VISUM::getNamedEdgeContinuating(), NIImporter_OpenStreetMap::getNeighboringNodes(), NBNode::guessCrossings(), NBEdgeCont::guessOpposites(), NBEdgeCont::guessRoundabouts(), NBNodeCont::guessTLs(), NBOwnTLDef::hasCrossing(), NBEdgeCont::insert(), GNENet::insertEdge(), NBNode::isNearDistrict(), NBNodeCont::joinJunctions(), NBNodeCont::joinNodeClusters(), NBRequest::laneConflict(), NIImporter_ArcView::load(), NIXMLEdgesHandler::myEndElement(), NBContHelper::relative_outgoing_edge_sorter::operator()(), NBContHelper::edge_by_angle_to_nodeShapeCentroid_sorter::operator()(), NBNode::edge_by_direction_sorter::operator()(), NIImporter_VISUM::parse_Lanes(), NBEdgeCont::recheckLanes(), NBEdgeCont::recheckPostProcessConnections(), NIImporter_OpenStreetMap::reconstructLayerElevation(), NBNodeCont::removeIsolatedRoads(), NBEdgeCont::removeUnwishedEdges(), GNEEdge::setAttribute(), NIXMLEdgesHandler::setNodes(), NWWriter_SUMO::writeEdge(), NWWriter_XML::writeEdgesAndConnections(), NWWriter_DlrNavteq::writeLinksUnsplitted(), and NWWriter_OpenDrive::writeNetwork().
|
inline |
Returns the geometry of the edge.
Definition at line 595 of file NBEdge.h.
References addGeometryPoint(), computeEdgeShape(), extendGeometryAtNode(), getInnerGeometry(), getLaneShape(), hasDefaultGeometry(), hasDefaultGeometryEndpointAtNode(), hasDefaultGeometryEndpoints(), myGeom, setGeometry(), setLaneSpreadFunction(), shiftPositionAtNode(), and shortenGeometryAtNode().
Referenced by NIXMLEdgesHandler::addEdge(), GNENet::addReversedEdge(), NIXMLEdgesHandler::addSplit(), NBNodeShapeComputer::badIntersection(), NBRampsComputer::buildOffRamp(), NBRampsComputer::buildOnRamp(), NBEdgeCont::checkOverlap(), NBTurningDirectionsComputer::computeTurnDirectionsForNode(), GNEEdge::drawGL(), GNEEdge::getAttribute(), NBContHelper::edge_opposite_direction_sorter::getEdgeAngleAt(), NWWriter_DlrNavteq::getGraphLength(), NIImporter_OpenStreetMap::getNeighboringNodes(), GNEEdge::getSplitPos(), NBEdgeCont::ignoreFilterMatch(), isNearEnough2BeJoined2(), GNEEdge::moveGeometry(), NBRampsComputer::moveRampRight(), NIXMLEdgesHandler::myEndElement(), NBContHelper::relative_outgoing_edge_sorter::operator()(), NBContHelper::straightness_sorter::operator()(), NBContHelper::relative_incoming_edge_sorter::operator()(), NIImporter_VISUM::parse_Lanes(), NIImporter_OpenStreetMap::reconstructLayerElevation(), GNEEdge::setAttribute(), GNEEdge::setEndpoint(), shiftPositionAtNode(), NBEdgeCont::splitAt(), GNENet::splitEdge(), GNEEdge::updateJunctionPosition(), NWWriter_SUMO::writeEdge(), NWWriter_XML::writeEdgesAndConnections(), NWWriter_DlrNavteq::writeLinksUnsplitted(), and NWWriter_DlrNavteq::writeNodesUnsplitted().
|
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(), MSNet::addParkingArea(), NIImporter_SUMO::addPhase(), GUIEdge::addRerouter(), addRestrictedLane(), RONet::addRouteDef(), NBDistrict::addSink(), NBDistrict::addSource(), NIXMLEdgesHandler::addSplit(), NBTrafficLightLogic::addStep(), MSRouteHandler::addStop(), ROVehicle::addStop(), MSVehicle::addStop(), addStraightConnections(), NIXMLTrafficLightsHandler::addTlConnection(), NIVissimDisturbance::addToNode(), MSVehicle::addTraciStop(), MSVehicle::addTraciStopAtStoppingPlace(), AGActivityTripWriter::addTrip(), GUITrafficLightLogicWrapper::begin2TrackPhases(), MSTransportable::Stage_Waiting::beginEventOutput(), MSTransportable::Stage_Driving::beginEventOutput(), NLEdgeControlBuilder::build(), NIVisumTL::build(), RODFNet::buildApproachList(), MSSOTLE2Sensors::buildContinueSensior(), MSSOTLE2Sensors::buildCountSensorForLane(), MSSOTLE2Sensors::buildCountSensorForOutLane(), NBNode::buildCrossings(), NBNode::buildCrossingsAndWalkingAreas(), NIImporter_VISUM::buildDistrictNode(), NLDetectorBuilder::buildE2Detector(), NIVissimConnection::buildEdgeConnections(), RODFNet::buildEdgeFlowMap(), GNETLSEditorFrame::buildIinternalLanes(), 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(), checkGeometry(), NBEdgeCont::checkGrade(), MSVehicleTransfer::checkInsertions(), NBEdgeCont::checkOverlap(), MSDevice_Battery::checkParam(), MSE2Collector::checkPositioning(), 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(), computeAngle(), computeLaneShapes(), NBNode::computeLogic(), NBOwnTLDef::computeLogicAndConts(), NBNode::computeNodeShape(), NBNodeShapeComputer::computeNodeShapeDefault(), NBNodeShapeComputer::computeNodeShapeSmall(), RODFNet::computeRoutesFor(), NBTrafficLightLogicCont::computeSingleLogic(), NBNode::computeSmoothShape(), NBTurningDirectionsComputer::computeTurnDirectionsForNode(), NGNet::connect(), MSSOTLWaveTrafficLightLogic::countVehicles(), MSSOTLE2Sensors::countVehicles(), MSDevice_SSM::createEncounters(), GUINet::createTLWrapper(), MSDeterministicHiLevelTrafficLightLogic::decideNextPhase(), MSSOTLPolicyBasedTrafficLightLogic::decideNextPhase(), MSSwarmTrafficLightLogic::decideNextPhase(), MSDeterministicHiLevelTrafficLightLogic::decidePolicy(), MSSwarmTrafficLightLogic::decidePolicy(), MSLane::detectCollisionBetween(), MSLane::detectCollisions(), NIVissimDistrictConnection::dict_BuildDistricts(), divideOnEdges(), 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(), MSTrafficLightLogic::SwitchCommand::execute(), MSVehicle::executeMove(), MSLane::executeMovements(), NBNodeCont::extract(), NBTrafficLightLogicCont::extract(), NBEdgeCont::extract(), TraCIServerAPI_Vehicle::findCloserLane(), MSDevice_SSM::findFoeConflictLane(), MSDevice_SSM::findSurroundingVehicles(), MSDevice_SSM::flushConflicts(), NBRampsComputer::fulfillsRampConstraints(), RODFDetectorCon::getAggFlowFor(), RODFDetectorCon::getAnyDetectorForEdge(), GNEConnection::getAttribute(), MSVehicle::getBackPosition(), TraCI_Vehicle::getBestLanes(), MSNet::getBusStopID(), MSVehicle::getCenterOnEdge(), MSDevice_Battery::getChargingStationID(), MSNet::getChargingStationID(), getConnection(), getConnectionRef(), MSNet::getContainerStopID(), getCrossingAngle(), RODFNet::getDetectorEdge(), TraCI_Lane::getEdgeID(), MSMeanData::getEdgeID(), getFirstNonPedestrianLane(), MSLane::getFollower(), MSLane::getFollowersOnConsecutive(), TraCI_InductionLoop::getLaneID(), TraCI_LaneArea::getLaneID(), TraCI_Vehicle::getLaneID(), MSLane::getLastVehicleInformation(), MSVehicle::getLatOffset(), MSLane::getLeader(), MSLink::getLeaderInfo(), MSLane::getLeaderOnConsecutive(), MSLane::getLeadersOnConsecutive(), MSLink::getLengthBeforeCrossing(), TraCI_Lane::getLinks(), MSLane::getLinkTo(), MSTLLogicControl::TLSLogicVariants::getLogicInstantiatingOff(), MSDeterministicHiLevelTrafficLightLogic::getMeanSpeedForInputLanes(), MSDeterministicHiLevelTrafficLightLogic::getMeanSpeedForOutputLanes(), NIImporter_VISUM::getNamedEdgeContinuating(), MSPerson::getNextEdge(), MSPModel_Striping::getNextLane(), MSLane::getOppositeFollower(), MSLane::getOppositeLeader(), MSLane::getOppositePos(), GUIInstantInductLoop::MyWrapper::getParameterWindow(), GUIMEInductLoop::MyWrapper::getParameterWindow(), GUIVehicle::getParameterWindow(), GUIE2Collector::MyWrapper::getParameterWindow(), GUIInductLoop::MyWrapper::getParameterWindow(), MSNet::getParkingAreaID(), MSLane::getPartialBehind(), MSSOTLTrafficLightLogic::getPhaseIndexWithMaxCTS(), MSSwarmTrafficLightLogic::getPheromoneForInputLanes(), MSSwarmTrafficLightLogic::getPheromoneForOutputLanes(), GUITrafficLightLogicWrapper::getPopUpMenu(), NLTriggerBuilder::getPosition(), NLDetectorBuilder::getPositionChecking(), NBNode::getPossiblySplittedIncoming(), NBNode::getPossiblySplittedOutgoing(), NIImporter_VISUM::getReversedContinuating(), TraCI_Vehicle::getRoadID(), TraCI_Vehicle::getRouteID(), MSDevice_SSM::getUpstreamVehicles(), MSDevice_SSM::getVehiclesOnJunction(), MSVehicleControl::getWaitingVehicle(), MSLink::getZipperSpeed(), NBNode::guessCrossings(), RODFDetectorCon::guessEmptyFlows(), NBEdgeCont::guessSidewalks(), NBNodeCont::guessTLs(), GUITLLogicPhasesTrackerWindow::GUITLLogicPhasesTrackerWindow(), MSLane::handleCollisionBetween(), NBEdgeCont::ignoreFilterMatch(), MSDeterministicHiLevelTrafficLightLogic::init(), MSRailSignal::init(), MSDelayBasedTrafficLightLogic::init(), MSActuatedTrafficLightLogic::init(), MSTrafficLightLogic::init(), MSSOTLTrafficLightLogic::init(), MSSwarmTrafficLightLogic::init(), MSE2Collector::initAuxiliaries(), NIImporter_SUMO::initTrafficLightLogic(), NIXMLTrafficLightsHandler::initTrafficLightLogic(), NBDistrictCont::insert(), NBNodeCont::insert(), NBTrafficLightLogicCont::insert(), NBEdgeCont::insert(), MSEdge::insertVehicle(), MSLane::integrateNewVehicle(), 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(), MSE2Collector::makeVehicleInfo(), 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(), MSE2Collector::MSE2Collector(), 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(), MSTriggeredRerouter::notifyEnter(), MSDevice_SSM::notifyEnter(), MSE2Collector::notifyEnter(), MSDevice_Transportable::notifyLeave(), MSE3Collector::MSE3EntryReminder::notifyLeave(), MSDevice_Example::notifyLeave(), MSDevice_Tripinfo::notifyLeave(), MSDevice_BTreceiver::notifyLeave(), MSDevice_BTsender::notifyLeave(), MSE3Collector::MSE3LeaveReminder::notifyLeave(), MSDevice_SSM::notifyLeave(), MSE2Collector::notifyLeave(), MSDevice_Example::notifyMove(), MSDevice_BTreceiver::notifyMove(), MSDevice_BTsender::notifyMove(), MSMeanData::MeanDataValues::notifyMove(), MSDevice_SSM::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()(), MSLane::incoming_lane_priority_sorter::operator()(), MSLane::outgoing_lane_priority_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_LC2013::patchSpeed(), MSLCM_SL2015::patchSpeed(), NBLoadedTLDef::SignalGroup::patchTYellow(), MSVehicle::planMove(), MSLane::planMovements(), MSInternalJunction::postloadInit(), MSRightOfWayJunction::postloadInit(), prepareEdgePriorities(), MSAbstractLaneChangeModel::primaryLaneChanged(), AGStreet::print(), MSDevice_SSM::processEncounters(), TraCIServerAPI_TLS::processGet(), TraCIServerAPI_Person::processGet(), MSVehicle::processNextStop(), TraCIServerAPI_Vehicle::processSet(), NIXMLNodesHandler::processTrafficLightDefinitions(), NWWriter_SUMO::prohibitionConnection(), MSDelayBasedTrafficLightLogic::proposeProlongation(), MSPModel_Striping::PState::PState(), NBEdgeCont::recheckLanes(), recheckLanes(), NBEdgeCont::recheckPostProcessConnections(), NIImporter_OpenStreetMap::reconstructLayerElevation(), NBNodeCont::remapIDs(), NBEdgeCont::remapIDs(), 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(), MSVehicle::replaceParkingArea(), MSBaseVehicle::replaceRouteEdges(), NBConnection::replaceTo(), NIImporter_DlrNavteq::TrafficlightsHandler::report(), NIImporter_DlrNavteq::ConnectedLanesHandler::report(), MSBaseVehicle::reroute(), MSTriggeredRerouter::rerouteParkingZone(), MSLane::resetPartialOccupation(), restoreRestrictedLane(), GNEEdge::retrieveConnection(), NIXMLTrafficLightsHandler::retrieveLaneIndex(), RODFNet::revalidateFlows(), RONet::saveAndRemoveRoutesUntil(), MSDevice_Vehroutes::saveState(), MSDevice::saveState(), MSDevice_Tripinfo::saveState(), MSBaseVehicle::saveState(), MSLane::saveState(), GUIVehicle::selectBlockingFoes(), MSE2Collector::selectLanes(), NBNodeCont::setAsTLControlled(), GNEEdge::setAttribute(), MSChargingStation::setChargeDelay(), MSChargingStation::setChargingPower(), setControllingTLInformation(), MSChargingStation::setEfficency(), GNEJunction::setLogicValid(), MSDevice_Battery::setMaximumBatteryCapacity(), setNodeBorder(), NIXMLEdgesHandler::setNodes(), MSLane::setPartialOccupation(), MSDevice_Battery::setPowerMax(), MSLink::setRequestInformation(), MSTLLogicControl::TLSLogicVariants::setStateInstantiatingOnline(), MSDevice_Battery::setStoppingTreshold(), NBLoadedSUMOTLDef::setTLControllingInformation(), NBOwnTLDef::setTLControllingInformation(), NBTrafficLightLogicCont::setTLControllingInformation(), NBLoadedTLDef::setTLControllingInformation(), shiftPositionAtNode(), NBEdgeCont::splitAt(), MSStopOut::stopEnded(), MSLane::succLinkSec(), GUITrafficLightLogicWrapper::switchTLSLogic(), MELoop::teleportVehicle(), toString(), METriggeredCalibrator::tryEmit(), MSSOTLTrafficLightLogic::trySwitch(), MSDevice_SSM::update(), MSVehicle::updateBestLanes(), MSSOTLTrafficLightLogic::updateCTS(), GNETLSEditorFrame::updateDescription(), MSDevice_SSM::updateEncounter(), MSSwarmTrafficLightLogic::updatePheromoneLevels(), MSSwarmTrafficLightLogic::updateSensitivities(), MSDevice_BTreceiver::BTreceiverUpdate::updateVisibility(), TraCIServerAPI_Vehicle::vtdMap(), MSPModel_Striping::PState::walk(), MSLCM_LC2013::wantsChange(), MSLCM_SL2015::wantsChange(), MSLCM_SL2015::wantsChangeSublane(), MSBatteryExport::write(), MSEmissionExport::write(), MSFCDExport::write(), MSInstantInductLoop::write(), MSLink::writeApproaching(), NBSign::writeAsPOI(), NWWriter_DlrNavteq::writeConnectedLanes(), 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_DlrNavteq::writeProhibitedManoeuvres(), NWWriter_SUMO::writeRoundabout(), RODFDetectorCon::writeSpeedTrigger(), NWWriter_DlrNavteq::writeTrafficSignals(), MSFCDExport::writeTransportable(), RODFDetectorCon::writeValidationDetectors(), MSFullExport::writeVehicles(), PointOfInterest::writeXML(), SUMO::Polygon::writeXML(), MSRouteProbe::writeXMLOutput(), MSInductLoop::writeXMLOutput(), MSE2Collector::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(), NBEdge::Connection::getDescription(), MSLane::getFollowersOnConsecutive(), MSVehicle::getLatOffset(), GUIVehicle::getParameterWindow(), MSPModel_Striping::PState::moveToNextLane(), operator<<(), TraCIServerAPI_Vehicle::processSet(), MSLCM_SL2015::saveBlockerLength(), MSLCM_LC2013::saveBlockerLength(), MSLCM_LC2013::slowDownForBlocked(), MSLCM_SL2015::slowDownForBlocked(), MSLaneChangerSublane::startChangeSublane(), MSLeaderInfo::toString(), MSLeaderDistanceInfo::toString(), toString(), MSCriticalFollowerDistanceInfo::toString(), MSVehicle::updateBestLanes(), MSAbstractLaneChangeModel::updateShadowLane(), and TraCIServerAPI_Vehicle::vtdMap().
EdgeVector NBEdge::getIncomingEdges | ( | ) | const |
Returns the list of incoming edges unsorted.
Definition at line 1119 of file NBEdge.cpp.
References NBNode::getIncomingEdges(), and myFrom.
Referenced by NIXMLEdgesHandler::deleteEdge(), getConnections(), NBNode::removeSelfLoops(), and NWWriter_OpenDrive::writeNetwork().
const PositionVector NBEdge::getInnerGeometry | ( | ) | const |
Returns the geometry of the edge without the endpoints.
Definition at line 482 of file NBEdge.cpp.
References PositionVector::getSubpartByIndex(), and myGeom.
Referenced by GNENet::addReversedEdge(), GNEEdge::deleteGeometry(), GNEEdge::getAttribute(), getGeometry(), GNEEdge::moveGeometry(), GNENet::replaceJunctionByGeometry(), and GNENet::reverseEdge().
int NBEdge::getJunctionPriority | ( | const NBNode *const | node | ) | const |
Returns the junction priority (normalised for the node currently build)
If the given node is neither the edge's start nor the edge's ending node, the behaviour is undefined.
[in] | node | The node for which the edge's priority shall be returned |
Definition at line 1556 of file NBEdge.cpp.
References myFrom, myFromJunctionPriority, and myToJunctionPriority.
Referenced by buildInnerEdges(), NBEdgeCont::generateStreetSigns(), NWWriter_DlrNavteq::getFormOfWay(), NBOwnTLDef::getToPrio(), isInnerEdge(), NBEdge::MainDirections::MainDirections(), NBNode::needsCont(), NBOwnTLDef::edge_by_incoming_priority_sorter::operator()(), and NBRequest::setBlocking().
std::string NBEdge::getLaneID | ( | int | lane | ) | const |
get Lane ID (Secure)
Definition at line 2679 of file NBEdge.cpp.
References Named::myID, and toString().
Referenced by NIImporter_SUMO::_loadNetwork(), NWWriter_OpenDrive::checkLaneGeometries(), computeLaneShape(), NWWriter_SUMO::getOppositeInternalID(), getTypeID(), NBEdgeCont::guessOpposites(), GNETLSEditorFrame::handleMultiChange(), NIXMLConnectionsHandler::parseLaneBound(), NBPTStopCont::process(), NBEdgeCont::recheckLanes(), NIImporter_DlrNavteq::ConnectedLanesHandler::report(), GNELane::setIndex(), NWWriter_SUMO::writeEdge(), and NWWriter_OpenDrive::writeNetwork().
std::string NBEdge::getLaneIDInsecure | ( | int | lane | ) | const |
get Lane ID (Insecure)
Definition at line 2685 of file NBEdge.cpp.
References Named::myID, and toString().
Referenced by getTypeID(), and setConnection().
|
inline |
Returns the lane definitions.
Definition at line 570 of file NBEdge.h.
References getCrossingAngle(), getFirstNonPedestrianLane(), getFirstNonPedestrianLaneIndex(), getPermissionVariants(), and myLanes.
Referenced by NIImporter_SUMO::_loadNetwork(), NBNode::buildWalkingAreas(), NBNode::checkCrossing(), NWWriter_SUMO::getOppositeInternalID(), NBNode::guessCrossings(), NBEdgeCont::joinSameNodeConnectingEdges(), NBEdgeCont::recheckLanes(), GNEEdge::remakeGNEConnections(), GNEConnection::updateGeometry(), NBSign::writeAsPOI(), NWWriter_SUMO::writeEdge(), NWWriter_XML::writeEdgesAndConnections(), and NWWriter_OpenDrive::writeNetwork().
const PositionVector & NBEdge::getLaneShape | ( | int | i | ) | const |
Returns the shape of the nth lane.
Definition at line 757 of file NBEdge.cpp.
References myLanes.
Referenced by buildInnerEdges(), NBRampsComputer::buildOffRamp(), NBRampsComputer::buildOnRamp(), NBNode::buildWalkingAreas(), NBEdgeCont::checkGrade(), NWWriter_OpenDrive::checkLaneGeometries(), NBNode::computeInternalLaneShape(), getGeometry(), NWWriter_OpenDrive::getLeftLaneBorder(), GNELane::getShape(), NBContHelper::straightness_sorter::operator()(), NBPTStopCont::process(), and NBContHelper::straightness_sorter::straightness_sorter().
double NBEdge::getLaneSpeed | ( | int | lane | ) | const |
get lane speed
Definition at line 1612 of file NBEdge.cpp.
References myLanes.
Referenced by GNELane::getAttribute(), GNELane::getColorValue(), GNELane::getSpeed(), getTypeID(), and NBEdge().
|
inline |
Returns how this edge's lanes' lateral offset is computed.
Definition at line 677 of file NBEdge.h.
References addEdge2EdgeConnection(), addLane2LaneConnection(), addLane2LaneConnections(), checkGeometry(), getConnection(), getConnectionRef(), getConnectionsFromLane(), hasConnectionTo(), insertConnection(), isConnectedTo(), myLaneSpreadFunction, reduceGeometry(), setConnection(), and splitGeometry().
Referenced by NIXMLEdgesHandler::addEdge(), GNENet::addReversedEdge(), NBNodeShapeComputer::badIntersection(), GNEEdge::getAttribute(), NBRampsComputer::moveRampRight(), NIXMLEdgesHandler::myEndElement(), NWWriter_SUMO::writeEdge(), NWWriter_XML::writeEdgesAndConnections(), and NWWriter_DlrNavteq::writeNodesUnsplitted().
|
inline |
Definition at line 1154 of file NBEdge.h.
References myLanes.
Referenced by NIImporter_SUMO::_loadNetwork(), NBNode::computeInternalLaneShape(), NBNode::computeLanes2Lanes(), GNENet::deleteLane(), GNELane::drawGL(), GNENet::duplicateLane(), GNELane::getAttribute(), GNELane::getBoundary(), NBEdgeCont::guessOpposites(), NBNodeCont::joinNodeClusters(), NIImporter_OpenDrive::loadNetwork(), NIXMLEdgesHandler::myStartElement(), NBEdgeCont::recheckLanes(), NIImporter_DlrNavteq::ConnectedLanesHandler::report(), and GNEEdge::setNumLanes().
|
inline |
|
inline |
Returns the default width of lanes of this edge.
Definition at line 523 of file NBEdge.h.
References getTotalWidth(), and myLaneWidth.
Referenced by NIImporter_SUMO::_loadNetwork(), NBNode::checkCrossing(), computeLaneShapes(), GNELane::drawDirectionIndicators(), GNELane::drawGL(), GNELane::drawLinkNo(), GNELane::drawMarkings(), GNELane::drawTLSLinkNo(), GNEEdge::getAttribute(), getCCWBoundaryLine(), getCWBoundaryLine(), getLaneWidth(), NWWriter_OpenDrive::getLeftLaneBorder(), getTotalWidth(), NBRampsComputer::moveRampRight(), setNodeBorder(), NWWriter_XML::writeEdgesAndConnections(), and NWWriter_OpenDrive::writeNetwork().
double NBEdge::getLaneWidth | ( | int | lane | ) | const |
Returns the width of the lane of this edge.
Definition at line 2823 of file NBEdge.cpp.
References getLaneWidth(), myLanes, SUMO_const_laneWidth, and UNSPECIFIED_WIDTH.
|
inline |
Returns the computed length of the edge.
Definition at line 481 of file NBEdge.h.
References myLength.
Referenced by append(), NBEdgeCont::generateStreetSigns(), GNELane::getColorValue(), GNELane::getParameterWindow(), NBNodeCont::guessTLs(), NBContHelper::relative_outgoing_edge_sorter::operator()(), NBContHelper::relative_incoming_edge_sorter::operator()(), NIImporter_VISUM::parse_Lanes(), NBPTStopCont::process(), and NBEdgeCont::retrievePossiblySplit().
|
inline |
Returns the length was set explicitly or the computed length if it wasn't set.
Definition at line 490 of file NBEdge.h.
References getFinalLength(), myLength, and myLoadedLength.
Referenced by NIXMLEdgesHandler::addEdge(), NBNodeCont::generateNodeClusters(), GNELane::getColorValue(), getFinalLength(), GNELane::getLaneParametricLength(), NBNode::isLongEnough(), NBNodeCont::joinJunctions(), NBNodeCont::joinSimilarEdges(), NBEdgeCont::recheckLanes(), NWWriter_SUMO::writeEdge(), and NWWriter_XML::writeEdgesAndConnections().
|
inlineinherited |
Returns the inner key/value map.
Definition at line 119 of file Parameterised.h.
References Parameterised::myMap, and Parameterised::writeParams().
Referenced by NBTrafficLightDefinition::compute(), GUIPerson::getTypeParameterWindow(), GUIMEVehicle::getTypeParameterWindow(), GUIVehicle::getTypeParameterWindow(), TraCIServerAPI_TLS::processGet(), ROPerson::saveAsXML(), and PointOfInterest::writeXML().
double NBEdge::getMaxLaneOffset | ( | ) |
get max lane offset
Definition at line 2414 of file NBEdge.cpp.
References myLanes, and SUMO_const_laneWidthAndOffset.
Referenced by getTypeID().
|
inline |
Returns the number of lanes.
Definition at line 413 of file NBEdge.h.
References myLanes.
Referenced by NBLoadedTLDef::SignalGroup::addConnection(), NIXMLEdgesHandler::addEdge(), NIXMLEdgesHandler::addLane(), GNEEdge::addLane(), NIXMLEdgesHandler::addSplit(), addStraightConnections(), NIVissimTL::NIVissimTLSignal::addTo(), appendTurnaround(), NBNode::ApproachingDivider::ApproachingDivider(), NIVissimConnection::buildEdgeConnections(), NBRampsComputer::buildOffRamp(), NBRampsComputer::buildOnRamp(), NBNode::checkCrossing(), NBEdgeCont::checkGrade(), NWWriter_OpenDrive::checkLaneGeometries(), NBTrafficLightDefinition::collectAllLinks(), NBLoadedTLDef::collectLinks(), computeAngle(), NBNode::computeInternalLaneShape(), NBNode::computeLanes2Lanes(), NBOwnTLDef::computeLogicAndConts(), NBOwnTLDef::computeUnblockedWeightedStreamNumber(), GNENet::deleteLane(), divideSelectedLanesOnEdges(), NBRampsComputer::fulfillsRampConstraints(), GNEEdge::getAttribute(), getCCWBoundaryLine(), GNELane::getColorValue(), getCWBoundaryLine(), NWWriter_OpenDrive::getLeftLaneBorder(), getPermissionVariants(), NWWriter_DlrNavteq::getRoadClass(), GNEEdge::GNEEdge(), NBEdgeCont::guessOpposites(), NBRampsComputer::hasWrongMode(), NBNode::isSimpleContinuation(), NBNodeCont::joinNodeClusters(), moveOutgoingConnectionsFrom(), NIXMLEdgesHandler::myEndElement(), NIXMLEdgesHandler::myStartElement(), NBEdge(), NBContHelper::edge_by_priority_sorter::operator()(), NIImporter_VISUM::parse_Lanes(), NIImporter_VISUM::parse_LanesConnections(), NIVissimExtendedEdgePoint::recheckLanes(), NBEdgeCont::recheckLanes(), recheckLanes(), NIImporter_DlrNavteq::ConnectedLanesHandler::report(), NIXMLTrafficLightsHandler::retrieveLaneIndex(), NBEdgePriorityComputer::samePriority(), setConnection(), shiftPositionAtNode(), NBEdgeCont::splitAt(), GNEConnection::updateGeometry(), NBRequest::writeCrossingResponse(), NWWriter_XML::writeEdgesAndConnections(), NWWriter_DlrNavteq::writeLinksUnsplitted(), and NWWriter_OpenDrive::writeNetwork().
|
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 79 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by MSTLLogicControl::WAUTSwitchProcedure_Stretch::adaptLogic(), MSDevice_Battery::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), MSDevice::equippedByDefaultAssignmentOptions(), MSSOTLTrafficLightLogic::getDecayConstant(), MSDevice_SSM::getDetectionRange(), MSTLLogicControl::WAUTSwitchProcedure::getGSPValue(), MSSOTLTrafficLightLogic::getInputSensorsLength(), MSDevice_SSM::getLoggingFrequency(), MSDevice_SSM::getMeasuresAndThresholds(), MSSOTLRequestPolicy::getMinDecisionalPhaseDuration(), MSSOTLRequestTrafficLightLogic::getMinDecisionalPhaseDuration(), MSSOTLTrafficLightLogic::getMode(), MSDevice_SSM::getOutputFilename(), MSSOTLTrafficLightLogic::getOutputSensorsLength(), TraCI_Polygon::getParameter(), TraCI_VehicleType::getParameter(), TraCI_Route::getParameter(), TraCI_POI::getParameter(), TraCI_Lane::getParameter(), TraCI_Vehicle::getParameter(), MSSOTLTrafficLightLogic::getSpeedThreshold(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::getStretchAreaNo(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::getStretchBereichDef(), MSSOTLTrafficLightLogic::getThreshold(), MSTriggeredRerouter::getWeight(), PushButtonLogic::init(), MSSOTLPhasePolicy::init(), SigmoidLogic::init(), MSSOTLTrafficLightLogic::init(), MSSwarmTrafficLightLogic::init(), NIImporter_OpenStreetMap::insertEdge(), MSSOTLTrafficLightLogic::isDecayThresholdActivated(), MSSOTLTrafficLightLogic::isPushButtonPressed(), MSActuatedTrafficLightLogic::MSActuatedTrafficLightLogic(), MSDelayBasedTrafficLightLogic::MSDelayBasedTrafficLightLogic(), MSSOTLPolicy::MSSOTLPolicy(), MSSOTLPolicy5DFamilyStimulus::MSSOTLPolicy5DFamilyStimulus(), MSSwarmTrafficLightLogic::MSSwarmTrafficLightLogic(), TraCIServerAPI_Edge::processGet(), TraCIServerAPI_TLS::processGet(), TraCIServerAPI_Person::processGet(), MSSOTLPolicyDesirability::readParameter(), MSDevice_SSM::requestsTrajectories(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::stretchLogic(), TraCIServerAPI_Vehicle::vtdMap(), and NWWriter_DlrNavteq::writeLinksUnsplitted().
SVCPermissions NBEdge::getPermissions | ( | int | lane = -1 | ) | const |
get the union of allowed classes over all lanes or for a specific lane
Definition at line 2913 of file NBEdge.cpp.
References myLanes.
Referenced by GNENet::addReversedEdge(), addStraightConnections(), appendTurnaround(), NBNode::ApproachingDivider::ApproachingDivider(), canMoveConnection(), NBTrafficLightDefinition::collectAllLinks(), NBNode::computeLanes2Lanes(), divideOnEdges(), divideSelectedLanesOnEdges(), GNELane::drawAsRailway(), GNELane::drawAsWaterway(), GNELane::drawMarkings(), NBNodeCont::generateNodeClusters(), GNEEdge::getAttribute(), GNELane::getAttribute(), GNELane::getColorValue(), NWWriter_DlrNavteq::getFormOfWay(), NBNode::getLinkState(), getPermissionVariants(), getTypeID(), NBEdgeCont::guessSidewalks(), NBRampsComputer::hasWrongMode(), NBEdgeCont::ignoreFilterMatch(), NIImporter_OpenStreetMap::insertEdge(), GNELane::isRestricted(), NBNodeCont::joinJunctions(), NBNodeCont::joinSimilarEdges(), NBRequest::mergeConflict(), NBEdge(), NBContHelper::edge_by_angle_to_nodeShapeCentroid_sorter::operator()(), recheckLanes(), NIImporter_DlrNavteq::EdgesHandler::report(), GNENet::restrictLane(), shiftPositionAtNode(), NWWriter_DlrNavteq::writeConnectedLanes(), NWWriter_XML::writeEdgesAndConnections(), NWWriter_DlrNavteq::writeLinksUnsplitted(), NWWriter_OpenDrive::writeNetwork(), and NWWriter_DlrNavteq::writeProhibitedManoeuvres().
std::set< SVCPermissions > NBEdge::getPermissionVariants | ( | int | iStart, |
int | iEnd | ||
) | const |
return all permission variants within the specified lane range [iStart, iEnd[
Definition at line 2972 of file NBEdge.cpp.
References getNumLanes(), getPermissions(), and toString().
Referenced by NBNode::computeLanes2Lanes(), and getLanes().
|
inline |
Returns the priority of the edge.
Definition at line 420 of file NBEdge.h.
References myPriority.
Referenced by NIXMLEdgesHandler::addEdge(), expandableBy(), GNEEdge::getAttribute(), GNELane::getColorValue(), NBContHelper::edge_by_priority_sorter::operator()(), NBEdgePriorityComputer::samePriority(), NWWriter_SUMO::writeEdge(), and NWWriter_XML::writeEdgesAndConnections().
double NBEdge::getShapeEndAngle | ( | ) | const |
Returns the angle at the end of the edge.
Definition at line 1723 of file NBEdge.cpp.
References ANGLE_LOOKAHEAD, GeomHelper::legacyDegree(), PositionVector::length(), PositionVector::length2D(), MIN2(), myGeom, and PositionVector::positionAtOffset2D().
Referenced by getEndAngle(), NBContHelper::straightness_sorter::operator()(), and NBContHelper::straightness_sorter::straightness_sorter().
double NBEdge::getShapeStartAngle | ( | ) | const |
Returns the angle at the start of the edge.
Definition at line 1715 of file NBEdge.cpp.
References ANGLE_LOOKAHEAD, GeomHelper::legacyDegree(), PositionVector::length2D(), MIN2(), myGeom, and PositionVector::positionAtOffset2D().
Referenced by getEndAngle(), NBContHelper::straightness_sorter::operator()(), and NBContHelper::straightness_sorter::straightness_sorter().
|
inline |
Returns the offset of a traffic signal from the end of this edge.
Definition at line 558 of file NBEdge.h.
References mySignalOffset.
Referenced by append(), and NBNodeCont::guessTLs().
|
inline |
get Signs
Definition at line 1181 of file NBEdge.h.
References mySigns.
Referenced by NWWriter_XML::writeStreetSigns().
|
inline |
Returns the speed allowed on this edge.
Definition at line 507 of file NBEdge.h.
References mySpeed.
Referenced by NIXMLEdgesHandler::addSplit(), buildInnerEdges(), NBNode::checkCrossing(), divideSelectedLanesOnEdges(), NBRampsComputer::fulfillsRampConstraints(), GNEEdge::getAttribute(), NIImporter_OpenStreetMap::getNeighboringNodes(), NWWriter_DlrNavteq::getRoadClass(), NBEdgeCont::guessSidewalks(), hasLaneSpecificSpeed(), NBEdgeCont::ignoreFilterMatch(), NBNodeCont::joinSimilarEdges(), NBContHelper::edge_by_priority_sorter::operator()(), GNEEdge::remakeGNEConnections(), NBEdgePriorityComputer::samePriority(), NWWriter_XML::writeEdgesAndConnections(), NWWriter_DlrNavteq::writeLinksUnsplitted(), and NWWriter_OpenDrive::writeNetwork().
|
inline |
Returns the angle at the start of the edge (relative to the node shape center) The angle is computed in computeAngle()
Definition at line 443 of file NBEdge.h.
References myStartAngle.
Referenced by NBContHelper::relative_outgoing_edge_sorter::operator()(), and NBNode::rightTurnConflict().
|
inline |
The building step of this edge.
Definition at line 516 of file NBEdge.h.
References myStep.
Referenced by NBRampsComputer::buildOffRamp(), NBRampsComputer::buildOnRamp(), NBNode::computeLanes2Lanes(), and NIXMLConnectionsHandler::myStartElement().
|
inline |
Returns the street name of this edge.
Definition at line 536 of file NBEdge.h.
References myStreetName.
Referenced by NIXMLEdgesHandler::addEdge(), GNEEdge::drawGL(), GNEEdge::getAttribute(), NWWriter_SUMO::writeEdge(), NWWriter_XML::writeEdgesAndConnections(), and NWWriter_OpenDrive::writeNetwork().
|
inline |
Returns the destination node of the edge.
Definition at line 434 of file NBEdge.h.
References myTo.
Referenced by NIImporter_SUMO::_loadNetwork(), NBLoadedSUMOTLDef::addConnection(), NIXMLConnectionsHandler::addCrossing(), NIXMLTrafficLightsHandler::addTlConnection(), NIVissimDisturbance::addToNode(), NBLoadedTLDef::addToSignalGroup(), NBNodeShapeComputer::badIntersection(), NBRampsComputer::buildOnRamp(), NBNode::checkCrossing(), NBEdgeCont::checkOverlap(), NBTrafficLightDefinition::collectAllLinks(), NBLoadedTLDef::collectNodes(), NBRampsComputer::computeRamps(), NBTurningDirectionsComputer::computeTurnDirectionsForNode(), NBOwnTLDef::computeUnblockedWeightedStreamNumber(), NIVissimDistrictConnection::dict_BuildDistricts(), GNELane::drawLane2LaneConnections(), GNELane::drawLinkNo(), NBRampsComputer::fulfillsRampConstraints(), NBNodeCont::generateNodeClusters(), NBEdgeCont::generateStreetSigns(), getFinalLength(), NWWriter_DlrNavteq::getFormOfWay(), NWWriter_DlrNavteq::getGraphLength(), NIImporter_VISUM::getNamedEdgeContinuating(), NIImporter_OpenStreetMap::getNeighboringNodes(), NBNode::getOppositeIncoming(), NBOwnTLDef::getToPrio(), NBEdgeCont::guessOpposites(), NBEdgeCont::guessRoundabouts(), NBNodeCont::guessTLs(), NBEdgeCont::insert(), GNENet::insertEdge(), NBNode::isLongEnough(), NBNode::isNearDistrict(), NBNodeCont::joinJunctions(), NBNodeCont::joinNodeClusters(), NBRequest::laneConflict(), NIImporter_ArcView::load(), NIImporter_OpenDrive::loadNetwork(), NIXMLEdgesHandler::myEndElement(), NIXMLConnectionsHandler::myStartElement(), NBContHelper::relative_incoming_edge_sorter::operator()(), NBOwnTLDef::edge_by_incoming_priority_sorter::operator()(), NBContHelper::edge_with_destination_finder::operator()(), NBContHelper::edge_by_angle_to_nodeShapeCentroid_sorter::operator()(), NIImporter_VISUM::parse_Lanes(), NIXMLConnectionsHandler::parseLaneBound(), NBEdgeCont::recheckLanes(), NBEdgeCont::recheckPostProcessConnections(), NIImporter_OpenStreetMap::reconstructLayerElevation(), NBNodeCont::removeIsolatedRoads(), NBEdgeCont::removeUnwishedEdges(), NBNodeCont::removeUnwishedNodes(), NIImporter_DlrNavteq::TrafficlightsHandler::report(), NBNode::rightTurnConflict(), GNEEdge::setAttribute(), NIXMLEdgesHandler::setNodes(), NBNodesEdgesSorter::swapWhenReversed(), GNEConnection::updateGeometry(), GNEConnection::updateLinkState(), NWWriter_SUMO::writeConnection(), NWWriter_SUMO::writeEdge(), NWWriter_XML::writeEdgesAndConnections(), NWWriter_DlrNavteq::writeLinksUnsplitted(), NWWriter_OpenDrive::writeNetwork(), and NWWriter_SUMO::writeRoundabout().
|
inline |
Returns the angle at the start of the edge.
Definition at line 474 of file NBEdge.h.
References myTotalAngle.
Referenced by NBContHelper::same_connection_edge_sorter::getMinMaxRelAngles(), and NBContHelper::edge_similar_direction_sorter::operator()().
double NBEdge::getTotalWidth | ( | ) | const |
Returns the combined width of all lanes of this edge.
Definition at line 2831 of file NBEdge.cpp.
References getLaneWidth(), and myLanes.
Referenced by GNENet::addReversedEdge(), NBNodeShapeComputer::badIntersection(), NBEdgeCont::checkOverlap(), getLaneWidth(), setNodeBorder(), shiftPositionAtNode(), and NWWriter_DlrNavteq::writeNodesUnsplitted().
NBEdge * NBEdge::getTurnDestination | ( | bool | possibleDestination = false | ) | const |
Definition at line 2670 of file NBEdge.cpp.
References myPossibleTurnDestination, and myTurnDestination.
Referenced by NBNode::avoidOverlap(), NBNode::checkIsRemovable(), NBNode::computeInternalLaneShape(), NBNode::computeLanes2Lanes(), NBOwnTLDef::computeUnblockedWeightedStreamNumber(), NBNode::getEdgesToJoin(), getTypeID(), NBEdgeCont::guessRoundabouts(), NBEdgeCont::markRoundabouts(), GNEEdge::removeConnection(), and GNEJunction::setLogicValid().
|
inline |
get ID of type
Definition at line 971 of file NBEdge.h.
References NBEdge::Lane::accelRamp, addBikeLane(), addCrossingPointsAsIncomingWithGivenOutgoing(), addLane(), addSidewalk(), allowVehicleClass(), append(), appendTurnaround(), clearControllingTLInformation(), computeEdge2Edges(), computeLanes2Edges(), decLaneNo(), deleteLane(), disableConnection4TLS(), disallowVehicleClass(), expandableBy(), getAngleAtNode(), getAngleAtNodeToCenter(), getCCWBoundaryLine(), getCWBoundaryLine(), getLaneID(), getLaneIDInsecure(), getLaneSpeed(), getMaxLaneOffset(), getPermissions(), getTurnDestination(), hasAccelLane(), hasLaneSpecificEndOffset(), hasLaneSpecificPermissions(), hasLaneSpecificSpeed(), hasLaneSpecificWidth(), hasPermissions(), hasSignalisedConnectionTo(), incLaneNo(), isNearEnough2BeJoined2(), lanesWereAssigned(), markAsInLane2LaneState(), mayBeTLSControlled(), moveOutgoingConnectionsFrom(), myType, needsLaneSpecificOutput(), NBEdge::Lane::permissions, preferVehicleClass(), recheckLanes(), restoreBikelane(), restoreSidewalk(), setAcceleration(), setControllingTLInformation(), setEndOffset(), setLaneWidth(), setPermissions(), setPreferredVehicleClass(), setSpeed(), NBEdge::Lane::speed, tryGetNodeAtPosition(), and NBEdge::Lane::width.
Referenced by NIXMLEdgesHandler::addEdge(), GNEEdge::getAttribute(), NWWriter_DlrNavteq::getBrunnelType(), NWWriter_DlrNavteq::getFormOfWay(), NWWriter_DlrNavteq::getRoadClass(), NBEdgeCont::ignoreFilterMatch(), NWWriter_SUMO::writeEdge(), and NWWriter_XML::writeEdgesAndConnections().
bool NBEdge::hasAccelLane | ( | ) | const |
whether one of the lanes is an acceleration lane
Definition at line 1789 of file NBEdge.cpp.
References myLanes.
Referenced by getTypeID(), and needsLaneSpecificOutput().
bool NBEdge::hasConnectionTo | ( | NBEdge * | destEdge, |
int | destLane, | ||
int | fromLane = -1 |
||
) | const |
Retrieves info about a connection to a certain lane of a certain edge.
Turnaround edge is ignored!
[in] | destEdge | The connection's destination edge |
[in] | destLane | The connection's destination lane |
[in] | fromLane | If a value >= 0 is given, only return true if a connection from the given lane exists |
Definition at line 1051 of file NBEdge.cpp.
References myConnections.
Referenced by NIImporter_SUMO::_loadNetwork(), NBNode::buildWalkingAreas(), getLaneSpreadFunction(), GNEConnectorFrame::getLaneStatus(), NIXMLConnectionsHandler::myStartElement(), NIXMLConnectionsHandler::parseLaneBound(), recheckLanes(), and setConnection().
bool NBEdge::hasDefaultGeometry | ( | ) | const |
Returns whether the geometry consists only of the node positions.
Definition at line 488 of file NBEdge.cpp.
References hasDefaultGeometryEndpoints(), and myGeom.
Referenced by NIXMLEdgesHandler::addEdge(), getGeometry(), NWWriter_SUMO::writeEdge(), and NWWriter_XML::writeEdgesAndConnections().
bool NBEdge::hasDefaultGeometryEndpointAtNode | ( | const NBNode * | node | ) | const |
Returns whether the geometry is terminated by the node positions This default may be violated by initializing with tryIgnoreNodePositions=true' or with setGeometry() non-default endpoints are useful to control the generated node shape.
Definition at line 501 of file NBEdge.cpp.
References NBNode::getPosition(), myFrom, myGeom, and myTo.
Referenced by getGeometry().
bool NBEdge::hasDefaultGeometryEndpoints | ( | ) | const |
Returns whether the geometry is terminated by the node positions This default may be violated by initializing with tryIgnoreNodePositions=true' or with setGeometry() non-default endpoints are useful to control the generated node shape.
Definition at line 494 of file NBEdge.cpp.
References NBNode::getPosition(), myFrom, myGeom, and myTo.
Referenced by getGeometry(), and hasDefaultGeometry().
bool NBEdge::hasLaneSpecificEndOffset | ( | ) | const |
whether lanes differ in offset
Definition at line 1778 of file NBEdge.cpp.
References myLanes.
Referenced by NIImporter_SUMO::_loadNetwork(), GNEEdge::getAttribute(), getTypeID(), needsLaneSpecificOutput(), and NWWriter_XML::writeEdgesAndConnections().
bool NBEdge::hasLaneSpecificPermissions | ( | ) | const |
whether lanes differ in allowed vehicle classes
Definition at line 1742 of file NBEdge.cpp.
References myLanes.
Referenced by GNEEdge::getAttribute(), getTypeID(), needsLaneSpecificOutput(), and NWWriter_XML::writeEdgesAndConnections().
bool NBEdge::hasLaneSpecificSpeed | ( | ) | const |
whether lanes differ in speed
Definition at line 1756 of file NBEdge.cpp.
References getSpeed(), and myLanes.
Referenced by GNEEdge::getAttribute(), getTypeID(), needsLaneSpecificOutput(), and NWWriter_XML::writeEdgesAndConnections().
bool NBEdge::hasLaneSpecificWidth | ( | ) | const |
whether lanes differ in width
Definition at line 1767 of file NBEdge.cpp.
References myLanes.
Referenced by NIImporter_SUMO::_loadNetwork(), GNEEdge::getAttribute(), getTypeID(), needsLaneSpecificOutput(), and NWWriter_XML::writeEdgesAndConnections().
|
inline |
Returns whether a length was set explicitly.
Definition at line 500 of file NBEdge.h.
References myLoadedLength.
Referenced by NIXMLEdgesHandler::addEdge(), getFinalLength(), NWWriter_SUMO::writeEdge(), and NWWriter_XML::writeEdgesAndConnections().
bool NBEdge::hasPermissions | ( | ) | const |
whether at least one lane has restrictions
Definition at line 1731 of file NBEdge.cpp.
References myLanes, and SVCAll.
Referenced by getTypeID().
bool NBEdge::hasSignalisedConnectionTo | ( | const NBEdge *const | e | ) | const |
Check if edge has signalised connections.
Definition at line 2659 of file NBEdge.cpp.
References myConnections.
Referenced by buildInnerEdges(), NBRequest::forbids(), and getTypeID().
void NBEdge::incLaneNo | ( | int | by | ) |
increment lane
Definition at line 2723 of file NBEdge.cpp.
References addLane(), LANES2LANES_USER, myLanes, and myStep.
Referenced by NBRampsComputer::buildOffRamp(), NBRampsComputer::buildOnRamp(), getTypeID(), NIXMLEdgesHandler::myEndElement(), and NIImporter_VISUM::parse_Lanes().
|
private |
Initialization routines common to all constructors.
Checks whether the number of lanes>0, whether the junction's from- and to-nodes are given (!=0) and whether they are distict. Throws a ProcessError if any of these checks fails.
Adds the nodes positions to geometry if it shall not be ignored or if the geometry is empty.
Computes the angle and length, and adds this edge to its node as outgoing/incoming. Builds lane informations.
[in] | noLanes | The number of lanes this edge has |
[in] | tryIgnoreNodePositions | Does not add node geometries if geom.size()>=2 |
[in] | origID | The original ID this edge had |
Definition at line 395 of file NBEdge.cpp.
References PositionVector::add(), NBNode::addIncomingEdge(), NBNode::addOutgoingEdge(), computeAngle(), computeLaneShapes(), Position::distanceTo(), NBNode::getIncomingEdges(), NBNode::getPosition(), myFrom, myGeom, Named::myID, myLanes, myLength, myTo, POSITION_EPS, PositionVector::push_back_noDoublePos(), PositionVector::push_front_noDoublePos(), PositionVector::removeDoublePoints(), removeFromConnections(), and WRITE_ERROR.
void NBEdge::insertConnection | ( | NBEdge::Connection | connection | ) |
insert a previously created NBEdge::connection
Definition at line 1004 of file NBEdge.cpp.
References myConnections.
Referenced by getLaneSpreadFunction().
void NBEdge::invalidateConnections | ( | bool | reallowSetting = false | ) |
invalidate current connections of edge
Definition at line 1238 of file NBEdge.cpp.
References INIT, INIT_REJECT_CONNECTIONS, myConnections, myStep, and myTurnDestination.
Referenced by addEdge2EdgeConnection(), addLane(), addLane2LaneConnections(), NBRampsComputer::buildOffRamp(), NBRampsComputer::buildOnRamp(), deleteLane(), getConnections(), NIXMLEdgesHandler::myEndElement(), and GNEEdge::setAttribute().
bool NBEdge::isConnectedTo | ( | const NBEdge * | e | ) | const |
Returns the information whethe a connection to the given edge has been added (or computed)
Turnaround edge is not ignored!
[in] | e | The destination edge |
Definition at line 1057 of file NBEdge.cpp.
References myConnections, and myTurnDestination.
Referenced by NBNode::computeLanes2Lanes(), getLaneSpreadFunction(), NIXMLConnectionsHandler::myStartElement(), and NWWriter_DlrNavteq::writeProhibitedManoeuvres().
|
inline |
Returns whether this edge was marked as being within an intersection.
Definition at line 941 of file NBEdge.h.
References dismissVehicleClassInformation(), getJunctionPriority(), myAmInnerEdge, setJunctionPriority(), and setLoadedLength().
Referenced by NBNode::getLinkState().
|
inline |
Returns whether this edge was marked as a macroscopic connector.
Definition at line 929 of file NBEdge.h.
References myAmMacroscopicConnector.
Referenced by NBRampsComputer::fulfillsRampConstraints(), and NWWriter_SUMO::writeEdge().
bool NBEdge::isNearEnough2BeJoined2 | ( | NBEdge * | e, |
double | threshold | ||
) | const |
Check if edge is near enought to be joined to another edge.
Definition at line 2691 of file NBEdge.cpp.
References PositionVector::distances(), getGeometry(), VectorHelper< T >::maxValue(), and myGeom.
Referenced by getTypeID(), and NBNodeCont::joinSimilarEdges().
bool NBEdge::isTurningDirectionAt | ( | const NBEdge *const | edge | ) | const |
Returns whether the given edge is the opposite direction to this edge.
[in] | edge | The edge which may be the turnaround direction |
Definition at line 2367 of file NBEdge.cpp.
References myPossibleTurnDestination, and myTurnDestination.
Referenced by NBRampsComputer::buildOffRamp(), NBRampsComputer::buildOnRamp(), NBNode::computeLanes2Lanes(), NBOwnTLDef::computeLogicAndConts(), NBRampsComputer::fulfillsRampConstraints(), getConnections(), NBNode::getDirection(), NBLoadedSUMOTLDef::initNeedsContRelation(), NBNode::isLeftMover(), NBRequest::laneConflict(), NBContHelper::opposite_finder::operator()(), recheckLanes(), NBNode::rightTurnConflict(), NBRequest::setBlocking(), NBNodesEdgesSorter::swapWhenReversed(), and NWWriter_OpenDrive::writeNetwork().
|
inherited |
Returns whether the parameter is known.
[in] | key | The key to ask for |
Definition at line 73 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by MSDevice_Example::buildVehicleDevices(), MSDevice::equippedByDefaultAssignmentOptions(), NWWriter_DlrNavteq::getBrunnelType(), MSDevice_SSM::getDetectionRange(), MSDevice_SSM::getLoggingFrequency(), MSDevice_SSM::getMeasuresAndThresholds(), MSDevice_SSM::getOutputFilename(), MSTriggeredRerouter::getWeight(), and MSDevice_SSM::requestsTrajectories().
bool NBEdge::lanesWereAssigned | ( | ) | const |
Check if lanes were assigned.
Definition at line 2408 of file NBEdge.cpp.
References LANES2LANES_DONE, LANES2LANES_USER, and myStep.
Referenced by NIVissimTL::NIVissimTLSignal::addTo(), and getTypeID().
void NBEdge::markAsInLane2LaneState | ( | ) |
mark edge as in lane to state lane
Definition at line 2761 of file NBEdge.cpp.
References NBNode::getOutgoingEdges(), LANES2LANES_DONE, myStep, and myTo.
Referenced by getTypeID().
bool NBEdge::mayBeTLSControlled | ( | int | fromLane, |
NBEdge * | toEdge, | ||
int | toLane | ||
) | const |
return true if certain connection must be controlled by TLS
Definition at line 2420 of file NBEdge.cpp.
References NBEdge::TLSDisabledConnection::fromLane, myTLSDisabledConnections, NBEdge::TLSDisabledConnection::to, and NBEdge::TLSDisabledConnection::toLane.
Referenced by NBTrafficLightDefinition::collectAllLinks(), NBTrafficLightDefinition::collectReachable(), NBOwnTLDef::computeLogicAndConts(), and getTypeID().
void NBEdge::mirrorX | ( | ) |
mirror coordinates along the x-axis
Definition at line 467 of file NBEdge.cpp.
References computeAngle(), PositionVector::mirrorX(), myConnections, myGeom, and myLanes.
|
private |
a connection one place to the left;
Definition at line 1335 of file NBEdge.cpp.
References canMoveConnection(), L2L_VALIDATED, myConnections, setConnection(), NBEdge::Connection::toEdge, and NBEdge::Connection::toLane.
Referenced by recheckLanes().
|
private |
a connection one place to the right; ! no checking for field validity
Definition at line 1350 of file NBEdge.cpp.
References canMoveConnection(), L2L_VALIDATED, myConnections, setConnection(), NBEdge::Connection::toEdge, and NBEdge::Connection::toLane.
Referenced by recheckLanes().
void NBEdge::moveOutgoingConnectionsFrom | ( | NBEdge * | e, |
int | laneOff | ||
) |
move outgoing connection
Definition at line 2394 of file NBEdge.cpp.
References addLane2LaneConnection(), getConnectionsFromLane(), getNumLanes(), L2L_COMPUTED, NBEdge::Connection::tlID, NBEdge::Connection::toEdge, and NBEdge::Connection::toLane.
Referenced by getTypeID(), and NBEdgeCont::joinSameNodeConnectingEdges().
bool NBEdge::needsLaneSpecificOutput | ( | ) | const |
whether at least one lane has values differing from the edges values
Definition at line 1799 of file NBEdge.cpp.
References hasAccelLane(), hasLaneSpecificEndOffset(), hasLaneSpecificPermissions(), hasLaneSpecificSpeed(), hasLaneSpecificWidth(), and myLanes.
Referenced by getTypeID(), and NWWriter_XML::writeEdgesAndConnections().
invalidated assignment operator
Referenced by NBEdge::ToEdgeConnectionsAdder::getBuiltConnections().
void NBEdge::preferVehicleClass | ( | int | lane, |
SUMOVehicleClass | vclass | ||
) |
prefer certain vehicle class
Definition at line 2794 of file NBEdge.cpp.
References allowVehicleClass(), and myLanes.
Referenced by getTypeID().
|
private |
recomputes the edge priorities and manipulates them for a distribution of lanes on edges which is more like in real-life
Definition at line 2239 of file NBEdge.cpp.
References DEBUGCOND, NBEdge::MainDirections::DIR_FORWARD, NBEdge::MainDirections::DIR_LEFTMOST, NBEdge::MainDirections::DIR_RIGHTMOST, NBEdge::MainDirections::empty(), Named::getID(), NBNode::getType(), NBEdge::MainDirections::includes(), NBNode::isTrafficLight(), NBEdge::MainDirections::myDirs, myLanes, myTo, and toString().
Referenced by divideOnEdges().
bool NBEdge::recheckLanes | ( | ) |
recheck whether all lanes within the edge are all right and optimises the connections once again
Definition at line 1854 of file NBEdge.cpp.
References NBEdge::Connection::fromLane, Named::getID(), NBNode::getIncomingEdges(), getNumLanes(), NBNode::getOutgoingEdges(), getPermissions(), hasConnectionTo(), isForbidden(), isRailway(), isTurningDirectionAt(), LANES2LANES_DONE, LANES2LANES_USER, moveConnectionToLeft(), moveConnectionToRight(), myConnections, myConnectionsToDelete, myFrom, myLanes, myStep, myTo, removeFromConnections(), SVC_PEDESTRIAN, NBEdge::Connection::toEdge, NBEdge::Connection::toLane, toString(), and WRITE_WARNING.
Referenced by getTypeID(), and NBEdgeCont::recheckLanes().
void NBEdge::reduceGeometry | ( | const double | minDist | ) |
Removes points with a distance lesser than the given.
[in] | minDist | The minimum distance between two position to keep the second |
Definition at line 824 of file NBEdge.cpp.
References myGeom, and PositionVector::removeDoublePoints().
Referenced by getLaneSpreadFunction().
void NBEdge::reinit | ( | NBNode * | from, |
NBNode * | to, | ||
const std::string & | type, | ||
double | speed, | ||
int | nolanes, | ||
int | priority, | ||
PositionVector | geom, | ||
double | width, | ||
double | offset, | ||
const std::string & | streetName, | ||
LaneSpreadFunction | spread = LANESPREAD_RIGHT , |
||
bool | tryIgnoreNodePositions = false |
||
) |
Resets initial values.
[in] | from | The node the edge starts at |
[in] | to | The node the edge ends at |
[in] | type | The type of the edge (may be =="") |
[in] | speed | The maximum velocity allowed on this edge |
[in] | nolanes | The number of lanes this edge has |
[in] | priority | This edge's priority |
[in] | geom | The edge's geomatry |
[in] | width | This edge's lane width |
[in] | offset | Additional offset to the destination node |
[in] | streetName | The street name (need not be unique) |
[in] | spread | How the lateral offset of the lanes shall be computed |
[in] | tryIgnoreNodePositions | Does not add node geometries if geom.size()>=2 |
Definition at line 327 of file NBEdge.cpp.
References StringUtils::convertUmlaute(), init(), MIN2(), myFrom, myGeom, myLanes, myLaneSpreadFunction, myLoadedLength, myPriority, myStreetName, myTo, myType, NBNode::removeEdge(), setEndOffset(), setLaneWidth(), setSpeed(), UNSPECIFIED_LOADED_LENGTH, UNSPECIFIED_OFFSET, UNSPECIFIED_SPEED, and UNSPECIFIED_WIDTH.
Referenced by NIXMLEdgesHandler::addEdge().
Resets nodes but keeps all other values the same (used when joining)
[in] | from | The node the edge starts at |
[in] | to | The node the edge ends at |
Definition at line 375 of file NBEdge.cpp.
References NBNode::addIncomingEdge(), NBNode::addOutgoingEdge(), computeAngle(), myFrom, Named::myID, myTo, and NBNode::removeEdge().
Referenced by GNENet::changeEdgeEndpoints(), and NBNodeCont::joinNodeClusters().
void NBEdge::remapConnections | ( | const EdgeVector & | incoming | ) |
Remaps the connection in a way that allows the removal of it.
This edge (which is a self loop edge, in fact) connections are spread over the valid incoming edges
Definition at line 1158 of file NBEdge.cpp.
References addEdge2EdgeConnection(), EDGE2EDGES, getConnectedEdges(), myStep, and removeFromConnections().
Referenced by getConnections(), and NBNode::removeSelfLoops().
void NBEdge::removeFromConnections | ( | NBEdge * | toEdge, |
int | fromLane = -1 , |
||
int | toLane = -1 , |
||
bool | tryLater = false , |
||
const bool | adaptToLaneRemoval = false |
||
) |
Removes the specified connection(s)
[in] | toEdge | The destination edge |
[in] | fromLane | The lane from which connections shall be removed; -1 means remove all |
[in] | toLane | The lane to which connections shall be removed; -1 means remove all |
[in] | tryLater | If the connection does not exist, try again during recheckLanes() |
[in] | adaptToLaneRemoval | we are in the process of removing a complete lane, adapt all connections accordingly |
Definition at line 1174 of file NBEdge.cpp.
References NBEdge::Connection::fromLane, NBNode::getControllingTLS(), NBNode::isTLControlled(), myConnections, myConnectionsToDelete, myPossibleTurnDestination, myTo, myTurnDestination, NBEdge::Connection::toEdge, and NBEdge::Connection::toLane.
Referenced by NIImporter_OpenStreetMap::RelationHandler::applyRestriction(), NIXMLEdgesHandler::deleteEdge(), getConnections(), init(), NBEdgeCont::markRoundabouts(), NIXMLConnectionsHandler::myStartElement(), recheckLanes(), NBEdgeCont::recheckPostProcessConnections(), remapConnections(), GNEEdge::removeConnection(), replaceInConnections(), and NIImporter_DlrNavteq::ProhibitionHandler::report().
bool NBEdge::removeFromConnections | ( | NBEdge::Connection | connectionToRemove | ) |
remove an existent connection of edge
Definition at line 1223 of file NBEdge.cpp.
References NBEdge::Connection::fromLane, myConnections, NBEdge::Connection::toEdge, and NBEdge::Connection::toLane.
replace in current connections of edge
Definition at line 1250 of file NBEdge.cpp.
References myConnections, and myTurnDestination.
Referenced by getConnections(), and NBNode::replaceOutgoing().
void NBEdge::replaceInConnections | ( | NBEdge * | which, |
const std::vector< NBEdge::Connection > & | origConns | ||
) |
replace in current connections of edge
Definition at line 1265 of file NBEdge.cpp.
References L2L_COMPUTED, myConnections, removeFromConnections(), and setConnection().
void NBEdge::resetNodeBorder | ( | const NBNode * | node | ) |
Definition at line 599 of file NBEdge.cpp.
References myFrom, myFromBorder, myTo, and myToBorder.
Referenced by addSign().
void NBEdge::reshiftPosition | ( | double | xoff, |
double | yoff | ||
) |
Applies an offset to the edge.
[in] | xoff | The x-offset to apply |
[in] | yoff | The y-offset to apply |
Definition at line 457 of file NBEdge.cpp.
References PositionVector::add(), computeAngle(), myGeom, and myLanes.
void NBEdge::restoreBikelane | ( | std::vector< NBEdge::Lane > | oldLanes, |
PositionVector | oldGeometry, | ||
std::vector< NBEdge::Connection > | oldConnections | ||
) |
restore an previously added BikeLane
Definition at line 3029 of file NBEdge.cpp.
References restoreRestrictedLane(), and SVC_BICYCLE.
Referenced by getTypeID().
|
private |
restore a restricted lane
Definition at line 3069 of file NBEdge.cpp.
References computeLaneShapes(), Named::getID(), NBNode::getIncomingEdges(), myConnections, myFrom, myGeom, myLanes, myTo, NBNode::shiftTLConnectionLaneIndex(), toString(), and WRITE_WARNING.
Referenced by restoreBikelane(), and restoreSidewalk().
void NBEdge::restoreSidewalk | ( | std::vector< NBEdge::Lane > | oldLanes, |
PositionVector | oldGeometry, | ||
std::vector< NBEdge::Connection > | oldConnections | ||
) |
restore an previously added sidewalk
Definition at line 3017 of file NBEdge.cpp.
References restoreRestrictedLane(), and SVC_PEDESTRIAN.
Referenced by getTypeID().
void NBEdge::setAcceleration | ( | int | lane, |
bool | accelRamp | ||
) |
marks one lane as acceleration lane
Definition at line 2877 of file NBEdge.cpp.
References myLanes.
Referenced by NIImporter_SUMO::_loadNetwork(), NIXMLEdgesHandler::addLane(), NBRampsComputer::buildOnRamp(), getTypeID(), and GNELane::setAttribute().
|
inline |
Definition at line 922 of file NBEdge.h.
References myAmMacroscopicConnector.
Referenced by NIImporter_VISUM::parse_Connectors().
bool NBEdge::setConnection | ( | int | lane, |
NBEdge * | destEdge, | ||
int | destLane, | ||
Lane2LaneInfoType | type, | ||
bool | mayUseSameDestination = false , |
||
bool | mayDefinitelyPass = false , |
||
bool | keepClear = true , |
||
double | contPos = UNSPECIFIED_CONTPOS , |
||
double | visibility = UNSPECIFIED_VISIBILITY_DISTANCE |
||
) |
Adds a connection to a certain lane of a certain edge.
[in] | lane | The connection's starting lane (of this edge) |
[in] | destEdge | The connection's destination edge |
[in] | destLane | The connection's destination lane |
[in] | type | The connections's type |
[in] | mayUseSameDestination | Whether this connection may be set though connecting an already connected lane |
[in] | mayDefinitelyPass | Whether this connection is definitely undistrubed (special case for on-ramps) |
Definition at line 941 of file NBEdge.cpp.
References getLaneIDInsecure(), getNumLanes(), hasConnectionTo(), INIT_REJECT_CONNECTIONS, L2L_COMPUTED, L2L_USER, LANES2LANES_DONE, LANES2LANES_RECHECK, LANES2LANES_USER, myConnections, myLanes, myStep, and WRITE_WARNING.
Referenced by GNEEdge::addConnection(), addLane2LaneConnection(), appendTurnaround(), NBNode::computeLanes2Lanes(), getLaneSpreadFunction(), moveConnectionToLeft(), moveConnectionToRight(), and replaceInConnections().
bool NBEdge::setControllingTLInformation | ( | const NBConnection & | c, |
const std::string & | tlID | ||
) |
Returns if the link could be set as to be controlled.
Definition at line 2431 of file NBEdge.cpp.
References NBEdge::TLSDisabledConnection::fromLane, NBConnection::getFromLane(), Named::getID(), NBConnection::getTLIndex(), NBConnection::getTo(), NBConnection::getToLane(), myConnections, myLanes, myTLSDisabledConnections, NBEdge::Connection::tlID, NBEdge::Connection::tlLinkNo, NBEdge::TLSDisabledConnection::to, NBEdge::TLSDisabledConnection::toLane, and WRITE_WARNING.
Referenced by NBLoadedSUMOTLDef::addConnection(), getTypeID(), NBLoadedSUMOTLDef::removeConnection(), NBLoadedSUMOTLDef::setTLControllingInformation(), NBOwnTLDef::setTLControllingInformation(), and NBLoadedTLDef::setTLControllingInformation().
void NBEdge::setEndOffset | ( | int | lane, |
double | offset | ||
) |
set lane specific end-offset (negative lane implies set for all lanes)
Definition at line 2846 of file NBEdge.cpp.
References myEndOffset, and myLanes.
Referenced by NIImporter_SUMO::_loadNetwork(), NIXMLEdgesHandler::addLane(), GNEEdge::addLane(), getTypeID(), NBEdgeCont::joinSameNodeConnectingEdges(), NBEdge(), reinit(), GNEEdge::remakeGNEConnections(), GNELane::setAttribute(), and GNEEdge::setAttribute().
void NBEdge::setGeometry | ( | const PositionVector & | g, |
bool | inner = false |
||
) |
(Re)sets the edge's geometry
Replaces the edge's prior geometry by the given. Then, computes the geometries of all lanes using computeLaneShapes. Definitely not the best way to have it accessable from outside...
[in] | g | The edge's new geometry |
[in] | inner | whether g should be interpreted as inner points |
Definition at line 512 of file NBEdge.cpp.
References computeAngle(), computeLaneShapes(), and myGeom.
Referenced by NBRampsComputer::buildOffRamp(), NBRampsComputer::buildOnRamp(), getGeometry(), NBRampsComputer::moveRampRight(), NIXMLEdgesHandler::myEndElement(), NIImporter_OpenStreetMap::reconstructLayerElevation(), GNEEdge::setAttribute(), and GNEEdge::setGeometry().
|
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 Distribution_Parameterized::Distribution_Parameterized(), NBNodeCont::remapIDs(), NBEdgeCont::remapIDs(), NBNodeCont::rename(), and NBEdgeCont::rename().
|
inline |
Marks this edge being within an intersection.
Definition at line 934 of file NBEdge.h.
References myAmInnerEdge.
Referenced by NBTrafficLightDefinition::collectEdges().
void NBEdge::setJunctionPriority | ( | const NBNode *const | node, |
int | prio | ||
) |
Sets the junction priority of the edge.
[in] | node | The node for which the edge's priority is given |
[in] | prio | The edge's new priority at this node |
Definition at line 1566 of file NBEdge.cpp.
References myFrom, myFromJunctionPriority, and myToJunctionPriority.
Referenced by NBEdgePriorityComputer::extractAndMarkFirst(), isInnerEdge(), and NBEdgePriorityComputer::setPriorityJunctionPriorities().
void NBEdge::setLaneSpreadFunction | ( | LaneSpreadFunction | spread | ) |
(Re)sets how the lanes lateral offset shall be computed
[in] | spread | The type of lateral offset to apply |
Definition at line 763 of file NBEdge.cpp.
References myLaneSpreadFunction.
Referenced by getGeometry(), NIImporter_ArcView::load(), NIImporter_VISUM::parse_Edges(), NBEdgeCont::recheckLaneSpread(), and GNEEdge::setAttribute().
void NBEdge::setLaneWidth | ( | int | lane, |
double | width | ||
) |
set lane specific width (negative lane implies set for all lanes)
Definition at line 2807 of file NBEdge.cpp.
References myLanes, and myLaneWidth.
Referenced by NIImporter_SUMO::_loadNetwork(), NIXMLEdgesHandler::addLane(), GNEEdge::addLane(), getTypeID(), NBEdgeCont::joinSameNodeConnectingEdges(), NBEdge(), reinit(), GNEEdge::remakeGNEConnections(), GNELane::setAttribute(), and GNEEdge::setAttribute().
void NBEdge::setLoadedLength | ( | double | val | ) |
set loaded lenght
Definition at line 2928 of file NBEdge.cpp.
References myLoadedLength.
Referenced by NIImporter_SUMO::_loadNetwork(), NIXMLEdgesHandler::addEdge(), isInnerEdge(), NIImporter_MATSim::EdgesHandler::myStartElement(), and GNEEdge::setAttribute().
void NBEdge::setNodeBorder | ( | const NBNode * | node, |
const Position & | p, | ||
const Position & | p2, | ||
bool | rectangularCut | ||
) |
Set Node border.
Definition at line 563 of file NBEdge.cpp.
References DEBUGCOND, PositionVector::extrapolate2D(), gDebugFlag1, Named::getID(), getLaneWidth(), PositionVector::getOrthogonal(), getTotalWidth(), myFrom, myFromBorder, myGeom, myLanes, myTo, and myToBorder.
Referenced by addSign().
void NBEdge::setPermissions | ( | SVCPermissions | permissions, |
int | lane = -1 |
||
) |
set allowed/disallowed classes for the given lane or for all lanes if -1 is given
Definition at line 2885 of file NBEdge.cpp.
References myLanes.
Referenced by NIImporter_SUMO::_loadNetwork(), NIXMLEdgesHandler::addEdge(), NIXMLEdgesHandler::addLane(), GNEEdge::addLane(), NINavTeqHelper::addVehicleClasses(), NINavTeqHelper::addVehicleClassesV6(), getTypeID(), NIImporter_OpenStreetMap::insertEdge(), NBEdgeCont::joinSameNodeConnectingEdges(), NBEdge(), GNEEdge::remakeGNEConnections(), NIImporter_DlrNavteq::EdgesHandler::report(), and GNELane::setAttribute().
void NBEdge::setPreferredVehicleClass | ( | SVCPermissions | permissions, |
int | lane = -1 |
||
) |
set preferred Vehicle Class
Definition at line 2899 of file NBEdge.cpp.
References myLanes.
Referenced by NIXMLEdgesHandler::addLane(), GNEEdge::addLane(), getTypeID(), and GNEEdge::remakeGNEConnections().
|
inline |
sets the offset of a traffic signal from the end of this edge
Definition at line 563 of file NBEdge.h.
References mySignalOffset.
void NBEdge::setSpeed | ( | int | lane, |
double | speed | ||
) |
set lane specific speed (negative lane implies set for all lanes)
Definition at line 2862 of file NBEdge.cpp.
References myLanes, and mySpeed.
Referenced by NIImporter_SUMO::_loadNetwork(), NIXMLEdgesHandler::addLane(), GNEEdge::addLane(), NIVissimEdge::buildNBEdge(), getTypeID(), NBEdge(), reinit(), GNEEdge::remakeGNEConnections(), GNELane::setAttribute(), GNEEdge::setAttribute(), and NBEdgeCont::splitAt().
|
inline |
sets the street name of this edge
Definition at line 541 of file NBEdge.h.
References myStreetName.
Referenced by GNEEdge::setAttribute().
void NBEdge::setTurningDestination | ( | NBEdge * | e, |
bool | onlyPossible = false |
||
) |
Sets the turing destination at the given edge.
[in] | e | The turn destination |
[in] | onlyPossible | If true, only sets myPossibleTurnDestination |
Definition at line 1603 of file NBEdge.cpp.
References myPossibleTurnDestination, and myTurnDestination.
Referenced by getConnections().
shift geometry at the given node to avoid overlap
Definition at line 3103 of file NBEdge.cpp.
References PositionVector::distance2D(), getGeometry(), Named::getID(), getNumLanes(), getPermissions(), NBNode::getPosition(), getTotalWidth(), isRailway(), LANESPREAD_CENTER, MIN2(), PositionVector::move2side(), myGeom, myLaneSpreadFunction, myTo, SUMO_const_laneOffset, and WRITE_WARNING.
Referenced by NBNode::avoidOverlap(), and getGeometry().
void NBEdge::shiftToLanesToEdge | ( | NBEdge * | to, |
int | laneOff | ||
) |
modifify the toLane for all connections to the given edge
XXX could we repurpose the function replaceInConnections ?
Definition at line 3092 of file NBEdge.cpp.
References myConnections.
Referenced by getConnections().
void NBEdge::shortenGeometryAtNode | ( | const NBNode * | node, |
double | reduction | ||
) |
linearly extend the geometry at the given node
Definition at line 549 of file NBEdge.cpp.
References computeLaneShapes(), PositionVector::getSubpart2D(), PositionVector::length2D(), MIN2(), myFrom, myGeom, and POSITION_EPS.
Referenced by getGeometry().
void NBEdge::sortOutgoingConnectionsByAngle | ( | ) |
sorts the outgoing connections by their angle relative to their junction
Definition at line 1146 of file NBEdge.cpp.
References myConnections.
Referenced by getConnections().
void NBEdge::sortOutgoingConnectionsByIndex | ( | ) |
sorts the outgoing connections by their from-lane-index and their to-lane-index
Definition at line 1152 of file NBEdge.cpp.
References connections_sorter(), and myConnections.
Referenced by divideOnEdges(), and getConnections().
bool NBEdge::splitGeometry | ( | NBEdgeCont & | ec, |
NBNodeCont & | nc | ||
) |
Splits this edge at geometry points.
[in] | ec | The edge cont to add new edges to |
[in] | nc | The node cont to add new nodes to |
Definition at line 779 of file NBEdge.cpp.
References NBNode::addIncomingEdge(), NBNode::getPosition(), INIT, NBNodeCont::insert(), NBEdgeCont::insert(), myFrom, myGeom, Named::myID, myLanes, myLaneSpreadFunction, myLaneWidth, myPriority, mySpeed, myStep, myStreetName, myTo, myType, NBEdge(), NBNode::removeEdge(), NBNodeCont::retrieve(), toString(), and UNSPECIFIED_OFFSET.
Referenced by getLaneSpreadFunction().
|
private |
returns a modified version of laneShape which starts at the outside of startNode. laneShape may be shorted or extended
Definition at line 692 of file NBEdge.cpp.
References PositionVector::extrapolate(), NBNode::geometryLike(), OptionsCont::getFloat(), OptionsCont::getOptions(), NBNode::getPosition(), NBNode::getShape(), PositionVector::getSubpart2D(), PositionVector::getSubpartByIndex(), PositionVector::intersects(), PositionVector::intersectsAtLengths2D(), PositionVector::length2D(), VectorHelper< T >::maxValue(), MIN2(), NUMERICAL_EPS, POSITION_EPS, PositionVector::positionAtOffset2D(), PositionVector::push_front_noDoublePos(), Position::setz(), PositionVector::smoothedZFront(), and Position::z().
Referenced by cutAtIntersection().
NBNode * NBEdge::tryGetNodeAtPosition | ( | double | pos, |
double | tolerance = 5.0 |
||
) | const |
Returns the node at the given edges length (using an epsilon)
Definition at line 2380 of file NBEdge.cpp.
References myFrom, myLength, and myTo.
Referenced by getTypeID().
|
inherited |
Definition at line 104 of file Parameterised.cpp.
References OutputDevice::closeTag(), Parameterised::myMap, OutputDevice::openTag(), SUMO_ATTR_KEY, SUMO_ATTR_VALUE, SUMO_TAG_PARAM, and OutputDevice::writeAttr().
Referenced by Parameterised::getMap(), ROVehicle::saveAsXML(), MSVehicle::saveState(), SUMOVTypeParameter::write(), MSDevice_Vehroutes::writeOutput(), and SUMO::Polygon::writeXML().
|
friend |
|
friend |
|
friend |
|
friend |
|
static |
the distance at which to take the default angle
Definition at line 276 of file NBEdge.h.
Referenced by computeAngle(), getShapeEndAngle(), getShapeStartAngle(), NBContHelper::relative_outgoing_edge_sorter::operator()(), NBContHelper::straightness_sorter::operator()(), and NBContHelper::relative_incoming_edge_sorter::operator()().
|
private |
Information whether this is a junction-inner edge.
Definition at line 1412 of file NBEdge.h.
Referenced by isInnerEdge(), and setIsInnerEdge().
|
private |
Information whether this edge is a (macroscopic) connector.
Definition at line 1415 of file NBEdge.h.
Referenced by isMacroscopicConnector(), and setAsMacroscopicConnector().
|
private |
List of connections to following edges.
Definition at line 1374 of file NBEdge.h.
Referenced by addEdge2EdgeConnection(), addRestrictedLane(), addStraightConnections(), append(), buildInnerEdges(), clearControllingTLInformation(), computeEdge2Edges(), computeLanes2Edges(), copyConnectionsFrom(), divideOnEdges(), divideSelectedLanesOnEdges(), GNELane::drawArrows(), NBEdge::ToEdgeConnectionsAdder::execute(), expandableBy(), NBEdge::ToEdgeConnectionsAdder::getBuiltConnections(), getConnectedEdges(), getConnectedSorted(), getConnection(), getConnectionLanes(), getConnectionRef(), getConnections(), getConnectionsFromLane(), hasConnectionTo(), hasSignalisedConnectionTo(), insertConnection(), invalidateConnections(), isConnectedTo(), mirrorX(), moveConnectionToLeft(), moveConnectionToRight(), recheckLanes(), removeFromConnections(), replaceInConnections(), restoreRestrictedLane(), setConnection(), setControllingTLInformation(), shiftToLanesToEdge(), sortOutgoingConnectionsByAngle(), and sortOutgoingConnectionsByIndex().
|
private |
List of connections marked for delayed removal.
Definition at line 1377 of file NBEdge.h.
Referenced by getConnectedSorted(), recheckLanes(), and removeFromConnections().
|
private |
Definition at line 1361 of file NBEdge.h.
Referenced by computeAngle(), getAngleAtNodeToCenter(), and getEndAngle().
|
private |
This edges's offset to the intersection begin (will be applied to all lanes)
Definition at line 1398 of file NBEdge.h.
Referenced by getEndOffset(), and setEndOffset().
|
private |
The source and the destination node.
Definition at line 1353 of file NBEdge.h.
Referenced by addEdge2EdgeConnection(), addLane(), addLane2LaneConnection(), addRestrictedLane(), computeAngle(), computeLaneShapes(), cutAtIntersection(), deleteLane(), expandableBy(), extendGeometryAtNode(), NBEdgeCont::extract(), getAngleAtNode(), getAngleAtNodeToCenter(), getCCWBoundaryLine(), getCWBoundaryLine(), getFromNode(), getIncomingEdges(), getJunctionPriority(), hasDefaultGeometryEndpointAtNode(), hasDefaultGeometryEndpoints(), init(), recheckLanes(), reinit(), reinitNodes(), resetNodeBorder(), restoreRestrictedLane(), NBEdgeCont::retrievePossiblySplit(), setJunctionPriority(), setNodeBorder(), shortenGeometryAtNode(), NBEdgeCont::splitAt(), splitGeometry(), and tryGetNodeAtPosition().
|
private |
intersection borders (because the node shape might be invalid)
Definition at line 1438 of file NBEdge.h.
Referenced by cutAtIntersection(), resetNodeBorder(), and setNodeBorder().
|
private |
The priority normalised for the node the edge is outgoing of.
Definition at line 1386 of file NBEdge.h.
Referenced by getJunctionPriority(), and setJunctionPriority().
|
private |
The geometry for the edge.
Definition at line 1392 of file NBEdge.h.
Referenced by addGeometryPoint(), addRestrictedLane(), append(), checkGeometry(), computeAngle(), computeLaneShape(), computeLaneShapes(), extendGeometryAtNode(), getAngleAtNode(), getFinalLength(), getGeometry(), getInnerGeometry(), getShapeEndAngle(), getShapeStartAngle(), hasDefaultGeometry(), hasDefaultGeometryEndpointAtNode(), hasDefaultGeometryEndpoints(), init(), isNearEnough2BeJoined2(), mirrorX(), NBEdge(), reduceGeometry(), reinit(), reshiftPosition(), restoreRestrictedLane(), setGeometry(), setNodeBorder(), shiftPositionAtNode(), shortenGeometryAtNode(), and splitGeometry().
|
protectedinherited |
The name of the object.
Definition at line 136 of file Named.h.
Referenced by MSE2Collector::addDetectorToLanes(), RODFDetector::buildDestinationDistribution(), NGEdge::buildNBEdge(), NGNode::buildNBNode(), MSSOTLTrafficLightLogic::checkPhases(), NBNode::computeNodeShape(), MSE2Collector::detectorUpdate(), METriggeredCalibrator::execute(), MSCalibrator::execute(), MSLane::getCanonicalPredecessorLane(), MSLane::getCanonicalSuccessorLane(), Named::getID(), getLaneID(), getLaneIDInsecure(), ROEdge::getStoredEffort(), ROEdge::getTravelTime(), MSDelayBasedTrafficLightLogic::init(), MSActuatedTrafficLightLogic::init(), MSSOTLTrafficLightLogic::init(), MSCalibrator::init(), init(), MSLane::isInsertionSuccess(), MSCalibrator::myStartElement(), MSMeanData::openInterval(), RORouteDef::preComputeCurrentRoute(), reinitNodes(), MSRoute::release(), Named::setID(), MSSOTLTrafficLightLogic::setToATargetPhase(), splitGeometry(), Distribution_Parameterized::toStr(), MSChargingStation::writeChargingStationOutput(), RODFDetector::writeEmitterDefinition(), MSXMLRawOut::writeLane(), NBNode::writeLogic(), RODFDetector::writeSingleSpeedTrigger(), MEInductLoop::writeXMLOutput(), MSCalibrator::writeXMLOutput(), and MSE3Collector::writeXMLOutput().
|
private |
Lane information.
Definition at line 1406 of file NBEdge.h.
Referenced by addLane(), addRestrictedLane(), addStraightConnections(), allowVehicleClass(), append(), appendTurnaround(), computeAngle(), computeEdgeShape(), computeLaneShapes(), decLaneNo(), deleteLane(), disallowVehicleClass(), dismissVehicleClassInformation(), divideOnEdges(), divideSelectedLanesOnEdges(), expandableBy(), getCCWBoundaryLine(), getCWBoundaryLine(), getEndOffset(), getFirstNonPedestrianLane(), getFirstNonPedestrianLaneIndex(), getLanes(), getLaneShape(), getLaneSpeed(), getLaneStruct(), getLaneWidth(), getMaxLaneOffset(), getNumLanes(), getPermissions(), getTotalWidth(), hasAccelLane(), hasLaneSpecificEndOffset(), hasLaneSpecificPermissions(), hasLaneSpecificSpeed(), hasLaneSpecificWidth(), hasPermissions(), incLaneNo(), init(), mirrorX(), NBEdge(), needsLaneSpecificOutput(), preferVehicleClass(), prepareEdgePriorities(), recheckLanes(), reinit(), reshiftPosition(), restoreRestrictedLane(), setAcceleration(), setConnection(), setControllingTLInformation(), setEndOffset(), setLaneWidth(), setNodeBorder(), setPermissions(), setPreferredVehicleClass(), setSpeed(), NBEdgeCont::splitAt(), and splitGeometry().
|
private |
The information about how to spread the lanes.
Definition at line 1395 of file NBEdge.h.
Referenced by addRestrictedLane(), computeAngle(), computeLaneShapes(), expandableBy(), getLaneSpreadFunction(), reinit(), setLaneSpreadFunction(), shiftPositionAtNode(), and splitGeometry().
|
private |
This width of this edge's lanes.
Definition at line 1401 of file NBEdge.h.
Referenced by getLaneWidth(), setLaneWidth(), and splitGeometry().
|
private |
The length of the edge.
Definition at line 1356 of file NBEdge.h.
Referenced by append(), computeEdgeShape(), getLength(), getLoadedLength(), init(), and tryGetNodeAtPosition().
|
private |
An optional length to use (-1 if not valid)
Definition at line 1409 of file NBEdge.h.
Referenced by getLoadedLength(), hasLoadedLength(), reinit(), and setLoadedLength().
|
private |
The edge that would be the turn destination if there was one.
Definition at line 1383 of file NBEdge.h.
Referenced by append(), getTurnDestination(), isTurningDirectionAt(), removeFromConnections(), and setTurningDestination().
|
private |
The priority of the edge.
Definition at line 1366 of file NBEdge.h.
Referenced by getPriority(), reinit(), GNEEdge::setAttribute(), and splitGeometry().
|
private |
the offset of a traffic light signal from the end of this edge (-1 for None)
Definition at line 1434 of file NBEdge.h.
Referenced by append(), getSignalOffset(), and setSignalOffset().
|
private |
the street signs along this edge
Definition at line 1431 of file NBEdge.h.
Referenced by addSign(), and getSigns().
|
private |
The maximal speed.
Definition at line 1369 of file NBEdge.h.
Referenced by expandableBy(), getSpeed(), setSpeed(), and splitGeometry().
|
private |
The angles of the edge.
Definition at line 1360 of file NBEdge.h.
Referenced by computeAngle(), getAngleAtNodeToCenter(), and getStartAngle().
|
private |
The building step.
Definition at line 1347 of file NBEdge.h.
Referenced by addEdge2EdgeConnection(), addLane2LaneConnection(), append(), computeEdge2Edges(), computeLanes2Edges(), copyConnectionsFrom(), decLaneNo(), declareConnectionsAsLoaded(), expandableBy(), getStep(), incLaneNo(), invalidateConnections(), lanesWereAssigned(), markAsInLane2LaneState(), recheckLanes(), remapConnections(), setConnection(), and splitGeometry().
|
private |
The street name (or whatever arbitrary string you wish to attach)
Definition at line 1428 of file NBEdge.h.
Referenced by getStreetName(), reinit(), setStreetName(), and splitGeometry().
|
private |
vector with the disabled connections
Definition at line 1425 of file NBEdge.h.
Referenced by disableConnection4TLS(), mayBeTLSControlled(), and setControllingTLInformation().
|
private |
Definition at line 1353 of file NBEdge.h.
Referenced by addEdge2EdgeConnection(), addLane2LaneConnection(), addRestrictedLane(), addStraightConnections(), append(), appendTurnaround(), buildInnerEdges(), computeAngle(), computeEdge2Edges(), computeLaneShapes(), cutAtIntersection(), GNELane::drawArrows(), expandableBy(), extendGeometryAtNode(), NBEdgeCont::extract(), getAngleAtNode(), getAngleAtNodeToCenter(), getConnectedSorted(), getToNode(), hasDefaultGeometryEndpointAtNode(), hasDefaultGeometryEndpoints(), init(), markAsInLane2LaneState(), NBEdge(), prepareEdgePriorities(), recheckLanes(), reinit(), reinitNodes(), removeFromConnections(), resetNodeBorder(), restoreRestrictedLane(), NBEdgeCont::retrievePossiblySplit(), setNodeBorder(), shiftPositionAtNode(), NBEdgeCont::splitAt(), splitGeometry(), and tryGetNodeAtPosition().
|
private |
Definition at line 1439 of file NBEdge.h.
Referenced by append(), cutAtIntersection(), resetNodeBorder(), and setNodeBorder().
|
private |
The priority normalised for the node the edge is incoming in.
Definition at line 1389 of file NBEdge.h.
Referenced by getJunctionPriority(), and setJunctionPriority().
|
private |
Definition at line 1362 of file NBEdge.h.
Referenced by computeAngle(), and getTotalAngle().
|
private |
The turn destination edge (if a connection exists)
Definition at line 1380 of file NBEdge.h.
Referenced by append(), appendTurnaround(), getConnectedSorted(), getConnectionLanes(), getTurnDestination(), invalidateConnections(), isConnectedTo(), isTurningDirectionAt(), removeFromConnections(), replaceInConnections(), and setTurningDestination().
|
private |
The type of the edge.
Definition at line 1350 of file NBEdge.h.
Referenced by getTypeID(), reinit(), GNEEdge::setAttribute(), and splitGeometry().
|
static |
unspecified internal junction position
Definition at line 264 of file NBEdge.h.
Referenced by NIImporter_SUMO::addConnection(), buildInnerEdges(), NIXMLConnectionsHandler::parseLaneBound(), NIImporter_DlrNavteq::ConnectedLanesHandler::report(), and NWWriter_SUMO::writeConnection().
|
static |
internal lane computation not yet done
Definition at line 278 of file NBEdge.h.
Referenced by NBNode::computeInternalLaneShape().
|
static |
no length override given
Definition at line 270 of file NBEdge.h.
Referenced by NIImporter_SUMO::addEdge(), NIXMLEdgesHandler::addEdge(), GNEEdge::isValid(), and reinit().
|
static |
unspecified lane offset
Definition at line 258 of file NBEdge.h.
Referenced by NIImporter_SUMO::_loadNetwork(), NIXMLEdgesHandler::addEdge(), NIImporter_SUMO::addLane(), NGEdge::buildNBEdge(), NIVissimEdge::buildNBEdge(), GNENet::createEdge(), NIVissimDistrictConnection::dict_BuildDistricts(), getEndOffset(), NIImporter_OpenStreetMap::insertEdge(), NBEdgeCont::joinSameNodeConnectingEdges(), NIImporter_ArcView::load(), NIImporter_RobocupRescue::loadEdges(), NIImporter_OpenDrive::loadNetwork(), NIImporter_ITSUMO::Handler::myEndElement(), NIImporter_MATSim::EdgesHandler::myStartElement(), NIImporter_VISUM::parse_Connectors(), NIImporter_VISUM::parse_Edges(), reinit(), NIImporter_DlrNavteq::EdgesHandler::report(), splitGeometry(), NGNet::toNB(), NWWriter_XML::writeEdgesAndConnections(), NWWriter_SUMO::writeInternalEdges(), and NWWriter_SUMO::writeLane().
|
static |
unspecified signal offset
Definition at line 273 of file NBEdge.h.
Referenced by append(), and NBNodeCont::guessTLs().
|
static |
unspecified lane speed
Definition at line 261 of file NBEdge.h.
Referenced by NIXMLEdgesHandler::addEdge(), and reinit().
|
static |
unspecified foe visibility for connections
Definition at line 267 of file NBEdge.h.
Referenced by NIImporter_SUMO::addConnection(), NIXMLConnectionsHandler::parseLaneBound(), NIImporter_DlrNavteq::ConnectedLanesHandler::report(), and NWWriter_SUMO::writeConnection().
|
static |
unspecified lane width
Definition at line 255 of file NBEdge.h.
Referenced by NIImporter_SUMO::_loadNetwork(), NIXMLEdgesHandler::addEdge(), NIImporter_SUMO::addLane(), NBNode::buildCrossings(), NIVissimEdge::buildNBEdge(), NBNode::buildWalkingAreas(), computeLaneShapes(), GNENet::createEdge(), NIVissimDistrictConnection::dict_BuildDistricts(), NBFrame::fillOptions(), GNEEdge::getAttribute(), GNELane::getAttribute(), getLaneWidth(), NIImporter_OpenStreetMap::insertEdge(), GNEEdge::isValid(), GNELane::isValid(), NBEdgeCont::joinSameNodeConnectingEdges(), NIImporter_RobocupRescue::loadEdges(), NIImporter_OpenDrive::loadNetwork(), NBRampsComputer::moveRampRight(), NIXMLEdgesHandler::myEndElement(), NIImporter_ITSUMO::Handler::myEndElement(), NIImporter_MATSim::EdgesHandler::myStartElement(), NIImporter_VISUM::parse_Connectors(), NIImporter_VISUM::parse_Edges(), NIImporter_VISUM::parse_Types(), reinit(), NIImporter_DlrNavteq::EdgesHandler::report(), GNELane::setAttribute(), GNEEdge::setAttribute(), NWWriter_XML::writeEdgesAndConnections(), and NWWriter_SUMO::writeLane().