![]() |
Eclipse SUMO - Simulation of Urban MObility
|
Represents a single node (junction) during network building. More...
#include <NBNode.h>
Data Structures | |
class | ApproachingDivider |
Computes lane-2-lane connections. More... | |
class | Crossing |
A definition of a pedestrian crossing. More... | |
class | edge_by_direction_sorter |
Sorts outgoing before incoming edges. More... | |
class | nodes_by_id_sorter |
Used for sorting the cells by the begin time they describe. More... | |
struct | WalkingArea |
A definition of a pedestrian walking area. More... | |
struct | WalkingAreaCustomShape |
Public Types | |
enum class | ParameterisedAttrType { STRING , DOUBLE } |
@brie enum for Parameterised type More... | |
Public Member Functions | |
NBNode::Crossing * | addCrossing (EdgeVector edges, double width, bool priority, int tlIndex=-1, int tlIndex2=-1, const PositionVector &customShape=PositionVector::EMPTY, bool fromSumoNet=false) |
add a pedestrian crossing to this node More... | |
void | addIncomingEdge (NBEdge *edge) |
adds an incoming edge More... | |
void | addOutgoingEdge (NBEdge *edge) |
adds an outgoing edge More... | |
void | addSortedLinkFoes (const NBConnection &mayDrive, const NBConnection &mustStop) |
add shorted link FOES More... | |
void | addTo (const StoringVisitor &cont) const |
Adds this object to the given container. More... | |
void | addWalkingAreaShape (EdgeVector edges, const PositionVector &shape) |
add custom shape for walkingArea More... | |
bool | alreadyConnectedPaths (const NBEdge *e1, const NBEdge *e2, double dist) const |
return true if the given pedestrian paths are connected at another junction within dist More... | |
void | avoidOverlap () |
fix overlap More... | |
int | buildCrossings () |
build pedestrian crossings More... | |
void | buildCrossingsAndWalkingAreas () |
build crossings, and walkingareas. Also removes invalid loaded crossings if wished More... | |
void | buildInnerEdges () |
build internal lanes, pedestrian crossings and walking areas More... | |
void | buildWalkingAreas (int cornerDetail, double joinMinDist) |
build pedestrian walking areas and set connections from/to walkingAreas More... | |
int | checkCrossing (EdgeVector candidates) |
bool | checkCrossingDuplicated (EdgeVector edges) |
return true if there already exist a crossing with the same edges as the input More... | |
bool | checkIsRemovable () const |
check if node is removable More... | |
bool | checkIsRemovableReporting (std::string &reason) const |
check if node is removable and return reason if not More... | |
void | clearParameter () |
Clears the parameter map. More... | |
PositionVector | computeInternalLaneShape (const NBEdge *fromE, const NBEdge::Connection &con, int numPoints, NBNode *recordError=0, int shapeFlag=0) const |
Compute the shape for an internal lane. More... | |
void | computeKeepClear () |
compute keepClear status for all connections More... | |
void | computeLanes2Lanes () |
computes the connections of lanes to edges More... | |
void | computeLogic (const NBEdgeCont &ec) |
computes the node's type, logic and traffic light More... | |
void | computeLogic2 (bool checkLaneFoes) |
compute right-of-way logic for all lane-to-lane connections More... | |
void | computeNodeShape (double mismatchThreshold) |
Compute the junction shape for this node. More... | |
PositionVector | computeSmoothShape (const PositionVector &begShape, const PositionVector &endShape, int numPoints, bool isTurnaround, double extrapolateBeg, double extrapolateEnd, NBNode *recordError=0, int shapeFlag=0) const |
Compute a smooth curve between the given geometries. More... | |
bool | crossingBetween (const NBEdge *e1, const NBEdge *e2) const |
return true if the given edges are connected by a crossing More... | |
void | discardAllCrossings (bool rejectAll) |
discard all current (and optionally future) crossings More... | |
void | discardWalkingareas () |
discard previously built walkingareas (required for repeated computation by netedit) More... | |
EdgeVector | edgesBetween (const NBEdge *e1, const NBEdge *e2) const |
return all edges that lie clockwise between the given edges More... | |
bool | foes (const NBEdge *const from1, const NBEdge *const to1, const NBEdge *const from2, const NBEdge *const to2) const |
Returns the information whether the given flows cross. More... | |
bool | forbids (const NBEdge *const possProhibitorFrom, const NBEdge *const possProhibitorTo, const NBEdge *const possProhibitedFrom, const NBEdge *const possProhibitedTo, bool regardNonSignalisedLowerPriority) const |
Returns the information whether "prohibited" flow must let "prohibitor" flow pass. More... | |
bool | geometryLike () const |
whether this is structurally similar to a geometry node More... | |
bool | geometryLike (const EdgeVector &incoming, const EdgeVector &outgoing) const |
int | getConnectionIndex (const NBEdge *from, const NBEdge::Connection &con) const |
return the index of the given connection More... | |
NBEdge * | getConnectionTo (NBNode *n) const |
get connection to certain node More... | |
Crossing * | getCrossing (const EdgeVector &edges, bool hardFail=true) const |
return the crossing with the given Edges More... | |
Crossing * | getCrossing (const std::string &id) const |
return the crossing with the given id More... | |
std::vector< Crossing * > | getCrossings () const |
return this junctions pedestrian crossings More... | |
const std::vector< std::unique_ptr< Crossing > > & | getCrossingsIncludingInvalid () const |
LinkDirection | getDirection (const NBEdge *const incoming, const NBEdge *const outgoing, bool leftHand=false) const |
Returns the representation of the described stream's direction. More... | |
double | getDisplacementError () const |
compute the displacement error during s-curve computation More... | |
double | getDouble (const std::string &key, const double defaultValue) const |
Returns the value for a given key converted to a double. More... | |
std::vector< std::pair< NBEdge *, NBEdge * > > | getEdgesToJoin () const |
get edges to join More... | |
Position | getEmptyDir () const |
Returns something like the most unused direction Should only be used to add source or sink nodes. More... | |
std::vector< std::pair< Position, std::string > > | getEndPoints () const |
return list of unique endpoint coordinates of all edges at this node More... | |
const std::string | getFoes (int linkIndex) const |
get the 'foes' string (conflict bit set) of the right-of-way logic More... | |
const std::string & | getID () const |
Returns the id. More... | |
LinkState | getLinkState (const NBEdge *incoming, NBEdge *outgoing, int fromLane, int toLane, bool mayDefinitelyPass, const std::string &tlID) const |
get link state More... | |
NBEdge * | getOppositeIncoming (NBEdge *e) const |
returns the opposite incoming edge of certain edge More... | |
const std::string | getParameter (const std::string &key, const std::string defaultValue="") const |
Returns the value for a given key. More... | |
const std::map< std::string, std::string > & | getParametersMap () const |
Returns the inner key/value map. More... | |
std::string | getParametersStr (const std::string kvsep="=", const std::string sep="|") const |
Returns the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN". More... | |
NBEdge * | getPossiblySplittedIncoming (const std::string &edgeid) |
get possibly splitted incoming edge More... | |
NBEdge * | getPossiblySplittedOutgoing (const std::string &edgeid) |
get possibly splitted outgoing edge More... | |
const NBConnectionProhibits & | getProhibitions () |
get prohibitions (BLocked connections) More... | |
const std::string | getResponse (int linkIndex) const |
get the 'response' string (right-of-way bit set) of the right-of-way logic More... | |
const PositionVector & | getShape () const |
retrieve the junction shape More... | |
const std::vector< WalkingAreaCustomShape > & | getWalkingAreaCustomShapes () const |
const std::vector< WalkingArea > & | getWalkingAreas () const |
return this junctions pedestrian walking areas More... | |
int | guessCrossings () |
guess pedestrian crossings and return how many were guessed More... | |
bool | hasConflict () const |
whether there are conflicting streams of traffic at this node More... | |
bool | hasCustomShape () const |
return whether the shape was set by the user More... | |
bool | hasIncoming (const NBEdge *const e) const |
Returns whether the given edge ends at this node. More... | |
bool | hasOutgoing (const NBEdge *const e) const |
Returns whether the given edge starts at this node. More... | |
void | invalidateIncomingConnections () |
invalidate incoming connections More... | |
void | invalidateOutgoingConnections () |
invalidate outgoing connections More... | |
bool | isBentPriority () const |
return whether a priority road turns at this node More... | |
bool | isConstantWidthTransition () const |
detects whether a given junction splits or merges lanes while keeping constant road width More... | |
bool | isDistrict () const |
check if node is a district More... | |
bool | isLeftMover (const NBEdge *const from, const NBEdge *const to) const |
Computes whether the given connection is a left mover across the junction. More... | |
bool | isNearDistrict () const |
@chech if node is near district More... | |
bool | isRoundabout () const |
return whether this node is part of a roundabout More... | |
bool | isSimpleContinuation (bool checkLaneNumbers=true, bool checkWidth=false) const |
check if node is a simple continuation More... | |
bool | knowsParameter (const std::string &key) const |
Returns whether the parameter is known. More... | |
void | markBentPriority (bool isBent) |
mark whether a priority road turns at this node More... | |
bool | mergeConflict (const NBEdge *from, const NBEdge::Connection &con, const NBEdge *prohibitorFrom, const NBEdge::Connection &prohibitorCon, bool foes) const |
whether multple connections from the same edge target the same lane More... | |
bool | mergeConflictYields (const NBEdge *from, int fromLane, int fromLaneFoe, NBEdge *to, int toLane) const |
whether one of multple connections from the same edge targeting the same lane must yield More... | |
bool | mustBrake (const NBEdge *const from, const NBEdge *const to, int fromLane, int toLane, bool includePedCrossings) const |
Returns the information whether the described flow must let any other flow pass. More... | |
bool | mustBrakeForCrossing (const NBEdge *const from, const NBEdge *const to, const Crossing &crossing) const |
Returns the information whether the described flow must brake for the given crossing. More... | |
NBNode (const std::string &id, const Position &position, NBDistrict *district=0) | |
Constructor. More... | |
NBNode (const std::string &id, const Position &position, SumoXMLNodeType type) | |
Constructor. More... | |
bool | needsCont (const NBEdge *fromE, const NBEdge *otherFromE, const NBEdge::Connection &c, const NBEdge::Connection &otherC) const |
whether an internal junction should be built at from and respect other More... | |
int | numCrossingsFromSumoNet () const |
get num of crossings from sumo net More... | |
int | numNormalConnections () const |
return the number of lane-to-lane connections at this junction (excluding crossings) More... | |
void | reinit (const Position &position, SumoXMLNodeType type, bool updateEdgeGeometries=false) |
Resets initial values. More... | |
void | removeCrossing (const EdgeVector &edges) |
remove a pedestrian crossing from this node (identified by its edges) More... | |
void | removeDoubleEdges () |
remove duble edges More... | |
void | removeEdge (NBEdge *edge, bool removeFromConnections=true) |
Removes edge from this node and optionally removes connections as well. More... | |
void | replaceIncoming (const EdgeVector &which, NBEdge *by) |
Replaces occurences of every edge from the given list within the list of incoming by the second Connections are remapped, too. More... | |
void | replaceIncoming (NBEdge *which, NBEdge *by, int laneOff) |
Replaces occurences of the first edge within the list of incoming by the second Connections are remapped, too. More... | |
void | replaceOutgoing (const EdgeVector &which, NBEdge *by) |
Replaces occurences of every edge from the given list within the list of outgoing by the second Connections are remapped, too. More... | |
void | replaceOutgoing (NBEdge *which, NBEdge *by, int laneOff) |
Replaces occurences of the first edge within the list of outgoing by the second Connections are remapped, too. More... | |
bool | rightOnRedConflict (int index, int foeIndex) const |
whether the given index must yield to the foeIndex while turing right on a red light More... | |
bool | setCrossingTLIndices (const std::string &tlID, int startIndex) |
void | setCustomShape (const PositionVector &shape) |
set the junction shape More... | |
void | setFringeType (FringeType fringeType) |
set method for computing right-of-way More... | |
virtual void | setID (const std::string &newID) |
resets the id More... | |
void | setKeepClear (bool keepClear) |
set the keepClear flag More... | |
void | setName (const std::string &name) |
set intersection name More... | |
virtual void | setParameter (const std::string &key, const std::string &value) |
Sets a parameter. More... | |
void | setParameters (const Parameterised ¶ms) |
set the inner key/value map in map<string, string> format More... | |
void | setParametersMap (const std::map< std::string, std::string > ¶msMap) |
set the inner key/value map in map<string, string> format More... | |
void | setParametersStr (const std::string ¶msString, const std::string kvsep="=", const std::string sep="|") |
set the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN" More... | |
void | setRadius (double radius) |
set the turning radius More... | |
void | setRightOfWay (RightOfWay rightOfWay) |
set method for computing right-of-way More... | |
void | setRoundabout () |
update the type of this node as a roundabout More... | |
void | sortEdges (bool useNodeShape) |
sort all edge containers for this node More... | |
bool | tlsContConflict (const NBEdge *from, const NBEdge::Connection &c, const NBEdge *foeFrom, const NBEdge::Connection &foe) const |
whether the connection must yield if the foe remains on the intersection after its phase ends More... | |
bool | turnFoes (const NBEdge *from, const NBEdge *to, int fromLane, const NBEdge *from2, const NBEdge *to2, int fromLane2, bool lefthand=false) const |
return whether the given laneToLane connection originate from the same edge and are in conflict due to turning across each other More... | |
bool | typeWasGuessed () const |
return whether a priority road turns at this node More... | |
void | unsetParameter (const std::string &key) |
Removes a parameter. More... | |
void | updateParameters (const std::map< std::string, std::string > &mapArg) |
Adds or updates all given parameters from the map. More... | |
void | updateSurroundingGeometry () |
update geometry of node and surrounding edges More... | |
bool | writeLogic (OutputDevice &into) const |
writes the XML-representation of the logic as a bitset-logic XML representation More... | |
void | writeParams (OutputDevice &device) const |
write Params in the given outputdevice More... | |
~NBNode () | |
Destructor. More... | |
Atomar getter methods | |
Returns the position of this node | |
const Position & | getPosition () const |
Position | getCenter () const |
Returns a position that is guaranteed to lie within the node shape. More... | |
const EdgeVector & | getIncomingEdges () const |
Returns this node's incoming edges (The edges which yield in this node) More... | |
const EdgeVector & | getOutgoingEdges () const |
Returns this node's outgoing edges (The edges which start at this node) More... | |
const EdgeVector & | getEdges () const |
Returns all edges which participate in this node (Edges that start or end at this node) More... | |
SumoXMLNodeType | getType () const |
Returns the type of this node. More... | |
double | getRadius () const |
Returns the turning radius of this node. More... | |
bool | getKeepClear () const |
Returns the keepClear flag. More... | |
RightOfWay | getRightOfWay () const |
Returns hint on how to compute right of way. More... | |
FringeType | getFringeType () const |
Returns fringe type. More... | |
const std::string & | getName () const |
Returns intersection name. More... | |
Methods for dealing with assigned traffic lights | |
void | addTrafficLight (NBTrafficLightDefinition *tlDef) |
Adds a traffic light to the list of traffic lights that control this node. More... | |
void | removeTrafficLight (NBTrafficLightDefinition *tlDef) |
Removes the given traffic light from this node. More... | |
void | removeTrafficLights (bool setAsPriority=false) |
Removes all references to traffic lights that control this tls. More... | |
bool | isTLControlled () const |
Returns whether this node is controlled by any tls. More... | |
const std::set< NBTrafficLightDefinition * > & | getControllingTLS () const |
Returns the traffic lights that were assigned to this node (The set of tls that control this node) More... | |
void | invalidateTLS (NBTrafficLightLogicCont &tlCont, bool removedConnections, bool addedConnections) |
causes the traffic light to be computed anew More... | |
void | shiftTLConnectionLaneIndex (NBEdge *edge, int offset, int threshold=-1) |
patches loaded signal plans by modifying lane indices above threshold by the given offset More... | |
Prunning the input | |
int | removeSelfLoops (NBDistrictCont &dc, NBEdgeCont &ec, NBTrafficLightLogicCont &tc) |
Removes edges which are both incoming and outgoing into this node. More... | |
Applying offset | |
void | reshiftPosition (double xoff, double yoff) |
Applies an offset to the node. More... | |
void | mirrorX () |
mirror coordinates along the x-axis More... | |
Static Public Member Functions | |
static bool | areParametersValid (const std::string &value, bool report=false, ParameterisedAttrType attrType=ParameterisedAttrType::STRING, const std::string kvsep="=", const std::string sep="|") |
check if given string can be parsed to a parameters map "key1=value1|key2=value2|...|keyN=valueN" More... | |
static PositionVector | bezierControlPoints (const PositionVector &begShape, const PositionVector &endShape, bool isTurnaround, double extrapolateBeg, double extrapolateEnd, bool &ok, NBNode *recordError=0, double straightThresh=DEG2RAD(5), int shapeFlag=0) |
get bezier control points 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 std::string | getNodeIDFromInternalLane (const std::string id) |
returns the node id for internal lanes, crossings and walkingareas More... | |
static bool | isTrafficLight (SumoXMLNodeType type) |
return whether the given type is a traffic light More... | |
static bool | rightTurnConflict (const NBEdge *from, const NBEdge *to, int fromLane, const NBEdge *prohibitorFrom, const NBEdge *prohibitorTo, int prohibitorFromLane) |
return whether the given laneToLane connection is a right turn which must yield to a bicycle crossings More... | |
Static Public Attributes | |
static const int | AVOID_INTERSECTING_LEFT_TURNS |
static const int | AVOID_WIDE_LEFT_TURN |
static const int | AVOID_WIDE_RIGHT_TURN |
flags for controlling shape generation More... | |
static const int | BACKWARD |
static const int | FORWARD |
edge directions (for pedestrian related stuff) More... | |
static const int | FOUR_CONTROL_POINTS |
static const int | SCURVE_IGNORE |
static const double | UNSPECIFIED_RADIUS = -1 |
unspecified lane width More... | |
Protected Attributes | |
std::string | myID |
The name of the object. More... | |
Private Member Functions | |
int | addedLanesRight (NBEdge *out, int addedLanes) const |
check whether this edge has extra lanes on the right side More... | |
void | displaceShapeAtWidthChange (const NBEdge *from, const NBEdge::Connection &con, PositionVector &fromShape, PositionVector &toShape) const |
displace lane shapes to account for change in lane width at this node More... | |
bool | forbidsPedestriansAfter (std::vector< std::pair< NBEdge *, bool > > normalizedLanes, int startIndex) |
return whether there is a non-sidewalk lane after the given index; More... | |
EdgeVector | getEdgesSortedByAngleAtNodeCenter () const |
returns the list of all edges sorted clockwise by getAngleAtNodeToCenter More... | |
void | getEdgesThatApproach (NBEdge *currentOutgoing, EdgeVector &approaching) |
returns a list of edges which are connected to the given outgoing edge More... | |
NBEdge * | getNextCompatibleOutgoing (const NBEdge *incoming, SVCPermissions vehPerm, EdgeVector::const_iterator start, bool clockwise) const |
void | getReduction (const NBEdge *in, const NBEdge *out, int &inOffset, int &outOffset, int &reduction) const |
get the reduction in driving lanes at this junction More... | |
NBNode (const NBNode &s) | |
invalidated copy constructor More... | |
NBNode & | operator= (const NBNode &s) |
invalidated assignment operator More... | |
void | remapRemoved (NBTrafficLightLogicCont &tc, NBEdge *removed, const EdgeVector &incoming, const EdgeVector &outgoing) |
remap removed More... | |
void | removeJoinedTrafficLights () |
remove all traffic light definitions that are part of a joined tls More... | |
void | replaceInConnectionProhibitions (NBEdge *which, NBEdge *by, int whichLaneOff, int byLaneOff) |
replace incoming connections prohibitions More... | |
void | setPriorityJunctionPriorities () |
sets the priorites in case of a priority junction More... | |
Static Private Member Functions | |
static bool | includes (const std::set< NBEdge *, ComparatorIdLess > &super, const std::set< const NBEdge *, ComparatorIdLess > &sub) |
returns whether sub is a subset of super More... | |
static bool | isLongEnough (NBEdge *out, double minLength) |
check if is long enough More... | |
static bool | isParameterValid (const std::string &value, ParameterisedAttrType attrType, const std::string &kvsep, const std::string &sep) |
check if given string can be parsed to a parameter of type "key=value" More... | |
Private Attributes | |
EdgeVector | myAllEdges |
Vector of incoming and outgoing edges. More... | |
ParameterisedAttrType | myAttrType |
parameterised type More... | |
NBConnectionProhibits | myBlockedConnections |
The container for connection block dependencies. More... | |
std::vector< std::unique_ptr< Crossing > > | myCrossings |
Vector of crossings. More... | |
int | myCrossingsLoadedFromSumoNet |
number of crossings loaded from a sumo net More... | |
bool | myDiscardAllCrossings |
whether to discard all pedestrian crossings More... | |
double | myDisplacementError |
geometry error after computation of internal lane shapes More... | |
NBDistrict * | myDistrict |
The district the node is the centre of. More... | |
FringeType | myFringeType |
fringe type of this node More... | |
bool | myHaveCustomPoly |
whether this nodes shape was set by the user More... | |
EdgeVector | myIncomingEdges |
Vector of incoming edges. More... | |
bool | myIsBentPriority |
bool | myKeepClear |
whether the junction area must be kept clear More... | |
std::map< std::string, std::string > | myMap |
The key->value map. More... | |
std::string | myName |
The intersection name (or whatever arbitrary string you wish to attach) More... | |
EdgeVector | myOutgoingEdges |
Vector of outgoing edges. More... | |
PositionVector | myPoly |
the (outer) shape of the junction More... | |
Position | myPosition |
The position the node lies at. More... | |
double | myRadius |
the turning radius (for all corners) at this node in m. More... | |
NBRequest * | myRequest |
Node requests. More... | |
RightOfWay | myRightOfWay |
how to compute right of way for this node More... | |
std::set< NBTrafficLightDefinition * > | myTrafficLights |
traffic lights of node More... | |
SumoXMLNodeType | myType |
The type of the junction. More... | |
bool | myTypeWasGuessed |
whether the node type was guessed rather than loaded More... | |
std::vector< WalkingAreaCustomShape > | myWalkingAreaCustomShapes |
Vector of custom walking areas shapes. More... | |
std::vector< WalkingArea > | myWalkingAreas |
Vector of walking areas. More... | |
Friends | |
class | GNEJunction |
class | NBEdgePriorityComputer |
class | NBNodeCont |
class | NBNodesEdgesSorter |
class | NBNodeTypeComputer |
Represents a single node (junction) during network building.
|
stronginherited |
@brie enum for Parameterised type
Enumerator | |
---|---|
STRING | Parameterised accept strings. |
DOUBLE | Parameterised only accept doubles. |
Definition at line 43 of file Parameterised.h.
NBNode::NBNode | ( | const std::string & | id, |
const Position & | position, | ||
SumoXMLNodeType | type | ||
) |
Constructor.
[in] | id | The id of the node |
[in] | position | The position of the node |
[in] | type | The type of the node |
Definition at line 255 of file NBNode.cpp.
References SUMOXMLDefinitions::isValidNetID(), and Named::myID.
NBNode::NBNode | ( | const std::string & | id, |
const Position & | position, | ||
NBDistrict * | district = 0 |
||
) |
Constructor.
[in] | id | The id of the node |
[in] | position | The position of the node |
[in] | district | The district this district node represents, 0 means no district node |
Definition at line 278 of file NBNode.cpp.
References DEFAULT, DISTRICT, SUMOXMLDefinitions::isValidNetID(), Named::myID, and UNKNOWN.
NBNode::~NBNode | ( | ) |
|
private |
invalidated copy constructor
NBNode::Crossing * NBNode::addCrossing | ( | EdgeVector | edges, |
double | width, | ||
bool | priority, | ||
int | tlIndex = -1 , |
||
int | tlIndex2 = -1 , |
||
const PositionVector & | customShape = PositionVector::EMPTY , |
||
bool | fromSumoNet = false |
||
) |
add a pedestrian crossing to this node
Definition at line 3244 of file NBNode.cpp.
References myCrossings, and myCrossingsLoadedFromSumoNet.
Referenced by NIImporter_SUMO::_loadNetwork(), checkCrossing(), GNEChange_Crossing::redo(), and GNEChange_Crossing::undo().
|
private |
check whether this edge has extra lanes on the right side
Definition at line 1423 of file NBNode.cpp.
References FORWARD, getDirection(), NBEdge::getFirstNonPedestrianLaneIndex(), getIncomingEdges(), NBEdge::getNumLanes(), getOutgoingEdges(), getReduction(), NBEdge::getToNode(), NBEdge::isConnectedTo(), NBEdge::isOffRamp(), MAX2(), MIN2(), MIN3(), PARTRIGHT, RIGHT, and STRAIGHT.
Referenced by computeLanes2Lanes().
void NBNode::addIncomingEdge | ( | NBEdge * | edge | ) |
adds an incoming edge
Definition at line 458 of file NBNode.cpp.
References myAllEdges, and myIncomingEdges.
Referenced by NBEdge::init(), GNENetHelper::AttributeCarriers::insertEdge(), and NBEdge::reinitNodes().
void NBNode::addOutgoingEdge | ( | NBEdge * | edge | ) |
adds an outgoing edge
Definition at line 468 of file NBNode.cpp.
References myAllEdges, and myOutgoingEdges.
Referenced by NBEdge::init(), GNENetHelper::AttributeCarriers::insertEdge(), and NBEdge::reinitNodes().
void NBNode::addSortedLinkFoes | ( | const NBConnection & | mayDrive, |
const NBConnection & | mustStop | ||
) |
add shorted link FOES
Definition at line 1681 of file NBNode.cpp.
References NBConnection::getFrom(), NBConnection::getTo(), myBlockedConnections, and WRITE_WARNING.
Referenced by NIImporter_SUMO::_loadNetwork(), NIVissimDisturbance::addToNode(), NIXMLConnectionsHandler::myStartElement(), and NIVissimConflictArea::setPriorityRegulation().
|
inlineinherited |
Adds this object to the given container.
[in,filled] | cont The container to add this item to |
Definition at line 117 of file Named.h.
References Named::StoringVisitor::add().
void NBNode::addTrafficLight | ( | NBTrafficLightDefinition * | tlDef | ) |
Adds a traffic light to the list of traffic lights that control this node.
[in] | tld | The traffic light that controls this node |
Definition at line 364 of file NBNode.cpp.
References isTrafficLight(), myTrafficLights, myType, RAIL_CROSSING, RAIL_SIGNAL, and TRAFFIC_LIGHT.
Referenced by NBTrafficLightDefinition::addNode(), NBLoadedTLDef::addToSignalGroup(), and NIImporter_OpenDrive::getTLSSecure().
void NBNode::addWalkingAreaShape | ( | EdgeVector | edges, |
const PositionVector & | shape | ||
) |
add custom shape for walkingArea
Definition at line 3183 of file NBNode.cpp.
References NBNode::WalkingAreaCustomShape::edges, myWalkingAreaCustomShapes, and NBNode::WalkingAreaCustomShape::shape.
Referenced by NIImporter_SUMO::_loadNetwork(), and NIXMLConnectionsHandler::addWalkingArea().
return true if the given pedestrian paths are connected at another junction within dist
Definition at line 3146 of file NBNode.cpp.
References NBEdge::getFinalLength(), NBEdge::getFromNode(), NBEdge::getPermissions(), NBEdge::getToNode(), and SVC_PEDESTRIAN.
Referenced by buildWalkingAreas().
|
staticinherited |
check if given string can be parsed to a parameters map "key1=value1|key2=value2|...|keyN=valueN"
Definition at line 217 of file Parameterised.cpp.
References StringTokenizer::getVector(), Parameterised::isParameterValid(), and WRITE_WARNING.
Referenced by GNEAccess::isValid(), GNEBusStop::isValid(), GNECalibrator::isValid(), GNECalibratorFlow::isValid(), GNEChargingStation::isValid(), GNEClosingLaneReroute::isValid(), GNEClosingReroute::isValid(), GNEContainerStop::isValid(), GNEDestProbReroute::isValid(), GNEDetectorE1::isValid(), GNEDetectorE1Instant::isValid(), GNEDetectorE2::isValid(), GNEDetectorE3::isValid(), GNEDetectorEntryExit::isValid(), GNEParkingArea::isValid(), GNEParkingAreaReroute::isValid(), GNEParkingSpace::isValid(), GNEPOI::isValid(), GNEPoly::isValid(), GNERerouter::isValid(), GNERerouterInterval::isValid(), GNERouteProbe::isValid(), GNERouteProbReroute::isValid(), GNETAZ::isValid(), GNETAZSourceSink::isValid(), GNEVaporizer::isValid(), GNEVariableSpeedSign::isValid(), GNEVariableSpeedSignStep::isValid(), GNEEdgeData::isValid(), GNEEdgeRelData::isValid(), GNETAZRelData::isValid(), GNEPerson::isValid(), GNEPersonTrip::isValid(), GNERide::isValid(), GNERoute::isValid(), GNEVehicle::isValid(), GNEVehicleType::isValid(), GNEWalk::isValid(), GNEConnection::isValid(), GNECrossing::isValid(), GNEEdge::isValid(), GNEEdgeType::isValid(), GNEJunction::isValid(), GNELane::isValid(), GNELaneType::isValid(), GNEInspectorFrame::ParametersEditorInspector::onCmdSetParameters(), and GNEFrameAttributesModuls::ParametersEditorCreator::onCmdSetParameters().
void NBNode::avoidOverlap | ( | ) |
fix overlap
Definition at line 3409 of file NBNode.cpp.
References NBEdge::getTurnDestination(), myIncomingEdges, and NBEdge::shiftPositionAtNode().
|
static |
get bezier control points
Definition at line 540 of file NBNode.cpp.
References PositionVector::angleAt2D(), GeomHelper::angleDiff(), Position::angleTo2D(), AVOID_INTERSECTING_LEFT_TURNS, AVOID_WIDE_LEFT_TURN, AVOID_WIDE_RIGHT_TURN, DEBUGCOND2, DEG2RAD, Position::distanceTo2D(), PositionVector::extrapolate2D(), FOUR_CONTROL_POINTS, PositionVector::intersectionPosition2D(), Position::INVALID, M_PI, MAX2(), MIN2(), myDisplacementError, PositionVector::nearest_offset_to_point2D(), PositionVector::positionAtOffset2D(), RAD2DEG, SCURVE_IGNORE, Position::set(), Position::sub(), Position::x(), Position::y(), and Position::z().
Referenced by computeSmoothShape(), GNEEdge::smoothShape(), NWWriter_OpenDrive::writeGeomSmooth(), and NWWriter_OpenDrive::writeInternalEdge().
int NBNode::buildCrossings | ( | ) |
build pedestrian crossings
Definition at line 2642 of file NBNode.cpp.
References BACKWARD, DEBUGCOND, PositionVector::extrapolate(), FORWARD, gDebugFlag1, OptionsCont::getFloat(), Named::getID(), OptionsCont::getOptions(), PositionVector::isNAN(), isTLControlled(), PositionVector::move2side(), myCrossings, myDiscardAllCrossings, NBHelpers::relAngle(), NBEdge::Lane::shape, SUMO_const_laneWidth, toString(), NBEdge::UNSPECIFIED_WIDTH, NBEdge::Lane::width, and WRITE_WARNINGF.
Referenced by buildCrossingsAndWalkingAreas(), and GNENetHelper::AttributeCarriers::updateJunctionID().
void NBNode::buildCrossingsAndWalkingAreas | ( | ) |
build crossings, and walkingareas. Also removes invalid loaded crossings if wished
Definition at line 2560 of file NBNode.cpp.
References buildCrossings(), buildWalkingAreas(), Named::getID(), OptionsCont::getOptions(), myCrossings, myWalkingAreas, toString(), and WRITE_WARNINGF.
Referenced by GNEJunction::rebuildGNECrossings().
void NBNode::buildInnerEdges | ( | ) |
build internal lanes, pedestrian crossings and walking areas
Definition at line 2619 of file NBNode.cpp.
References myDisplacementError, and myIncomingEdges.
void NBNode::buildWalkingAreas | ( | int | cornerDetail, |
double | joinMinDist | ||
) |
build pedestrian walking areas and set connections from/to walkingAreas
[in] | cornerDetail | The detail level when generating the inner curve |
Definition at line 2739 of file NBNode.cpp.
References alreadyConnectedPaths(), PositionVector::append(), computeSmoothShape(), crossingBetween(), DEBUGCOND, Position::distanceTo2D(), NBNode::Crossing::edges, FOUR_CONTROL_POINTS, gDebugFlag1, getCrossings(), getEdgesSortedByAngleAtNodeCenter(), NBEdge::getFromNode(), NBEdge::getID(), Named::getID(), NBEdge::getLanes(), NBEdge::getLaneShape(), NBEdge::getSidewalkID(), PositionVector::getSubpartByIndex(), NBEdge::hasConnectionTo(), NBNode::WalkingArea::hasCustomShape, NBNode::Crossing::id, NBNode::WalkingArea::id, includes(), NBNode::WalkingArea::length, MAX2(), MIN2(), NBNode::WalkingArea::minNextCrossingEdges, NBNode::WalkingArea::minPrevCrossingEdges, PositionVector::move2side(), myAllEdges, myWalkingAreaCustomShapes, myWalkingAreas, NBNode::WalkingArea::nextCrossings, NBNode::WalkingArea::nextSidewalks, NBNode::Crossing::nextWalkingArea, NBEdge::Lane::permissions, NBNode::WalkingArea::prevSidewalks, NBNode::Crossing::prevWalkingArea, PositionVector::push_back_noDoublePos(), PositionVector::push_front_noDoublePos(), PositionVector::reverse(), NBEdge::Lane::shape, NBNode::Crossing::shape, NBNode::WalkingArea::shape, SUMO_const_laneWidth, SVC_PEDESTRIAN, SVC_RAIL_CLASSES, toString(), NBEdge::UNSPECIFIED_WIDTH, NBNode::Crossing::valid, NBEdge::Lane::width, NBNode::Crossing::width, NBNode::WalkingArea::width, and WRITE_WARNINGF.
Referenced by buildCrossingsAndWalkingAreas().
int NBNode::checkCrossing | ( | EdgeVector | candidates | ) |
Definition at line 2441 of file NBNode.cpp.
References addCrossing(), Position::distanceTo2D(), EXTEND_CROSSING_ANGLE_THRESHOLD, gDebugFlag1, NBEdge::getCrossingAngle(), OptionsCont::getFloat(), NBEdge::getFromNode(), NBEdge::getLanes(), NBEdge::getLaneWidth(), NBEdge::getNumLanes(), OptionsCont::getOptions(), NBEdge::getSpeed(), NBEdge::getToNode(), getType(), isTLControlled(), myType, RAIL_CROSSING, NBHelpers::relAngle(), SPLIT_CROSSING_ANGLE_THRESHOLD, SPLIT_CROSSING_WIDTH_THRESHOLD, toString(), and NBEdge::UNSPECIFIED_WIDTH.
Referenced by guessCrossings().
bool NBNode::checkCrossingDuplicated | ( | EdgeVector | edges | ) |
return true if there already exist a crossing with the same edges as the input
Definition at line 2532 of file NBNode.cpp.
References myCrossings.
Referenced by GNECrossing::isValid().
bool NBNode::checkIsRemovable | ( | ) | const |
check if node is removable
Definition at line 2189 of file NBNode.cpp.
References checkIsRemovableReporting().
Referenced by getEdgesToJoin(), NBNodeCont::removeUnwishedNodes(), and GNENet::replaceJunctionByGeometry().
bool NBNode::checkIsRemovableReporting | ( | std::string & | reason | ) | const |
check if node is removable and return reason if not
Definition at line 2195 of file NBNode.cpp.
References NBEdge::getTurnDestination(), myCrossings, myIncomingEdges, myOutgoingEdges, myTrafficLights, myType, and RAIL_SIGNAL.
Referenced by checkIsRemovable(), and GNEJunction::getPopUpMenu().
|
inherited |
Clears the parameter map.
Definition at line 140 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by NLHandler::beginEdgeParsing(), and GNERouteHandler::closeRoute().
PositionVector NBNode::computeInternalLaneShape | ( | const NBEdge * | fromE, |
const NBEdge::Connection & | con, | ||
int | numPoints, | ||
NBNode * | recordError = 0 , |
||
int | shapeFlag = 0 |
||
) | const |
Compute the shape for an internal lane.
[in] | fromE | The starting edge |
[in] | con | The connection for this internal lane |
[in] | numPoints | The number of geometry points for the internal lane |
[in] | recordError | The node itself if the displacement error during shape computation shall be recorded |
Definition at line 705 of file NBNode.cpp.
References PositionVector::append(), AVOID_WIDE_LEFT_TURN, computeSmoothShape(), NBEdge::Connection::customShape, DEBUGCOND, displaceShapeAtWidthChange(), NBEdge::Lane::endOffset, NBEdge::Connection::fromLane, NBEdge::Connection::getDescription(), getDirection(), NBEdge::getEndOffset(), NBEdge::getID(), Named::getID(), NBEdge::getLaneShape(), NBEdge::getLaneStruct(), NBEdge::getLaneWidth(), NBEdge::getNodeBorder(), NBEdge::getNumLanes(), PositionVector::getOrthogonal(), PositionVector::getSubpart(), NBEdge::getTurnDestination(), NBEdge::isBidiRail(), LEFT, PositionVector::length(), PositionVector::length2D(), PositionVector::reverse(), NBEdge::Lane::shape, NBEdge::startShapeAt(), NBEdge::Connection::toEdge, NBEdge::Connection::toLane, TURN, and WRITE_WARNINGF.
Referenced by NBEdge::buildInnerEdges(), and NBEdge::haveIntersection().
void NBNode::computeKeepClear | ( | ) |
compute keepClear status for all connections
Definition at line 964 of file NBNode.cpp.
References geometryLike(), getLinkState(), hasConflict(), NBRequest::hasConflictAtLink(), isTLControlled(), KEEPCLEAR_FALSE, KEEPCLEAR_UNSPECIFIED, LINKSTATE_MAJOR, myCrossings, myIncomingEdges, myKeepClear, and myRequest.
void NBNode::computeLanes2Lanes | ( | ) |
computes the connections of lanes to edges
Definition at line 1079 of file NBNode.cpp.
References addedLanesRight(), NBEdge::addLane2LaneConnections(), Bresenham::compute(), NBEdge::COMPUTED, DEBUGCOND, FORWARD, NBEdge::Connection::fromLane, NBEdge::getAngleAtNode(), GeomHelper::getCCWAngleDiff(), GeomHelper::getCWAngleDiff(), getDirection(), getEdgesThatApproach(), NBEdge::getFirstNonPedestrianLaneIndex(), NBEdge::Connection::getID(), Named::getID(), NBEdge::getNumLanes(), NBEdge::getPermissions(), NBEdge::getPermissionVariants(), getReduction(), NBEdge::getSpecialLane(), NBEdge::getStep(), NBEdge::getTurnDestination(), getVehicleClassNames(), NBEdge::isConnectedTo(), isLongEnough(), NBEdge::isTurningDirectionAt(), NBEdge::LANES2EDGES, NBEdge::LANES2LANES_DONE, LEFT, MAX2(), MIN2(), MIN_WEAVE_LENGTH, myIncomingEdges, myOutgoingEdges, myType, NBNode::ApproachingDivider::numAvailableLanes(), PARTLEFT, PARTRIGHT, RAIL_CROSSING, RIGHT, NBEdge::setConnection(), STRAIGHT, SVC_BICYCLE, SVC_PEDESTRIAN, SVC_TRAM, NBEdge::Connection::toEdge, NBEdge::Connection::toLane, TURN, NBEdge::VALIDATED, and ZIPPER.
void NBNode::computeLogic | ( | const NBEdgeCont & | ec | ) |
computes the node's type, logic and traffic light
Definition at line 918 of file NBNode.cpp.
References NBRequest::buildBitfieldLogic(), DEAD_END, DISTRICT, Named::getID(), myAllEdges, myBlockedConnections, myIncomingEdges, myOutgoingEdges, myRequest, myType, NOJUNCTION, numNormalConnections(), removeJoinedTrafficLights(), SUMO_MAX_CONNECTIONS, toString(), TRAFFIC_LIGHT, TRAFFIC_LIGHT_NOJUNCTION, and WRITE_WARNINGF.
void NBNode::computeLogic2 | ( | bool | checkLaneFoes | ) |
compute right-of-way logic for all lane-to-lane connections
Definition at line 957 of file NBNode.cpp.
References NBRequest::computeLogic(), and myRequest.
void NBNode::computeNodeShape | ( | double | mismatchThreshold | ) |
Compute the junction shape for this node.
[in] | mismatchThreshold | The threshold for warning about shapes which are away from myPosition |
Definition at line 1040 of file NBNode.cpp.
References PositionVector::around(), NBNodeShapeComputer::compute(), PositionVector::distance2D(), OptionsCont::getOptions(), NBNodeShapeComputer::getRadius(), myHaveCustomPoly, Named::myID, myIncomingEdges, myOutgoingEdges, myPoly, myPosition, myRadius, PositionVector::push_back_noDoublePos(), UNSPECIFIED_RADIUS, and WRITE_WARNINGF.
Referenced by sortEdges(), and updateSurroundingGeometry().
PositionVector NBNode::computeSmoothShape | ( | const PositionVector & | begShape, |
const PositionVector & | endShape, | ||
int | numPoints, | ||
bool | isTurnaround, | ||
double | extrapolateBeg, | ||
double | extrapolateEnd, | ||
NBNode * | recordError = 0 , |
||
int | shapeFlag = 0 |
||
) | const |
Compute a smooth curve between the given geometries.
[in] | begShape | The geometry at the start |
[in] | endShape | The geometry at the end |
[in] | numPoints | The number of geometry points for the internal lane |
[in] | isTurnaround | Whether this shall be the shape for a turnaround |
[in] | extrapolateBeg | Extrapolation distance at the beginning |
[in] | extrapolateEnd | Extrapolation distance at the end |
[in] | recordError | The node itself if the displacement error during shape computation shall be recorded |
Definition at line 513 of file NBNode.cpp.
References PositionVector::bezier(), bezierControlPoints(), DEBUGCOND, DEG2RAD, Named::getID(), and PositionVector::smoothedZFront().
Referenced by buildWalkingAreas(), computeInternalLaneShape(), NBNodeShapeComputer::getSmoothCorner(), and GNEGeometry::Lane2laneConnection::updateLane2laneConnection().
return true if the given edges are connected by a crossing
Definition at line 3125 of file NBNode.cpp.
References getCrossings(), and myAllEdges.
Referenced by buildWalkingAreas().
void NBNode::discardAllCrossings | ( | bool | rejectAll | ) |
discard all current (and optionally future) crossings
Definition at line 2603 of file NBNode.cpp.
References myCrossings, and myDiscardAllCrossings.
void NBNode::discardWalkingareas | ( | ) |
discard previously built walkingareas (required for repeated computation by netedit)
Definition at line 2613 of file NBNode.cpp.
References myWalkingAreas.
|
private |
displace lane shapes to account for change in lane width at this node
Definition at line 795 of file NBNode.cpp.
References NBEdge::Connection::fromLane, getDirection(), NBEdge::getLaneWidth(), NBEdge::getNumLanes(), NBEdge::getPermissions(), isConstantWidthTransition(), LEFT, PositionVector::move2side(), myIncomingEdges, myOutgoingEdges, PARTLEFT, SVC_BICYCLE, NBEdge::Connection::toEdge, NBEdge::Connection::toLane, and TURN.
Referenced by computeInternalLaneShape().
EdgeVector NBNode::edgesBetween | ( | const NBEdge * | e1, |
const NBEdge * | e2 | ||
) | const |
return all edges that lie clockwise between the given edges
Definition at line 3167 of file NBNode.cpp.
References myAllEdges, and NBContHelper::nextCW().
bool NBNode::foes | ( | const NBEdge *const | from1, |
const NBEdge *const | to1, | ||
const NBEdge *const | from2, | ||
const NBEdge *const | to2 | ||
) | const |
Returns the information whether the given flows cross.
[in] | from1 | The starting edge of the first stream |
[in] | to1 | The ending edge of the first stream |
[in] | from2 | The starting edge of the second stream |
[in] | to2 | The ending edge of the second stream |
Definition at line 1965 of file NBNode.cpp.
References NBRequest::foes(), and myRequest.
Referenced by NBEdge::buildInnerEdges(), NBTrafficLightDefinition::foes(), NBTrafficLightDefinition::forbids(), mergeConflict(), needsCont(), and tlsContConflict().
bool NBNode::forbids | ( | const NBEdge *const | possProhibitorFrom, |
const NBEdge *const | possProhibitorTo, | ||
const NBEdge *const | possProhibitedFrom, | ||
const NBEdge *const | possProhibitedTo, | ||
bool | regardNonSignalisedLowerPriority | ||
) | const |
Returns the information whether "prohibited" flow must let "prohibitor" flow pass.
[in] | possProhibitedFrom | The maybe prohibited connection's begin |
[in] | possProhibitedTo | The maybe prohibited connection's end |
[in] | possProhibitorFrom | The maybe prohibiting connection's begin |
[in] | possProhibitorTo | The maybe prohibiting connection's end |
[in] | regardNonSignalisedLowerPriority | Whether the right of way rules without traffic lights shall be regarded |
Definition at line 1955 of file NBNode.cpp.
References NBRequest::forbids(), and myRequest.
Referenced by NBEdge::buildInnerEdges(), and NBTrafficLightDefinition::forbids().
|
private |
return whether there is a non-sidewalk lane after the given index;
Definition at line 2549 of file NBNode.cpp.
Referenced by guessCrossings().
bool NBNode::geometryLike | ( | ) | const |
whether this is structurally similar to a geometry node
Definition at line 3192 of file NBNode.cpp.
References myIncomingEdges, and myOutgoingEdges.
Referenced by NBEdge::appendTurnaround(), NBEdge::computeEdgeShape(), computeKeepClear(), NBTurningDirectionsComputer::computeTurnDirectionsForNode(), NBNodeCont::discardTrafficLights(), NBNodeCont::generateNodeClusters(), NBNodeCont::guessTLs(), NBNodeCont::pruneLongEdges(), GNEEdge::smoothShape(), NBEdge::startShapeAt(), NWWriter_OpenDrive::writeInternalEdge(), and NWWriter_OpenDrive::writeNetwork().
bool NBNode::geometryLike | ( | const EdgeVector & | incoming, |
const EdgeVector & | outgoing | ||
) | const |
Definition at line 3197 of file NBNode.cpp.
References NBEdge::getAngleAtNode(), NBEdge::isTurningDirectionAt(), MAX2(), and NBHelpers::relAngle().
Position NBNode::getCenter | ( | ) | const |
Returns a position that is guaranteed to lie within the node shape.
Definition at line 3348 of file NBNode.cpp.
References PositionVector::around(), PositionVector::closePolygon(), PositionVector::distance2D(), PositionVector::getPolygonCenter(), myPoly, and myPosition.
Referenced by GNEJunction::drawGL().
int NBNode::getConnectionIndex | ( | const NBEdge * | from, |
const NBEdge::Connection & | con | ||
) | const |
return the index of the given connection
Definition at line 3329 of file NBNode.cpp.
References NBEdge::Connection::fromLane, myIncomingEdges, NBEdge::Connection::toEdge, and NBEdge::Connection::toLane.
Referenced by GNEProhibitionFrame::buildProhibition(), GNELane::drawLinkNo(), and NBRequest::mustBrake().
get connection to certain node
Definition at line 2303 of file NBNode.cpp.
References myOutgoingEdges.
Referenced by NBEdgeCont::guessRoundabouts(), NIImporter_VISUM::parse_EdgePolys(), NIImporter_VISUM::parse_Turns(), and NGNet::toNB().
|
inline |
Returns the traffic lights that were assigned to this node (The set of tls that control this node)
Definition at line 322 of file NBNode.h.
References myTrafficLights.
Referenced by NIXMLTrafficLightsHandler::addTlConnection(), GNEConnection::changeTLIndex(), GNENet::computeJunction(), NBNodeCont::discardTrafficLights(), GNEJunction::getAttribute(), GNEDialogACChooser::getObjectName(), NIImporter_OpenDrive::getTLSSecure(), NBNodeCont::guessTLs(), GNETLSEditorFrame::TLSAttributes::initTLSAttributes(), GNEJunction::invalidateTLS(), GNEConnection::isAttributeEnabled(), GNEConnection::isValid(), GNECrossing::isValid(), GNETLSEditorFrame::onCmdDefCreate(), NIXMLNodesHandler::processNodeType(), NIXMLNodesHandler::processTrafficLightDefinitions(), NBEdge::removeFromConnections(), GNEJunction::removeTLSConnections(), GNEJunction::replaceIncomingConnections(), GNEJunction::setAttribute(), NBEdgeCont::splitAt(), and NWWriter_XML::writeNodes().
NBNode::Crossing * NBNode::getCrossing | ( | const EdgeVector & | edges, |
bool | hardFail = true |
||
) | const |
return the crossing with the given Edges
Definition at line 3281 of file NBNode.cpp.
References myCrossings.
NBNode::Crossing * NBNode::getCrossing | ( | const std::string & | id | ) | const |
return the crossing with the given id
Definition at line 3270 of file NBNode.cpp.
References myCrossings.
Referenced by GNECrossing::checkEdgeBelong(), GNECrossing::drawGL(), GNECrossing::getACParametersMap(), GNECrossing::getAttribute(), GNECrossing::getCrossingShape(), GNECrossing::getNBCrossing(), GNECrossing::isAttributeEnabled(), GNECrossing::isValid(), GNEChange_Crossing::redo(), GNECrossing::setAttribute(), GNECrossing::setMoveShape(), GNEChange_Crossing::undo(), GNECrossing::updateCenteringBoundary(), GNECrossing::updateGeometry(), and NWWriter_SUMO::writeNetwork().
std::vector< NBNode::Crossing * > NBNode::getCrossings | ( | ) | const |
return this junctions pedestrian crossings
Definition at line 2585 of file NBNode.cpp.
References myCrossings.
Referenced by NBEdge::buildInnerEdges(), buildWalkingAreas(), NBRequest::computeCrossingResponse(), NBRequest::computeLogic(), crossingBetween(), NBRequest::getFoesString(), NBRequest::getResponseString(), NBRequest::mustBrake(), NBRequest::numLinks(), setCrossingTLIndices(), NWWriter_SUMO::writeInternalEdges(), NWWriter_SUMO::writeInternalNodes(), NWWriter_SUMO::writeJunction(), and NWWriter_SUMO::writeNetwork().
|
inline |
Definition at line 702 of file NBNode.h.
References myCrossings.
Referenced by GNEJunction::rebuildGNECrossings().
LinkDirection NBNode::getDirection | ( | const NBEdge *const | incoming, |
const NBEdge *const | outgoing, | ||
bool | leftHand = false |
||
) | const |
Returns the representation of the described stream's direction.
[in] | incoming | The edge the stream starts at |
[in] | outgoing | The edge the stream ends at |
[in] | leftHand | Whether a lefthand network is being built. Should only be set at writing time |
Definition at line 2078 of file NBNode.cpp.
References NBEdge::getAngleAtNode(), NBEdge::getJunctionPriority(), getNextCompatibleOutgoing(), NBEdge::getPermissions(), NBEdge::isTurningDirectionAt(), LEFT, myAllEdges, NODIR, NBHelpers::normRelAngle(), PARTLEFT, PARTRIGHT, RIGHT, STRAIGHT, SVC_PEDESTRIAN, TURN, and TURN_LEFTHAND.
Referenced by addedLanesRight(), NBEdge::addStraightConnections(), NBEdge::appendTurnaround(), NBEdge::bothLeftTurns(), NBEdge::buildInnerEdges(), NBTrafficLightDefinition::collectAllLinks(), computeInternalLaneShape(), computeLanes2Lanes(), NBOwnTLDef::computeUnblockedWeightedStreamNumber(), displaceShapeAtWidthChange(), GNELane::drawArrows(), NBTrafficLightDefinition::forbids(), NBNodeShapeComputer::getDefaultRadius(), getLinkState(), NWWriter_SUMO::getOppositeInternalID(), NBEdge::MainDirections::MainDirections(), NBRequest::mergeConflict(), NBRequest::mustBrake(), NBRequest::mustBrakeForCrossing(), needsCont(), NBRequest::oppositeLeftTurnConflict(), NBOwnTLDef::patchStateForCrossings(), rightTurnConflict(), NBRequest::setBlocking(), NBEdgePriorityComputer::setPriorityJunctionPriorities(), GNENet::splitJunction(), NWWriter_SUMO::writeConnection(), NWWriter_SUMO::writeInternalConnections(), and NWWriter_OpenDrive::writeInternalEdge().
|
inline |
compute the displacement error during s-curve computation
Definition at line 611 of file NBNode.h.
References myDisplacementError.
Referenced by NBNodeShapeComputer::computeNodeShapeDefault().
|
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 122 of file Parameterised.cpp.
References Parameterised::myMap, StringUtils::toDouble(), and WRITE_WARNING.
Referenced by MSDevice_Battery::buildVehicleDevices(), MSDevice_ElecHybrid::buildVehicleDevices(), MSSOTLPolicy5DStimulus::getStimCox(), MSSOTLPolicy5DStimulus::getStimCoxExpDispersionIn(), MSSOTLPolicy5DStimulus::getStimCoxExpDispersionOut(), MSSOTLPolicy5DStimulus::getStimCoxExpIn(), MSSOTLPolicy5DStimulus::getStimCoxExpOut(), MSSOTLPolicy5DStimulus::getStimDivisorDispersionIn(), MSSOTLPolicy5DStimulus::getStimDivisorDispersionOut(), MSSOTLPolicy5DStimulus::getStimDivisorIn(), MSSOTLPolicy5DStimulus::getStimDivisorOut(), MSSOTLPolicy5DStimulus::getStimOffsetDispersionIn(), MSSOTLPolicy5DStimulus::getStimOffsetDispersionOut(), MSSOTLPolicy5DStimulus::getStimOffsetIn(), MSSOTLPolicy5DStimulus::getStimOffsetOut(), and MSSOTLPolicy5DFamilyStimulus::MSSOTLPolicy5DFamilyStimulus().
|
inline |
Returns all edges which participate in this node (Edges that start or end at this node)
Definition at line 264 of file NBNode.h.
References myAllEdges.
Referenced by NBNodeShapeComputer::compute(), NBNodeShapeComputer::computeNodeShapeDefault(), NBNodeShapeComputer::computeNodeShapeSmall(), NBNodeTypeComputer::computeNodeTypes(), GNENet::createRoundabout(), GNENet::deleteJunction(), NBNodeCont::feasibleCluster(), NBNodeCont::generateNodeClusters(), NBNodeCont::getClusterNeighbors(), NBNodeShapeComputer::getDefaultRadius(), NIImporter_OpenStreetMap::getNeighboringNodes(), NBRampsComputer::getOffRampEdges(), NBEdgeCont::guessRoundabouts(), isNearDistrict(), GNEJunction::mirrorXLeftHand(), NBNodeCont::pruneClusterFringe(), GNENet::removeSolitaryJunctions(), and NBNodeCont::removeUnwishedNodes().
|
private |
returns the list of all edges sorted clockwise by getAngleAtNodeToCenter
Definition at line 3366 of file NBNode.cpp.
References gDebugFlag1, myAllEdges, and toString().
Referenced by buildWalkingAreas(), and guessCrossings().
|
private |
returns a list of edges which are connected to the given outgoing edge
Definition at line 1487 of file NBNode.cpp.
References myAllEdges, and NBContHelper::nextCW().
Referenced by computeLanes2Lanes().
get edges to join
Definition at line 2262 of file NBNode.cpp.
References checkIsRemovable(), NBEdge::getTurnDestination(), myIncomingEdges, and myOutgoingEdges.
Referenced by NBNodeCont::removeUnwishedNodes(), and GNENet::replaceJunctionByGeometry().
Position NBNode::getEmptyDir | ( | ) | const |
Returns something like the most unused direction Should only be used to add source or sink nodes.
Definition at line 1755 of file NBNode.cpp.
References Position::add(), getPosition(), Position::mul(), myIncomingEdges, myOutgoingEdges, myPosition, Position::norm2d(), Position::sub(), Position::x(), and Position::y().
std::vector< std::pair< Position, std::string > > NBNode::getEndPoints | ( | ) | const |
return list of unique endpoint coordinates of all edges at this node
Definition at line 3527 of file NBNode.cpp.
References Position::almostSame(), and myAllEdges.
Referenced by GNEJunction::getPopUpMenu(), and GNENet::splitJunction().
const std::string NBNode::getFoes | ( | int | linkIndex | ) | const |
get the 'foes' string (conflict bit set) of the right-of-way logic
Definition at line 1003 of file NBNode.cpp.
References NBRequest::getFoes(), and myRequest.
Referenced by GNEProhibitionFrame::buildProhibition().
|
inline |
Returns fringe type.
Definition at line 291 of file NBNode.h.
References myFringeType.
Referenced by NBEdge::appendTurnaround(), GNEJunction::getAttribute(), NWWriter_SUMO::writeJunction(), and NWWriter_XML::writeNodes().
|
inlineinherited |
Returns the id.
Definition at line 73 of file Named.h.
References Named::myID.
Referenced by MSLCM_LC2013::_patchSpeed(), MSLCM_SL2015::_patchSpeed(), MSCFModel_ACC::_v(), MSCFModel_CACC::_v(), MSCFModel_Wiedemann::_v(), MSLCM_LC2013::_wantsChange(), MSLCM_SL2015::_wantsChangeSublane(), MSTransportableControl::abortAnyWaitingForVehicle(), MSLaneChangerSublane::abortLCManeuver(), MSLCM_LC2013::adaptSpeedToPedestrians(), MSVehicle::adaptToLeader(), MSVehicle::adaptToLeaders(), MSVehicleTransfer::add(), MSPModel_Striping::add(), PCPolyContainer::add(), ShapeContainer::add(), MSDetectorControl::add(), NLTriggerBuilder::addAccess(), RORouteDef::addAlternative(), MSLane::addApproachingLane(), MSChargingStation::addChargeValueForOutput(), MSOverheadWire::addChargeValueForOutput(), NBNodeCont::addCluster2Join(), NLHandler::addConnection(), NBLoadedSUMOTLDef::addConnection(), MSPModel_Striping::addCrossingVehs(), RODFDetectorCon::addDetector(), RONet::addEdge(), ROJTREdge::addFollowerProbability(), MSLCM_SL2015::addLCSpeedAdvice(), MSTLLogicControl::TLSLogicVariants::addLogic(), MSLane::addNeigh(), RONet::addNode(), MSTractionSubstation::addOverheadWireClampToCircuit(), MSTractionSubstation::addOverheadWireInnerSegmentToCircuit(), MSTractionSubstation::addOverheadWireSegmentToCircuit(), NIImporter_SUMO::addPhase(), GUIEdge::addRerouter(), MSDispatch::addReservation(), MSRouteHandler::addRide(), RONet::addRouteDef(), NIXMLEdgesHandler::addSplit(), NBTrafficLightLogic::addStep(), MSRouteHandler::addStop(), RORouteHandler::addStop(), ROVehicle::addStop(), MSBaseVehicle::addStop(), MSNet::addStoppingPlace(), MSVehicle::addTransportable(), AGActivityTripWriter::addTrip(), MSRouteHandler::addVehicleStopsToImplicitRoute(), NIXMLConnectionsHandler::addWalkingArea(), MSTransportable::appendStage(), LIBSUMO_NAMESPACE::Person::appendWalkingStage(), MSCFModel::applyHeadwayAndSpeedDifferencePerceptionErrors(), MSCFModel::applyHeadwayPerceptionError(), libsumo::Helper::applySubscriptionFilterLateralDistanceSinglePass(), libsumo::Helper::applySubscriptionFilters(), MSDevice_ToC::awarenessRecoveryStep(), GUITrafficLightLogicWrapper::begin2TrackPhases(), MSPModel_Striping::blockedAtDist(), MSLink::blockedAtTime(), MSLink::blockedByFoe(), MSVehicle::boardTransportables(), NLEdgeControlBuilder::build(), NIVisumTL::build(), RODFNet::buildApproachList(), MSSOTLE2Sensors::buildContinueSensior(), MSSOTLE2Sensors::buildCountSensorForLane(), MSSOTLE2Sensors::buildCountSensorForOutLane(), buildCrossings(), buildCrossingsAndWalkingAreas(), MSTransportableDevice_Routing::buildDevices(), MSTransportableDevice_FCD::buildDevices(), NIImporter_VISUM::buildDistrictNode(), MSRailSignal::LinkInfo::buildDriveWay(), NLDetectorBuilder::buildE2Detector(), RODFNet::buildEdgeFlowMap(), NBEdge::buildInnerEdges(), NLTriggerBuilder::buildInnerOverheadWireSegments(), GNETLSEditorFrame::buildInternalLanes(), NIVissimEdge::buildNBEdge(), NGEdge::buildNBEdge(), NBRampsComputer::buildOffRamp(), NBRampsComputer::buildOnRamp(), MSRailSignal::DriveWay::buildRoute(), MELoop::buildSegmentsFor(), MSSOTLE2Sensors::buildSensorForLane(), MSSOTLE2Sensors::buildSensorForOutLane(), LIBSUMO_NAMESPACE::Vehicle::buildStopParameters(), MSDevice_Battery::buildVehicleDevices(), MSDevice_Bluelight::buildVehicleDevices(), MSDevice_BTreceiver::buildVehicleDevices(), MSDevice_BTsender::buildVehicleDevices(), MSDevice_DriverState::buildVehicleDevices(), MSDevice_ElecHybrid::buildVehicleDevices(), MSDevice_Emissions::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), MSDevice_FCD::buildVehicleDevices(), MSDevice_Routing::buildVehicleDevices(), MSDevice_SSM::buildVehicleDevices(), MSDevice_Taxi::buildVehicleDevices(), MSDevice_ToC::buildVehicleDevices(), MSDevice_Tripinfo::buildVehicleDevices(), MSDevice_Transportable::buildVehicleDevices(), MSDevice_Vehroutes::buildVehicleDevices(), buildWalkingAreas(), MSBaseVehicle::calculateArrivalParams(), MSSwarmTrafficLightLogic::calculateEtaDiff(), MSSwarmTrafficLightLogic::calculateEtaRatio(), MSE2Collector::calculateTimeLossAndTimeOnDetector(), MSSOTLPolicyBasedTrafficLightLogic::canRelease(), MSLaneChanger::change(), MSLaneChangerSublane::change(), MSLCM_SL2015::changed(), MSLaneChanger::changeOpposite(), MELoop::changeSegment(), MSSimpleTrafficLightLogic::changeStepAndDuration(), LIBSUMO_NAMESPACE::Vehicle::changeTarget(), MSTLLogicControl::check2Switch(), MSEdge::checkAndRegisterBiDirEdge(), MSLaneChanger::checkChange(), MSLaneChangerSublane::checkChangeSublane(), NBEdgeCont::checkConsistency(), MSRailSignal::DriveWay::checkCrossingFlanks(), MSDevice_ToC::checkDynamicToC(), MSLane::checkFailure(), MSLane::checkForPedestrians(), GUIApplicationWindow::checkGamingEvents(), MSVehicleTransfer::checkInsertions(), MSVehicle::checkLinkLeader(), MSDevice_Battery::checkParam(), MSDevice_ElecHybrid::checkParam(), MSE2Collector::checkPositioning(), MSVehicle::checkReversal(), MSVehicle::checkRewindLinkLanes(), MSLCM_SL2015::checkStrategicChange(), MSAbstractLaneChangeModel::checkTraCICommands(), MSLaneChanger::checkTraCICommands(), MSSwarmTrafficLightLogic::choosePolicy(), MSDevice_SSM::classifyEncounter(), ShapeContainer::clearHighlights(), NBTrafficLightLogic::closeBuilding(), ODDistrictHandler::closeDistrict(), NLHandler::closeEdge(), MSDevice_SSM::closeEncounter(), MSRouteHandler::closeFlow(), RORouteHandler::closeRouteDistribution(), RORouteHandler::closeVehicle(), NBTrafficLightDefinition::collectAllLinks(), NBTrafficLightDefinition::collectEdges(), NBLoadedSUMOTLDef::collectEdgeVectors(), NBLoadedTLDef::collectLinks(), MSLCM_SL2015::commitManoeuvre(), IntermodalRouter< E, L, N, V >::compute(), ROJTRRouter::compute(), NBTrafficLightDefinition::compute(), MSVehicle::computeAngle(), MSDispatch::computeDetourTime(), NBNodeShapeComputer::computeEdgeBoundaries(), computeInternalLaneShape(), computeLanes2Lanes(), computeLogic(), NBOwnTLDef::computeLogicAndConts(), NBNodeShapeComputer::computeNodeShapeDefault(), NBNodeShapeComputer::computeNodeShapeSmall(), NBNodeTypeComputer::computeNodeTypes(), RODFNet::computeRoutesFor(), NBTrafficLightLogicCont::computeSingleLogic(), computeSmoothShape(), MSLCM_SL2015::computeSpeedLat(), MSDevice_SSM::computeSSMs(), NBTurningDirectionsComputer::computeTurnDirectionsForNode(), MSVehicle::Manoeuvre::configureEntryManoeuvre(), MSVehicle::Manoeuvre::configureExitManoeuvre(), NGNet::connect(), MSRailSignal::constraintsAllow(), MSLaneChanger::continueChange(), MSLaneChangerSublane::continueChangeSublane(), LIBSUMO_NAMESPACE::Person::convertTraCIStage(), NBLoadedSUMOTLDef::copyIndices(), NBOwnTLDef::corridorLike(), MSSOTLWaveTrafficLightLogic::countVehicles(), MSSOTLE2Sensors::countVehicles(), MSDevice_SSM::createEncounters(), GUINet::createTLWrapper(), MSDevice_Taxi::customerArrived(), MSDevice_ToC::deactivateDeliberateLCs(), MSRailSignal::DriveWay::deadlockLaneOccupied(), libsumo::Helper::debugPrint(), MSLCM_SL2015::decideDirection(), MSActuatedTrafficLightLogic::decideNextPhase(), MSDeterministicHiLevelTrafficLightLogic::decideNextPhase(), MSSOTLPolicyBasedTrafficLightLogic::decideNextPhase(), MSSwarmTrafficLightLogic::decideNextPhase(), MSDeterministicHiLevelTrafficLightLogic::decidePolicy(), MSSwarmTrafficLightLogic::decidePolicy(), MSVehicleControl::deleteVehicle(), MSDevice_ElecHybrid::deleteVehicleFromCircuit(), MSLane::detectCollisionBetween(), MSLane::detectCollisions(), MSE3Collector::detectorUpdate(), MSLane::detectPedestrianJunctionCollision(), NIVissimDistrictConnection::dict_BuildDistrictNodes(), NIVissimDistrictConnection::dict_BuildDistricts(), NBNodeCont::discardTrafficLights(), MSDispatch_Greedy::dispatch(), MSDispatch_GreedyShared::dispatch(), MSDispatch_RouteExtension::dispatch(), MSDevice_Taxi::dispatchShared(), MSDevice_SSM::Encounter::Encounter(), MSAbstractLaneChangeModel::endLaneChangeManeuver(), MSE3Collector::enter(), MSVehicle::enterLaneAtMove(), MSVehicle::Manoeuvre::entryManoeuvreIsComplete(), MSTransportableControl::erase(), METriggeredCalibrator::execute(), Command_SaveTLSProgram::execute(), Command_SaveTLSState::execute(), Command_SaveTLSSwitches::execute(), Command_SaveTLSSwitchStates::execute(), MSVTypeProbe::execute(), MSPModel_Striping::MovePedestrians::execute(), MSCalibrator::execute(), MSVehicle::executeMove(), MSLane::executeMovements(), NBNodeCont::extract(), NBTrafficLightLogicCont::extract(), MSCFModel::finalizeSpeed(), MSCFModel_Daniel1::finalizeSpeed(), MSLaneChanger::findCandidate(), libsumo::Helper::findCloserLane(), MSRailSignal::DriveWay::findFlankProtection(), MSDevice_SSM::findFoeConflictLane(), LIBSUMO_NAMESPACE::Simulation::findIntermodalRoute(), MSDevice_SSM::findSurroundingVehicles(), MSDevice_SSM::flushConflicts(), MSDevice_SSM::flushGlobalMeasures(), MSCFModel_CACC::followSpeed(), MSCFModel_W99::followSpeed(), NBTrafficLightDefinition::forbids(), NBNodeCont::generateNodeClusters(), MSDevice_Tripinfo::generateOutput(), GUITrafficLightLogicWrapper::getActiveTLLogic(), RODFDetectorCon::getAggFlowFor(), RODFDetectorCon::getAnyDetectorForEdge(), MSPModel_Striping::getArbitraryPath(), MSVehicle::getBackPosition(), MSVehicle::getBackPositionOnLane(), LIBSUMO_NAMESPACE::Vehicle::getBestLanes(), NBOwnTLDef::getBestPair(), NBRailwayTopologyAnalyzer::getBrokenRailNodes(), MSLane::getCanonicalPredecessorLane(), MSLane::getCanonicalSuccessorLane(), MSVehicle::getCenterOnEdge(), MSDevice_Battery::getChargingStationID(), MSRailSignal::getClickableTLLinkID(), GUIVehicle::getColorValue(), MSLaneChanger::getColumnleader(), LIBSUMO_NAMESPACE::TrafficLight::getControlledLinks(), MSLane::getCriticalLeader(), NBNodeShapeComputer::getDefaultRadius(), MSLink::getDescription(), MSStop::getDescription(), NBTrafficLightDefinition::getDescription(), GUIPerson::getDestinationEdgeID(), MSDevice_SSM::getDetectionRange(), RODFNet::getDetectorEdge(), MSActuatedTrafficLightLogic::getDetectorPriority(), MSRailSignal::LinkInfo::getDriveWay(), GUIPerson::getEdgeID(), GUIMEVehicle::getEdgeID(), MSMeanData::getEdgeID(), libsumo::Calibrator::getEdgeID(), LIBSUMO_NAMESPACE::RouteProbe::getEdgeID(), MSDevice_SSM::getExtraTime(), MSPModel_Remote::getFirstPedestrianLane(), MSLane::getFirstVehicleInformation(), MSLane::getFollower(), MSLane::getFollowersOnConsecutive(), GUIPerson::getFromEdgeID(), MSCalibrator::getID(), NBEdge::getID(), MSRailSignal::getJunctionLinkID(), RORouteHandler::getJunctionTaz(), libsumo::Calibrator::getLaneID(), MSParkingArea::getLastFreePosWithReservation(), MSLane::getLastVehicleInformation(), MSVehicle::getLatOffset(), MSLane::getLeader(), MSLink::getLeaderInfo(), MSLane::getLeaderOnConsecutive(), MSLaneChangerSublane::getLeaders(), MSLane::getLeadersOnConsecutive(), MSLink::getLengthBeforeCrossing(), MSDeterministicHiLevelTrafficLightLogic::getMeanSpeedForInputLanes(), MSDeterministicHiLevelTrafficLightLogic::getMeanSpeedForOutputLanes(), MSDevice_SSM::getMeasuresAndThresholds(), NIImporter_VISUM::getNamedEdgeContinuating(), MSPModel_Striping::getNeighboringObstacles(), MSPerson::getNextEdge(), MSPModel_Striping::getNextLane(), MSPModel_Striping::getNextLaneObstacles(), MSLane::getOppositeFollower(), MSLane::getOppositeLeader(), MSLane::getOppositePos(), MSDevice_SSM::getOutputFilename(), MSDevice_ElecHybrid::getOverheadWireSegmentID(), MSOverheadWire::getOverheadWireSegmentName(), MSDevice_ToC::getParameter(), LIBSUMO_NAMESPACE::Simulation::getParameter(), GUIContainer::getParameterWindow(), GUILane::getParameterWindow(), GUITrafficLightLogicWrapper::getParameterWindow(), GUILane::getParentName(), MSLane::getPartialBehind(), MSSimpleDriverState::getPerceivedHeadway(), MSSimpleDriverState::getPerceivedSpeedDifference(), MSSOTLTrafficLightLogic::getPhaseIndexWithMaxCTS(), MSSwarmTrafficLightLogic::getPheromoneForInputLanes(), MSSwarmTrafficLightLogic::getPheromoneForOutputLanes(), PolygonDynamics::getPolygonID(), GUITrafficLightLogicWrapper::getPopUpMenu(), NLTriggerBuilder::getPosition(), NLDetectorBuilder::getPositionChecking(), MSBaseVehicle::getPrefixedParameter(), MSCFModel_CC::getRadarMeasurements(), MSLaneChanger::getRealFollower(), MSLaneChanger::getRealLeader(), LIBSUMO_NAMESPACE::Vehicle::getRoadID(), MSLCHelper::getRoundaboutDistBonus(), LIBSUMO_NAMESPACE::Vehicle::getRouteID(), libsumo::Calibrator::getRouteProbeID(), MSBaseVehicle::getRouteValidity(), MSVehicle::getSafeFollowSpeed(), MSAbstractLaneChangeModel::getShadowLane(), MSBaseVehicle::getSingularType(), MSTransportable::getSingularType(), LIBSUMO_NAMESPACE::Person::getStage(), MSPerson::MSPersonStage_Walking::getStageSummary(), MSStageTrip::getStageSummary(), MSStageWaiting::getStageSummary(), MSStageDriving::getStageSummary(), MSStageTranship::getStageSummary(), MSDevice_Taxi::getStopLane(), MSNet::getStoppingPlaceID(), MSDevice::getStringParam(), MSLane::getSurroundingVehicles(), MSActuatedTrafficLightLogic::getTarget(), LIBSUMO_NAMESPACE::Person::getTaxiReservations(), MSRailSignal::getTLLinkID(), NIImporter_OpenDrive::getTLSSecure(), MSDevice_ElecHybrid::getTractionSubstationID(), PedestrianEdge< E, L, N, V >::getTravelTime(), MSVehicle::getUpcomingLanesUntil(), MSLane::getUpcomingLinks(), MSDevice_SSM::getUpstreamVehicles(), LIBSUMO_NAMESPACE::Person::getVehicle(), MSPModel_Striping::getVehicleObstacles(), MSDevice_SSM::getVehiclesOnJunction(), MSRailSignalConstraint::getVehID(), MSStageDriving::getWaitingDescription(), MSEdge::getWaitingVehicle(), MSLink::getZipperSpeed(), GNEEdge::GNEEdge(), guessCrossings(), RODFDetectorCon::guessEmptyFlows(), NBNodeCont::guessTLs(), GUITLLogicPhasesTrackerWindow::GUITLLogicPhasesTrackerWindow(), MSLane::handleCollisionBetween(), MSRailSignal::hasInsertionConstraint(), MSRailSignal::hasOncomingRailTraffic(), MSBaseVehicle::hasValidRouteStart(), MSVehicle::hasValidRouteStart(), MSBaseVehicle::haveValidStopEdges(), libsumo::POI::highlight(), LIBSUMO_NAMESPACE::Vehicle::highlight(), MSIdling_Stop::idle(), MSIdling_RandomCircling::idle(), MSVehicle::ignoreRed(), MSLCM_LC2013::inform(), MSLCM_SL2015::inform(), MSLCM_SL2015::informFollower(), MSLCM_LC2013::informFollower(), MSLCM_SL2015::informLeader(), MSLCM_LC2013::informLeader(), NBEdge::init(), MSActuatedTrafficLightLogic::init(), MSDelayBasedTrafficLightLogic::init(), MSDeterministicHiLevelTrafficLightLogic::init(), MSRailSignal::init(), MSSOTLTrafficLightLogic::init(), MSSwarmTrafficLightLogic::init(), MSTrafficLightLogic::init(), MSE2Collector::initAuxiliaries(), MESegment::initialise(), MSTrafficLightLogic::initMesoTLSPenalties(), PolygonDynamics::initTrackedPosition(), NIImporter_SUMO::initTrafficLightLogic(), NIXMLTrafficLightsHandler::initTrafficLightLogic(), NBDistrictCont::insert(), NBNodeCont::insert(), NBTrafficLightLogicCont::insert(), MSCFModel_IDM::insertionFollowSpeed(), MSEdge::insertVehicle(), MSLane::integrateNewVehicles(), GNEJunction::invalidateTLS(), invalidateTLS(), MSTLLogicControl::isActive(), MSPedestrianPushButton::isActiveForEdge(), MSPedestrianPushButton::isActiveOnAnySideOfTheRoad(), RODFNet::isDestination(), RODFNet::isFalseSource(), MSLane::isInsertionSuccess(), MSVehicle::isLeader(), MESegment::isOpen(), RODFNet::isSource(), NIImporter_VISUM::isSplitEdge(), MSSOTLTrafficLightLogic::isThresholdPassed(), MSStageDriving::isWaitingFor(), MESegment::jamThresholdForSpeed(), NBNodeCont::joinSameJunctions(), MSVehicle::joinTrainPartFront(), MSAbstractLaneChangeModel::laneChangeOutput(), MSVehicle::lateralDistanceToLane(), MSE3Collector::leave(), MSE3Collector::leaveFront(), MSVehicle::leaveLane(), MSDevice_BTreceiver::BTreceiverUpdate::leaveRange(), MSPedestrianPushButton::loadCrossingEdgeMap(), NIImporter_OpenDrive::loadNetwork(), MSPedestrianPushButton::loadPushButtons(), ODDistrictCont::makeDistricts(), MSE2Collector::makeMoveNotification(), MSE2Collector::makeVehicleInfo(), MSSOTLE2Sensors::meanVehiclesSpeed(), MSPModel_Striping::moveInDirection(), MSPModel_Striping::moveInDirectionOnLane(), MSPModel_Striping::PState::moveToNextLane(), LIBSUMO_NAMESPACE::Person::moveToXY(), LIBSUMO_NAMESPACE::Vehicle::moveToXY(), MSPModel_Striping::PState::moveToXY(), libsumo::Helper::moveToXYMap(), MSDevice_ToC::MRMExecutionStep(), MSChargingStation::MSChargingStation(), MSDevice_Battery::MSDevice_Battery(), MSDevice_ElecHybrid::MSDevice_ElecHybrid(), MSDevice_Taxi::MSDevice_Taxi(), MSDevice_ToC::MSDevice_ToC(), MSE2Collector::MSE2Collector(), MSLCM_LC2013::MSLCM_LC2013(), MSSimpleDriverState::MSSimpleDriverState(), NBLoadedTLDef::myCompute(), NIImporter_SUMO::myEndElement(), MSStateHandler::myStartElement(), MSLaneSpeedTrigger::myStartElement(), MSTriggeredRerouter::myStartElement(), MSPModel_Striping::nextBlocking(), MSDevice_ElecHybrid::notifyEnter(), MSE2Collector::notifyEnter(), MSDevice_Bluelight::notifyEnter(), MSDevice_Example::notifyEnter(), MSDevice_SSM::notifyEnter(), MSDevice_Tripinfo::notifyEnter(), MSMeanData::MeanDataValues::notifyEnter(), MSMeanData::MeanDataValueTracker::notifyEnter(), MSMeanData_Net::MSLaneMeanDataValues::notifyEnter(), MSRailSignalConstraint_Predecessor::PassedTracker::notifyEnter(), MSTriggeredRerouter::notifyEnter(), MSE3Collector::MSE3EntryReminder::notifyEnter(), MSE3Collector::MSE3LeaveReminder::notifyEnter(), MSDevice_BTreceiver::notifyEnter(), MSDevice_BTsender::notifyEnter(), MSDevice_ElecHybrid::notifyLeave(), MSDevice_Bluelight::notifyLeave(), MSDevice_Example::notifyLeave(), MSDevice_SSM::notifyLeave(), MSDevice_Transportable::notifyLeave(), MSDevice_Tripinfo::notifyLeave(), MSE2Collector::notifyLeave(), MSE3Collector::MSE3EntryReminder::notifyLeave(), MSE3Collector::MSE3LeaveReminder::notifyLeave(), MSDevice_BTreceiver::notifyLeave(), MSDevice_BTsender::notifyLeave(), MSDevice_ElecHybrid::notifyMove(), MSDevice_Battery::notifyMove(), MSDevice_Bluelight::notifyMove(), MSDevice_BTreceiver::notifyMove(), MSDevice_BTsender::notifyMove(), MSDevice_Example::notifyMove(), MSDevice_SSM::notifyMove(), MSDevice_Transportable::notifyMove(), MSE2Collector::notifyMove(), MSMeanData::MeanDataValues::notifyMove(), MSDevice_ToC::notifyMove(), MSE3Collector::MSE3LeaveReminder::notifyMove(), MSE3Collector::MSE3EntryReminder::notifyMove(), MSMeanData_Net::MSLaneMeanDataValues::notifyMoveInternal(), GNETLSEditorFrame::onCmdDefSwitch(), GUIViewTraffic::onGamingClick(), MSVehicle::onRemovalFromNet(), MSLink::opened(), RORouteHandler::openRoute(), MSLane::incoming_lane_priority_sorter::operator()(), MSLane::outgoing_lane_priority_sorter::operator()(), MSEdge::transportable_by_position_sorter::operator()(), NBNetBuilder::by_id_sorter::operator()(), NBNode::nodes_by_id_sorter::operator()(), RODFNet::idComp::operator()(), MSLaneChangerSublane::outputLCStarted(), NIImporter_VISUM::parse_Connectors_legacy(), NIImporter_VISUM::parse_EdgePolys(), NIImporter_VISUM::parse_Lanes(), NIImporter_VISUM::parse_Turns(), NLTriggerBuilder::parseAndBuildCalibrator(), NLTriggerBuilder::parseAndBuildOverheadWireSection(), MSRouteHandler::parseWalkPositions(), NBLoadedSUMOTLDef::patchIfCrossingsAdded(), MSLCM_LC2013::patchSpeed(), MSLCM_SL2015::patchSpeed(), NBLoadedTLDef::SignalGroup::patchTYellow(), MSCFModel_CC::performAutoLaneChange(), MSVehicle::planMove(), MSVehicle::planMoveInternal(), MSLane::planMovements(), PolygonDynamics::PolygonDynamics(), MSInternalJunction::postloadInit(), MSRightOfWayJunction::postloadInit(), MSLCM_SL2015::prepareStep(), MSDevice_Taxi::prepareStop(), MSAbstractLaneChangeModel::primaryLaneChanged(), AGStreet::print(), MSStageDriving::proceed(), MSDevice_SSM::processEncounters(), MSVehicle::processLaneAdvances(), MSVehicle::processLinkApproaches(), MSVehicle::processNextStop(), NIXMLNodesHandler::processNodeType(), TraCIServerAPI_Vehicle::processSet(), MEVehicle::processStop(), MSVehicle::processTraCISpeedControl(), NIXMLNodesHandler::processTrafficLightDefinitions(), MSDelayBasedTrafficLightLogic::proposeProlongation(), NBNodeCont::pruneClusterFringe(), NBNodeCont::pruneSlipLaneNodes(), MSPModel_Striping::PState::PState(), MSOffTrafficLightLogic::rebuildPhase(), NBEdge::recheckLanes(), NBEdgeCont::recheckPostProcessConnections(), NIImporter_OpenStreetMap::reconstructLayerElevation(), NBLoadedSUMOTLDef::reconstructLogic(), MSRailSignalControl::registerProtectedDriveway(), MSLink::removeApproaching(), MSVehicle::removePassedDriveItems(), GNEJunction::removeTLSConnections(), NBNodeCont::rename(), RORouteDef::repairCurrentRoute(), GNEJunction::replaceIncomingConnections(), MSVehicle::replaceParkingArea(), MSBaseVehicle::replaceRouteEdges(), MSVehicle::replaceStop(), NIImporter_DlrNavteq::TrafficlightsHandler::report(), NLEdgeControlBuilder::reportCurrentEdgeOrLane(), MSDevice_SSM::requestsTrajectories(), MSDevice_ToC::requestToC(), MSPerson::reroute(), MSBaseVehicle::reroute(), MSRailSignal::LinkInfo::reroute(), GUIVehicle::rerouteDRTStop(), MSTriggeredRerouter::rerouteParkingArea(), MSVehicle::rerouteParkingArea(), MSTransportable::rerouteParkingArea(), MSDevice_ToC::resetDeliberateLCs(), MSLane::resetManeuverReservation(), MSLane::resetPartialOccupation(), LIBSUMO_NAMESPACE::Vehicle::resume(), MSRailSignal::retrieveDriveWay(), NIImporter_OpenDrive::retrieveSignalEdges(), RODFNet::revalidateFlows(), NBRailwayTopologyAnalyzer::reverseEdges(), MSStageWaiting::routeOutput(), MSStageDriving::routeOutput(), MSLane::safeInsertionSpeed(), LIBSUMO_NAMESPACE::RouteProbe::sampleCurrentRouteID(), LIBSUMO_NAMESPACE::RouteProbe::sampleLastRouteID(), RONet::saveAndRemoveRoutesUntil(), ROPerson::Ride::saveAsXML(), ROVehicle::saveAsXML(), MSLCM_SL2015::saveBlockerLength(), MSLCM_LC2013::saveBlockerLength(), MSBaseVehicle::saveState(), MSLane::saveState(), MSTransportable::saveState(), MESegment::saveState(), MSDevice::saveState(), MSDevice_Routing::saveState(), MSDevice_Transportable::saveState(), MSDevice_Tripinfo::saveState(), MSDevice_Vehroutes::saveState(), MSTransportableDevice_Routing::saveState(), MSStageDriving::saveState(), MSCalibrator::scheduleRemoval(), GUIVehicle::selectBlockingFoes(), MSE2Collector::selectLanes(), MSVehicle::setAngle(), MSLink::setApproaching(), MSVehicle::setApproachingForAllLinks(), MSStageTrip::setArrived(), NBNodeCont::setAsTLControlled(), MSSimpleDriverState::setAwareness(), MSChargingStation::setChargeDelay(), MSChargingStation::setChargingPower(), NLEdgeControlBuilder::setDefaultStopOffsets(), MSChargingStation::setEfficency(), MSAbstractLaneChangeModel::setManeuverDist(), MSLane::setManeuverReservation(), MSDevice_Battery::setMaximumBatteryCapacity(), NBEdge::setNodeBorder(), MSLCM_SL2015::setOwnState(), MSActuatedTrafficLightLogic::setParameter(), MSDevice_ToC::setParameter(), MSCFModel_CACC::setParameter(), MSCFModel_CC::setParameter(), MSLane::setPartialOccupation(), MSDevice_Battery::setPowerMax(), NBEdgePriorityComputer::setPriorityJunctionPriorities(), libsumo::Helper::setRemoteControlled(), MSLink::setRequestInformation(), LIBSUMO_NAMESPACE::Vehicle::setRoute(), LIBSUMO_NAMESPACE::Vehicle::setRouteID(), MSDevice_Battery::setStoppingTreshold(), NBLoadedSUMOTLDef::setTLControllingInformation(), NBLoadedTLDef::setTLControllingInformation(), NBOwnTLDef::setTLControllingInformation(), NBTrafficLightLogicCont::setTLControllingInformation(), MSStageDriving::setVehicle(), MSOverheadWire::setVoltage(), NBEdge::shiftPositionAtNode(), MSLCM_LC2013::slowDownForBlocked(), MSLCM_SL2015::slowDownForBlocked(), MSLane::sortManeuverReservations(), IntermodalNetwork< E, L, N, V >::splitEdge(), MSLaneChangerSublane::startChangeSublane(), MSStopOut::stopEnded(), MSStopOut::stopStarted(), MSLane::succLinkSec(), MSDevice_ToC::switchHolderType(), GUITrafficLightLogicWrapper::switchTLSLogic(), MELoop::teleportVehicle(), MSDevice_ToC::ToCPreparationStep(), MSDevice_ToC::triggerDownwardToC(), MSDevice_ToC::triggerMRM(), MSDevice_ToC::triggerUpwardToC(), MSTransportable::tripInfoOutput(), MSPerson::MSPersonStage_Access::tripInfoOutput(), METriggeredCalibrator::tryEmit(), MSSOTLTrafficLightLogic::trySwitch(), MSDevice_SSM::update(), MSSimpleDriverState::update(), PolygonDynamics::update(), MSDevice_SSM::updateAndWriteOutput(), MSVehicle::updateBestLanes(), MSLCM_SL2015::updateCFRelated(), MSSOTLTrafficLightLogic::updateCTS(), NLEdgeControlBuilder::updateCurrentLaneStopOffsets(), MSVehicle::updateDriveItems(), MSRailSignal::updateDriveway(), MSLCM_SL2015::updateExpectedSublaneSpeeds(), MSVehicle::updateFurtherLanes(), MSLCM_SL2015::updateGaps(), GNETLSEditorFrame::TLSJunction::updateJunctionDescription(), GNENetHelper::AttributeCarriers::updateJunctionID(), MSSwarmTrafficLightLogic::updatePheromoneLevels(), MSSwarmTrafficLightLogic::updateSensitivities(), MSAbstractLaneChangeModel::updateShadowLane(), MSVehicle::updateState(), MSAbstractLaneChangeModel::updateTargetLane(), MSDevice_BTreceiver::BTreceiverUpdate::updateVisibility(), MSDevice_SSM::useGeoCoords(), NBNodeTypeComputer::validateRailCrossings(), libsumo::Helper::VehicleStateListener::vehicleStateChanged(), TraCIServer::vehicleStateChanged(), MSDynamicShapeUpdater::vehicleStateChanged(), MSLCM_LC2013::wantsChange(), MSLCM_SL2015::wantsChange(), MSLCM_SL2015::wantsChangeSublane(), MSInstantInductLoop::write(), NBParking::write(), MSElecHybridExport::write(), MSFCDExport::write(), MSBatteryExport::write(), MSEmissionExport::write(), MSElecHybridExport::writeAggregated(), MSLink::writeApproaching(), MSRailSignal::writeBlocks(), NWWriter_DlrNavteq::writeConnectedLanes(), NWWriter_SUMO::writeDistrict(), MSMeanData::writeEdge(), NWWriter_SUMO::writeEdge(), MSFullExport::writeEdge(), MSXMLRawOut::writeEdge(), NWWriter_XML::writeEdgesAndConnections(), RODFDetector::writeEmitterDefinition(), RODFDetectorCon::writeEmitterPOIs(), RODFDetectorCon::writeEmitters(), RODFDetectorCon::writeEndRerouterDetectors(), NWWriter_OpenDrive::writeInternalEdge(), writeInterval(), NWWriter_SUMO::writeJunction(), MSFullExport::writeLane(), MSQueueExport::writeLane(), MSXMLRawOut::writeLane(), NWWriter_DlrNavteq::writeLinksUnsplitted(), NWWriter_OpenDrive::writeNetwork(), NWWriter_XML::writeNodes(), NWWriter_DlrNavteq::writeNodesUnsplitted(), MSTractionSubstation::writeOut(), MSDevice_ToC::writeOutput(), MSNet::writeOutput(), MSDevice_Vehroutes::writeOutput(), MSOverheadWire::writeOverheadWireSegmentOutput(), NWWriter_SUMO::writeRoundabout(), RODFDetectorCon::writeSpeedTrigger(), NWWriter_SUMO::writeTrafficLight(), NWWriter_DlrNavteq::writeTrafficSignals(), MSFCDExport::writeTransportable(), MSXMLRawOut::writeTransportable(), RODFDetectorCon::writeValidationDetectors(), MSXMLRawOut::writeVehicle(), MSAmitranTrajectories::writeVehicle(), MSFullExport::writeVehicles(), SUMOPolygon::writeXML(), PointOfInterest::writeXML(), MSE2Collector::writeXMLOutput(), MSInductLoop::writeXMLOutput(), MSRouteProbe::writeXMLOutput(), MSDevice_Transportable::~MSDevice_Transportable(), MSTriggeredRerouter::~MSTriggeredRerouter(), and RONet::~RONet().
|
inlinestaticinherited |
get an identifier for Named-like object which may be Null
Definition at line 66 of file Named.h.
Referenced by MSLCM_LC2013::_wantsChange(), MSLCM_SL2015::_wantsChangeSublane(), NBRailwayTopologyAnalyzer::assignDirectionPriority(), MSLaneChanger::changeOpposite(), MSVehicle::checkReversal(), MSVehicle::checkRewindLinkLanes(), AStarRouter< E, V >::compute(), DijkstraRouter< E, V >::compute(), NBOwnTLDef::computeLogicAndConts(), MSLaneChanger::continueChange(), MSLane::detectCollisions(), MSRailSignal::DriveWay::findProtection(), NBPTLineCont::findWay(), MSCFModel_CACC::followSpeed(), MSCFModel_W99::followSpeed(), MSVehicle::getBackPositionOnLane(), NBOwnTLDef::getBestCombination(), NBOwnTLDef::getBestPair(), MSVehicle::getCenterOnEdge(), MSLaneChanger::getColumnleader(), NBEdge::Connection::getDescription(), MSLane::getFollowersOnConsecutive(), GUIVehicle::getLaneID(), LIBSUMO_NAMESPACE::Person::getLaneID(), MSVehicle::getLatOffset(), MSLane::getLeaderOnConsecutive(), MSLaneChanger::getRealLeader(), GUIVehicle::getShadowLaneID(), GUIVehicle::getTargetLaneID(), MSDevice_SSM::getVehiclesOnJunction(), MSCFModel_IDM::insertionFollowSpeed(), MSLane::isInsertionSuccess(), MESegment::isOpen(), joinNamedToString(), joinNamedToStringSorting(), MSPModel_Striping::PState::moveToNextLane(), LIBSUMO_NAMESPACE::Person::moveToXY(), LIBSUMO_NAMESPACE::Vehicle::moveToXY(), MSPModel_Striping::PState::moveToXY(), libsumo::Helper::moveToXYMap(), MSBaseVehicle::reroute(), MSTriggeredRerouter::rerouteParkingArea(), MSLCM_SL2015::saveBlockerLength(), MSLCM_LC2013::saveBlockerLength(), MSLCM_LC2013::slowDownForBlocked(), MSLCM_SL2015::slowDownForBlocked(), MSLaneChangerSublane::startChangeSublane(), MSLeaderInfo::toString(), MSLeaderDistanceInfo::toString(), MSCriticalFollowerDistanceInfo::toString(), toString(), MSVehicle::updateBestLanes(), and MSAbstractLaneChangeModel::updateShadowLane().
|
inline |
Returns this node's incoming edges (The edges which yield in this node)
Definition at line 254 of file NBNode.h.
References myIncomingEdges.
Referenced by addedLanesRight(), NBEdge::addLane(), NBEdge::addRestrictedLane(), NIImporter_OpenStreetMap::RelationHandler::applyRestriction(), NBEdge::buildInnerEdges(), NBRampsComputer::buildOffRamp(), NBRampsComputer::buildOnRamp(), NBNodeShapeComputer::compute(), NBRampsComputer::computeRamps(), NBTurningDirectionsComputer::computeTurnDirectionsForNode(), NBEdge::debugPrintConnections(), NBEdge::deleteLane(), NBNodeCont::generateNodeClusters(), NBNodeShapeComputer::getDefaultRadius(), NBEdge::getIncomingEdges(), NIImporter_VISUM::getNamedEdgeContinuating(), NBRampsComputer::getOffRampEdges(), NBRampsComputer::getOnRampEdges(), GNEJunction::getPopUpMenu(), NBRailwayTopologyAnalyzer::getRailEdges(), NBEdge::getStraightPredecessor(), NBNodeCont::guessTLs(), NBEdge::init(), isLongEnough(), NBNodeTypeComputer::isRailwayNode(), NBNodeCont::joinNodeCluster(), NBEdgeCont::joinTramEdges(), GNEJunction::markAsModified(), NBEdgePriorityComputer::markBestParallel(), NBEdgeCont::markRoundabouts(), NBNodeCont::maybeSlipLaneEnd(), NBNodeCont::maybeSlipLaneStart(), NBRampsComputer::mayNeedOffRamp(), NBRampsComputer::mayNeedOnRamp(), GNENet::mergeJunctions(), NBContHelper::node_with_incoming_finder::operator()(), NIImporter_VISUM::parse_Connectors(), NIImporter_VISUM::parse_Connectors_legacy(), NIImporter_VISUM::parse_Lanes(), NBEdgeCont::processSplits(), NBNodeCont::pruneClusterFringe(), NBNodeCont::pruneLongEdges(), NBNodeCont::pruneSlipLaneNodes(), NBEdge::recheckLanes(), NBNodeCont::removeComponents(), GNEJunction::removeConnectionsTo(), NBNodeCont::removeIsolatedRoads(), NBNodeCont::removeUnwishedNodes(), NBEdge::restoreRestrictedLane(), NBEdgeCont::retrievePossiblySplit(), GNEJunction::setLogicValid(), GNEEdge::smoothShape(), NGNet::toNB(), NBNodeTypeComputer::validateRailCrossings(), NWWriter_DlrNavteq::writeConnectedLanes(), NWWriter_SUMO::writeInternalConnections(), NWWriter_SUMO::writeInternalEdges(), NWWriter_SUMO::writeInternalNodes(), NWWriter_SUMO::writeJunction(), NWWriter_OpenDrive::writeNetwork(), NWWriter_DlrNavteq::writeProhibitedManoeuvres(), and NWWriter_DlrNavteq::writeTrafficSignals().
|
inline |
Returns the keepClear flag.
Definition at line 281 of file NBNode.h.
References myKeepClear.
Referenced by NWWriter_XML::writeNodes().
LinkState NBNode::getLinkState | ( | const NBEdge * | incoming, |
NBEdge * | outgoing, | ||
int | fromLane, | ||
int | toLane, | ||
bool | mayDefinitelyPass, | ||
const std::string & | tlID | ||
) | const |
get link state
Definition at line 2156 of file NBNode.cpp.
References ALLWAY_STOP, getDirection(), NBEdge::getPermissions(), NBEdge::isInsideTLS(), isRailway(), NBNodeTypeComputer::isRailwayNode(), LINKSTATE_ALLWAY_STOP, LINKSTATE_EQUAL, LINKSTATE_MAJOR, LINKSTATE_MINOR, LINKSTATE_STOP, LINKSTATE_TL_OFF_BLINKING, LINKSTATE_TL_OFF_NOSIGNAL, LINKSTATE_ZIPPER, mustBrake(), myType, PRIORITY_STOP, RAIL_CROSSING, RIGHT_BEFORE_LEFT, STRAIGHT, and ZIPPER.
Referenced by computeKeepClear(), GNELane::drawLane2LaneConnections(), GNEConnection::updateLinkState(), and NWWriter_SUMO::writeConnection().
|
inline |
Returns intersection name.
Definition at line 296 of file NBNode.h.
References myName.
Referenced by GNEJunction::drawGL(), GNEJunction::getAttribute(), NWWriter_SUMO::writeJunction(), and NWWriter_XML::writeNodes().
|
private |
Definition at line 2053 of file NBNode.cpp.
References NBEdge::isTurningDirectionAt(), myAllEdges, NBContHelper::nextCCW(), and NBContHelper::nextCW().
Referenced by getDirection().
|
static |
returns the node id for internal lanes, crossings and walkingareas
Definition at line 3389 of file NBNode.cpp.
References WRITE_ERROR.
returns the opposite incoming edge of certain edge
Definition at line 1663 of file NBNode.cpp.
References NBEdge::getToNode(), and myIncomingEdges.
Referenced by NBNodeTypeComputer::computeNodeTypes().
|
inline |
Returns this node's outgoing edges (The edges which start at this node)
Definition at line 259 of file NBNode.h.
References myOutgoingEdges.
Referenced by addedLanesRight(), NIImporter_OpenStreetMap::RelationHandler::applyRestriction(), NBRampsComputer::buildOffRamp(), NBRampsComputer::buildOnRamp(), NBNodeShapeComputer::compute(), NBEdge::computeEdge2Edges(), NBEdge::computeLaneShapes(), NBRampsComputer::computeRamps(), NBTurningDirectionsComputer::computeTurnDirectionsForNode(), GNENet::createEdge(), NBNodeCont::discardTrafficLights(), NBEdge::getConnectedSorted(), NBNodeShapeComputer::getDefaultRadius(), NIImporter_VISUM::getEdge(), NIImporter_VISUM::getNamedEdgeContinuating(), NBRampsComputer::getOffRampEdges(), NBRampsComputer::getOnRampEdges(), GNEJunction::getPopUpMenu(), NBRailwayTopologyAnalyzer::getRailEdges(), NBPTStopCont::getReverseEdge(), NBEdge::getStraightContinuation(), NBEdgeCont::guessOpposites(), NBNodeCont::guessTLs(), GNEConnectorFrame::initTargets(), isLongEnough(), NBEdge::isRailDeadEnd(), NBNodeCont::joinNodeCluster(), NBEdgeCont::joinTramEdges(), NBEdge::markAsInLane2LaneState(), NBNodeCont::maybeSlipLaneEnd(), NBNodeCont::maybeSlipLaneStart(), NBRampsComputer::mayNeedOffRamp(), NBRampsComputer::mayNeedOnRamp(), GNENet::mergeJunctions(), NBContHelper::node_with_outgoing_finder::operator()(), NIImporter_VISUM::parse_Connectors(), NIImporter_VISUM::parse_Connectors_legacy(), NIImporter_VISUM::parse_Lanes(), NBEdgeCont::processSplits(), NBNodeCont::pruneClusterFringe(), NBNodeCont::pruneLongEdges(), NBNodeCont::pruneSlipLaneNodes(), NBEdge::recheckLanes(), NBNodeCont::removeComponents(), NBNodeCont::removeIsolatedRoads(), NBNodeCont::removeUnwishedNodes(), NBEdgeCont::retrievePossiblySplit(), GNEEdge::smoothShape(), NBNodeTypeComputer::validateRailCrossings(), NWWriter_XML::writeEdgesAndConnections(), and NWWriter_DlrNavteq::writeProhibitedManoeuvres().
|
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 112 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by NBEdge::addRestrictedLane(), FareModul::addStop(), NBEdge::append(), MSDevice_Battery::buildVehicleDevices(), MSDevice_ElecHybrid::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), ROEdge::cacheParamRestrictions(), SUMOVTypeParameter::cacheParamRestrictions(), MSRailSignal::constraintsAllow(), GNEEdge::drawEdgeName(), GNEGenericData::drawFilteredAttribute(), GUIEdge::drawGL(), GNEConnection::drawGL(), LIBSUMO_NAMESPACE::Simulation::findIntermodalRoute(), MSSwarmTrafficLightLogic::getBetaNo(), MSSwarmTrafficLightLogic::getBetaSp(), NBRailwayTopologyAnalyzer::getBrokenRailNodes(), MSSwarmTrafficLightLogic::getChangePlanProbability(), GNEEdgeData::getColor(), GNEEdgeRelData::getColor(), GUILane::getColorValue(), GUIVehicle::getColorValue(), GNELane::getColorValue(), MSSOTLTrafficLightLogic::getDecayConstant(), MSDevice_SSM::getDetectionRange(), MSDevice_SSM::getExtraTime(), MSSwarmTrafficLightLogic::getForgettingCox(), MSSwarmTrafficLightLogic::getGammaNo(), MSSwarmTrafficLightLogic::getGammaSp(), MSTLLogicControl::WAUTSwitchProcedure::getGSPTime(), MSSOTLTrafficLightLogic::getInputSensorsLength(), MSSwarmTrafficLightLogic::getLearningCox(), MSSwarmTrafficLightLogic::getMaxCongestionDuration(), MSDevice_SSM::getMeasuresAndThresholds(), MSSOTLRequestPolicy::getMinDecisionalPhaseDuration(), MSSOTLTrafficLightLogic::getMode(), GUIBaseVehicle::getOptionalName(), GUITrafficLightLogicWrapper::getOptionalName(), MSDevice_ToC::getOutputFilename(), MSDevice_SSM::getOutputFilename(), MSSOTLTrafficLightLogic::getOutputSensorsLength(), LIBSUMO_NAMESPACE::Simulation::getParameter(), MSSwarmTrafficLightLogic::getPheroMaxVal(), MSSwarmTrafficLightLogic::getPoliciesParam(), MSBaseVehicle::getPrefixedParameter(), MSSwarmTrafficLightLogic::getReinforcementMode(), MSSOTLTrafficLightLogic::getSpeedThreshold(), MSDevice::getStringParam(), MSSwarmTrafficLightLogic::getThetaInit(), MSSwarmTrafficLightLogic::getThetaMax(), MSSwarmTrafficLightLogic::getThetaMin(), MSSOTLTrafficLightLogic::getThreshold(), MSRailSignalConstraint::getVehID(), MSTriggeredRerouter::getWeight(), MSRailSignal::hasInsertionConstraint(), MSSOTLPhasePolicy::init(), MSActuatedTrafficLightLogic::init(), MSDelayBasedTrafficLightLogic::init(), MSSOTLTrafficLightLogic::init(), MSSwarmTrafficLightLogic::init(), PushButtonLogic::init(), SigmoidLogic::init(), MSVehicleType::initRailVisualizationParameters(), GNEVehicleType::initRailVisualizationParameters(), MSSOTLTrafficLightLogic::isDecayThresholdActivated(), MSSOTLTrafficLightLogic::isPushButtonPressed(), MSActuatedTrafficLightLogic::MSActuatedTrafficLightLogic(), MSDelayBasedTrafficLightLogic::MSDelayBasedTrafficLightLogic(), MSSOTLPolicy::MSSOTLPolicy(), MSSOTLPolicy5DFamilyStimulus::MSSOTLPolicy5DFamilyStimulus(), MSSwarmTrafficLightLogic::MSSwarmTrafficLightLogic(), MSRailSignalConstraint_Predecessor::PassedTracker::notifyEnter(), GNEVehicleType::overwriteVType(), MSDevice_SSM::requestsTrajectories(), NBTrafficLightLogicCont::setOpenDriveSignalParameters(), NBEdgeCont::splitAt(), MSDevice_SSM::useGeoCoords(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::WAUTSwitchProcedure_Stretch(), NWWriter_DlrNavteq::writeLinksUnsplitted(), and NWWriter_OpenDrive::writeRoadObjects().
|
inherited |
Returns the inner key/value map.
Definition at line 146 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by NIImporter_SUMO::_loadNetwork(), NBEdge::addLane(), GUIParameterTableWindow::closeBuilding(), NLHandler::closeEdge(), NBTrafficLightDefinition::compute(), GNEGenericData::drawAttribute(), GNEGenericData::drawFilteredAttribute(), GNEAdditional::getACParametersMap(), GNEPOI::getACParametersMap(), GNEPoly::getACParametersMap(), GNETAZElement::getACParametersMap(), GNEDataInterval::getACParametersMap(), GNEDataSet::getACParametersMap(), GNEGenericData::getACParametersMap(), GNEPerson::getACParametersMap(), GNEPersonStop::getACParametersMap(), GNEPersonTrip::getACParametersMap(), GNERide::getACParametersMap(), GNERoute::getACParametersMap(), GNEStop::getACParametersMap(), GNEVehicle::getACParametersMap(), GNEVehicleType::getACParametersMap(), GNEWalk::getACParametersMap(), GNEConnection::getACParametersMap(), GNECrossing::getACParametersMap(), GNEEdge::getACParametersMap(), GNEEdgeType::getACParametersMap(), GNEJunction::getACParametersMap(), GNELane::getACParametersMap(), GNELaneType::getACParametersMap(), GUILane::getParameterWindow(), MSActuatedTrafficLightLogic::init(), MSDevice_Taxi::initDispatch(), NIImporter_OpenStreetMap::insertEdge(), GNEEdgeData::isGenericDataVisible(), GNEEdgeRelData::isGenericDataVisible(), GNETAZRelData::isGenericDataVisible(), GNEGenericData::isVisibleInspectDeleteSelect(), NBEdge::NBEdge(), NBLoadedSUMOTLDef::NBLoadedSUMOTLDef(), GUIParameterTableWindow::numParams(), GNEVehicleType::overwriteVType(), TraCIServerAPI_TrafficLight::processGet(), Parameterised::setParameters(), GNEEdgeData::writeGenericData(), GNEEdgeRelData::writeGenericData(), and GNETAZRelData::writeGenericData().
|
inherited |
Returns the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN".
Definition at line 152 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by GNEAccess::getAttribute(), GNEBusStop::getAttribute(), GNECalibrator::getAttribute(), GNECalibratorFlow::getAttribute(), GNEChargingStation::getAttribute(), GNEClosingLaneReroute::getAttribute(), GNEClosingReroute::getAttribute(), GNEContainerStop::getAttribute(), GNEDestProbReroute::getAttribute(), GNEDetectorE1::getAttribute(), GNEDetectorE1Instant::getAttribute(), GNEDetectorE2::getAttribute(), GNEDetectorE3::getAttribute(), GNEDetectorEntryExit::getAttribute(), GNEParkingArea::getAttribute(), GNEParkingAreaReroute::getAttribute(), GNEParkingSpace::getAttribute(), GNEPOI::getAttribute(), GNEPoly::getAttribute(), GNERerouter::getAttribute(), GNERerouterInterval::getAttribute(), GNERouteProbe::getAttribute(), GNERouteProbReroute::getAttribute(), GNETAZ::getAttribute(), GNETAZSourceSink::getAttribute(), GNEVaporizer::getAttribute(), GNEVariableSpeedSign::getAttribute(), GNEVariableSpeedSignStep::getAttribute(), GNEEdgeData::getAttribute(), GNEEdgeRelData::getAttribute(), GNETAZRelData::getAttribute(), GNEPerson::getAttribute(), GNEPersonTrip::getAttribute(), GNERide::getAttribute(), GNERoute::getAttribute(), GNEVehicle::getAttribute(), GNEVehicleType::getAttribute(), GNEWalk::getAttribute(), GNEConnection::getAttribute(), GNEEdge::getAttribute(), GNEEdgeType::getAttribute(), GNEJunction::getAttribute(), GNELane::getAttribute(), and GNELaneType::getAttribute().
|
inline |
Definition at line 246 of file NBNode.h.
References myPosition.
Referenced by NIImporter_SUMO::_loadNetwork(), NIXMLEdgesHandler::addLane(), NIXMLNodesHandler::addNode(), NIXMLEdgesHandler::addSplit(), NIVissimEdge::buildNBEdge(), NBEdge::computeAngle(), NBEdge::computeEdgeShape(), NBNodeShapeComputer::computeNodeShapeDefault(), NBNodeShapeComputer::computeNodeShapeSmall(), NBTurningDirectionsComputer::computeTurnDirectionsForNode(), NBNodeCont::discardRailSignals(), NBNodeCont::discardTrafficLights(), NBHelpers::distance(), GNEJunction::drawGL(), GNEJunction::drawTLSIcon(), NBEdge::extendGeometryAtNode(), NBNodeCont::extract(), NBNodeCont::generateNodeClusters(), GNEJunction::getAttribute(), GNEJunction::getColorValue(), getEmptyDir(), NWWriter_DlrNavteq::getGraphLength(), GNEJunction::getMoveOperation(), GNEJunction::getPositionInView(), NBNodeShapeComputer::getSmoothCorner(), NBNodeCont::guessTLs(), NBEdge::hasDefaultGeometryEndpointAtNode(), NBEdge::hasDefaultGeometryEndpoints(), NBEdge::init(), NBNodeCont::insert(), NBNodeCont::joinNodeCluster(), GNEJunction::moveJunctionGeometry(), NBContHelper::relative_outgoing_edge_sorter::operator()(), NBContHelper::relative_incoming_edge_sorter::operator()(), NBNodeCont::paretoCheck(), NBNodeCont::pruneClusterFringe(), NIImporter_OpenStreetMap::reconstructLayerElevation(), GNENetHelper::AttributeCarriers::registerJunction(), NIVissimEdge::remapOneOfNodes(), GNENet::replaceJunctionByGeometry(), NIImporter_DlrNavteq::EdgesHandler::report(), NIImporter_DlrNavteq::TrafficlightsHandler::report(), NBNodeCont::retrieve(), GNEJunction::setAttribute(), NBEdge::shiftPositionAtNode(), NBNodeCont::shortestEdge(), NBEdgeCont::splitAt(), NBEdge::startShapeAt(), GNEEdge::straightenElevation(), GNEJunction::updateCenteringBoundary(), GNEEdge::updateJunctionPosition(), NWWriter_SUMO::writeJunction(), NWWriter_XML::writeNodes(), NWWriter_DlrNavteq::writeNodesUnsplitted(), and NWWriter_DlrNavteq::writeTrafficSignals().
NBEdge * NBNode::getPossiblySplittedIncoming | ( | const std::string & | edgeid | ) |
get possibly splitted incoming edge
Definition at line 1698 of file NBNode.cpp.
References NBEdge::getID(), and myIncomingEdges.
Referenced by NIVissimDisturbance::getConnection().
NBEdge * NBNode::getPossiblySplittedOutgoing | ( | const std::string & | edgeid | ) |
get possibly splitted outgoing edge
Definition at line 1711 of file NBNode.cpp.
References NBEdge::getID(), and myOutgoingEdges.
Referenced by NIVissimDisturbance::getConnection().
|
inline |
get prohibitions (BLocked connections)
Definition at line 665 of file NBNode.h.
References myBlockedConnections.
|
inline |
Returns the turning radius of this node.
Definition at line 276 of file NBNode.h.
References myRadius.
Referenced by NBNodeShapeComputer::computeNodeShapeDefault(), GNENet::createRoundabout(), GNEJunction::getAttribute(), GNEJunction::getPopUpMenu(), NWWriter_SUMO::writeJunction(), and NWWriter_XML::writeNodes().
|
private |
get the reduction in driving lanes at this junction
Definition at line 1415 of file NBNode.cpp.
References FORWARD, NBEdge::getFirstNonPedestrianLaneIndex(), NBEdge::getNumLanes(), and MAX2().
Referenced by addedLanesRight(), and computeLanes2Lanes().
const std::string NBNode::getResponse | ( | int | linkIndex | ) | const |
get the 'response' string (right-of-way bit set) of the right-of-way logic
Definition at line 1013 of file NBNode.cpp.
References NBRequest::getResponse(), and myRequest.
Referenced by GNEProhibitionFrame::buildProhibition().
|
inline |
Returns hint on how to compute right of way.
Definition at line 286 of file NBNode.h.
References myRightOfWay.
Referenced by GNEJunction::getAttribute(), NWWriter_SUMO::writeJunction(), and NWWriter_XML::writeNodes().
const PositionVector & NBNode::getShape | ( | ) | const |
retrieve the junction shape
Definition at line 2285 of file NBNode.cpp.
References myPoly.
Referenced by NBEdge::computeAngle(), GNEJunction::drawGL(), GNEJunction::getAttribute(), GNEJunction::getJunctionShape(), GNEJunction::getMoveOperation(), GNEJunction::getPopUpMenu(), GNEViewNet::onCmdEditCrossingShape(), GNEViewNet::onCmdEditJunctionShape(), GNEJunction::removeGeometryPoint(), NBEdge::startShapeAt(), GNEJunction::updateCenteringBoundary(), GNEGeometry::Lane2laneConnection::updateLane2laneConnection(), NWWriter_SUMO::writeJunction(), and NWWriter_XML::writeNodes().
|
inline |
Returns the type of this node.
Definition at line 271 of file NBNode.h.
References myType.
Referenced by NIImporter_SUMO::_loadNetwork(), NIXMLTrafficLightsHandler::addTlConnection(), NBEdge::appendTurnaround(), NBEdge::buildInnerEdges(), checkCrossing(), NBTrafficLightDefinition::collectAllLinks(), NBRequest::computeLogic(), NBNodeCont::discardRailSignals(), NBRampsComputer::fulfillsRampConstraints(), NBNodeCont::generateNodeClusters(), NBEdgeCont::generateStreetSigns(), GNEJunction::getAttribute(), GNEJunction::getColorValue(), NBRequest::getResponseString(), NBEdgeCont::guessRoundabouts(), NBNodeCont::guessTLs(), NBNodeCont::joinNodeCluster(), NBEdge::MainDirections::MainDirections(), GNEJunction::moveJunctionGeometry(), NBRequest::mustBrake(), NIXMLConnectionsHandler::parseLaneBound(), NBEdge::prepareEdgePriorities(), NIXMLNodesHandler::processNodeType(), NIImporter_OpenStreetMap::reconstructLayerElevation(), NIImporter_DlrNavteq::TrafficlightsHandler::report(), GNEJunction::setAttribute(), NBRequest::setBlocking(), NBTrafficLightLogicCont::setTLControllingInformation(), NWWriter_SUMO::writeJunction(), and NWWriter_XML::writeNodes().
|
inline |
Definition at line 711 of file NBNode.h.
References myWalkingAreaCustomShapes.
|
inline |
return this junctions pedestrian walking areas
Definition at line 707 of file NBNode.h.
References myWalkingAreas.
Referenced by NWWriter_SUMO::writeInternalEdges(), and NWWriter_SUMO::writeNetwork().
int NBNode::guessCrossings | ( | ) |
guess pedestrian crossings and return how many were guessed
Definition at line 2337 of file NBNode.cpp.
References checkCrossing(), DEBUGCOND, forbidsPedestriansAfter(), gDebugFlag1, getEdgesSortedByAngleAtNodeCenter(), NBEdge::getFromNode(), NBEdge::getID(), Named::getID(), NBEdge::getLanes(), myAllEdges, myCrossings, myDiscardAllCrossings, SVC_PEDESTRIAN, and toString().
bool NBNode::hasConflict | ( | ) | const |
whether there are conflicting streams of traffic at this node
Definition at line 1022 of file NBNode.cpp.
References NBRequest::hasConflict(), and myRequest.
Referenced by computeKeepClear().
|
inline |
return whether the shape was set by the user
Definition at line 553 of file NBNode.h.
References myHaveCustomPoly.
Referenced by GNEJunction::invalidateShape(), NWWriter_SUMO::writeJunction(), and NWWriter_XML::writeNodes().
bool NBNode::hasIncoming | ( | const NBEdge *const | e | ) | const |
Returns whether the given edge ends at this node.
[in] | e | The edge |
Definition at line 1651 of file NBNode.cpp.
References myIncomingEdges.
Referenced by NBNodeShapeComputer::computeNodeShapeDefault(), NBNodeCont::generateNodeClusters(), NIImporter_OpenStreetMap::getNeighboringNodes(), NIImporter_VISUM::parse_Lanes(), NIImporter_VISUM::parse_LanesConnections(), and NIImporter_VISUM::parse_TurnsToSignalGroups().
bool NBNode::hasOutgoing | ( | const NBEdge *const | e | ) | const |
Returns whether the given edge starts at this node.
[in] | e | The edge |
Definition at line 1657 of file NBNode.cpp.
References myOutgoingEdges.
Referenced by isLeftMover(), NBTrafficLightDefinition::mustBrake(), NIImporter_VISUM::parse_Lanes(), NIImporter_VISUM::parse_LanesConnections(), and NIImporter_VISUM::parse_TurnsToSignalGroups().
|
staticprivate |
returns whether sub is a subset of super
Definition at line 3112 of file NBNode.cpp.
Referenced by buildWalkingAreas().
void NBNode::invalidateIncomingConnections | ( | ) |
invalidate incoming connections
Definition at line 1783 of file NBNode.cpp.
References myIncomingEdges.
Referenced by NBRailwayTopologyAnalyzer::addBidiEdge(), NIVissimDistrictConnection::dict_BuildDistricts(), and GNEJunction::setAttribute().
void NBNode::invalidateOutgoingConnections | ( | ) |
invalidate outgoing connections
Definition at line 1791 of file NBNode.cpp.
References myOutgoingEdges.
Referenced by NIVissimDistrictConnection::dict_BuildDistricts().
void NBNode::invalidateTLS | ( | NBTrafficLightLogicCont & | tlCont, |
bool | removedConnections, | ||
bool | addedConnections | ||
) |
causes the traffic light to be computed anew
Definition at line 394 of file NBNode.cpp.
References NBTrafficLightDefinition::addNode(), Named::getID(), NBTrafficLightDefinition::getNodes(), NBTrafficLightDefinition::getOffset(), NBTrafficLightDefinition::getType(), NBTrafficLightLogicCont::insert(), isTLControlled(), myTrafficLights, and NBTrafficLightLogicCont::removeFully().
Referenced by NIXMLConnectionsHandler::myStartElement(), NIXMLConnectionsHandler::parseLaneBound(), and NBEdgeCont::processSplits().
|
inline |
return whether a priority road turns at this node
Definition at line 792 of file NBNode.h.
References myIsBentPriority.
Referenced by NBRequest::setBlocking().
bool NBNode::isConstantWidthTransition | ( | ) | const |
detects whether a given junction splits or merges lanes while keeping constant road width
Definition at line 787 of file NBNode.cpp.
References myIncomingEdges, and myOutgoingEdges.
Referenced by displaceShapeAtWidthChange(), NBNodeShapeComputer::getDefaultRadius(), NBRequest::mergeConflict(), and NWWriter_SUMO::writeInternalEdges().
bool NBNode::isDistrict | ( | ) | const |
check if node is a district
Definition at line 2331 of file NBNode.cpp.
References DISTRICT, and myType.
Referenced by NBNodeTypeComputer::computeNodeTypes(), and isNearDistrict().
Computes whether the given connection is a left mover across the junction.
It is assumed, that it is a left-mover if the clockwise angle is lower than the counter-clockwise angle.
[in] | from | The incoming edge (the begin of the connection) |
[in] | from | The outgoing edge (the end of the connection) |
Definition at line 1936 of file NBNode.cpp.
References NBEdge::getAngleAtNode(), GeomHelper::getCCWAngleDiff(), GeomHelper::getCWAngleDiff(), hasOutgoing(), NBEdge::isTurningDirectionAt(), myAllEdges, myIncomingEdges, myOutgoingEdges, and NBContHelper::nextCW().
Referenced by NBEdge::computeEdge2Edges().
|
staticprivate |
check if is long enough
Definition at line 1470 of file NBNode.cpp.
References getIncomingEdges(), NBEdge::getLoadedLength(), getOutgoingEdges(), and NBEdge::getToNode().
Referenced by computeLanes2Lanes().
bool NBNode::isNearDistrict | ( | ) | const |
@chech if node is near district
Definition at line 2314 of file NBNode.cpp.
References getEdges(), and isDistrict().
Referenced by NBNodeTypeComputer::computeNodeTypes(), and NBNodeCont::guessTLs().
|
staticprivateinherited |
check if given string can be parsed to a parameter of type "key=value"
Definition at line 240 of file Parameterised.cpp.
References Parameterised::DOUBLE, StringTokenizer::getVector(), SUMOXMLDefinitions::isValidParameterKey(), and StringUtils::toDouble().
Referenced by Parameterised::areParametersValid().
bool NBNode::isRoundabout | ( | ) | const |
return whether this node is part of a roundabout
Definition at line 3234 of file NBNode.cpp.
References myOutgoingEdges.
Referenced by GNEJunction::getPopUpMenu().
bool NBNode::isSimpleContinuation | ( | bool | checkLaneNumbers = true , |
bool | checkWidth = false |
||
) | const |
check if node is a simple continuation
Definition at line 478 of file NBNode.cpp.
References NBEdge::getNumLanes(), NBEdge::getTotalWidth(), myIncomingEdges, myOutgoingEdges, and NBContHelper::nextCW().
Referenced by NBNodeShapeComputer::compute(), NBNodeTypeComputer::computeNodeTypes(), and NBEdgeCont::generateStreetSigns().
|
inline |
Returns whether this node is controlled by any tls.
Definition at line 317 of file NBNode.h.
References myTrafficLights.
Referenced by GNECrossingFrame::addCrossing(), NBEdge::appendTurnaround(), buildCrossings(), checkCrossing(), computeKeepClear(), NBNodeCont::discardTrafficLights(), GNEJunction::drawTLSIcon(), NIImporter_OpenDrive::getTLSSecure(), NBNodeCont::guessTLs(), invalidateTLS(), GNEJunction::isAttributeEnabled(), GNEJunction::isValid(), NBNodeCont::joinNodeCluster(), GNENet::joinSelectedJunctions(), NBRequest::mustBrake(), GNETLSEditorFrame::onCmdDefCreate(), GNETLSEditorFrame::onUpdDefCreate(), NIXMLNodesHandler::processTrafficLightDefinitions(), NBNodeCont::pruneClusterFringe(), NBEdge::removeFromConnections(), NBEdgePriorityComputer::setPriorityJunctionPriorities(), tlsContConflict(), NWWriter_XML::writeNodes(), and NWWriter_DlrNavteq::writeTrafficSignals().
|
static |
return whether the given type is a traffic light
Definition at line 3424 of file NBNode.cpp.
References TRAFFIC_LIGHT, TRAFFIC_LIGHT_NOJUNCTION, and TRAFFIC_LIGHT_RIGHT_ON_RED.
Referenced by NIImporter_SUMO::_loadNetwork(), addTrafficLight(), NGNode::buildNBNode(), NBRampsComputer::fulfillsRampConstraints(), NBEdge::MainDirections::MainDirections(), NBEdge::prepareEdgePriorities(), NIXMLNodesHandler::processNodeType(), reinit(), and GNEJunction::setAttribute().
|
inherited |
Returns whether the parameter is known.
[in] | key | The key to ask for |
Definition at line 106 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by NBEdge::append(), MSDevice_ElecHybrid::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), NWWriter_DlrNavteq::getBrunnelType(), MSDevice_SSM::getDetectionRange(), MSDevice_SSM::getExtraTime(), MSDevice_SSM::getMeasuresAndThresholds(), MSDevice_ToC::getOutputFilename(), MSDevice_SSM::getOutputFilename(), LIBSUMO_NAMESPACE::Simulation::getParameter(), MSDevice::getStringParam(), MSTriggeredRerouter::getWeight(), MSVehicleType::initRailVisualizationParameters(), GNEVehicleType::initRailVisualizationParameters(), GNEVehicleType::overwriteVType(), MSDevice_SSM::requestsTrajectories(), NBTrafficLightLogicCont::setOpenDriveSignalParameters(), MSDevice_SSM::useGeoCoords(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::WAUTSwitchProcedure_Stretch(), and NWWriter_OpenDrive::writeRoadObjects().
|
inline |
mark whether a priority road turns at this node
Definition at line 787 of file NBNode.h.
References myIsBentPriority.
Referenced by NBEdgePriorityComputer::setPriorityJunctionPriorities().
bool NBNode::mergeConflict | ( | const NBEdge * | from, |
const NBEdge::Connection & | con, | ||
const NBEdge * | prohibitorFrom, | ||
const NBEdge::Connection & | prohibitorCon, | ||
bool | foes | ||
) | const |
whether multple connections from the same edge target the same lane
Definition at line 1881 of file NBNode.cpp.
References foes(), NBRequest::mergeConflict(), and myRequest.
Referenced by NBEdge::buildInnerEdges().
bool NBNode::mergeConflictYields | ( | const NBEdge * | from, |
int | fromLane, | ||
int | fromLaneFoe, | ||
NBEdge * | to, | ||
int | toLane | ||
) | const |
whether one of multple connections from the same edge targeting the same lane must yield
Definition at line 1870 of file NBNode.cpp.
References NBEdge::getConnection(), NBRequest::mergeConflict(), and myRequest.
void NBNode::mirrorX | ( | ) |
mirror coordinates along the x-axis
Definition at line 345 of file NBNode.cpp.
References PositionVector::mirrorX(), Position::mul(), myCrossings, myPoly, myPosition, myWalkingAreaCustomShapes, and myWalkingAreas.
Referenced by GNEJunction::mirrorXLeftHand().
bool NBNode::mustBrake | ( | const NBEdge *const | from, |
const NBEdge *const | to, | ||
int | fromLane, | ||
int | toLane, | ||
bool | includePedCrossings | ||
) | const |
Returns the information whether the described flow must let any other flow pass.
[in] | from | The connection's start edge |
[in] | to | The connection's end edge |
[in] | fromLane | The lane the connection start at |
[in] | toLane | The lane the connection ends at |
[in] | includePedCrossings | Whether braking due to a pedestrian crossing counts |
Definition at line 1799 of file NBNode.cpp.
References NBRequest::mustBrake(), and myRequest.
Referenced by getLinkState(), NBTrafficLightDefinition::mustBrake(), and needsCont().
bool NBNode::mustBrakeForCrossing | ( | const NBEdge *const | from, |
const NBEdge *const | to, | ||
const Crossing & | crossing | ||
) | const |
Returns the information whether the described flow must brake for the given crossing.
[in] | from | The connection's start edge |
[in] | to | The connection's end edge |
[in] | crossing | The pedestrian crossing to check |
Definition at line 1813 of file NBNode.cpp.
References NBRequest::mustBrakeForCrossing().
Referenced by NBOwnTLDef::patchStateForCrossings().
bool NBNode::needsCont | ( | const NBEdge * | fromE, |
const NBEdge * | otherFromE, | ||
const NBEdge::Connection & | c, | ||
const NBEdge::Connection & | otherC | ||
) | const |
whether an internal junction should be built at from and respect other
Definition at line 844 of file NBNode.cpp.
References ALLWAY_STOP, foes(), NBEdge::Connection::fromLane, getDirection(), NBEdge::getJunctionPriority(), LEFT, mustBrake(), myRequest, myTrafficLights, myType, PARTRIGHT, RAIL_CROSSING, RAIL_SIGNAL, RIGHT, RIGHT_BEFORE_LEFT, rightTurnConflict(), STRAIGHT, NBEdge::Connection::tlID, NBEdge::Connection::toEdge, NBEdge::Connection::toLane, and TURN.
Referenced by NBEdge::buildInnerEdges(), and tlsContConflict().
|
inline |
get num of crossings from sumo net
Definition at line 696 of file NBNode.h.
References myCrossingsLoadedFromSumoNet.
int NBNode::numNormalConnections | ( | ) | const |
return the number of lane-to-lane connections at this junction (excluding crossings)
Definition at line 3314 of file NBNode.cpp.
References NBRequest::getSizes(), myIncomingEdges, and myRequest.
Referenced by computeLogic(), and NWWriter_OpenDrive::writeNetwork().
void NBNode::reinit | ( | const Position & | position, |
SumoXMLNodeType | type, | ||
bool | updateEdgeGeometries = false |
||
) |
Resets initial values.
[in] | position | The position of the node |
[in] | type | The type of the node |
[in] | updateEdgeGeometries | Whether the geometires of all connected edges shall be updated |
Definition at line 306 of file NBNode.cpp.
References isTrafficLight(), myIncomingEdges, myOutgoingEdges, myPosition, myType, and removeTrafficLights().
Referenced by NBNodeCont::discardRailSignals(), NBNodeCont::discardTrafficLights(), NIImporter_OpenStreetMap::insertNodeChecking(), NBNodeCont::joinNodeCluster(), GNEJunction::moveJunctionGeometry(), NIXMLNodesHandler::processNodeType(), NIImporter_OpenStreetMap::reconstructLayerElevation(), NIImporter_DlrNavteq::TrafficlightsHandler::report(), and GNEJunction::setAttribute().
|
private |
remap removed
Definition at line 1972 of file NBNode.cpp.
References NBConnection::getFrom(), NBConnection::getTo(), myBlockedConnections, and NBTrafficLightLogicCont::remapRemoved().
Referenced by removeSelfLoops().
void NBNode::removeCrossing | ( | const EdgeVector & | edges | ) |
remove a pedestrian crossing from this node (identified by its edges)
Definition at line 3256 of file NBNode.cpp.
References myCrossings.
Referenced by GNEChange_Crossing::redo(), and GNEChange_Crossing::undo().
void NBNode::removeDoubleEdges | ( | ) |
remove duble edges
Definition at line 1613 of file NBNode.cpp.
References myAllEdges, myIncomingEdges, and myOutgoingEdges.
Referenced by replaceIncoming(), replaceOutgoing(), and NBEdgeCont::splitAt().
void NBNode::removeEdge | ( | NBEdge * | edge, |
bool | removeFromConnections = true |
||
) |
Removes edge from this node and optionally removes connections as well.
Definition at line 1724 of file NBNode.cpp.
References NBEdge::getToNode(), myAllEdges, myIncomingEdges, myOutgoingEdges, and myTrafficLights.
Referenced by NBEdgeCont::extract(), NBEdgeCont::insert(), NBEdge::reinit(), NBEdge::reinitNodes(), and NBEdgeCont::removeUnwishedEdges().
|
private |
remove all traffic light definitions that are part of a joined tls
Definition at line 903 of file NBNode.cpp.
References myTrafficLights.
Referenced by computeLogic().
int NBNode::removeSelfLoops | ( | NBDistrictCont & | dc, |
NBEdgeCont & | ec, | ||
NBTrafficLightLogicCont & | tc | ||
) |
Removes edges which are both incoming and outgoing into this node.
If given, the connections to other edges participating in this node are updated
[in,opt. | changed] dc The districts container to update |
[in,opt. | changed] ec The edge container to remove the edges from |
[in,opt. | changed] tc The traffic lights container to update |
Definition at line 425 of file NBNode.cpp.
References NBEdgeCont::erase(), NBEdge::getConnectedEdges(), NBEdge::getID(), NBEdge::getIncomingEdges(), myIncomingEdges, myOutgoingEdges, NBEdge::remapConnections(), remapRemoved(), and WRITE_WARNINGF.
void NBNode::removeTrafficLight | ( | NBTrafficLightDefinition * | tlDef | ) |
Removes the given traffic light from this node.
Definition at line 374 of file NBNode.cpp.
References myTrafficLights, and NBTrafficLightDefinition::removeNode().
Referenced by NBNodeCont::discardTrafficLights(), GNEJunction::removeTrafficLight(), removeTrafficLights(), NBTrafficLightLogicCont::setTLControllingInformation(), and NBNodeTypeComputer::validateRailCrossings().
void NBNode::removeTrafficLights | ( | bool | setAsPriority = false | ) |
Removes all references to traffic lights that control this tls.
Definition at line 381 of file NBNode.cpp.
References DEAD_END, myRequest, myTrafficLights, myType, NOJUNCTION, PRIORITY, removeTrafficLight(), and TRAFFIC_LIGHT_NOJUNCTION.
Referenced by NBNodeCont::extract(), NBNodeCont::guessTLs(), NIXMLNodesHandler::processTrafficLightDefinitions(), and reinit().
void NBNode::replaceIncoming | ( | const EdgeVector & | which, |
NBEdge * | by | ||
) |
Replaces occurences of every edge from the given list within the list of incoming by the second Connections are remapped, too.
Definition at line 1559 of file NBNode.cpp.
References myDistrict, removeDoubleEdges(), NBDistrict::replaceIncoming(), and replaceIncoming().
Replaces occurences of the first edge within the list of incoming by the second Connections are remapped, too.
Definition at line 1545 of file NBNode.cpp.
References myAllEdges, myIncomingEdges, and replaceInConnectionProhibitions().
Referenced by NBEdgeCont::joinSameNodeConnectingEdges(), NBNodeCont::removeUnwishedNodes(), replaceIncoming(), and NBEdgeCont::splitAt().
|
private |
replace incoming connections prohibitions
Definition at line 1578 of file NBNode.cpp.
References myBlockedConnections, NBConnection::replaceFrom(), and NBConnection::replaceTo().
Referenced by replaceIncoming(), and replaceOutgoing().
void NBNode::replaceOutgoing | ( | const EdgeVector & | which, |
NBEdge * | by | ||
) |
Replaces occurences of every edge from the given list within the list of outgoing by the second Connections are remapped, too.
Definition at line 1527 of file NBNode.cpp.
References myDistrict, removeDoubleEdges(), NBDistrict::replaceOutgoing(), and replaceOutgoing().
Replaces occurences of the first edge within the list of outgoing by the second Connections are remapped, too.
Definition at line 1509 of file NBNode.cpp.
References myAllEdges, myIncomingEdges, myOutgoingEdges, replaceInConnectionProhibitions(), and NBEdge::replaceInConnections().
Referenced by NBEdgeCont::joinSameNodeConnectingEdges(), replaceOutgoing(), and NBEdgeCont::splitAt().
void NBNode::reshiftPosition | ( | double | xoff, |
double | yoff | ||
) |
Applies an offset to the node.
[in] | xoff | The x-offset to apply |
[in] | yoff | The y-offset to apply |
Definition at line 332 of file NBNode.cpp.
References Position::add(), PositionVector::add(), myCrossings, myPoly, myPosition, and myWalkingAreaCustomShapes.
bool NBNode::rightOnRedConflict | ( | int | index, |
int | foeIndex | ||
) | const |
whether the given index must yield to the foeIndex while turing right on a red light
Definition at line 3432 of file NBNode.cpp.
References myTrafficLights.
Referenced by NBRequest::getResponseString().
|
static |
return whether the given laneToLane connection is a right turn which must yield to a bicycle crossings
Definition at line 1819 of file NBNode.cpp.
References GeomHelper::getCWAngleDiff(), getDirection(), NBEdge::getEndAngle(), NBEdge::getStartAngle(), NBEdge::getToNode(), NBEdge::isTurningDirectionAt(), LEFT, PARTLEFT, PARTRIGHT, RIGHT, and STRAIGHT.
Referenced by NBEdge::buildInnerEdges(), NBOwnTLDef::correctConflicting(), NBRequest::getResponseString(), NBLoadedSUMOTLDef::initNeedsContRelation(), NBLoadedTLDef::myCompute(), needsCont(), and NBRequest::rightTurnConflict().
bool NBNode::setCrossingTLIndices | ( | const std::string & | tlID, |
int | startIndex | ||
) |
Definition at line 3298 of file NBNode.cpp.
References getCrossings().
Referenced by NBTrafficLightLogicCont::setTLControllingInformation().
void NBNode::setCustomShape | ( | const PositionVector & | shape | ) |
set the junction shape
Definition at line 2291 of file NBNode.cpp.
References myAllEdges, myHaveCustomPoly, and myPoly.
Referenced by NIImporter_SUMO::addJunction(), NIXMLNodesHandler::processNodeType(), GNEJunction::setAttribute(), and GNEJunction::setMoveShape().
|
inline |
set method for computing right-of-way
Definition at line 543 of file NBNode.h.
References myFringeType.
Referenced by NIImporter_SUMO::addJunction(), NGNode::buildNBNode(), NIXMLNodesHandler::processNodeType(), and GNEJunction::setAttribute().
|
inlinevirtualinherited |
resets the id
[in] | newID | The new id of this object |
Reimplemented in MSTransportable, and MSBaseVehicle.
Definition at line 81 of file Named.h.
References Named::myID.
Referenced by Distribution_Parameterized::parse(), NBLoadedSUMOTLDef::reconstructLogic(), NBEdgeCont::rename(), NBNodeCont::rename(), GNEJunction::setAttribute(), and IntermodalNetwork< E, L, N, V >::splitEdge().
|
inline |
set the keepClear flag
Definition at line 533 of file NBNode.h.
References myKeepClear.
Referenced by NIXMLNodesHandler::processNodeType().
|
inline |
set intersection name
Definition at line 548 of file NBNode.h.
References myName.
Referenced by NIImporter_SUMO::addJunction(), NIXMLNodesHandler::processNodeType(), and GNEJunction::setAttribute().
|
virtualinherited |
Sets a parameter.
[in] | key | The parameter's name |
[in] | value | The parameter's value |
Reimplemented in GNEPoly, GNEPOI, and MSActuatedTrafficLightLogic.
Definition at line 75 of file Parameterised.cpp.
References Parameterised::DOUBLE, Parameterised::myAttrType, Parameterised::myMap, StringUtils::toDouble(), and WRITE_WARNING.
Referenced by NLHandler::addDistrict(), RONetHandler::addParam(), SUMORouteHandler::addParam(), ShapeHandler::addPOI(), NBEdge::append(), NIImporter_OpenStreetMap::insertNodeChecking(), NBNodeCont::joinNodeCluster(), NBEdge::Lane::Lane(), NIImporter_OpenDrive::loadNetwork(), MSStateHandler::myStartElement(), NIImporter_MATSim::EdgesHandler::myStartElement(), NIXMLNodesHandler::myStartElement(), NIXMLTrafficLightsHandler::myStartElement(), ShapeHandler::myStartElement(), GNEAdditionalHandler::parseParameter(), GNEDataHandler::parseParameter(), GNEVehicleType::setAttribute(), NBEdge::setJunctionPriority(), NIImporter_OpenDrive::setLaneAttributes(), MSActuatedTrafficLightLogic::setParameter(), GNEPOI::setParameter(), GNEPoly::setParameter(), Parameterised::setParameters(), Parameterised::setParametersMap(), Parameterised::setParametersStr(), and Parameterised::updateParameters().
|
inherited |
set the inner key/value map in map<string, string> format
Definition at line 168 of file Parameterised.cpp.
References Parameterised::getParametersMap(), Parameterised::myMap, and Parameterised::setParameter().
|
inherited |
set the inner key/value map in map<string, string> format
Definition at line 179 of file Parameterised.cpp.
References Parameterised::myMap, and Parameterised::setParameter().
|
inherited |
set the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN"
[in] | paramsString | A serialized key-value map |
[in] | kvsep | The separater between key and value |
[in] | sep | The separater between map entries |
Definition at line 190 of file Parameterised.cpp.
References StringTokenizer::getVector(), Parameterised::myMap, and Parameterised::setParameter().
Referenced by MSDevice_Taxi::initDispatch(), GNEAccess::setAttribute(), GNEBusStop::setAttribute(), GNECalibrator::setAttribute(), GNECalibratorFlow::setAttribute(), GNEChargingStation::setAttribute(), GNEClosingLaneReroute::setAttribute(), GNEClosingReroute::setAttribute(), GNEContainerStop::setAttribute(), GNEDestProbReroute::setAttribute(), GNEDetectorE1::setAttribute(), GNEDetectorE1Instant::setAttribute(), GNEDetectorE2::setAttribute(), GNEDetectorE3::setAttribute(), GNEDetectorEntryExit::setAttribute(), GNEParkingArea::setAttribute(), GNEParkingAreaReroute::setAttribute(), GNEParkingSpace::setAttribute(), GNEPOI::setAttribute(), GNEPoly::setAttribute(), GNERerouter::setAttribute(), GNERerouterInterval::setAttribute(), GNERouteProbe::setAttribute(), GNERouteProbReroute::setAttribute(), GNETAZ::setAttribute(), GNETAZSourceSink::setAttribute(), GNEVaporizer::setAttribute(), GNEVariableSpeedSign::setAttribute(), GNEVariableSpeedSignStep::setAttribute(), GNEEdgeData::setAttribute(), GNEEdgeRelData::setAttribute(), GNETAZRelData::setAttribute(), GNEPerson::setAttribute(), GNEPersonTrip::setAttribute(), GNERide::setAttribute(), GNERoute::setAttribute(), GNEVehicle::setAttribute(), GNEVehicleType::setAttribute(), GNEWalk::setAttribute(), GNEConnection::setAttribute(), GNEEdge::setAttribute(), GNEEdgeType::setAttribute(), GNEJunction::setAttribute(), GNELane::setAttribute(), and GNELaneType::setAttribute().
|
private |
sets the priorites in case of a priority junction
|
inline |
set the turning radius
Definition at line 528 of file NBNode.h.
References myRadius.
Referenced by NIImporter_SUMO::addJunction(), NIXMLNodesHandler::processNodeType(), and GNEJunction::setAttribute().
|
inline |
set method for computing right-of-way
Definition at line 538 of file NBNode.h.
References myRightOfWay.
Referenced by NIImporter_SUMO::addJunction(), NIXMLNodesHandler::processNodeType(), and GNEJunction::setAttribute().
void NBNode::setRoundabout | ( | ) |
update the type of this node as a roundabout
Definition at line 3227 of file NBNode.cpp.
References myType, PRIORITY, and RIGHT_BEFORE_LEFT.
Referenced by NBEdgeCont::markRoundabouts().
void NBNode::shiftTLConnectionLaneIndex | ( | NBEdge * | edge, |
int | offset, | ||
int | threshold = -1 |
||
) |
patches loaded signal plans by modifying lane indices above threshold by the given offset
Definition at line 417 of file NBNode.cpp.
References myTrafficLights.
Referenced by NBEdge::addLane(), NBEdge::addRestrictedLane(), and NBEdge::restoreRestrictedLane().
void NBNode::sortEdges | ( | bool | useNodeShape | ) |
sort all edge containers for this node
Definition at line 3443 of file NBNode.cpp.
References computeNodeShape(), DEBUGCOND, myAllEdges, myCrossings, myIncomingEdges, myOutgoingEdges, and NBNodesEdgesSorter::swapWhenReversed().
Referenced by updateSurroundingGeometry().
bool NBNode::tlsContConflict | ( | const NBEdge * | from, |
const NBEdge::Connection & | c, | ||
const NBEdge * | foeFrom, | ||
const NBEdge::Connection & | foe | ||
) | const |
whether the connection must yield if the foe remains on the intersection after its phase ends
Definition at line 893 of file NBNode.cpp.
References foes(), NBEdge::Connection::haveVia, isTLControlled(), NBEdge::isTurningDirectionAt(), needsCont(), NBEdge::Connection::tlLinkIndex, and NBEdge::Connection::toEdge.
Referenced by NBRequest::getResponseString().
bool NBNode::turnFoes | ( | const NBEdge * | from, |
const NBEdge * | to, | ||
int | fromLane, | ||
const NBEdge * | from2, | ||
const NBEdge * | to2, | ||
int | fromLane2, | ||
bool | lefthand = false |
||
) | const |
return whether the given laneToLane connection originate from the same edge and are in conflict due to turning across each other
Definition at line 1890 of file NBNode.cpp.
References NBEdge::isTurningDirectionAt(), myAllEdges, NBContHelper::nextCCW(), NBContHelper::nextCW(), and UNUSED_PARAMETER.
Referenced by NBRequest::getFoesString().
|
inline |
return whether a priority road turns at this node
Definition at line 797 of file NBNode.h.
References myTypeWasGuessed.
Referenced by NBEdgeCont::guessRoundabouts().
|
inherited |
Removes a parameter.
[in] | key | The parameter's name |
Definition at line 92 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by NIImporter_OpenStreetMap::insertEdge(), and GNEVehicleType::setAttribute().
|
inherited |
Adds or updates all given parameters from the map.
[in] | mapArg | The keys/values to insert |
Definition at line 98 of file Parameterised.cpp.
References Parameterised::setParameter().
Referenced by NIImporter_SUMO::_loadNetwork(), PCLoaderOSM::addPOI(), PCLoaderOSM::addPolygon(), NLHandler::closeEdge(), NLJunctionControlBuilder::closeJunction(), NBTrafficLightDefinition::compute(), NIImporter_OpenStreetMap::insertEdge(), NBEdge::NBEdge(), and NBLoadedSUMOTLDef::NBLoadedSUMOTLDef().
void NBNode::updateSurroundingGeometry | ( | ) |
update geometry of node and surrounding edges
Definition at line 1031 of file NBNode.cpp.
References computeNodeShape(), myAllEdges, and sortEdges().
Referenced by GNENet::createRoundabout(), and NBNodeCont::guessTLs().
bool NBNode::writeLogic | ( | OutputDevice & | into | ) | const |
writes the XML-representation of the logic as a bitset-logic XML representation
Definition at line 993 of file NBNode.cpp.
References myRequest, and NBRequest::writeLogic().
Referenced by NWWriter_SUMO::writeJunction().
|
inherited |
write Params in the given outputdevice
Definition at line 205 of file Parameterised.cpp.
References OutputDevice::closeTag(), StringUtils::escapeXML(), Parameterised::myMap, OutputDevice::openTag(), SUMO_ATTR_KEY, SUMO_ATTR_VALUE, SUMO_TAG_PARAM, and OutputDevice::writeAttr().
Referenced by ROPerson::saveAsXML(), ROVehicle::saveAsXML(), MEVehicle::saveState(), MSVehicle::saveState(), SUMOVTypeParameter::write(), GNEAdditional::writeAdditional(), NWWriter_SUMO::writeConnection(), GNEPerson::writeDemandElement(), GNEPersonTrip::writeDemandElement(), GNERide::writeDemandElement(), GNERoute::writeDemandElement(), GNEVehicle::writeDemandElement(), GNEWalk::writeDemandElement(), NWWriter_SUMO::writeEdge(), NWWriter_XML::writeEdgesAndConnections(), NWWriter_SUMO::writeJunction(), NWWriter_SUMO::writeLane(), NWWriter_XML::writeNodes(), MSDevice_Vehroutes::writeOutput(), GNETAZ::writeTAZElement(), NWWriter_SUMO::writeTrafficLight(), SUMOPolygon::writeXML(), and PointOfInterest::writeXML().
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
static |
Definition at line 213 of file NBNode.h.
Referenced by bezierControlPoints(), and NBEdge::buildInnerEdges().
|
static |
Definition at line 211 of file NBNode.h.
Referenced by bezierControlPoints(), computeInternalLaneShape(), and NBNodeShapeComputer::getSmoothCorner().
|
static |
flags for controlling shape generation
Definition at line 210 of file NBNode.h.
Referenced by bezierControlPoints().
|
static |
Definition at line 204 of file NBNode.h.
Referenced by buildCrossings(), NBEdge::getCCWBoundaryLine(), NBEdge::getCWBoundaryLine(), NBEdge::getFirstAllowedLaneIndex(), and NBEdge::getFirstNonPedestrianLaneIndex().
|
static |
edge directions (for pedestrian related stuff)
Definition at line 203 of file NBNode.h.
Referenced by addedLanesRight(), buildCrossings(), NBTrafficLightDefinition::collectEdges(), computeLanes2Lanes(), NBEdge::expandableBy(), NBEdge::getCCWBoundaryLine(), NBEdge::getCWBoundaryLine(), NBEdge::getFirstAllowedLaneIndex(), NBEdge::getFirstNonPedestrianLaneIndex(), and getReduction().
|
static |
Definition at line 212 of file NBNode.h.
Referenced by bezierControlPoints(), and buildWalkingAreas().
|
private |
Vector of incoming and outgoing edges.
Definition at line 858 of file NBNode.h.
Referenced by addIncomingEdge(), addOutgoingEdge(), buildWalkingAreas(), computeLogic(), crossingBetween(), edgesBetween(), getDirection(), getEdges(), getEdgesSortedByAngleAtNodeCenter(), getEdgesThatApproach(), getEndPoints(), getNextCompatibleOutgoing(), guessCrossings(), isLeftMover(), removeDoubleEdges(), removeEdge(), replaceIncoming(), replaceOutgoing(), setCustomShape(), NBEdgePriorityComputer::setPriorityJunctionPriorities(), sortEdges(), turnFoes(), and updateSurroundingGeometry().
|
privateinherited |
parameterised type
Definition at line 143 of file Parameterised.h.
Referenced by Parameterised::Parameterised(), and Parameterised::setParameter().
|
private |
The container for connection block dependencies.
Definition at line 873 of file NBNode.h.
Referenced by addSortedLinkFoes(), computeLogic(), getProhibitions(), remapRemoved(), and replaceInConnectionProhibitions().
|
private |
Vector of crossings.
Definition at line 861 of file NBNode.h.
Referenced by addCrossing(), buildCrossings(), buildCrossingsAndWalkingAreas(), checkCrossingDuplicated(), checkIsRemovableReporting(), computeKeepClear(), discardAllCrossings(), getCrossing(), getCrossings(), getCrossingsIncludingInvalid(), guessCrossings(), mirrorX(), removeCrossing(), reshiftPosition(), and sortEdges().
|
private |
number of crossings loaded from a sumo net
Definition at line 909 of file NBNode.h.
Referenced by addCrossing(), and numCrossingsFromSumoNet().
|
private |
whether to discard all pedestrian crossings
Definition at line 906 of file NBNode.h.
Referenced by buildCrossings(), discardAllCrossings(), and guessCrossings().
|
private |
geometry error after computation of internal lane shapes
Definition at line 912 of file NBNode.h.
Referenced by bezierControlPoints(), buildInnerEdges(), and getDisplacementError().
|
private |
The district the node is the centre of.
Definition at line 876 of file NBNode.h.
Referenced by replaceIncoming(), and replaceOutgoing().
|
private |
fringe type of this node
Definition at line 900 of file NBNode.h.
Referenced by getFringeType(), and setFringeType().
|
private |
whether this nodes shape was set by the user
Definition at line 882 of file NBNode.h.
Referenced by computeNodeShape(), hasCustomShape(), and setCustomShape().
|
protectedinherited |
The name of the object.
Definition at line 124 of file Named.h.
Referenced by MSE2Collector::addDetectorToLanes(), RODFDetector::buildDestinationDistribution(), NGEdge::buildNBEdge(), NGNode::buildNBNode(), MSSOTLTrafficLightLogic::checkPhases(), computeNodeShape(), MSE2Collector::detectorUpdate(), GNEPOI::getAttribute(), GNEPoly::getAttribute(), MSLane::getCanonicalPredecessorLane(), MSLane::getCanonicalSuccessorLane(), Named::getID(), NBEdge::getLaneID(), ROEdge::getStoredEffort(), MSLane::getSurroundingVehicles(), ROEdge::getTravelTime(), NBEdge::init(), MSActuatedTrafficLightLogic::init(), MSDelayBasedTrafficLightLogic::init(), MSSOTLTrafficLightLogic::init(), MSLane::isInsertionSuccess(), NBNode(), MSE2Collector::notifyEnter(), MSE2Collector::notifyLeave(), MSE2Collector::notifyMove(), MSMeanData::openInterval(), RORouteDef::preComputeCurrentRoute(), NBEdge::reinitNodes(), MSRoute::release(), GNEPOI::setAttribute(), GNEPoly::setAttribute(), Named::setID(), MSSOTLTrafficLightLogic::setToATargetPhase(), Distribution_Parameterized::toStr(), MSChargingStation::writeChargingStationOutput(), RODFDetector::writeEmitterDefinition(), MSOverheadWire::writeOverheadWireSegmentOutput(), RODFDetector::writeSingleSpeedTrigger(), MEInductLoop::writeXMLOutput(), and MSE3Collector::writeXMLOutput().
|
private |
Vector of incoming edges.
Definition at line 852 of file NBNode.h.
Referenced by addIncomingEdge(), avoidOverlap(), buildInnerEdges(), checkIsRemovableReporting(), computeKeepClear(), computeLanes2Lanes(), computeLogic(), computeNodeShape(), NBNodeTypeComputer::computeNodeTypes(), displaceShapeAtWidthChange(), geometryLike(), getConnectionIndex(), getEdgesToJoin(), getEmptyDir(), getIncomingEdges(), getOppositeIncoming(), getPossiblySplittedIncoming(), hasIncoming(), invalidateIncomingConnections(), isConstantWidthTransition(), isLeftMover(), isSimpleContinuation(), numNormalConnections(), reinit(), removeDoubleEdges(), removeEdge(), removeSelfLoops(), replaceIncoming(), replaceOutgoing(), NBEdgePriorityComputer::setPriorityJunctionPriorities(), and sortEdges().
|
private |
Definition at line 917 of file NBNode.h.
Referenced by isBentPriority(), and markBentPriority().
|
private |
whether the junction area must be kept clear
Definition at line 894 of file NBNode.h.
Referenced by computeKeepClear(), getKeepClear(), and setKeepClear().
|
privateinherited |
The key->value map.
Definition at line 146 of file Parameterised.h.
Referenced by Parameterised::clearParameter(), Parameterised::getDouble(), Parameterised::getParameter(), Parameterised::getParametersMap(), Parameterised::getParametersStr(), Parameterised::knowsParameter(), Parameterised::Parameterised(), Parameterised::setParameter(), Parameterised::setParameters(), Parameterised::setParametersMap(), Parameterised::setParametersStr(), Parameterised::unsetParameter(), and Parameterised::writeParams().
|
private |
|
private |
Vector of outgoing edges.
Definition at line 855 of file NBNode.h.
Referenced by addOutgoingEdge(), checkIsRemovableReporting(), computeLanes2Lanes(), computeLogic(), computeNodeShape(), displaceShapeAtWidthChange(), geometryLike(), getConnectionTo(), getEdgesToJoin(), getEmptyDir(), getOutgoingEdges(), getPossiblySplittedOutgoing(), hasOutgoing(), invalidateOutgoingConnections(), isConstantWidthTransition(), isLeftMover(), isRoundabout(), isSimpleContinuation(), reinit(), removeDoubleEdges(), removeEdge(), removeSelfLoops(), replaceOutgoing(), NBEdgePriorityComputer::setPriorityJunctionPriorities(), and sortEdges().
|
private |
the (outer) shape of the junction
Definition at line 879 of file NBNode.h.
Referenced by computeNodeShape(), getCenter(), getShape(), GNEJunction::invalidateShape(), mirrorX(), reshiftPosition(), and setCustomShape().
|
private |
The position the node lies at.
Definition at line 849 of file NBNode.h.
Referenced by computeNodeShape(), getCenter(), getEmptyDir(), getPosition(), mirrorX(), reinit(), and reshiftPosition().
|
private |
the turning radius (for all corners) at this node in m.
Definition at line 891 of file NBNode.h.
Referenced by computeNodeShape(), getRadius(), and setRadius().
|
private |
Node requests.
Definition at line 885 of file NBNode.h.
Referenced by computeKeepClear(), computeLogic(), computeLogic2(), foes(), forbids(), getFoes(), getResponse(), hasConflict(), mergeConflict(), mergeConflictYields(), mustBrake(), needsCont(), numNormalConnections(), removeTrafficLights(), writeLogic(), and ~NBNode().
|
private |
how to compute right of way for this node
Definition at line 897 of file NBNode.h.
Referenced by getRightOfWay(), and setRightOfWay().
|
private |
traffic lights of node
Definition at line 888 of file NBNode.h.
Referenced by addTrafficLight(), checkIsRemovableReporting(), getControllingTLS(), invalidateTLS(), isTLControlled(), needsCont(), removeEdge(), removeJoinedTrafficLights(), removeTrafficLight(), removeTrafficLights(), rightOnRedConflict(), and shiftTLConnectionLaneIndex().
|
private |
The type of the junction.
Definition at line 870 of file NBNode.h.
Referenced by addTrafficLight(), checkCrossing(), checkIsRemovableReporting(), computeLanes2Lanes(), computeLogic(), NBNodeTypeComputer::computeNodeTypes(), getLinkState(), getType(), isDistrict(), needsCont(), reinit(), removeTrafficLights(), setRoundabout(), and NBNodeTypeComputer::validateRailCrossings().
|
private |
whether the node type was guessed rather than loaded
Definition at line 920 of file NBNode.h.
Referenced by NBNodeTypeComputer::computeNodeTypes(), and typeWasGuessed().
|
private |
Vector of custom walking areas shapes.
Definition at line 867 of file NBNode.h.
Referenced by addWalkingAreaShape(), buildWalkingAreas(), getWalkingAreaCustomShapes(), mirrorX(), and reshiftPosition().
|
private |
Vector of walking areas.
Definition at line 864 of file NBNode.h.
Referenced by buildCrossingsAndWalkingAreas(), buildWalkingAreas(), discardWalkingareas(), getWalkingAreas(), and mirrorX().
|
static |
Definition at line 214 of file NBNode.h.
Referenced by bezierControlPoints(), and NBEdge::buildInnerEdges().
|
static |
unspecified lane width
Definition at line 207 of file NBNode.h.
Referenced by computeNodeShape(), NBNodeShapeComputer::computeNodeShapeDefault(), GNENet::createRoundabout(), GNEJunction::getPopUpMenu(), NWWriter_SUMO::writeJunction(), and NWWriter_XML::writeNodes().