SUMO - Simulation of Urban MObility
NBNode Class Reference

Represents a single node (junction) during network building. More...

#include <NBNode.h>

Inheritance diagram for NBNode:
Inheritance graph
Collaboration diagram for NBNode:
Collaboration graph

Data Structures

class  ApproachingDivider
 Computes lane-2-lane connections. More...
 
struct  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 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...
 
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)
 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 (NBEdge *fromE, const NBEdge::Connection &con, int numPoints, NBNode *recordError=0) const
 Compute the shape for an internal lane. More...
 
void computeLanes2Lanes ()
 computes the connections of lanes to edges More...
 
void computeLogic (const NBEdgeCont &ec, OptionsCont &oc)
 computes the node's type, logic and traffic light 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...
 
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 std::string &id) const
 return the crossing with the given id More...
 
Crossing * getCrossing (const EdgeVector &edges, bool hardFail=true) const
 return the crossing with the given Edges More...
 
std::vector< Crossing * > getCrossings () const
 return this junctions pedestrian crossings More...
 
const std::vector< 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< Position > getEndPoints () const
 return list of unique endpoint coordinates of all edges at this node 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...
 
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 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 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 ()
 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
 if node is near district More...
 
bool isSimpleContinuation (bool checkLaneNumbers=true) 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 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, SumoXMLNodeType type)
 Constructor. More...
 
 NBNode (const std::string &id, const Position &position, NBDistrict *district=0)
 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 (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 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 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...
 
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...
 
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 setID (const std::string &newID)
 resets the id More...
 
void setKeepClear (bool keepClear)
 set the keepClear flag More...
 
void setParameter (const std::string &key, const std::string &value)
 Sets a parameter. More...
 
void setRadius (double radius)
 set the turning radius 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...
 
void unsetParameter (const std::string &key)
 Removes a parameter. More...
 
void updateParameter (const std::map< std::string, std::string > &mapArg)
 Adds or updates all given parameters from the map. More...
 
bool writeLogic (OutputDevice &into, const bool checkLaneFoes) 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...
 
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 ()
 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 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, bool lefthand=false)
 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_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 double UNSPECIFIED_RADIUS = -1
 unspecified lane width More...
 

Protected Attributes

std::string myID
 The name of the object. More...
 

Private Member Functions

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...
 
EdgeVector * getEdgesThatApproach (NBEdge *currentOutgoing)
 returns a list of edges which are connected to the given outgoing edge 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 isLongEnough (NBEdge *out, double minLength)
 check if is long enough More...
 

Private Attributes

EdgeVector myAllEdges
 Vector of incoming and outgoing edges. More...
 
NBConnectionProhibits myBlockedConnections
 The container for connection block dependencies. More...
 
std::vector< 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...
 
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...
 
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...
 
std::set< NBTrafficLightDefinition * > myTrafficLights
 traffic lights of node More...
 
SumoXMLNodeType myType
 The type of the junction. 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 NBNodeShapeComputer
 
class NBNodeTypeComputer
 

Detailed Description

Represents a single node (junction) during network building.

Definition at line 68 of file NBNode.h.

Constructor & Destructor Documentation

◆ NBNode() [1/3]

NBNode::NBNode ( const std::string &  id,
const Position &  position,
SumoXMLNodeType  type 
)

Constructor.

Parameters
[in]idThe id of the node
[in]positionThe position of the node
[in]typeThe type of the node

Definition at line 239 of file NBNode.cpp.

References SUMOXMLDefinitions::isValidNetID(), and Named::myID.

◆ NBNode() [2/3]

NBNode::NBNode ( const std::string &  id,
const Position &  position,
NBDistrict *  district = 0 
)

Constructor.

Parameters
[in]idThe id of the node
[in]positionThe position of the node
[in]districtThe district this district node represents, 0 means no district node

Definition at line 259 of file NBNode.cpp.

References SUMOXMLDefinitions::isValidNetID(), and Named::myID.

◆ ~NBNode()

NBNode::~NBNode ( )

Destructor.

Definition at line 278 of file NBNode.cpp.

References myRequest.

◆ NBNode() [3/3]

NBNode::NBNode ( const NBNode &  s)
private

invalidated copy constructor

Member Function Documentation

◆ addCrossing()

NBNode::Crossing * NBNode::addCrossing ( EdgeVector  edges,
double  width,
bool  priority,
int  tlIndex = -1,
int  tlIndex2 = -1,
const PositionVector &  customShape = PositionVector::EMPTY,
bool  fromSumoNet = false 
)

◆ addIncomingEdge()

void NBNode::addIncomingEdge ( NBEdge *  edge)

adds an incoming edge

Definition at line 425 of file NBNode.cpp.

References myAllEdges, and myIncomingEdges.

Referenced by getControllingTLS(), NBEdge::init(), GNENet::insertEdge(), NBEdge::reinitNodes(), and NBEdge::splitGeometry().

◆ addOutgoingEdge()

void NBNode::addOutgoingEdge ( NBEdge *  edge)

adds an outgoing edge

Definition at line 435 of file NBNode.cpp.

References myAllEdges, and myOutgoingEdges.

Referenced by getControllingTLS(), NBEdge::init(), GNENet::insertEdge(), and NBEdge::reinitNodes().

◆ addSortedLinkFoes()

◆ addTo()

void Named::addTo ( const StoringVisitor &  cont) const
inlineinherited

Adds this object to the given container.

Parameters

Definition at line 114 of file Named.h.

References Named::StoringVisitor::add().

◆ addTrafficLight()

void NBNode::addTrafficLight ( NBTrafficLightDefinition *  tlDef)

Adds a traffic light to the list of traffic lights that control this node.

Parameters
[in]tldThe traffic light that controls this node

Definition at line 335 of file NBNode.cpp.

References isTrafficLight(), myTrafficLights, myType, NODETYPE_RAIL_CROSSING, NODETYPE_RAIL_SIGNAL, and NODETYPE_TRAFFIC_LIGHT.

Referenced by NBTrafficLightDefinition::addNode(), NBLoadedTLDef::addToSignalGroup(), getKeepClear(), and NIImporter_OpenDrive::loadNetwork().

◆ addWalkingAreaShape()

void NBNode::addWalkingAreaShape ( EdgeVector  edges,
const PositionVector &  shape 
)

◆ avoidOverlap()

void NBNode::avoidOverlap ( )

fix overlap

Definition at line 3002 of file NBNode.cpp.

References NBEdge::getTurnDestination(), myIncomingEdges, and NBEdge::shiftPositionAtNode().

Referenced by getWalkingAreaCustomShapes().

◆ bezierControlPoints()

◆ buildCrossings()

◆ buildCrossingsAndWalkingAreas()

void NBNode::buildCrossingsAndWalkingAreas ( )

build crossings, and walkingareas. Also removes invalid loaded crossings if wished

Definition at line 2200 of file NBNode.cpp.

References buildCrossings(), buildWalkingAreas(), Named::getID(), OptionsCont::getOptions(), myCrossings, myWalkingAreas, toString(), and WRITE_WARNING.

Referenced by getDisplacementError(), and GNEJunction::rebuildGNECrossings().

◆ buildInnerEdges()

void NBNode::buildInnerEdges ( )

build internal lanes, pedestrian crossings and walking areas

Definition at line 2260 of file NBNode.cpp.

References myDisplacementError, and myIncomingEdges.

Referenced by getDisplacementError().

◆ buildWalkingAreas()

void NBNode::buildWalkingAreas ( int  cornerDetail)

build pedestrian walking areas and set connections from/to walkingAreas

Parameters
[in]cornerDetailThe detail level when generating the inner curve

Definition at line 2374 of file NBNode.cpp.

References PositionVector::append(), computeSmoothShape(), crossingBetween(), DEBUGCOND, Position::distanceTo2D(), NBNode::Crossing::edges, FOUR_CONTROL_POINTS, gDebugFlag1, getCrossings(), getEdgesSortedByAngleAtNodeCenter(), NBEdge::getFromNode(), Named::getID(), NBEdge::getLanes(), NBEdge::getLaneShape(), NBEdge::getSidewalkID(), PositionVector::getSubpartByIndex(), NBEdge::hasConnectionTo(), NBNode::WalkingArea::hasCustomShape, NBNode::Crossing::id, NBNode::WalkingArea::id, 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, POSITION_EPS, 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, toString(), NBEdge::UNSPECIFIED_WIDTH, NBNode::Crossing::valid, NBNode::Crossing::width, NBEdge::Lane::width, NBNode::WalkingArea::width, and WRITE_WARNING.

Referenced by buildCrossingsAndWalkingAreas(), and getDisplacementError().

◆ checkCrossing()

◆ checkCrossingDuplicated()

bool NBNode::checkCrossingDuplicated ( EdgeVector  edges)

return true if there already exist a crossing with the same edges as the input

Definition at line 2172 of file NBNode.cpp.

References myCrossings.

Referenced by NIXMLConnectionsHandler::addCrossing(), getDisplacementError(), GNECrossing::isValid(), and GNECrossingFrame::onCmdCreateCrossing().

◆ checkIsRemovable()

bool NBNode::checkIsRemovable ( ) const

check if node is removable

Definition at line 1815 of file NBNode.cpp.

References checkIsRemovableReporting().

Referenced by getEdgesToJoin(), hasCustomShape(), NBNodeCont::removeUnwishedNodes(), and GNENet::replaceJunctionByGeometry().

◆ checkIsRemovableReporting()

bool NBNode::checkIsRemovableReporting ( std::string &  reason) const

check if node is removable and return reason if not

Definition at line 1821 of file NBNode.cpp.

References NBEdge::getTurnDestination(), myCrossings, myIncomingEdges, myOutgoingEdges, myTrafficLights, myType, and NODETYPE_RAIL_SIGNAL.

Referenced by checkIsRemovable(), GNEJunction::getPopUpMenu(), and hasCustomShape().

◆ clearParameter()

◆ computeInternalLaneShape()

PositionVector NBNode::computeInternalLaneShape ( NBEdge *  fromE,
const NBEdge::Connection &  con,
int  numPoints,
NBNode *  recordError = 0 
) const

Compute the shape for an internal lane.

Parameters
[in]fromEThe starting edge
[in]conThe connection for this internal lane
[in]numPointsThe number of geometry points for the internal lane
[in]recordErrorThe node itself if the displacement error during shape computation shall be recorded
Returns
The shape of the internal lane

Definition at line 658 of file NBNode.cpp.

References PositionVector::append(), AVOID_WIDE_LEFT_TURN, computeSmoothShape(), NBEdge::Connection::customShape, displaceShapeAtWidthChange(), NBEdge::Lane::endOffset, NBEdge::Connection::fromLane, NBEdge::Connection::getDescription(), getDirection(), NBEdge::getLaneShape(), NBEdge::getLaneStruct(), NBEdge::getNumLanes(), PositionVector::getSubpart(), NBEdge::getTurnDestination(), PositionVector::length(), LINKDIR_LEFT, LINKDIR_TURN, NBEdge::Lane::shape, NBEdge::Connection::toEdge, and NBEdge::Connection::toLane.

Referenced by NBEdge::bothLeftIntersect(), NBEdge::buildInnerEdges(), and hasCustomShape().

◆ computeLanes2Lanes()

◆ computeLogic()

◆ computeNodeShape()

void NBNode::computeNodeShape ( double  mismatchThreshold)

◆ computeSmoothShape()

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.

Parameters
[in]begShapeThe geometry at the start
[in]endShapeThe geometry at the end
[in]numPointsThe number of geometry points for the internal lane
[in]isTurnaroundWhether this shall be the shape for a turnaround
[in]extrapolateBegExtrapolation distance at the beginning
[in]extrapolateEndExtrapolation distance at the end
[in]recordErrorThe node itself if the displacement error during shape computation shall be recorded
Returns
The shape of the internal lane

Definition at line 474 of file NBNode.cpp.

References bezier(), bezierControlPoints(), DEBUGCOND, DEG2RAD, and Named::getID().

Referenced by buildWalkingAreas(), computeInternalLaneShape(), NBNodeShapeComputer::getSmoothCorner(), hasCustomShape(), and GNEConnection::updateGeometry().

◆ crossingBetween()

bool NBNode::crossingBetween ( const NBEdge *  e1,
const NBEdge *  e2 
) const

return true if the given edges are connected by a crossing

Definition at line 2751 of file NBNode.cpp.

References getCrossings(), and myAllEdges.

Referenced by buildWalkingAreas(), and getDisplacementError().

◆ discardAllCrossings()

void NBNode::discardAllCrossings ( bool  rejectAll)

discard all current (and optionally future) crossings

Definition at line 2241 of file NBNode.cpp.

References myCrossings, and myDiscardAllCrossings.

Referenced by NIXMLConnectionsHandler::addCrossing(), and getProhibitions().

◆ discardWalkingareas()

void NBNode::discardWalkingareas ( )

discard previously built walkingareas (required for repeated computation by netedit)

Definition at line 2254 of file NBNode.cpp.

References myWalkingAreas.

Referenced by getProhibitions().

◆ displaceShapeAtWidthChange()

void NBNode::displaceShapeAtWidthChange ( const NBEdge *  from,
const NBEdge::Connection &  con,
PositionVector &  fromShape,
PositionVector &  toShape 
) const
private

◆ edgesBetween()

EdgeVector NBNode::edgesBetween ( const NBEdge *  e1,
const NBEdge *  e2 
) const

return all edges that lie clockwise between the given edges

Definition at line 2772 of file NBNode.cpp.

References myAllEdges, and NBContHelper::nextCW().

Referenced by getDisplacementError().

◆ foes()

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.

Parameters
[in]from1The starting edge of the first stream
[in]to1The ending edge of the first stream
[in]from2The starting edge of the second stream
[in]to2The ending edge of the second stream
Returns
Whether both stream are foes (cross)

Definition at line 1608 of file NBNode.cpp.

References NBRequest::foes(), and myRequest.

Referenced by NBEdge::buildInnerEdges(), NBTrafficLightDefinition::foes(), NBTrafficLightDefinition::forbids(), getControllingTLS(), GNEProhibitionFrame::handleConnectionClick(), needsCont(), and tlsContConflict().

◆ forbids()

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.

Parameters
[in]possProhibitedFromThe maybe prohibited connection's begin
[in]possProhibitedToThe maybe prohibited connection's end
[in]possProhibitorFromThe maybe prohibiting connection's begin
[in]possProhibitorToThe maybe prohibiting connection's end
[in]regardNonSignalisedLowerPriorityWhether the right of way rules without traffic lights shall be regarded
Returns
Whether the second flow prohibits the first one

Definition at line 1598 of file NBNode.cpp.

References NBRequest::forbids(), and myRequest.

Referenced by NBEdge::buildInnerEdges(), NBTrafficLightDefinition::forbids(), getControllingTLS(), and GNEProhibitionFrame::handleConnectionClick().

◆ forbidsPedestriansAfter()

bool NBNode::forbidsPedestriansAfter ( std::vector< std::pair< NBEdge *, bool > >  normalizedLanes,
int  startIndex 
)
private

return whether there is a non-sidewalk lane after the given index;

Definition at line 2189 of file NBNode.cpp.

Referenced by guessCrossings(), and isBentPriority().

◆ geometryLike()

◆ getCenter()

Position NBNode::getCenter ( ) const

Returns a position that is guaranteed to lie within the node shape.

Definition at line 2941 of file NBNode.cpp.

References PositionVector::around(), PositionVector::closePolygon(), PositionVector::distance2D(), PositionVector::getPolygonCenter(), myPoly, myPosition, and POSITION_EPS.

Referenced by getPosition().

◆ getConnectionIndex()

int NBNode::getConnectionIndex ( const NBEdge *  from,
const NBEdge::Connection &  con 
) const

return the index of the given connection

Definition at line 2922 of file NBNode.cpp.

References NBEdge::Connection::fromLane, myIncomingEdges, NBEdge::Connection::toEdge, and NBEdge::Connection::toLane.

Referenced by GNELane::drawLinkNo(), and getWalkingAreaCustomShapes().

◆ getConnectionTo()

NBEdge * NBNode::getConnectionTo ( NBNode *  n) const

◆ getControllingTLS()

const std::set<NBTrafficLightDefinition*>& NBNode::getControllingTLS ( ) const
inline

◆ getCrossing() [1/2]

◆ getCrossing() [2/2]

NBNode::Crossing * NBNode::getCrossing ( const EdgeVector &  edges,
bool  hardFail = true 
) const

return the crossing with the given Edges

Definition at line 2874 of file NBNode.cpp.

References myCrossings.

◆ getCrossings()

◆ getCrossingsIncludingInvalid()

const std::vector<Crossing*>& NBNode::getCrossingsIncludingInvalid ( ) const
inline

Definition at line 636 of file NBNode.h.

References myCrossings.

Referenced by GNEJunction::rebuildGNECrossings().

◆ getDirection()

LinkDirection NBNode::getDirection ( const NBEdge *const  incoming,
const NBEdge *const  outgoing,
bool  leftHand = false 
) const

Returns the representation of the described stream's direction.

Parameters
[in]incomingThe edge the stream starts at
[in]outgoingThe edge the stream ends at
[in]leftHandWhether a lefthand network is being built. Should only be set at writing time
Returns
The direction of the stream

Definition at line 1696 of file NBNode.cpp.

References NBEdge::getAngleAtNode(), NBEdge::getJunctionPriority(), NBEdge::getPermissions(), NBEdge::isTurningDirectionAt(), LINKDIR_LEFT, LINKDIR_NODIR, LINKDIR_PARTLEFT, LINKDIR_PARTRIGHT, LINKDIR_RIGHT, LINKDIR_STRAIGHT, LINKDIR_TURN, LINKDIR_TURN_LEFTHAND, myAllEdges, myOutgoingEdges, NBContHelper::nextCCW(), NBContHelper::nextCW(), NBHelpers::normRelAngle(), NBEdge::ROUNDABOUT, and SVC_PEDESTRIAN.

Referenced by NBEdge::addStraightConnections(), NBEdge::bothLeftIntersect(), NBEdge::buildInnerEdges(), computeInternalLaneShape(), computeLanes2Lanes(), NBOwnTLDef::computeLogicAndConts(), NBOwnTLDef::computeUnblockedWeightedStreamNumber(), displaceShapeAtWidthChange(), GNELane::drawArrows(), NBTrafficLightDefinition::forbids(), getControllingTLS(), NBNodeShapeComputer::getDefaultRadius(), NWWriter_SUMO::getOppositeInternalID(), NBEdge::MainDirections::MainDirections(), NBRequest::mergeConflict(), NBRequest::mustBrake(), NBRequest::mustBrakeForCrossing(), needsCont(), NBRequest::oppositeLeftTurnConflict(), NBOwnTLDef::patchStateForCrossings(), rightTurnConflict(), NBRequest::setBlocking(), NBEdgePriorityComputer::setPriorityJunctionPriorities(), NWWriter_SUMO::writeConnection(), NWWriter_SUMO::writeInternalConnections(), and NWWriter_OpenDrive::writeInternalEdge().

◆ getDisplacementError()

double NBNode::getDisplacementError ( ) const
inline

◆ getDouble()

double Parameterised::getDouble ( const std::string &  key,
const double  defaultValue 
) const
inherited

Returns the value for a given key converted to a double.

Parameters
[in]keyThe key to ask for
[in]defaultValueThe default value to return if no value is stored under the key
Returns
The value stored under the key

Definition at line 82 of file Parameterised.cpp.

References TplConvert::_2double(), Parameterised::myMap, and WRITE_WARNING.

Referenced by MSDevice_Battery::buildVehicleDevices().

◆ getEdges()

◆ getEdgesSortedByAngleAtNodeCenter()

EdgeVector NBNode::getEdgesSortedByAngleAtNodeCenter ( ) const
private

returns the list of all edges sorted clockwise by getAngleAtNodeToCenter

Definition at line 2959 of file NBNode.cpp.

References gDebugFlag1, myAllEdges, and toString().

Referenced by buildWalkingAreas(), guessCrossings(), and isBentPriority().

◆ getEdgesThatApproach()

EdgeVector * NBNode::getEdgesThatApproach ( NBEdge *  currentOutgoing)
private

returns a list of edges which are connected to the given outgoing edge

Definition at line 1154 of file NBNode.cpp.

References myAllEdges, and NBContHelper::nextCW().

Referenced by computeLanes2Lanes(), and isBentPriority().

◆ getEdgesToJoin()

std::vector< std::pair< NBEdge *, NBEdge * > > NBNode::getEdgesToJoin ( ) const

◆ getEmptyDir()

Position NBNode::getEmptyDir ( ) const

Returns something like the most unused direction Should only be used to add source or sink nodes.

Definition at line 1422 of file NBNode.cpp.

References Position::add(), getPosition(), Position::mul(), myIncomingEdges, myOutgoingEdges, myPosition, Position::norm2d(), Position::sub(), Position::x(), and Position::y().

Referenced by getControllingTLS().

◆ getEndPoints()

std::vector< Position > NBNode::getEndPoints ( ) const

return list of unique endpoint coordinates of all edges at this node

Definition at line 3122 of file NBNode.cpp.

References Position::almostSame(), and myAllEdges.

Referenced by GNEJunction::getPopUpMenu(), isBentPriority(), and GNENet::splitJunction().

◆ getID()

const std::string& Named::getID ( ) const
inlineinherited

Returns the id.

Returns
The stored id

Definition at line 69 of file Named.h.

Referenced by NIImporter_SUMO::_loadNetwork(), MSLCM_LC2013::adaptSpeedToPedestrians(), MSVehicle::adaptToLeader(), MSVehicle::adaptToLeaders(), MSPModel_Remote::add(), LaneStoringVisitor::add(), MSPModel_Striping::add(), MSVehicleTransfer::add(), PCPolyContainer::add(), MSDetectorControl::add(), Named::StoringVisitor::add(), ShapeContainer::add(), NLTriggerBuilder::addAccess(), RORouteDef::addAlternative(), MSLane::addApproachingLane(), NBRailwayTopologyAnalyzer::addBidiEdge(), NBRailwayTopologyAnalyzer::addBidiEdgesForStops(), NBLoadedSUMOTLDef::addConnection(), NLHandler::addConnection(), NIXMLConnectionsHandler::addCrossing(), MSPModel_Striping::addCrossingVehs(), RODFDetectorCon::addDetector(), RONet::addEdge(), NBParkingCont::addEdges2Keep(), ROJTREdge::addFollowerProbability(), MSTLLogicControl::TLSLogicVariants::addLogic(), RONet::addNode(), MSRouteHandler::addPersonTrip(), NIImporter_SUMO::addPhase(), GUIEdge::addRerouter(), NBEdge::addRestrictedLane(), RONet::addRouteDef(), NBDistrict::addSink(), NBDistrict::addSource(), NIXMLEdgesHandler::addSplit(), NBTrafficLightLogic::addStep(), ROVehicle::addStop(), MSRouteHandler::addStop(), MSVehicle::addStop(), MSNet::addStoppingPlace(), NBEdge::addStraightConnections(), NIXMLTrafficLightsHandler::addTlConnection(), NIVissimDisturbance::addToNode(), MSVehicle::addTraciStop(), MSVehicle::addTraciStopAtStoppingPlace(), AGActivityTripWriter::addTrip(), NIXMLConnectionsHandler::addWalkingArea(), NBRailwayTopologyAnalyzer::allBroken(), NBEdge::append(), NBEdgeCont::appendRailwayTurnarounds(), NBPTStopCont::assignAndCreatNewPTStopAsNeeded(), NBPTStopCont::assignPTStopToEdgeOfClosestPlatform(), GUITrafficLightLogicWrapper::begin2TrackPhases(), MSTransportable::Stage_Waiting::beginEventOutput(), MSTransportable::Stage_Driving::beginEventOutput(), MSPModel_Striping::blockedAtDist(), MSLink::blockedAtTime(), MSLink::blockedByFoe(), NLEdgeControlBuilder::build(), NIVisumTL::build(), RODFNet::buildApproachList(), MSSOTLE2Sensors::buildContinueSensior(), MSSOTLE2Sensors::buildCountSensorForLane(), MSSOTLE2Sensors::buildCountSensorForOutLane(), buildCrossings(), buildCrossingsAndWalkingAreas(), NIImporter_VISUM::buildDistrictNode(), NLDetectorBuilder::buildE2Detector(), NIVissimConnection::buildEdgeConnections(), RODFNet::buildEdgeFlowMap(), GNETLSEditorFrame::buildIinternalLanes(), NBEdge::buildInnerEdges(), NGEdge::buildNBEdge(), NIVissimEdge::buildNBEdge(), NBRampsComputer::buildOffRamp(), NBRampsComputer::buildOnRamp(), MELoop::buildSegmentsFor(), MSSOTLE2Sensors::buildSensorForLane(), MSSOTLE2Sensors::buildSensorForOutLane(), buildWalkingAreas(), MSBaseVehicle::calculateArrivalParams(), MSSwarmTrafficLightLogic::calculateEtaDiff(), MSSwarmTrafficLightLogic::calculateEtaRatio(), MSSOTLPolicyBasedTrafficLightLogic::canRelease(), MSLaneChanger::changeOpposite(), MELoop::changeSegment(), MSSimpleTrafficLightLogic::changeStepAndDuration(), MSEdge::checkAndRegisterBiDirEdge(), MSLane::checkForPedestrians(), NBEdge::checkGeometry(), NBEdgeCont::checkGrade(), MSVehicleTransfer::checkInsertions(), MSVehicle::checkLinkLeader(), NBEdgeCont::checkOverlap(), MSDevice_Battery::checkParam(), MSE2Collector::checkPositioning(), MSVehicle::checkRewindLinkLanes(), MSSwarmTrafficLightLogic::choosePolicy(), MSDevice_SSM::classifyEncounter(), NBTrafficLightLogic::closeBuilding(), ODDistrictHandler::closeDistrict(), NLHandler::closeEdge(), RORouteHandler::closeRouteDistribution(), RORouteHandler::closeVehicle(), NBTrafficLightDefinition::collectAllLinks(), NBLoadedSUMOTLDef::collectEdges(), NBTrafficLightDefinition::collectEdges(), NBLoadedSUMOTLDef::collectEdgeVectors(), NBLoadedTLDef::collectLinks(), ROJTRRouter::compute(), NBTrafficLightDefinition::compute(), NBEdge::computeAngle(), NBEdge::computeLaneShapes(), computeLogic(), NBOwnTLDef::computeLogicAndConts(), computeNodeShape(), NBNodeShapeComputer::computeNodeShapeDefault(), NBNodeShapeComputer::computeNodeShapeSmall(), RODFNet::computeRoutesFor(), NBTrafficLightLogicCont::computeSingleLogic(), computeSmoothShape(), NBTurningDirectionsComputer::computeTurnDirectionsForNode(), NGNet::connect(), MSSOTLWaveTrafficLightLogic::countVehicles(), MSSOTLE2Sensors::countVehicles(), MSDevice_SSM::createEncounters(), GUINet::createTLWrapper(), NBEdge::debugPrintConnections(), MSDeterministicHiLevelTrafficLightLogic::decideNextPhase(), MSSOTLPolicyBasedTrafficLightLogic::decideNextPhase(), MSSwarmTrafficLightLogic::decideNextPhase(), MSDeterministicHiLevelTrafficLightLogic::decidePolicy(), MSSwarmTrafficLightLogic::decidePolicy(), MSLane::detectCollisionBetween(), MSLane::detectCollisions(), MSLane::detectPedestrianJunctionCollision(), NIVissimDistrictConnection::dict_BuildDistricts(), NBEdge::divideOnEdges(), NBEdge::divideSelectedLanesOnEdges(), MSTransportable::Stage_Waiting::endEventOutput(), MSTransportable::Stage_Driving::endEventOutput(), MSE3Collector::enter(), MSVehicle::enterLaneAtMove(), METriggeredCalibrator::execute(), MSCalibrator::execute(), Command_SaveTLSState::execute(), Command_SaveTLSSwitchStates::execute(), Command_SaveTLSSwitches::execute(), MSVTypeProbe::execute(), MSTrafficLightLogic::SwitchCommand::execute(), MSPModel_Striping::MovePedestrians::execute(), MSVehicle::executeMove(), MSLane::executeMovements(), NBRailwayTopologyAnalyzer::extendBidiEdges(), NBNodeCont::extract(), NBTrafficLightLogicCont::extract(), NBEdgeCont::extract(), NBNodeCont::feasibleCluster(), libsumo::Helper::findCloserLane(), MSDevice_SSM::findFoeConflictLane(), libsumo::Simulation::findIntermodalRoute(), MSDevice_SSM::findSurroundingVehicles(), MSDevice_SSM::flushConflicts(), NBTrafficLightDefinition::forbids(), NBRampsComputer::fulfillsRampConstraints(), NBPTStopCont::generateBidiStops(), NBNodeCont::generateNodeClusters(), RODFDetectorCon::getAggFlowFor(), RODFDetectorCon::getAnyDetectorForEdge(), MSPModel_Striping::getArbitraryPath(), GNEConnection::getAttribute(), MSVehicle::getBackPosition(), MSVehicle::getBackPositionOnLane(), libsumo::Vehicle::getBestLanes(), NBOwnTLDef::getBestPair(), NBRailwayTopologyAnalyzer::getBrokenRailNodes(), MSVehicle::getCenterOnEdge(), MSDevice_Battery::getChargingStationID(), NBEdge::getConnection(), NBEdge::getConnectionRef(), libsumo::TrafficLight::getControlledLinks(), MSLane::getCriticalLeader(), NBEdge::getCrossingAngle(), NBNodeShapeComputer::getDefaultRadius(), RODFNet::getDetectorEdge(), libsumo::Lane::getEdgeID(), MSMeanData::getEdgeID(), NBEdge::getFirstNonPedestrianLane(), MSPModel_Remote::getFirstPedestrianLane(), MSLane::getFollower(), MSLane::getFollowersOnConsecutive(), libsumo::LaneArea::getLaneID(), libsumo::InductionLoop::getLaneID(), libsumo::Vehicle::getLaneID(), MSLane::getLastVehicleInformation(), MSVehicle::getLatOffset(), MSLane::getLeader(), MSLink::getLeaderInfo(), MSLane::getLeaderOnConsecutive(), MSLane::getLeadersOnConsecutive(), MSLink::getLengthBeforeCrossing(), MSLane::getLinkTo(), MSTLLogicControl::TLSLogicVariants::getLogicInstantiatingOff(), MSDeterministicHiLevelTrafficLightLogic::getMeanSpeedForInputLanes(), MSDeterministicHiLevelTrafficLightLogic::getMeanSpeedForOutputLanes(), NIImporter_VISUM::getNamedEdgeContinuating(), MSPerson::getNextEdge(), MSPModel_Striping::getNextLane(), MSLane::getOppositeFollower(), MSLane::getOppositeLeader(), MSLane::getOppositePos(), GUITrafficLightLogicWrapper::getParameterWindow(), GUIInstantInductLoop::MyWrapper::getParameterWindow(), GUIMEInductLoop::MyWrapper::getParameterWindow(), GUIVehicle::getParameterWindow(), GUIE2Collector::MyWrapper::getParameterWindow(), GUIInductLoop::MyWrapper::getParameterWindow(), MSLane::getPartialBehind(), MSSOTLTrafficLightLogic::getPhaseIndexWithMaxCTS(), MSSwarmTrafficLightLogic::getPheromoneForInputLanes(), MSSwarmTrafficLightLogic::getPheromoneForOutputLanes(), GUITrafficLightLogicWrapper::getPopUpMenu(), NLTriggerBuilder::getPosition(), NLDetectorBuilder::getPositionChecking(), getPossiblySplittedIncoming(), getPossiblySplittedOutgoing(), NIImporter_VISUM::getReversedContinuating(), NBPTStopCont::getReverseStop(), libsumo::Person::getRoadID(), libsumo::Vehicle::getRoadID(), libsumo::Vehicle::getRouteID(), MSContainer::MSContainerStage_Driving::getStageSummary(), MSPerson::MSPersonStage_Walking::getStageSummary(), MSContainer::MSContainerStage_Tranship::getStageSummary(), MSTransportable::Stage_Waiting::getStageSummary(), MSPerson::MSPersonStage_Driving::getStageSummary(), MSPerson::MSPersonStage_Access::getStageSummary(), MSNet::getStoppingPlaceID(), MSDevice_SSM::getUpstreamVehicles(), MSPModel_Striping::getVehicleObstacles(), MSDevice_SSM::getVehiclesOnJunction(), MSTransportable::Stage_Driving::getWaitingDescription(), MSVehicleControl::getWaitingVehicle(), MSLink::getZipperSpeed(), guessCrossings(), RODFDetectorCon::guessEmptyFlows(), NBEdgeCont::guessSidewalks(), NBNodeCont::guessTLs(), GUITLLogicPhasesTrackerWindow::GUITLLogicPhasesTrackerWindow(), MSLane::handleCollisionBetween(), NBEdgeCont::ignoreFilterMatch(), MSVehicle::ignoreRed(), MSDeterministicHiLevelTrafficLightLogic::init(), MSRailSignal::init(), MSDelayBasedTrafficLightLogic::init(), MSActuatedTrafficLightLogic::init(), MSTrafficLightLogic::init(), MSSOTLTrafficLightLogic::init(), MSSwarmTrafficLightLogic::init(), NBEdge::init(), MSE2Collector::initAuxiliaries(), NIImporter_SUMO::initTrafficLightLogic(), NIXMLTrafficLightsHandler::initTrafficLightLogic(), NBDistrictCont::insert(), NBTrafficLightLogicCont::insert(), NBNodeCont::insert(), NBEdgeCont::insert(), MSEdge::insertVehicle(), MSLane::integrateNewVehicle(), GNEJunction::invalidateTLS(), invalidateTLS(), MSTLLogicControl::isActive(), MSPedestrianPushButton::isActiveForEdge(), MSPedestrianPushButton::isActiveOnAnySideOfTheRoad(), RODFNet::isDestination(), RODFNet::isFalseSource(), MSLane::isInsertionSuccess(), MSJunction::isLeader(), MESegment::isOpen(), RODFNet::isSource(), NIImporter_VISUM::isSplitEdge(), MSSOTLTrafficLightLogic::isThresholdPassed(), MESegment::jamThresholdForSpeed(), NBNodeShapeComputer::joinSameDirectionEdges(), NBEdgeCont::joinSameNodeConnectingEdges(), MSAbstractLaneChangeModel::laneChangeOutput(), MSE3Collector::leave(), MSE3Collector::leaveFront(), MSDevice_BTreceiver::BTreceiverUpdate::leaveRange(), MSPedestrianPushButton::loadCrossingEdgeMap(), NIImporter_OpenDrive::loadNetwork(), MSPedestrianPushButton::loadPushButtons(), NBEdge::MainDirections::MainDirections(), ODDistrictCont::makeDistricts(), MSE2Collector::makeVehicleInfo(), GNEJunction::markAsModified(), MSSOTLE2Sensors::meanVehiclesSpeed(), METriggeredCalibrator::METriggeredCalibrator(), MSPModel_Striping::moveInDirection(), MSPModel_Striping::moveInDirectionOnLane(), NBRampsComputer::moveRampRight(), MSPModel_Striping::PState::moveToNextLane(), libsumo::Person::moveToXY(), libsumo::Vehicle::moveToXY(), libsumo::Helper::moveToXYMap(), MSCalibrator::MSCalibrator(), MSChargingStation::MSChargingStation(), MSDevice_Battery::MSDevice_Battery(), MSE2Collector::MSE2Collector(), NBLoadedTLDef::myCompute(), NIImporter_SUMO::myEndElement(), NIXMLConnectionsHandler::myStartElement(), NIXMLEdgesHandler::myStartElement(), MSCalibrator::myStartElement(), MSLaneSpeedTrigger::myStartElement(), MSTriggeredRerouter::myStartElement(), NBConnection::NBConnection(), NBRequest::NBRequest(), MSPModel_Striping::nextBlocking(), MSDevice_BTsender::notifyEnter(), MSMeanData::MeanDataValues::notifyEnter(), MSDevice_Bluelight::notifyEnter(), MSDevice_BTreceiver::notifyEnter(), MSDevice_Example::notifyEnter(), MSMeanData_Net::MSLaneMeanDataValues::notifyEnter(), MSDevice_Tripinfo::notifyEnter(), MSTriggeredRerouter::notifyEnter(), MSMeanData::MeanDataValueTracker::notifyEnter(), MSE2Collector::notifyEnter(), MSDevice_SSM::notifyEnter(), MSDevice_Transportable::notifyLeave(), MSDevice_Bluelight::notifyLeave(), MSDevice_Example::notifyLeave(), MSE3Collector::MSE3EntryReminder::notifyLeave(), MSDevice_BTsender::notifyLeave(), MSDevice_BTreceiver::notifyLeave(), MSDevice_Tripinfo::notifyLeave(), MSE3Collector::MSE3LeaveReminder::notifyLeave(), MSE2Collector::notifyLeave(), MSDevice_SSM::notifyLeave(), MSDevice_Bluelight::notifyMove(), MSDevice_Example::notifyMove(), MSE3Collector::MSE3EntryReminder::notifyMove(), MSDevice_BTsender::notifyMove(), MSMeanData::MeanDataValues::notifyMove(), MSDevice_BTreceiver::notifyMove(), MSE3Collector::MSE3LeaveReminder::notifyMove(), MSE2Collector::notifyMove(), MSDevice_SSM::notifyMove(), MSMeanData_Net::MSLaneMeanDataValues::notifyMoveInternal(), GNETLSEditorFrame::TLSFile::onCmdSaveTLSProgram(), GUIViewTraffic::onGamingClick(), GNEViewNet::onLeftBtnPress(), MSLink::opened(), RORouteHandler::openRoute(), NBTurningDirectionsComputer::combination_by_angle_sorter::operator()(), RODFNet::idComp::operator()(), NBNetBuilder::by_id_sorter::operator()(), NBOwnTLDef::edge_by_incoming_priority_sorter::operator()(), NBContHelper::same_connection_edge_sorter::operator()(), NBContHelper::edge_by_angle_to_nodeShapeCentroid_sorter::operator()(), NBNode::nodes_by_id_sorter::operator()(), MSEdge::by_id_sorter::operator()(), MSLane::incoming_lane_priority_sorter::operator()(), MSLane::outgoing_lane_priority_sorter::operator()(), NBRequest::oppositeLeftTurnConflict(), NIImporter_VISUM::parse_EdgePolys(), NIImporter_VISUM::parse_Lanes(), NIImporter_VISUM::parse_LanesConnections(), NIImporter_VISUM::parse_Turns(), NIImporter_VISUM::parse_TurnsToSignalGroups(), NLTriggerBuilder::parseAndBuildCalibrator(), NIXMLConnectionsHandler::parseDeprecatedLaneDefinition(), NIXMLConnectionsHandler::parseLaneBound(), MSRouteHandler::parseWalkPositions(), MSJunction::passedJunction(), NBLoadedSUMOTLDef::patchIfCrossingsAdded(), MSLCM_LC2013::patchSpeed(), MSLCM_SL2015::patchSpeed(), NBLoadedTLDef::SignalGroup::patchTYellow(), MSVehicle::planMove(), MSVehicle::planMoveInternal(), MSLane::planMovements(), MSInternalJunction::postloadInit(), MSRightOfWayJunction::postloadInit(), NBEdge::prepareEdgePriorities(), AGStreet::print(), MSDevice_SSM::processEncounters(), MSVehicle::processLinkAproaches(), MSVehicle::processNextStop(), TraCIServerAPI_Vehicle::processSet(), NBEdgeCont::processSplits(), MEVehicle::processStop(), NIXMLNodesHandler::processTrafficLightDefinitions(), NWWriter_SUMO::prohibitionConnection(), MSDelayBasedTrafficLightLogic::proposeProlongation(), NBNodeCont::pruneClusterFringe(), MSPModel_Striping::PState::PState(), MSOffTrafficLightLogic::rebuildPhase(), NBEdgeCont::recheckLanes(), NBEdge::recheckLanes(), NBEdgeCont::recheckPostProcessConnections(), NIImporter_OpenStreetMap::reconstructLayerElevation(), NBLoadedSUMOTLDef::reconstructLogic(), NBEdgeCont::remapIDs(), NBLoadedTLDef::SignalGroup::remapIncoming(), NBLoadedTLDef::SignalGroup::remapOutgoing(), MSLink::removeApproaching(), GNEJunction::removeConnectionsFrom(), NBNodeCont::removeIsolatedRoads(), MSVehicle::removePassedDriveItems(), MSCalibrator::removePending(), removeSelfLoops(), GNEJunction::removeTLSConnections(), NBEdgeCont::removeUnwishedEdges(), NBNodeCont::rename(), NBEdgeCont::rename(), GNENet::renameEdge(), GNENet::renameJunction(), RORouteDef::repairCurrentRoute(), NBConnection::replaceFrom(), GNEJunction::replaceIncomingConnections(), MSVehicle::replaceParkingArea(), MSBaseVehicle::replaceRouteEdges(), NBConnection::replaceTo(), NIImporter_DlrNavteq::TrafficlightsHandler::report(), NIImporter_DlrNavteq::ConnectedLanesHandler::report(), NLEdgeControlBuilder::reportCurrentEdgeOrLane(), MSBaseVehicle::reroute(), MSTriggeredRerouter::rerouteParkingArea(), MSTransportable::rerouteParkingArea(), MSVehicle::rerouteParkingArea(), MSLane::resetManeuverReservation(), MSLane::resetPartialOccupation(), NBEdge::restoreRestrictedLane(), GNEEdge::retrieveGNEConnection(), NIXMLTrafficLightsHandler::retrieveLaneIndex(), RODFNet::revalidateFlows(), NBRailwayTopologyAnalyzer::reverseEdges(), NBPTLineCont::reviseStops(), MSPerson::MSPersonStage_Walking::routeOutput(), MSPerson::MSPersonStage_Driving::routeOutput(), RONet::saveAndRemoveRoutesUntil(), MSDevice_Vehroutes::saveState(), MSDevice::saveState(), MSDevice_Tripinfo::saveState(), MSDevice_Routing::saveState(), MSBaseVehicle::saveState(), MSLane::saveState(), GUIVehicle::selectBlockingFoes(), MSE2Collector::selectLanes(), MSLink::setApproaching(), NBNodeCont::setAsTLControlled(), GNEEdge::setAttribute(), MSChargingStation::setChargeDelay(), MSChargingStation::setChargingPower(), NBEdge::setControllingTLInformation(), NLEdgeControlBuilder::setDefaultStopOffsets(), MSChargingStation::setEfficency(), MSLane::setManeuverReservation(), MSDevice_Battery::setMaximumBatteryCapacity(), NBEdge::setNodeBorder(), NIXMLEdgesHandler::setNodes(), MSLane::setPartialOccupation(), MSDevice_Battery::setPowerMax(), MSLink::setRequestInformation(), MSTLLogicControl::TLSLogicVariants::setStateInstantiatingOnline(), NBEdge::setStopOffsets(), MSDevice_Battery::setStoppingTreshold(), NBLoadedSUMOTLDef::setTLControllingInformation(), NBOwnTLDef::setTLControllingInformation(), NBTrafficLightLogicCont::setTLControllingInformation(), NBLoadedTLDef::setTLControllingInformation(), NBEdge::shiftPositionAtNode(), sortEdges(), MSLane::sortManeuverReservations(), NBEdgeCont::splitAt(), IntermodalNetwork< E, L, N, V >::splitEdge(), MSLaneChangerSublane::startChangeSublane(), MSStopOut::stopEnded(), MSStopOut::stopStarted(), MSLane::succLinkSec(), GUITrafficLightLogicWrapper::switchTLSLogic(), MELoop::teleportVehicle(), NGNet::toNB(), METriggeredCalibrator::tryEmit(), MSSOTLTrafficLightLogic::trySwitch(), MSDevice_SSM::update(), MSVehicle::updateBestLanes(), MSLCM_SL2015::updateCFRelated(), MSSOTLTrafficLightLogic::updateCTS(), NLEdgeControlBuilder::updateCurrentLaneStopOffsets(), MSVehicle::updateDriveItems(), GNETLSEditorFrame::TLSJunction::updateJunctionDescription(), MSSwarmTrafficLightLogic::updatePheromoneLevels(), MSSwarmTrafficLightLogic::updateSensitivities(), MSAbstractLaneChangeModel::updateTargetLane(), MSDevice_BTreceiver::BTreceiverUpdate::updateVisibility(), MSPModel_Striping::PState::walk(), MSLCM_LC2013::wantsChange(), MSLCM_SL2015::wantsChange(), MSLCM_SL2015::wantsChangeSublane(), NBParking::write(), MSEmissionExport::write(), MSBatteryExport::write(), MSFCDExport::write(), MSInstantInductLoop::write(), MSLink::writeApproaching(), NBSign::writeAsPOI(), NWWriter_DlrNavteq::writeConnectedLanes(), NWWriter_SUMO::writeConnection(), NWWriter_SUMO::writeDistrict(), MSFullExport::writeEdge(), MSXMLRawOut::writeEdge(), NWWriter_SUMO::writeEdge(), MSMeanData::writeEdge(), NWWriter_XML::writeEdgesAndConnections(), RODFDetector::writeEmitterDefinition(), RODFDetectorCon::writeEmitterPOIs(), RODFDetectorCon::writeEmitters(), RODFDetectorCon::writeEndRerouterDetectors(), NWWriter_SUMO::writeInternalConnections(), NWWriter_OpenDrive::writeInternalEdge(), writeInterval(), NWWriter_SUMO::writeJunction(), MSQueueExport::writeLane(), MSFullExport::writeLane(), NWWriter_DlrNavteq::writeLinksUnsplitted(), NWWriter_OpenDrive::writeNetwork(), NWWriter_XML::writeNodes(), NWWriter_DlrNavteq::writeNodesUnsplitted(), NWWriter_OpenDrive::writeNormalEdge(), NWWriter_DlrNavteq::writeProhibitedManoeuvres(), NWWriter_SUMO::writeRoundabout(), RODFDetectorCon::writeSpeedTrigger(), NWWriter_DlrNavteq::writeTrafficSignals(), MSFCDExport::writeTransportable(), RODFDetectorCon::writeValidationDetectors(), MSFullExport::writeVehicles(), SUMOPolygon::writeXML(), PointOfInterest::writeXML(), MSRouteProbe::writeXMLOutput(), MSInductLoop::writeXMLOutput(), MSE2Collector::writeXMLOutput(), and RONet::~RONet().

◆ getIDSecure()

◆ getIncomingEdges()

const EdgeVector& NBNode::getIncomingEdges ( ) const
inline

Returns this node's incoming edges (The edges which yield in this node)

Definition at line 249 of file NBNode.h.

References myIncomingEdges.

Referenced by NBEdge::addLane(), NBEdge::addRestrictedLane(), NIImporter_OpenStreetMap::RelationHandler::applyRestriction(), NBEdge::buildInnerEdges(), NBRampsComputer::buildOffRamp(), 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(), NBNodeCont::guessTLs(), NBEdge::init(), isLongEnough(), isNearDistrict(), NBNodeTypeComputer::isRailwayNode(), GNEJunction::markAsModified(), NBEdgePriorityComputer::markBestParallel(), NBEdgeCont::markRoundabouts(), NBRampsComputer::mayNeedOffRamp(), NBRampsComputer::mayNeedOnRamp(), GNENet::mergeJunctions(), NBContHelper::node_with_incoming_finder::operator()(), NIImporter_VISUM::parse_Lanes(), NBEdgeCont::processSplits(), NBNodeCont::pruneClusterFringe(), 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().

◆ getKeepClear()

bool NBNode::getKeepClear ( ) const
inline

◆ getLinkState()

◆ getNodeIDFromInternalLane()

std::string NBNode::getNodeIDFromInternalLane ( const std::string  id)
static

returns the node id for internal lanes, crossings and walkingareas

Definition at line 2982 of file NBNode.cpp.

References WRITE_ERROR.

◆ getOppositeIncoming()

NBEdge * NBNode::getOppositeIncoming ( NBEdge *  e) const

returns the opposite incoming edge of certain edge

Definition at line 1331 of file NBNode.cpp.

References NBEdge::getToNode(), and myIncomingEdges.

Referenced by NBNodeTypeComputer::computeNodeTypes(), and getControllingTLS().

◆ getOutgoingEdges()

const EdgeVector& NBNode::getOutgoingEdges ( ) const
inline

Returns this node's outgoing edges (The edges which start at this node)

Definition at line 254 of file NBNode.h.

References myOutgoingEdges.

Referenced by NBEdge::appendTurnaround(), NIImporter_OpenStreetMap::RelationHandler::applyRestriction(), NBRampsComputer::buildOnRamp(), NBNodeShapeComputer::compute(), NBEdge::computeEdge2Edges(), 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(), NBEdgeCont::guessOpposites(), NBNodeCont::guessTLs(), GNEConnectorFrame::initTargets(), isLongEnough(), isNearDistrict(), NBEdge::isRailDeadEnd(), NBEdge::markAsInLane2LaneState(), NBRampsComputer::mayNeedOffRamp(), NBRampsComputer::mayNeedOnRamp(), GNENet::mergeJunctions(), NBContHelper::node_with_outgoing_finder::operator()(), NIImporter_VISUM::parse_Lanes(), NBEdgeCont::processSplits(), NBNodeCont::pruneClusterFringe(), NBEdge::recheckLanes(), NBNodeCont::removeComponents(), NBNodeCont::removeIsolatedRoads(), NBNodeCont::removeUnwishedNodes(), NBEdgeCont::retrievePossiblySplit(), GNEEdge::smoothShape(), NBNodeTypeComputer::validateRailCrossings(), NWWriter_XML::writeEdgesAndConnections(), and NWWriter_DlrNavteq::writeProhibitedManoeuvres().

◆ getParameter()

const std::string Parameterised::getParameter ( const std::string &  key,
const std::string &  defaultValue = "" 
) const
inherited

Returns the value for a given key.

Parameters
[in]keyThe key to ask for
[in]defaultValueThe default value to return if no value is stored under the key
Returns
The value stored under the key

Definition at line 72 of file Parameterised.cpp.

References Parameterised::myMap.

Referenced by MSTLLogicControl::WAUTSwitchProcedure_Stretch::adaptLogic(), NBEdge::addRestrictedLane(), MSDevice_Battery::buildVehicleDevices(), MSDevice_Bluelight::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), MSDevice::equippedByDefaultAssignmentOptions(), MSDevice::equippedByParameter(), libsumo::Simulation::findIntermodalRoute(), MSDevice::getBoolParam(), NBRailwayTopologyAnalyzer::getBrokenRailNodes(), MSSOTLTrafficLightLogic::getDecayConstant(), MSDevice_SSM::getDetectionRange(), MSDevice_SSM::getExtraTime(), MSDevice::getFloatParam(), MSTLLogicControl::WAUTSwitchProcedure::getGSPValue(), MSSOTLTrafficLightLogic::getInputSensorsLength(), MSDevice_SSM::getMeasuresAndThresholds(), MSSOTLRequestPolicy::getMinDecisionalPhaseDuration(), MSSOTLRequestTrafficLightLogic::getMinDecisionalPhaseDuration(), MSSOTLTrafficLightLogic::getMode(), MSDevice_SSM::getOutputFilename(), MSSOTLTrafficLightLogic::getOutputSensorsLength(), libsumo::Polygon::getParameter(), libsumo::Route::getParameter(), libsumo::POI::getParameter(), libsumo::Person::getParameter(), libsumo::TrafficLight::getParameter(), libsumo::Edge::getParameter(), libsumo::Lane::getParameter(), libsumo::VehicleType::getParameter(), libsumo::Vehicle::getParameter(), MSSOTLTrafficLightLogic::getSpeedThreshold(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::getStretchAreaNo(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::getStretchBereichDef(), MSDevice::getStringParam(), MSSOTLTrafficLightLogic::getThreshold(), MSTriggeredRerouter::getWeight(), PushButtonLogic::init(), MSSOTLPhasePolicy::init(), SigmoidLogic::init(), MSSOTLTrafficLightLogic::init(), MSSwarmTrafficLightLogic::init(), NIImporter_OpenStreetMap::insertEdge(), MSSOTLTrafficLightLogic::isDecayThresholdActivated(), MSSOTLTrafficLightLogic::isPushButtonPressed(), libsumo::Helper::moveToXYMap(), MSActuatedTrafficLightLogic::MSActuatedTrafficLightLogic(), MSDelayBasedTrafficLightLogic::MSDelayBasedTrafficLightLogic(), MSSOTLPolicy::MSSOTLPolicy(), MSSOTLPolicy5DFamilyStimulus::MSSOTLPolicy5DFamilyStimulus(), MSSwarmTrafficLightLogic::MSSwarmTrafficLightLogic(), MSTriggeredRerouter::notifyEnter(), MSSOTLPolicyDesirability::readParameter(), MSDevice_SSM::requestsTrajectories(), NBEdgeCont::splitAt(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::stretchLogic(), GNECrossing::updateGenericParameter(), GNEConnection::updateGenericParameter(), GNEPoly::updateGenericParameter(), GNEPOI::updateGenericParameter(), GNELane::updateGenericParameter(), GNEJunction::updateGenericParameter(), GNEEdge::updateGenericParameter(), GNEAdditional::updateGenericParameter(), MSDevice_SSM::useGeoCoords(), and NWWriter_DlrNavteq::writeLinksUnsplitted().

◆ getParametersMap()

◆ getPosition()

const Position& NBNode::getPosition ( ) const
inline

Definition at line 241 of file NBNode.h.

References getCenter(), and myPosition.

Referenced by NIImporter_SUMO::_loadNetwork(), NIXMLNodesHandler::addNode(), NIXMLEdgesHandler::addSplit(), NIVissimEdge::buildNBEdge(), GNEJunction::commitGeometryMoving(), NBEdge::computeAngle(), NBNodeShapeComputer::computeNodeShapeDefault(), NBNodeShapeComputer::computeNodeShapeSmall(), NBEdge::cutAtIntersection(), NBNodeCont::discardRailSignals(), NBNodeCont::discardTrafficLights(), NBHelpers::distance(), GNEJunction::drawGL(), GNEEdge::editEndpoint(), NBEdge::extendGeometryAtNode(), NBNodeCont::extract(), NBNodeCont::generateNodeClusters(), GNEJunction::getAttribute(), GNEJunction::getColorValue(), getEmptyDir(), NWWriter_DlrNavteq::getGraphLength(), GNEJunction::getPositionInView(), NBNodeShapeComputer::getSmoothCorner(), GNEJunction::GNEJunction(), NBEdge::hasDefaultGeometryEndpointAtNode(), NBEdge::hasDefaultGeometryEndpoints(), NBEdge::init(), NBNodeCont::insert(), GNEViewNet::mergeJunctions(), GNEJunction::mouseOverObject(), GNEJunction::moveGeometry(), GNEJunction::moveJunctionGeometry(), NBContHelper::relative_outgoing_edge_sorter::operator()(), NBContHelper::relative_incoming_edge_sorter::operator()(), NBNodeCont::pruneClusterFringe(), NIImporter_OpenStreetMap::reconstructLayerElevation(), GNENet::registerJunction(), NIVissimEdge::remapOneOfNodes(), GNENet::replaceJunctionByGeometry(), NIImporter_DlrNavteq::EdgesHandler::report(), NIImporter_DlrNavteq::TrafficlightsHandler::report(), GNEEdge::resetEndpoint(), NBNodeCont::retrieve(), GNEEdge::setAttribute(), GNEJunction::setAttribute(), NBEdge::shiftPositionAtNode(), NBNodeCont::shortestEdge(), NBEdgeCont::splitAt(), NBEdge::splitGeometry(), NBEdge::startShapeAt(), GNEEdge::straightenElevation(), GNEJunction::updateGeometry(), GNEEdge::updateJunctionPosition(), NWWriter_SUMO::writeJunction(), NWWriter_XML::writeNodes(), NWWriter_DlrNavteq::writeNodesUnsplitted(), and NWWriter_DlrNavteq::writeTrafficSignals().

◆ getPossiblySplittedIncoming()

NBEdge * NBNode::getPossiblySplittedIncoming ( const std::string &  edgeid)

get possibly splitted incoming edge

Definition at line 1366 of file NBNode.cpp.

References Named::getID(), and myIncomingEdges.

Referenced by NIVissimDisturbance::getConnection(), and getControllingTLS().

◆ getPossiblySplittedOutgoing()

NBEdge * NBNode::getPossiblySplittedOutgoing ( const std::string &  edgeid)

get possibly splitted outgoing edge

Definition at line 1379 of file NBNode.cpp.

References Named::getID(), and myOutgoingEdges.

Referenced by NIVissimDisturbance::getConnection(), and getControllingTLS().

◆ getProhibitions()

const NBConnectionProhibits& NBNode::getProhibitions ( )
inline

◆ getRadius()

double NBNode::getRadius ( ) const
inline

Returns the turning radius of this node.

Definition at line 271 of file NBNode.h.

References myRadius.

Referenced by NBNodeShapeComputer::computeNodeShapeDefault(), GNEJunction::getAttribute(), NWWriter_SUMO::writeJunction(), and NWWriter_XML::writeNodes().

◆ getShape()

◆ getType()

◆ getWalkingAreaCustomShapes()

const std::vector<WalkingAreaCustomShape>& NBNode::getWalkingAreaCustomShapes ( ) const
inline

◆ getWalkingAreas()

const std::vector<WalkingArea>& NBNode::getWalkingAreas ( ) const
inline

return this junctions pedestrian walking areas

Definition at line 641 of file NBNode.h.

References myWalkingAreas.

Referenced by NWWriter_SUMO::writeInternalEdges(), and NWWriter_SUMO::writeNetwork().

◆ guessCrossings()

int NBNode::guessCrossings ( )

◆ hasCustomShape()

◆ hasIncoming()

bool NBNode::hasIncoming ( const NBEdge *const  e) const

Returns whether the given edge ends at this node.

Parameters
[in]eThe edge
Returns
Whether the given edge is one of this node's incoming edges

Definition at line 1319 of file NBNode.cpp.

References myIncomingEdges.

Referenced by NBNodeShapeComputer::computeNodeShapeDefault(), NBNodeCont::generateNodeClusters(), getControllingTLS(), NIImporter_OpenStreetMap::getNeighboringNodes(), NIImporter_VISUM::parse_Lanes(), NIImporter_VISUM::parse_LanesConnections(), and NIImporter_VISUM::parse_TurnsToSignalGroups().

◆ hasOutgoing()

bool NBNode::hasOutgoing ( const NBEdge *const  e) const

Returns whether the given edge starts at this node.

Parameters
[in]eThe edge
Returns
Whether the given edge is one of this node's outgoing edges

Definition at line 1325 of file NBNode.cpp.

References myOutgoingEdges.

Referenced by getControllingTLS(), isLeftMover(), NIImporter_VISUM::parse_Lanes(), NIImporter_VISUM::parse_LanesConnections(), and NIImporter_VISUM::parse_TurnsToSignalGroups().

◆ invalidateIncomingConnections()

void NBNode::invalidateIncomingConnections ( )

◆ invalidateOutgoingConnections()

void NBNode::invalidateOutgoingConnections ( )

invalidate outgoing connections

Definition at line 1458 of file NBNode.cpp.

References myOutgoingEdges.

Referenced by NIVissimDistrictConnection::dict_BuildDistricts(), and getControllingTLS().

◆ invalidateTLS()

◆ isBentPriority()

◆ isConstantWidthTransition()

bool NBNode::isConstantWidthTransition ( ) const

detects whether a given junction splits or merges lanes while keeping constant road width

Definition at line 694 of file NBNode.cpp.

References myIncomingEdges, and myOutgoingEdges.

Referenced by displaceShapeAtWidthChange(), NBNodeShapeComputer::getDefaultRadius(), isBentPriority(), NBRequest::mergeConflict(), and NWWriter_SUMO::writeInternalEdges().

◆ isDistrict()

bool NBNode::isDistrict ( ) const

check if node is a district

Definition at line 1971 of file NBNode.cpp.

References myType, and NODETYPE_DISTRICT.

Referenced by computeLogic(), hasCustomShape(), and isNearDistrict().

◆ isLeftMover()

bool NBNode::isLeftMover ( const NBEdge *const  from,
const NBEdge *const  to 
) const

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.

Parameters
[in]fromThe incoming edge (the begin of the connection)
[in]fromThe outgoing edge (the end of the connection)
Returns
Whether the described connection is a left-mover

Definition at line 1579 of file NBNode.cpp.

References NBEdge::getAngleAtNode(), GeomHelper::getCCWAngleDiff(), GeomHelper::getCWAngleDiff(), hasOutgoing(), NBEdge::isTurningDirectionAt(), myAllEdges, myIncomingEdges, myOutgoingEdges, and NBContHelper::nextCW().

Referenced by NBEdge::computeEdge2Edges(), and getControllingTLS().

◆ isLongEnough()

bool NBNode::isLongEnough ( NBEdge *  out,
double  minLength 
)
staticprivate

check if is long enough

Definition at line 1138 of file NBNode.cpp.

References getIncomingEdges(), NBEdge::getLoadedLength(), getOutgoingEdges(), and NBEdge::getToNode().

Referenced by computeLanes2Lanes(), and isBentPriority().

◆ isNearDistrict()

bool NBNode::isNearDistrict ( ) const

if node is near district

Definition at line 1940 of file NBNode.cpp.

References NBEdge::getFromNode(), getIncomingEdges(), getOutgoingEdges(), NBEdge::getToNode(), and isDistrict().

Referenced by computeLogic(), NBNodeCont::guessTLs(), and hasCustomShape().

◆ isSimpleContinuation()

bool NBNode::isSimpleContinuation ( bool  checkLaneNumbers = true) const

◆ isTLControlled()

◆ isTrafficLight()

◆ knowsParameter()

bool Parameterised::knowsParameter ( const std::string &  key) const
inherited

Returns whether the parameter is known.

Parameters
[in]keyThe key to ask for
Returns
Whether the key is known

Definition at line 66 of file Parameterised.cpp.

References Parameterised::myMap.

Referenced by GNEPoly::addGenericParameter(), GNELane::addGenericParameter(), GNEPOI::addGenericParameter(), GNEJunction::addGenericParameter(), GNEEdge::addGenericParameter(), GNEAdditional::addGenericParameter(), NBEdge::append(), MSDevice_Bluelight::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), MSDevice::equippedByDefaultAssignmentOptions(), MSDevice::equippedByParameter(), MSDevice::getBoolParam(), NWWriter_DlrNavteq::getBrunnelType(), MSDevice_SSM::getDetectionRange(), MSDevice_SSM::getExtraTime(), MSDevice::getFloatParam(), MSDevice_SSM::getMeasuresAndThresholds(), MSDevice_SSM::getOutputFilename(), MSDevice::getStringParam(), MSTriggeredRerouter::getWeight(), GNEPoly::removeGenericParameter(), GNEPOI::removeGenericParameter(), GNELane::removeGenericParameter(), GNEJunction::removeGenericParameter(), GNEEdge::removeGenericParameter(), GNEAdditional::removeGenericParameter(), MSDevice_SSM::requestsTrajectories(), GNEPoly::updateGenericParameter(), GNEPOI::updateGenericParameter(), GNELane::updateGenericParameter(), GNEJunction::updateGenericParameter(), GNEEdge::updateGenericParameter(), GNEAdditional::updateGenericParameter(), GNEPoly::updateGenericParameterValue(), GNELane::updateGenericParameterValue(), GNEPOI::updateGenericParameterValue(), GNEJunction::updateGenericParameterValue(), GNEEdge::updateGenericParameterValue(), GNEAdditional::updateGenericParameterValue(), and MSDevice_SSM::useGeoCoords().

◆ markBentPriority()

void NBNode::markBentPriority ( bool  isBent)
inline

mark whether a priority road turns at this node

Definition at line 721 of file NBNode.h.

References myIsBentPriority.

Referenced by NBEdgePriorityComputer::computeEdgePrioritiesSingleNode(), and NBEdgePriorityComputer::setPriorityJunctionPriorities().

◆ mirrorX()

void NBNode::mirrorX ( )

mirror coordinates along the x-axis

Definition at line 320 of file NBNode.cpp.

References PositionVector::mirrorX(), Position::mul(), myCrossings, myPoly, myPosition, and myWalkingAreas.

Referenced by getControllingTLS().

◆ mustBrake()

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.

Parameters
[in]fromThe connection's start edge
[in]toThe connection's end edge
[in]fromLaneThe lane the connection start at
[in]toLaneThe lane the connection ends at
[in]includePedCrossingsWhether braking due to a pedestrian crossing counts
Returns
Whether the described connection must brake (has higher priorised foes)

Definition at line 1466 of file NBNode.cpp.

References NBRequest::mustBrake(), and myRequest.

Referenced by getControllingTLS(), getLinkState(), NBTrafficLightDefinition::mustBrake(), and needsCont().

◆ mustBrakeForCrossing()

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.

Parameters
[in]fromThe connection's start edge
[in]toThe connection's end edge
[in]crossingThe pedestrian crossing to check
Returns
Whether the described connection must brake (has higher priorised foes)

Definition at line 1480 of file NBNode.cpp.

References NBRequest::mustBrakeForCrossing().

Referenced by getControllingTLS(), and NBOwnTLDef::patchStateForCrossings().

◆ needsCont()

◆ numCrossingsFromSumoNet()

int NBNode::numCrossingsFromSumoNet ( ) const
inline

get num of crossings from sumo net

Definition at line 630 of file NBNode.h.

References getCrossings(), and myCrossingsLoadedFromSumoNet.

◆ numNormalConnections()

int NBNode::numNormalConnections ( ) const

return the number of lane-to-lane connections at this junction (excluding crossings)

Definition at line 2907 of file NBNode.cpp.

References NBRequest::getSizes(), myIncomingEdges, and myRequest.

Referenced by computeLogic(), getWalkingAreaCustomShapes(), and NWWriter_OpenDrive::writeNetwork().

◆ operator=()

NBNode& NBNode::operator= ( const NBNode &  s)
private

invalidated assignment operator

◆ reinit()

void NBNode::reinit ( const Position &  position,
SumoXMLNodeType  type,
bool  updateEdgeGeometries = false 
)

◆ remapRemoved()

void NBNode::remapRemoved ( NBTrafficLightLogicCont &  tc,
NBEdge *  removed,
const EdgeVector &  incoming,
const EdgeVector &  outgoing 
)
private

◆ removeCrossing()

void NBNode::removeCrossing ( const EdgeVector &  edges)

remove a pedestrian crossing from this node (identified by its edges)

Definition at line 2848 of file NBNode.cpp.

References myCrossings.

Referenced by NIXMLConnectionsHandler::addCrossing(), getProhibitions(), GNEChange_Crossing::redo(), and GNEChange_Crossing::undo().

◆ removeDoubleEdges()

void NBNode::removeDoubleEdges ( )

remove duble edges

Definition at line 1281 of file NBNode.cpp.

References myAllEdges, myIncomingEdges, and myOutgoingEdges.

Referenced by getControllingTLS(), replaceIncoming(), replaceOutgoing(), and NBEdgeCont::splitAt().

◆ removeEdge()

void NBNode::removeEdge ( NBEdge *  edge,
bool  removeFromConnections = true 
)

Removes edge from this node and optionally removes connections as well.

Definition at line 1392 of file NBNode.cpp.

References myAllEdges, myIncomingEdges, myOutgoingEdges, and myTrafficLights.

Referenced by NBEdgeCont::extract(), getControllingTLS(), NBEdgeCont::insert(), NBEdge::reinit(), NBEdge::reinitNodes(), NBEdgeCont::removeUnwishedEdges(), and NBEdge::splitGeometry().

◆ removeJoinedTrafficLights()

void NBNode::removeJoinedTrafficLights ( )
private

remove all traffic light definitions that are part of a joined tls

Definition at line 810 of file NBNode.cpp.

References myTrafficLights.

Referenced by computeLogic(), and isBentPriority().

◆ removeSelfLoops()

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

Parameters

Definition at line 392 of file NBNode.cpp.

References NBEdgeCont::erase(), NBEdge::getConnectedEdges(), Named::getID(), NBEdge::getIncomingEdges(), myIncomingEdges, myOutgoingEdges, NBEdge::remapConnections(), remapRemoved(), and WRITE_WARNING.

Referenced by getControllingTLS().

◆ removeTrafficLight()

void NBNode::removeTrafficLight ( NBTrafficLightDefinition *  tlDef)

◆ removeTrafficLights()

void NBNode::removeTrafficLights ( )

Removes all references to traffic lights that control this tls.

Definition at line 352 of file NBNode.cpp.

References myTrafficLights, and removeTrafficLight().

Referenced by NBNodeCont::extract(), getKeepClear(), NBNodeCont::guessTLs(), NIXMLNodesHandler::processTrafficLightDefinitions(), and reinit().

◆ replaceIncoming() [1/2]

void NBNode::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.

Definition at line 1213 of file NBNode.cpp.

References myAllEdges, myIncomingEdges, and replaceInConnectionProhibitions().

Referenced by getDisplacementError(), NBEdgeCont::joinSameNodeConnectingEdges(), NBNodeCont::removeUnwishedNodes(), replaceIncoming(), and NBEdgeCont::splitAt().

◆ replaceIncoming() [2/2]

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 1227 of file NBNode.cpp.

References myDistrict, removeDoubleEdges(), NBDistrict::replaceIncoming(), and replaceIncoming().

◆ replaceInConnectionProhibitions()

void NBNode::replaceInConnectionProhibitions ( NBEdge *  which,
NBEdge *  by,
int  whichLaneOff,
int  byLaneOff 
)
private

replace incoming connections prohibitions

Definition at line 1246 of file NBNode.cpp.

References myBlockedConnections, NBConnection::replaceFrom(), and NBConnection::replaceTo().

Referenced by isBentPriority(), replaceIncoming(), and replaceOutgoing().

◆ replaceOutgoing() [1/2]

void NBNode::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.

Definition at line 1177 of file NBNode.cpp.

References myAllEdges, myIncomingEdges, myOutgoingEdges, replaceInConnectionProhibitions(), and NBEdge::replaceInConnections().

Referenced by getDisplacementError(), NBEdgeCont::joinSameNodeConnectingEdges(), replaceOutgoing(), and NBEdgeCont::splitAt().

◆ replaceOutgoing() [2/2]

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 1195 of file NBNode.cpp.

References myDistrict, removeDoubleEdges(), NBDistrict::replaceOutgoing(), and replaceOutgoing().

◆ reshiftPosition()

void NBNode::reshiftPosition ( double  xoff,
double  yoff 
)

Applies an offset to the node.

Parameters
[in]xoffThe x-offset to apply
[in]yoffThe y-offset to apply

Definition at line 310 of file NBNode.cpp.

References Position::add(), PositionVector::add(), myPoly, myPosition, and myWalkingAreaCustomShapes.

Referenced by getControllingTLS().

◆ rightOnRedConflict()

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 3025 of file NBNode.cpp.

References myTrafficLights, myType, and NODETYPE_TRAFFIC_LIGHT_RIGHT_ON_RED.

Referenced by NBRequest::getResponseString(), and getWalkingAreaCustomShapes().

◆ rightTurnConflict()

bool NBNode::rightTurnConflict ( const NBEdge *  from,
const NBEdge *  to,
int  fromLane,
const NBEdge *  prohibitorFrom,
const NBEdge *  prohibitorTo,
int  prohibitorFromLane,
bool  lefthand = false 
)
static

◆ setCrossingTLIndices()

bool NBNode::setCrossingTLIndices ( const std::string &  tlID,
int  startIndex 
)

◆ setCustomShape()

void NBNode::setCustomShape ( const PositionVector &  shape)

◆ setID()

void Named::setID ( const std::string &  newID)
inlineinherited

◆ setKeepClear()

void NBNode::setKeepClear ( bool  keepClear)
inline

set the keepClear flag

Definition at line 489 of file NBNode.h.

References myKeepClear.

Referenced by NIXMLNodesHandler::processNodeType(), and GNEJunction::setAttribute().

◆ setParameter()

void Parameterised::setParameter ( const std::string &  key,
const std::string &  value 
)
inherited

Sets a parameter.

Parameters
[in]keyThe parameter's name
[in]valueThe parameter's value

Definition at line 46 of file Parameterised.cpp.

References Parameterised::myMap.

Referenced by GNECrossing::addGenericParameter(), GNEConnection::addGenericParameter(), GNEPoly::addGenericParameter(), GNELane::addGenericParameter(), GNEPOI::addGenericParameter(), GNEJunction::addGenericParameter(), GNEEdge::addGenericParameter(), GNEAdditional::addGenericParameter(), SUMORouteHandler::addParam(), NLHandler::addParam(), ShapeHandler::addPOI(), NIImporter_OpenStreetMap::insertNodeChecking(), NBEdge::Lane::Lane(), NIImporter_ArcView::load(), NIImporter_OpenDrive::loadNetwork(), NIXMLTrafficLightsHandler::myStartElement(), MSStateHandler::myStartElement(), ShapeHandler::myStartElement(), NIXMLNodesHandler::myStartElement(), NIImporter_MATSim::EdgesHandler::myStartElement(), NIImporter_OpenStreetMap::EdgesHandler::myStartElement(), GNEAdditionalHandler::parseGenericParameter(), GNEConnection::setGenericParametersStr(), GNEPoly::setGenericParametersStr(), GNELane::setGenericParametersStr(), GNEPOI::setGenericParametersStr(), GNEJunction::setGenericParametersStr(), GNEEdge::setGenericParametersStr(), GNEAdditional::setGenericParametersStr(), libsumo::Route::setParameter(), libsumo::Polygon::setParameter(), libsumo::POI::setParameter(), libsumo::TrafficLight::setParameter(), libsumo::Edge::setParameter(), libsumo::Lane::setParameter(), GNEConnection::updateGenericParameter(), GNEPoly::updateGenericParameter(), GNELane::updateGenericParameter(), GNEPOI::updateGenericParameter(), GNEJunction::updateGenericParameter(), GNEEdge::updateGenericParameter(), GNEAdditional::updateGenericParameter(), GNECrossing::updateGenericParameterValue(), GNEConnection::updateGenericParameterValue(), GNEPoly::updateGenericParameterValue(), GNELane::updateGenericParameterValue(), GNEPOI::updateGenericParameterValue(), GNEJunction::updateGenericParameterValue(), GNEEdge::updateGenericParameterValue(), and GNEAdditional::updateGenericParameterValue().

◆ setPriorityJunctionPriorities()

void NBNode::setPriorityJunctionPriorities ( )
private

sets the priorites in case of a priority junction

Referenced by isBentPriority().

◆ setRadius()

void NBNode::setRadius ( double  radius)
inline

set the turning radius

Definition at line 484 of file NBNode.h.

References myRadius.

Referenced by NIImporter_SUMO::addJunction(), NIXMLNodesHandler::processNodeType(), and GNEJunction::setAttribute().

◆ setRoundabout()

void NBNode::setRoundabout ( )

update the type of this node as a roundabout

Definition at line 2828 of file NBNode.cpp.

References myType, NODETYPE_PRIORITY, and NODETYPE_RIGHT_BEFORE_LEFT.

Referenced by getProhibitions(), and NBEdgeCont::markRoundabouts().

◆ shiftTLConnectionLaneIndex()

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 384 of file NBNode.cpp.

References myTrafficLights.

Referenced by NBEdge::addLane(), NBEdge::addRestrictedLane(), getControllingTLS(), and NBEdge::restoreRestrictedLane().

◆ sortEdges()

void NBNode::sortEdges ( bool  useNodeShape)

sort all edge containers for this node

Definition at line 3038 of file NBNode.cpp.

References computeNodeShape(), DEBUGCOND, Named::getID(), myAllEdges, myCrossings, myIncomingEdges, myOutgoingEdges, and NBNodesEdgesSorter::swapWhenReversed().

Referenced by getWalkingAreaCustomShapes().

◆ tlsContConflict()

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 800 of file NBNode.cpp.

References foes(), NBEdge::Connection::haveVia, isTLControlled(), NBEdge::isTurningDirectionAt(), needsCont(), and NBEdge::Connection::toEdge.

Referenced by NBRequest::getResponseString(), and hasCustomShape().

◆ turnFoes()

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 1533 of file NBNode.cpp.

References NBEdge::isTurningDirectionAt(), myAllEdges, NBContHelper::nextCCW(), NBContHelper::nextCW(), and UNUSED_PARAMETER.

Referenced by getControllingTLS(), and NBRequest::getFoesString().

◆ unsetParameter()

◆ updateParameter()

void Parameterised::updateParameter ( const std::map< std::string, std::string > &  mapArg)
inherited

◆ writeLogic()

bool NBNode::writeLogic ( OutputDevice &  into,
const bool  checkLaneFoes 
) const

writes the XML-representation of the logic as a bitset-logic XML representation

Definition at line 869 of file NBNode.cpp.

References Named::myID, myRequest, and NBRequest::writeLogic().

Referenced by getControllingTLS(), and NWWriter_SUMO::writeJunction().

◆ writeParams()

Friends And Related Function Documentation

◆ GNEJunction

friend class GNEJunction
friend

Definition at line 70 of file NBNode.h.

◆ NBEdgePriorityComputer

friend class NBEdgePriorityComputer
friend

Definition at line 73 of file NBNode.h.

◆ NBNodeCont

friend class NBNodeCont
friend

Definition at line 69 of file NBNode.h.

◆ NBNodesEdgesSorter

friend class NBNodesEdgesSorter
friend

Definition at line 71 of file NBNode.h.

◆ NBNodeShapeComputer

friend class NBNodeShapeComputer
friend

Definition at line 74 of file NBNode.h.

◆ NBNodeTypeComputer

friend class NBNodeTypeComputer
friend

Definition at line 72 of file NBNode.h.

Field Documentation

◆ AVOID_WIDE_LEFT_TURN

const int NBNode::AVOID_WIDE_LEFT_TURN
static

◆ AVOID_WIDE_RIGHT_TURN

const int NBNode::AVOID_WIDE_RIGHT_TURN
static

flags for controlling shape generation

Definition at line 208 of file NBNode.h.

Referenced by bezierControlPoints().

◆ BACKWARD

◆ FORWARD

◆ FOUR_CONTROL_POINTS

const int NBNode::FOUR_CONTROL_POINTS
static

Definition at line 210 of file NBNode.h.

Referenced by bezierControlPoints(), and buildWalkingAreas().

◆ myAllEdges

◆ myBlockedConnections

NBConnectionProhibits NBNode::myBlockedConnections
private

The container for connection block dependencies.

Definition at line 790 of file NBNode.h.

Referenced by addSortedLinkFoes(), computeLogic(), getProhibitions(), remapRemoved(), and replaceInConnectionProhibitions().

◆ myCrossings

◆ myCrossingsLoadedFromSumoNet

int NBNode::myCrossingsLoadedFromSumoNet
private

number of crossings loaded from a sumo net

Definition at line 817 of file NBNode.h.

Referenced by addCrossing(), and numCrossingsFromSumoNet().

◆ myDiscardAllCrossings

bool NBNode::myDiscardAllCrossings
private

whether to discard all pedestrian crossings

Definition at line 814 of file NBNode.h.

Referenced by buildCrossings(), discardAllCrossings(), and guessCrossings().

◆ myDisplacementError

double NBNode::myDisplacementError
private

geometry error after computation of internal lane shapes

Definition at line 820 of file NBNode.h.

Referenced by bezierControlPoints(), buildInnerEdges(), and getDisplacementError().

◆ myDistrict

NBDistrict* NBNode::myDistrict
private

The district the node is the centre of.

Definition at line 793 of file NBNode.h.

Referenced by replaceIncoming(), and replaceOutgoing().

◆ myHaveCustomPoly

bool NBNode::myHaveCustomPoly
private

whether this nodes shape was set by the user

Definition at line 799 of file NBNode.h.

Referenced by computeNodeShape(), hasCustomShape(), and setCustomShape().

◆ myID

◆ myIncomingEdges

◆ myIsBentPriority

bool NBNode::myIsBentPriority
private

Definition at line 825 of file NBNode.h.

Referenced by isBentPriority(), and markBentPriority().

◆ myKeepClear

bool NBNode::myKeepClear
private

whether the junction area must be kept clear

Definition at line 811 of file NBNode.h.

Referenced by getKeepClear(), and setKeepClear().

◆ myOutgoingEdges

◆ myPoly

PositionVector NBNode::myPoly
private

the (outer) shape of the junction

Definition at line 796 of file NBNode.h.

Referenced by computeNodeShape(), getCenter(), getShape(), GNEJunction::invalidateShape(), mirrorX(), reshiftPosition(), and setCustomShape().

◆ myPosition

Position NBNode::myPosition
private

The position the node lies at.

Definition at line 766 of file NBNode.h.

Referenced by computeNodeShape(), getCenter(), getEmptyDir(), getPosition(), mirrorX(), reinit(), and reshiftPosition().

◆ myRadius

double NBNode::myRadius
private

the turning radius (for all corners) at this node in m.

Definition at line 808 of file NBNode.h.

Referenced by computeNodeShape(), getRadius(), and setRadius().

◆ myRequest

NBRequest* NBNode::myRequest
private

Node requests.

Definition at line 802 of file NBNode.h.

Referenced by computeLogic(), foes(), forbids(), mustBrake(), needsCont(), numNormalConnections(), writeLogic(), and ~NBNode().

◆ myTrafficLights

◆ myType

◆ myWalkingAreaCustomShapes

std::vector<WalkingAreaCustomShape> NBNode::myWalkingAreaCustomShapes
private

Vector of custom walking areas shapes.

Definition at line 784 of file NBNode.h.

Referenced by addWalkingAreaShape(), buildWalkingAreas(), getWalkingAreaCustomShapes(), and reshiftPosition().

◆ myWalkingAreas

std::vector<WalkingArea> NBNode::myWalkingAreas
private

Vector of walking areas.

Definition at line 781 of file NBNode.h.

Referenced by buildCrossingsAndWalkingAreas(), buildWalkingAreas(), discardWalkingareas(), getWalkingAreas(), and mirrorX().

◆ UNSPECIFIED_RADIUS

const double NBNode::UNSPECIFIED_RADIUS = -1
static

The documentation for this class was generated from the following files: