Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
NBNode.h
Go to the documentation of this file.
1/****************************************************************************/
2// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3// Copyright (C) 2001-2025 German Aerospace Center (DLR) and others.
4// This program and the accompanying materials are made available under the
5// terms of the Eclipse Public License 2.0 which is available at
6// https://www.eclipse.org/legal/epl-2.0/
7// This Source Code may also be made available under the following Secondary
8// Licenses when the conditions for such availability set forth in the Eclipse
9// Public License 2.0 are satisfied: GNU General Public License, version 2
10// or later which is available at
11// https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
12// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
13/****************************************************************************/
21// The representation of a single node
22/****************************************************************************/
23#pragma once
24#include <config.h>
25
26#include <vector>
27#include <deque>
28#include <utility>
29#include <string>
30#include <set>
31#include <memory>
33#include <utils/common/Named.h>
37#include <utils/geom/Position.h>
40#include "NBEdge.h"
41#include "NBConnection.h"
42#include "NBConnectionDefs.h"
43#include "NBContHelper.h"
44
45
46// ===========================================================================
47// class declarations
48// ===========================================================================
49class NBRequest;
50class NBDistrict;
51class OptionsCont;
53class NBTypeCont;
55class NBDistrictCont;
56class OutputDevice;
57
58
59// ===========================================================================
60// class definitions
61// ===========================================================================
66class NBNode : public Named, public Parameterised {
67 friend class NBNodeCont;
68 friend class GNEJunction; // < used for visualization (netedit)
69 friend class NBNodesEdgesSorter; // < sorts the edges
70 friend class NBNodeTypeComputer; // < computes type
71 friend class NBEdgePriorityComputer; // < computes priorities of edges per intersection
72
73public:
86 public:
91 ApproachingDivider(const EdgeVector& approaching, NBEdge* currentOutgoing);
92
95
97 int numAvailableLanes() const {
98 return (int)myAvailableLanes.size();
99 }
100
102 void execute(const int src, const int dest);
103
105 std::deque<int>* spread(int numLanes, int dest) const;
106
107 private:
110
113
115 std::vector<int> myAvailableLanes;
116
118 std::vector<LinkDirection> myDirections;
119
122
125
126 private:
129
130 };
131
135 class Crossing final : public Parameterised {
136 public:
138 Crossing(const NBNode* _node, const EdgeVector& _edges, double _width, bool _priority, int _customTLIndex, int _customTLIndex2, const PositionVector& _customShape);
140 const NBNode* node;
150 double width;
152 std::string id;
154 std::string prevWalkingArea;
156 std::string nextWalkingArea;
168 std::string tlID;
170 bool valid;
171 };
172
173
177 struct WalkingArea {
179 WalkingArea(const std::string& _id, double _width) :
180 id(_id),
181 width(_width) {
182 }
184 std::string id;
186 double width;
192 std::vector<std::string> nextCrossings;
194 std::vector<std::string> prevCrossings;
196 std::vector<std::string> nextSidewalks;
198 std::vector<std::string> prevSidewalks;
200 bool hasCustomShape = false;
202 int minNextCrossingEdges = std::numeric_limits<int>::max();
204 int minPrevCrossingEdges = std::numeric_limits<int>::max();
206 std::set<const NBEdge*, ComparatorIdLess> refEdges;
207 };
208
210 std::set<const NBEdge*, ComparatorIdLess> edges;
212 double width;
213 };
214
216 static const int FORWARD;
217 static const int BACKWARD;
218
220 static const double UNSPECIFIED_RADIUS;
221
223 static const int AVOID_WIDE_RIGHT_TURN;
224 static const int AVOID_WIDE_LEFT_TURN;
225 static const int FOUR_CONTROL_POINTS;
227 static const int SCURVE_IGNORE;
228 static const int INDIRECT_LEFT;
229
230public:
236 NBNode(const std::string& id, const Position& position, SumoXMLNodeType type);
237
243 NBNode(const std::string& id, const Position& position, NBDistrict* district = 0);
244
246 ~NBNode();
247
254 void reinit(const Position& position, SumoXMLNodeType type,
255 bool updateEdgeGeometries = false);
256
260 inline const Position& getPosition() const {
261 return myPosition;
262 }
263
265 Position getCenter() const;
266
268 inline const EdgeVector& getIncomingEdges() const {
269 return myIncomingEdges;
270 }
271
273 inline const EdgeVector& getOutgoingEdges() const {
274 return myOutgoingEdges;
275 }
276
278 inline const EdgeVector& getEdges() const {
279 return myAllEdges;
280 }
281
285 inline SumoXMLNodeType getType() const {
286 return myType;
287 }
288
290 inline double getRadius() const {
291 return myRadius;
292 }
293
295 inline bool getKeepClear() const {
296 return myKeepClear;
297 }
298
300 inline RightOfWay getRightOfWay() const {
301 return myRightOfWay;
302 }
303
305 inline FringeType getFringeType() const {
306 return myFringeType;
307 }
308
310 inline const std::string& getName() const {
311 return myName;
312 }
314
317
321
324
326 void removeTrafficLights(bool setAsPriority = false);
327
331 bool isTLControlled() const {
332 return myTrafficLights.size() != 0;
333 }
334
335
337 bool hadSignal() const;
338
340 const std::set<NBTrafficLightDefinition*>& getControllingTLS() const {
341 return myTrafficLights;
342 }
343
345 void invalidateTLS(NBTrafficLightLogicCont& tlCont, bool addedConnections, bool removedConnections);
346
348 void shiftTLConnectionLaneIndex(NBEdge* edge, int offset, int threshold = -1);
350
351
354
366
367
370
374 void reshiftPosition(double xoff, double yoff);
375
377 void roundGeometry();
378
380 void mirrorX();
382
384 void addIncomingEdge(NBEdge* edge);
385
387 void addOutgoingEdge(NBEdge* edge);
388
390 void computeLanes2Lanes();
391
393 void computeLogic(const NBEdgeCont& ec);
394
396 void computeLogic2(bool checkLaneFoes);
397
399 void computeKeepClear();
400
402 bool writeLogic(OutputDevice& into) const;
403
405 const std::string getFoes(int linkIndex) const;
406
408 const std::string getResponse(int linkIndex) const;
409
411 bool hasConflict() const;
412
414 bool hasConflict(const NBEdge* e) const;
415
417 Position getEmptyDir() const;
418
423 bool hasIncoming(const NBEdge* const e) const;
424
429 bool hasOutgoing(const NBEdge* const e) const;
430
433
435 void invalidateIncomingConnections(bool reallowSetting = false);
436
438 void invalidateOutgoingConnections(bool reallowSetting = false);
439
441 void removeDoubleEdges();
442
444 NBEdge* getConnectionTo(NBNode* n) const;
445
447 void addSortedLinkFoes(const NBConnection& mayDrive, const NBConnection& mustStop);
448
450 NBEdge* getPossiblySplittedIncoming(const std::string& edgeid);
451
453 NBEdge* getPossiblySplittedOutgoing(const std::string& edgeid);
454
456 void removeEdge(NBEdge* edge, bool removeFromConnections = true);
457
467 bool isLeftMover(const NBEdge* const from, const NBEdge* const to) const;
468
477 bool mustBrake(const NBEdge* const from, const NBEdge* const to, int fromLane, int toLane, bool includePedCrossings) const;
478
485 bool mustBrakeForCrossing(const NBEdge* const from, const NBEdge* const to, const Crossing& crossing) const;
486
488 bool brakeForCrossingOnExit(const NBEdge* to, LinkDirection dir, bool indirect) const;
489
491 static bool rightTurnConflict(const NBEdge* from, const NBEdge* to, int fromLane,
492 const NBEdge* prohibitorFrom, const NBEdge* prohibitorTo, int prohibitorFromLane);
493
495 bool mergeConflictYields(const NBEdge* from, int fromLane, int fromLaneFoe, NBEdge* to, int toLane) const;
496
498 bool mergeConflict(const NBEdge* from, const NBEdge::Connection& con,
499 const NBEdge* prohibitorFrom, const NBEdge::Connection& prohibitorCon, bool foes) const;
500
502 bool bidiConflict(const NBEdge* from, const NBEdge::Connection& con,
503 const NBEdge* prohibitorFrom, const NBEdge::Connection& prohibitorCon, bool foes) const;
504
505 bool zipperConflict(const NBEdge* incoming, const NBEdge* outgoing, int fromLane, int toLane) const;
506
508 bool turnFoes(const NBEdge* from, const NBEdge* to, int fromLane,
509 const NBEdge* from2, const NBEdge* to2, int fromLane2,
510 bool lefthand = false) const;
511
520 bool forbids(const NBEdge* const possProhibitorFrom, const NBEdge* const possProhibitorTo,
521 const NBEdge* const possProhibitedFrom, const NBEdge* const possProhibitedTo,
522 bool regardNonSignalisedLowerPriority) const;
523
531 bool foes(const NBEdge* const from1, const NBEdge* const to1,
532 const NBEdge* const from2, const NBEdge* const to2) const;
533
540 LinkDirection getDirection(const NBEdge* const incoming, const NBEdge* const outgoing, bool leftHand = false) const;
541
543 LinkState getLinkState(const NBEdge* incoming, const NBEdge* outgoing,
544 int fromLane, int toLane, bool mayDefinitelyPass, const std::string& tlID) const;
545
549 void computeNodeShape(double mismatchThreshold);
550
553
555 const PositionVector& getShape() const;
556
558 void setCustomShape(const PositionVector& shape);
559
561 void resetShape() {
562 myPoly.clear();
563 }
564
566 void setRadius(double radius) {
567 myRadius = radius;
568 }
569
571 void setKeepClear(bool keepClear) {
572 myKeepClear = keepClear;
573 }
574
576 void setRightOfWay(RightOfWay rightOfWay) {
577 myRightOfWay = rightOfWay;
578 }
579
581 void setFringeType(FringeType fringeType) {
582 myFringeType = fringeType;
583 }
584
586 void setName(const std::string& name) {
587 myName = name;
588 }
589
591 bool hasCustomShape() const {
592 return myHaveCustomPoly;
593 }
594
596 bool checkIsRemovable() const;
597
599 bool checkIsRemovableReporting(std::string& reason) const;
600
602 std::vector<std::pair<NBEdge*, NBEdge*> > getEdgesToJoin() const;
603
605 bool isNearDistrict() const;
606
608 bool isDistrict() const;
609
611 bool needsCont(const NBEdge* fromE, const NBEdge* otherFromE,
612 const NBEdge::Connection& c, const NBEdge::Connection& otherC, bool checkOnlyTLS = false) const;
613
615 bool tlsStrandedConflict(const NBEdge* from, const NBEdge::Connection& c,
616 const NBEdge* foeFrom, const NBEdge::Connection& foe) const;
617
618
626 PositionVector computeInternalLaneShape(const NBEdge* fromE, const NBEdge::Connection& con, int numPoints, NBNode* recordError = 0, int shapeFlag = 0) const;
627
638 PositionVector computeSmoothShape(const PositionVector& begShape, const PositionVector& endShape, int numPoints,
639 bool isTurnaround, double extrapolateBeg, double extrapolateEnd,
640 NBNode* recordError = 0, int shapeFlag = 0) const;
642 static PositionVector bezierControlPoints(const PositionVector& begShape, const PositionVector& endShape,
643 bool isTurnaround, double extrapolateBeg, double extrapolateEnd,
644 bool& ok, NBNode* recordError = 0, double straightThresh = DEG2RAD(5),
645 int shapeFlag = 0);
646
648 PositionVector indirectLeftShape(const PositionVector& begShape, const PositionVector& endShape, int numPoints) const;
649
651 double getDisplacementError() const {
652 return myDisplacementError;
653 }
654
656 void replaceIncoming(NBEdge* which, NBEdge* by, int laneOff);
657
659 void replaceIncoming(const EdgeVector& which, NBEdge* by);
660
662 void replaceOutgoing(NBEdge* which, NBEdge* by, int laneOff);
663
665 void replaceOutgoing(const EdgeVector& which, NBEdge* by);
666
668 int guessCrossings();
669
670 /* @brief check whether a crossing should be build for the candiate edges and build 0 to n crossings
671 * @param[in] candidates The candidate vector of edges to be crossed
672 * @param[in] checkOnly Whether only checking (of user supplied) crossings shall be performed
673 * @return The number of crossings built
674 * */
675 int checkCrossing(EdgeVector candidates, bool checkOnly = false);
676
679
681 double buildInnerEdges();
682
686 int buildCrossings();
687
691 void buildWalkingAreas(int cornerDetail, double joinMinDist);
692
695
698
700 EdgeVector edgesBetween(const NBEdge* e1, const NBEdge* e2) const;
701
703 bool crossingBetween(const NBEdge* e1, const NBEdge* e2) const;
704
706 bool alreadyConnectedPaths(const NBEdge* e1, const NBEdge* e2, double dist) const;
707
709 bool crossesFringe(const NBEdge* e1, const NBEdge* e2) const;
710
715
717 bool geometryLike() const;
718 static bool geometryLike(const EdgeVector& incoming, const EdgeVector& outgoing);
719
721 void setRoundabout();
722
724 bool isRoundabout() const;
725
727 NBNode::Crossing* addCrossing(EdgeVector edges, double width, bool priority, int tlIndex = -1, int tlIndex2 = -1,
728 const PositionVector& customShape = PositionVector::EMPTY, bool fromSumoNet = false, const Parameterised* params = nullptr);
729
731 void addWalkingAreaShape(EdgeVector edges, const PositionVector& shape, double width);
732
734 void removeCrossing(const EdgeVector& edges);
735
737 void discardAllCrossings(bool rejectAll);
738
740 void discardWalkingareas();
741
746
748 std::vector<Crossing*> getCrossings() const;
749 inline const std::vector<std::unique_ptr<Crossing> >& getCrossingsIncludingInvalid() const {
750 return myCrossings;
751 }
752
754 inline const std::vector<WalkingArea>& getWalkingAreas() const {
755 return myWalkingAreas;
756 }
757
758 const std::vector<WalkingAreaCustomShape>& getWalkingAreaCustomShapes() const {
760 }
761
763 Crossing* getCrossing(const std::string& id) const;
764
766 Crossing* getCrossing(const EdgeVector& edges, bool hardFail = true) const;
767
769 WalkingArea& getWalkingArea(const std::string& id);
770
771 /* @brief set tl indices of this nodes crossing starting at the given index
772 * @return Whether a custom index was used
773 */
774 bool setCrossingTLIndices(const std::string& tlID, int startIndex, bool ignoreCustom = false);
775
777 int numNormalConnections() const;
778
780 void avoidOverlap();
781
783 bool extraConflict(int index, int foeIndex) const;
784
786 void sortEdges(bool useNodeShape);
787
789 int getConnectionIndex(const NBEdge* from, const NBEdge::Connection& con) const;
790
796 public:
798 explicit nodes_by_id_sorter() { }
799
801 int operator()(NBNode* n1, NBNode* n2) const {
802 return n1->getID() < n2->getID();
803 }
804 };
805
810 public:
813
815 int operator()(NBEdge* e1, NBEdge* e2) const {
817 return e1->getFromNode() == myNode;
818 }
819
820 private:
823
824 };
825
827 static bool isTrafficLight(SumoXMLNodeType type);
828
829 inline bool isTrafficLight() const {
830 return isTrafficLight(myType);
831 }
832
834 bool isSimpleContinuation(bool checkLaneNumbers = true, bool checkWidth = false) const;
835
837 void markBentPriority(bool isBent) {
838 myIsBentPriority = isBent;
839 }
840
842 bool isBentPriority() const {
843 return myIsBentPriority;
844 }
845
847 bool typeWasGuessed() const {
848 return myTypeWasGuessed;
849 }
850
852 bool isConstantWidthTransition() const;
853
855 std::vector<std::pair<Position, std::string> > getEndPoints() const;
856
858 void recheckVClassConnections(NBEdge* currentOutgoing);
859
861 static void initRailSignalClasses(const NBNodeCont& nc);
862
863private:
866
868 void getEdgesThatApproach(NBEdge* currentOutgoing, EdgeVector& approaching);
869
871 void replaceInConnectionProhibitions(NBEdge* which, NBEdge* by, int whichLaneOff, int byLaneOff);
872
874 void remapRemoved(NBTrafficLightLogicCont& tc, NBEdge* removed, const EdgeVector& incoming, const EdgeVector& outgoing);
875
877 bool forbidsPedestriansAfter(std::vector<std::pair<NBEdge*, bool> > normalizedLanes, int startIndex);
878
881
883 static bool isLongEnough(NBEdge* out, double minLength);
884
887
889 void displaceShapeAtWidthChange(const NBEdge* from, const NBEdge::Connection& con, PositionVector& fromShape, PositionVector& toShape) const;
890
892 static bool includes(const std::set<const NBEdge*, ComparatorIdLess>& super,
893 const std::set<const NBEdge*, ComparatorIdLess>& sub);
894
895 NBEdge* getNextCompatibleOutgoing(const NBEdge* incoming, SVCPermissions vehPerm, EdgeVector::const_iterator start, bool clockwise) const;
896
898 void getReduction(const NBEdge* in, const NBEdge* out, int& inOffset, int& inEnd, int& outOffset, int& outEnd, int& reduction) const;
899
901 SVCPermissions findToLaneForPermissions(NBEdge* currentOutgoing, int fromLane, NBEdge* incoming, SVCPermissions unsatisfied);
902
904 int addedLanesRight(NBEdge* out, int addedLanes) const;
905
907 bool isStraighter(const NBEdge* const incoming, const double angle, const SVCPermissions vehPerm, const int modeLanes, const NBEdge* const candidate) const;
908
910 EdgeVector getPassengerEdges(bool incoming) const;
911
913 static bool isExplicitRailNoBidi(const NBEdge* incoming, const NBEdge* outgoing);
914
916 PositionVector cutAtShapes(const PositionVector& cut, const PositionVector& border1, const PositionVector& border2, const PositionVector& def);
917
919 void patchOffset_pathAcrossStreet(double& offset);
920
922 bool unsignalizedOperation() const;
923
925 void recheckSpecialConnections(NBEdge* incoming, NBEdge* currentOutgoing, SVCPermissions svcSpecial);
926
928 bool avoidConfict(NBEdge* incoming, NBEdge* currentOutgoing, SVCPermissions svcSpecial, LinkDirection dir, int i);
929
930private:
933
936
939
942
944 std::vector<std::unique_ptr<Crossing> > myCrossings;
945
947 std::vector<WalkingArea> myWalkingAreas;
948
950 std::vector<WalkingAreaCustomShape> myWalkingAreaCustomShapes;
951
954
957
960
963
966
969
971 std::set<NBTrafficLightDefinition*> myTrafficLights;
972
974 double myRadius;
975
978
981
984
986 std::string myName;
987
990
993
996
997 /* @brief whether this junction is a bent priority junction (main direction turns)
998 * @note see NBEdgePriorityComputer
999 */
1001
1004
1007
1010
1011private:
1013 NBNode(const NBNode& s);
1014
1017};
#define DEG2RAD(x)
Definition GeomHelper.h:35
std::map< NBConnection, NBConnectionVector > NBConnectionProhibits
Definition of a container for connection block dependencies Includes a list of all connections which ...
std::vector< NBEdge * > EdgeVector
container for (sorted) edges
Definition NBCont.h:42
long long int SVCPermissions
bitset where each bit declares whether a certain SVC may use this edge/lane
FringeType
classifying boundary nodes
LinkDirection
The different directions a link between two lanes may take (or a stream between two edges)....
LinkState
The right-of-way state of a link between two lanes used when constructing a NBTrafficLightLogic,...
SumoXMLNodeType
Numbers representing special SUMO-XML-attribute values for representing node- (junction-) types used ...
RightOfWay
algorithms for computing right of way
const double INVALID_DOUBLE
invalid double
Definition StdDefs.h:68
A container for districts.
A class representing a single district.
Definition NBDistrict.h:62
Storage for edges, including some functionality operating on multiple edges.
Definition NBEdgeCont.h:59
The representation of a single edge during network building.
Definition NBEdge.h:92
NBNode * getFromNode() const
Returns the origin node of the edge.
Definition NBEdge.h:545
Computes lane-2-lane connections.
Definition NBNode.h:85
ApproachingDivider & operator=(const ApproachingDivider &)=delete
Invalidated assignment operator.
bool myIsBikeEdge
whether the outgoing edge is exclusively used by bikes
Definition NBNode.h:124
~ApproachingDivider()
Destructor.
Definition NBNode.cpp:146
const EdgeVector & myApproaching
The list of edges that approach the current edge.
Definition NBNode.h:109
int numAvailableLanes() const
@ get number of available lanes
Definition NBNode.h:97
std::vector< LinkDirection > myDirections
directions from each incoming edge to the outgoing edge
Definition NBNode.h:118
int myNumStraight
number of straight connections to the outgoing edge
Definition NBNode.h:121
NBEdge * myCurrentOutgoing
The approached current edge.
Definition NBNode.h:112
std::deque< int > * spread(int numLanes, int dest) const
the method that spreads the wished number of lanes from the lane given by the bresenham-call to both ...
Definition NBNode.cpp:204
void execute(const int src, const int dest)
the bresenham-callback
Definition NBNode.cpp:150
std::vector< int > myAvailableLanes
The available lanes to which connections shall be built.
Definition NBNode.h:115
A definition of a pedestrian crossing.
Definition NBNode.h:135
const NBNode * node
The parent node of this crossing.
Definition NBNode.h:140
int tlLinkIndex
the traffic light index of this crossing (if controlled)
Definition NBNode.h:162
std::string tlID
The id of the traffic light that controls this connection.
Definition NBNode.h:168
PositionVector customShape
optional customShape for this crossing
Definition NBNode.h:160
std::string id
the (edge)-id of this crossing
Definition NBNode.h:152
std::string prevWalkingArea
the lane-id of the previous walkingArea
Definition NBNode.h:154
std::string nextWalkingArea
the lane-id of the next walkingArea
Definition NBNode.h:156
PositionVector outlineShape
The outline shape for this crossing.
Definition NBNode.h:146
PositionVector shape
The crossing's shape.
Definition NBNode.h:144
int customTLIndex
the custom traffic light index of this crossing (if controlled)
Definition NBNode.h:165
bool priority
whether the pedestrians have priority
Definition NBNode.h:158
EdgeVector edges
The edges being crossed.
Definition NBNode.h:142
double width
This crossing's width.
Definition NBNode.h:150
bool valid
whether this crossing is valid (and can be written to the net.xml). This is needed for netedit becaus...
Definition NBNode.h:170
double customWidth
This crossing's width.
Definition NBNode.h:148
Sorts outgoing before incoming edges.
Definition NBNode.h:809
NBNode * myNode
The node to compute the relative angle of.
Definition NBNode.h:822
int operator()(NBEdge *e1, NBEdge *e2) const
operator of selection
Definition NBNode.h:815
edge_by_direction_sorter(NBNode *n)
constructor
Definition NBNode.h:812
Used for sorting the cells by the begin time they describe.
Definition NBNode.h:795
nodes_by_id_sorter()
Constructor.
Definition NBNode.h:798
int operator()(NBNode *n1, NBNode *n2) const
Comparing operator.
Definition NBNode.h:801
Container for nodes during the netbuilding process.
Definition NBNodeCont.h:57
Represents a single node (junction) during network building.
Definition NBNode.h:66
void addIncomingEdge(NBEdge *edge)
adds an incoming edge
Definition NBNode.cpp:531
void invalidateOutgoingConnections(bool reallowSetting=false)
invalidate outgoing connections
Definition NBNode.cpp:2134
LinkDirection getDirection(const NBEdge *const incoming, const NBEdge *const outgoing, bool leftHand=false) const
Returns the representation of the described stream's direction.
Definition NBNode.cpp:2496
static const int FOUR_CONTROL_POINTS
Definition NBNode.h:225
static const int AVOID_INTERSECTING_LEFT_TURNS
Definition NBNode.h:226
bool hasIncoming(const NBEdge *const e) const
Returns whether the given edge ends at this node.
Definition NBNode.cpp:1992
void addWalkingAreaShape(EdgeVector edges, const PositionVector &shape, double width)
add custom shape for walkingArea
Definition NBNode.cpp:4025
void avoidOverlap()
fix overlap
Definition NBNode.cpp:4259
void removeEdge(NBEdge *edge, bool removeFromConnections=true)
Removes edge from this node and optionally removes connections as well.
Definition NBNode.cpp:2065
std::vector< WalkingAreaCustomShape > myWalkingAreaCustomShapes
Vector of custom walking areas shapes.
Definition NBNode.h:950
double getDisplacementError() const
compute the displacement error during s-curve computation
Definition NBNode.h:651
RightOfWay getRightOfWay() const
Returns hint on how to compute right of way.
Definition NBNode.h:300
Position getCenter() const
Returns a position that is guaranteed to lie within the node shape.
Definition NBNode.cpp:4221
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.
Definition NBNode.cpp:2142
const std::set< NBTrafficLightDefinition * > & getControllingTLS() const
Returns the traffic lights that were assigned to this node (The set of tls that control this node)
Definition NBNode.h:340
void removeCrossing(const EdgeVector &edges)
remove a pedestrian crossing from this node (identified by its edges)
Definition NBNode.cpp:4106
NBEdge * getNextCompatibleOutgoing(const NBEdge *incoming, SVCPermissions vehPerm, EdgeVector::const_iterator start, bool clockwise) const
Definition NBNode.cpp:2424
bool isSimpleContinuation(bool checkLaneNumbers=true, bool checkWidth=false) const
check if node is a simple continuation
Definition NBNode.cpp:551
void patchOffset_pathAcrossStreet(double &offset)
compute offset for centering path-across-street crossings
Definition NBNode.cpp:3272
SVCPermissions findToLaneForPermissions(NBEdge *currentOutgoing, int fromLane, NBEdge *incoming, SVCPermissions unsatisfied)
helper function to add connections for unsatisfied modes
Definition NBNode.cpp:1719
NBNode::Crossing * addCrossing(EdgeVector edges, double width, bool priority, int tlIndex=-1, int tlIndex2=-1, const PositionVector &customShape=PositionVector::EMPTY, bool fromSumoNet=false, const Parameterised *params=nullptr)
add a pedestrian crossing to this node
Definition NBNode.cpp:4091
LinkState getLinkState(const NBEdge *incoming, const NBEdge *outgoing, int fromLane, int toLane, bool mayDefinitelyPass, const std::string &tlID) const
get link state
Definition NBNode.cpp:2581
int getConnectionIndex(const NBEdge *from, const NBEdge::Connection &con) const
return the index of the given connection
Definition NBNode.cpp:4206
void reinit(const Position &position, SumoXMLNodeType type, bool updateEdgeGeometries=false)
Resets initial values.
Definition NBNode.cpp:351
int numNormalConnections() const
return the number of lane-to-lane connections at this junction (excluding crossings)
Definition NBNode.cpp:4191
static const double UNSPECIFIED_RADIUS
unspecified lane width
Definition NBNode.h:220
bool needsCont(const NBEdge *fromE, const NBEdge *otherFromE, const NBEdge::Connection &c, const NBEdge::Connection &otherC, bool checkOnlyTLS=false) const
whether an internal junction should be built at from and respect other
Definition NBNode.cpp:976
Crossing * getCrossing(const std::string &id) const
return the crossing with the given id
Definition NBNode.cpp:4120
bool forbidsPedestriansAfter(std::vector< std::pair< NBEdge *, bool > > normalizedLanes, int startIndex)
return whether there is a non-sidewalk lane after the given index;
Definition NBNode.cpp:3036
void recheckVClassConnections(NBEdge *currentOutgoing)
ensure connectivity for all vClasses
Definition NBNode.cpp:1538
FringeType getFringeType() const
Returns fringe type.
Definition NBNode.h:305
bool zipperConflict(const NBEdge *incoming, const NBEdge *outgoing, int fromLane, int toLane) const
Definition NBNode.cpp:2619
void buildCrossingsAndWalkingAreas()
build crossings, and walkingareas. Also removes invalid loaded crossings if wished
Definition NBNode.cpp:3047
std::string myName
The intersection name (or whatever arbitrary string you wish to attach)
Definition NBNode.h:986
static const int BACKWARD
Definition NBNode.h:217
bool unsignalizedOperation() const
whether the given rail connections at this node may run in unsignalized (right-of-way) mode
Definition NBNode.cpp:2635
static bool isExplicitRailNoBidi(const NBEdge *incoming, const NBEdge *outgoing)
detect explict rail turns with potential geometry problem
Definition NBNode.cpp:2569
void resetShape()
reset node shape
Definition NBNode.h:561
SumoXMLNodeType getType() const
Returns the type of this node.
Definition NBNode.h:285
bool isTrafficLight() const
Definition NBNode.h:829
void computeLogic2(bool checkLaneFoes)
compute right-of-way logic for all lane-to-lane connections
Definition NBNode.cpp:1093
void setRightOfWay(RightOfWay rightOfWay)
set method for computing right-of-way
Definition NBNode.h:576
bool myTypeWasGuessed
whether the node type was guessed rather than loaded
Definition NBNode.h:1003
void setCustomShape(const PositionVector &shape)
set the junction shape
Definition NBNode.cpp:2787
void computeNodeShape(double mismatchThreshold)
Compute the junction shape for this node.
Definition NBNode.cpp:1193
void buildWalkingAreas(int cornerDetail, double joinMinDist)
build pedestrian walking areas and set connections from/to walkingAreas
Definition NBNode.cpp:3355
void remapRemoved(NBTrafficLightLogicCont &tc, NBEdge *removed, const EdgeVector &incoming, const EdgeVector &outgoing)
remap removed
Definition NBNode.cpp:2343
int buildCrossings()
build pedestrian crossings
Definition NBNode.cpp:3154
SumoXMLNodeType myType
The type of the junction.
Definition NBNode.h:953
EdgeVector myOutgoingEdges
Vector of outgoing edges.
Definition NBNode.h:938
void getReduction(const NBEdge *in, const NBEdge *out, int &inOffset, int &inEnd, int &outOffset, int &outEnd, int &reduction) const
get the reduction in driving lanes at this junction
Definition NBNode.cpp:1709
bool myKeepClear
whether the junction area must be kept clear
Definition NBNode.h:977
void discardWalkingareas()
discard previously built walkingareas (required for repeated computation by netedit)
Definition NBNode.cpp:3124
void computeLogic(const NBEdgeCont &ec)
computes the node's type, logic and traffic light
Definition NBNode.cpp:1054
void invalidateIncomingConnections(bool reallowSetting=false)
invalidate incoming connections
Definition NBNode.cpp:2126
NBRequest * myRequest
Node requests.
Definition NBNode.h:968
const EdgeVector & getIncomingEdges() const
Returns this node's incoming edges (The edges which yield in this node)
Definition NBNode.h:268
bool tlsStrandedConflict(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 NBNode.cpp:1029
void mirrorX()
mirror coordinates along the x-axis
Definition NBNode.cpp:408
void invalidateTLS(NBTrafficLightLogicCont &tlCont, bool addedConnections, bool removedConnections)
causes the traffic light to be computed anew
Definition NBNode.cpp:467
bool brakeForCrossingOnExit(const NBEdge *to, LinkDirection dir, bool indirect) const
whether a connection to the given edge must brake for a crossing when leaving the intersection
Definition NBNode.cpp:2165
bool extraConflict(int index, int foeIndex) const
whether the given index must yield to the foeIndex while turing right on a red light
Definition NBNode.cpp:4286
std::vector< std::pair< Position, std::string > > getEndPoints() const
return list of unique endpoint coordinates of all edges at this node
Definition NBNode.cpp:4381
static bool rightTurnConflict(const NBEdge *from, const NBEdge *to, int fromLane, const NBEdge *prohibitorFrom, const NBEdge *prohibitorTo, int prohibitorFromLane)
return whether the given laneToLane connection is a right turn which must yield to a bicycle crossing...
Definition NBNode.cpp:2181
std::vector< std::pair< NBEdge *, NBEdge * > > getEdgesToJoin() const
get edges to join
Definition NBNode.cpp:2745
bool hadSignal() const
whether this node was marked as having a signal in the (OSM) input
Definition NBNode.cpp:456
void setKeepClear(bool keepClear)
set the keepClear flag
Definition NBNode.h:571
int checkCrossing(EdgeVector candidates, bool checkOnly=false)
Definition NBNode.cpp:2940
bool myHaveCustomPoly
whether this nodes shape was set by the user
Definition NBNode.h:965
Position getEmptyDir() const
Returns something like the most unused direction Should only be used to add source or sink nodes.
Definition NBNode.cpp:2101
static void initRailSignalClasses(const NBNodeCont &nc)
initialize signalized rail classes
Definition NBNode.cpp:2647
PositionVector indirectLeftShape(const PositionVector &begShape, const PositionVector &endShape, int numPoints) const
compute shape of indirect left turn
Definition NBNode.cpp:809
const std::vector< std::unique_ptr< Crossing > > & getCrossingsIncludingInvalid() const
Definition NBNode.h:749
void recheckSpecialConnections(NBEdge *incoming, NBEdge *currentOutgoing, SVCPermissions svcSpecial)
ensure connectivity for all special vClass
Definition NBNode.cpp:1605
PositionVector cutAtShapes(const PositionVector &cut, const PositionVector &border1, const PositionVector &border2, const PositionVector &def)
geometry helper that cuts the first shape where bordered by the other two
Definition NBNode.cpp:3886
static const int AVOID_WIDE_RIGHT_TURN
flags for controlling shape generation
Definition NBNode.h:223
const EdgeVector & getOutgoingEdges() const
Returns this node's outgoing edges (The edges which start at this node)
Definition NBNode.h:273
int myCrossingsLoadedFromSumoNet
number of crossings loaded from a sumo net
Definition NBNode.h:992
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.
Definition NBNode.cpp:2326
bool alreadyConnectedPaths(const NBEdge *e1, const NBEdge *e2, double dist) const
return true if the given pedestrian paths are connected at another junction within dist
Definition NBNode.cpp:3980
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.
Definition NBNode.cpp:2160
bool hasConflict() const
whether there are conflicting streams of traffic at this node
Definition NBNode.cpp:1158
void removeTrafficLights(bool setAsPriority=false)
Removes all references to traffic lights that control this tls.
Definition NBNode.cpp:444
void replaceInConnectionProhibitions(NBEdge *which, NBEdge *by, int whichLaneOff, int byLaneOff)
replace incoming connections prohibitions
Definition NBNode.cpp:1919
bool mergeConflictYields(const NBEdge *from, int fromLane, int fromLaneFoe, NBEdge *to, int toLane) const
whether one of multple connections from the same edge targeting the same lane must yield
Definition NBNode.cpp:2232
void replaceOutgoing(NBEdge *which, NBEdge *by, int laneOff)
Replaces occurrences of the first edge within the list of outgoing by the second Connections are rema...
Definition NBNode.cpp:1850
EdgeVector myAllEdges
Vector of incoming and outgoing edges.
Definition NBNode.h:941
void computeKeepClear()
compute keepClear status for all connections
Definition NBNode.cpp:1100
int numCrossingsFromSumoNet() const
get num of crossings from sumo net
Definition NBNode.h:743
void sortEdges(bool useNodeShape)
sort all edge containers for this node
Definition NBNode.cpp:4297
RightOfWay myRightOfWay
how to compute right of way for this node
Definition NBNode.h:980
bool myIsBentPriority
Definition NBNode.h:1000
std::set< NBTrafficLightDefinition * > myTrafficLights
traffic lights of node
Definition NBNode.h:971
double myRadius
the turning radius (for all corners) at this node in m.
Definition NBNode.h:974
static bool includes(const std::set< const NBEdge *, ComparatorIdLess > &super, const std::set< const NBEdge *, ComparatorIdLess > &sub)
returns whether sub is a subset of super
Definition NBNode.cpp:3946
static SVCPermissions myHaveRailSignalClasses
all vehicle classes for which rail signals exist
Definition NBNode.h:1006
bool bidiConflict(const NBEdge *from, const NBEdge::Connection &con, const NBEdge *prohibitorFrom, const NBEdge::Connection &prohibitorCon, bool foes) const
whether the foe connections is oncoming on the same lane
Definition NBNode.cpp:2252
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.
Definition NBNode.cpp:586
bool hasCustomShape() const
return whether the shape was set by the user
Definition NBNode.h:591
bool isLeftMover(const NBEdge *const from, const NBEdge *const to) const
Computes whether the given connection is a left mover across the junction.
Definition NBNode.cpp:2307
int removeSelfLoops(NBDistrictCont &dc, NBEdgeCont &ec, NBTrafficLightLogicCont &tc)
Removes edges which are both incoming and outgoing into this node.
Definition NBNode.cpp:498
bool checkCrossingDuplicated(EdgeVector edges)
return true if there already exist a crossing with the same edges as the input
Definition NBNode.cpp:3019
void setRoundabout()
update the type of this node as a roundabout
Definition NBNode.cpp:4074
bool mergeConflict(const NBEdge *from, const NBEdge::Connection &con, const NBEdge *prohibitorFrom, const NBEdge::Connection &prohibitorCon, bool foes) const
whether multiple connections from the same edge target the same lane
Definition NBNode.cpp:2243
bool myDiscardAllCrossings
whether to discard all pedestrian crossings
Definition NBNode.h:989
std::vector< Crossing * > getCrossings() const
return this junctions pedestrian crossings
Definition NBNode.cpp:3096
void addSortedLinkFoes(const NBConnection &mayDrive, const NBConnection &mustStop)
add shorted link FOES
Definition NBNode.cpp:2022
Position myPosition
The position the node lies at.
Definition NBNode.h:932
bool isBentPriority() const
return whether a priority road turns at this node
Definition NBNode.h:842
void replaceIncoming(NBEdge *which, NBEdge *by, int laneOff)
Replaces occurrences of the first edge within the list of incoming by the second Connections are rema...
Definition NBNode.cpp:1886
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 t...
Definition NBNode.cpp:2261
const std::string & getName() const
Returns intersection name.
Definition NBNode.h:310
void discardAllCrossings(bool rejectAll)
discard all current (and optionally future) crossings
Definition NBNode.cpp:3114
bool hasOutgoing(const NBEdge *const e) const
Returns whether the given edge starts at this node.
Definition NBNode.cpp:1998
bool writeLogic(OutputDevice &into) const
writes the XML-representation of the logic as a bitset-logic XML representation
Definition NBNode.cpp:1129
void setRadius(double radius)
set the turning radius
Definition NBNode.h:566
EdgeVector getPassengerEdges(bool incoming) const
return edges that permit passengers (either incoming or outgoing)
Definition NBNode.cpp:2485
NBEdge * getPossiblySplittedOutgoing(const std::string &edgeid)
get possibly splitted outgoing edge
Definition NBNode.cpp:2052
NBNode(const NBNode &s)
invalidated copy constructor
void addOutgoingEdge(NBEdge *edge)
adds an outgoing edge
Definition NBNode.cpp:541
bool isConstantWidthTransition() const
detects whether a given junction splits or merges lanes while keeping constant road width
Definition NBNode.cpp:919
std::vector< std::unique_ptr< Crossing > > myCrossings
Vector of crossings.
Definition NBNode.h:944
bool isStraighter(const NBEdge *const incoming, const double angle, const SVCPermissions vehPerm, const int modeLanes, const NBEdge *const candidate) const
check whether the candidate edge is more likely to be the straight continuation
Definition NBNode.cpp:2449
void removeJoinedTrafficLights()
remove all traffic light definitions that are part of a joined tls
Definition NBNode.cpp:1039
bool crossingBetween(const NBEdge *e1, const NBEdge *e2) const
return true if the given edges are connected by a crossing
Definition NBNode.cpp:3959
bool isDistrict() const
check if node is a district
Definition NBNode.cpp:2827
NBDistrict * myDistrict
The district the node is the centre of.
Definition NBNode.h:959
void computeLanes2Lanes()
computes the connections of lanes to edges
Definition NBNode.cpp:1232
void reshiftPosition(double xoff, double yoff)
Applies an offset to the node.
Definition NBNode.cpp:380
void setName(const std::string &name)
set intersection name
Definition NBNode.h:586
double myDisplacementError
geometry error after computation of internal lane shapes
Definition NBNode.h:995
static const int AVOID_WIDE_LEFT_TURN
Definition NBNode.h:224
const Position & getPosition() const
Definition NBNode.h:260
void removeTrafficLight(NBTrafficLightDefinition *tlDef)
Removes the given traffic light from this node.
Definition NBNode.cpp:437
const EdgeVector & getEdges() const
Returns all edges which participate in this node (Edges that start or end at this node)
Definition NBNode.h:278
void markBentPriority(bool isBent)
mark whether a priority road turns at this node
Definition NBNode.h:837
bool typeWasGuessed() const
return whether a priority road turns at this node
Definition NBNode.h:847
const std::string getResponse(int linkIndex) const
get the 'response' string (right-of-way bit set) of the right-of-way logic
Definition NBNode.cpp:1149
void buildCrossingOutlines()
build crossing outlines after walkingareas are finished
Definition NBNode.cpp:3829
const NBConnectionProhibits & getProhibitions()
get prohibitions (BLocked connections)
Definition NBNode.h:712
static bool isLongEnough(NBEdge *out, double minLength)
check if is long enough
Definition NBNode.cpp:1811
NBNode & operator=(const NBNode &s)
invalidated assignment operator
const PositionVector & getShape() const
retrieve the junction shape
Definition NBNode.cpp:2781
void setPriorityJunctionPriorities()
sets the priorites in case of a priority junction
std::vector< WalkingArea > myWalkingAreas
Vector of walking areas.
Definition NBNode.h:947
NBConnectionProhibits myBlockedConnections
The container for connection block dependencies.
Definition NBNode.h:956
void updateSurroundingGeometry()
update geometry of node and surrounding edges
Definition NBNode.cpp:1183
int addedLanesRight(NBEdge *out, int addedLanes) const
check whether this edge has extra lanes on the right side
Definition NBNode.cpp:1757
FringeType myFringeType
fringe type of this node
Definition NBNode.h:983
void roundGeometry()
ensure consistency between input and output geometries
Definition NBNode.cpp:393
const std::vector< WalkingAreaCustomShape > & getWalkingAreaCustomShapes() const
Definition NBNode.h:758
double getRadius() const
Returns the turning radius of this node.
Definition NBNode.h:290
bool setCrossingTLIndices(const std::string &tlID, int startIndex, bool ignoreCustom=false)
Definition NBNode.cpp:4172
bool checkIsRemovable() const
check if node is removable
Definition NBNode.cpp:2662
bool isRoundabout() const
return whether this node is part of a roundabout
Definition NBNode.cpp:4081
static const int FORWARD
edge directions (for pedestrian related stuff)
Definition NBNode.h:216
bool checkIsRemovableReporting(std::string &reason) const
check if node is removable and return reason if not
Definition NBNode.cpp:2668
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
Definition NBNode.cpp:927
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.
Definition NBNode.cpp:2336
const std::vector< WalkingArea > & getWalkingAreas() const
return this junctions pedestrian walking areas
Definition NBNode.h:754
void removeDoubleEdges()
remove duble edges
Definition NBNode.cpp:1954
bool avoidConfict(NBEdge *incoming, NBEdge *currentOutgoing, SVCPermissions svcSpecial, LinkDirection dir, int i)
helper function for recheckSpecialConnections
Definition NBNode.cpp:1676
double buildInnerEdges()
build internal lanes, pedestrian crossings and walking areas
Definition NBNode.cpp:3130
PositionVector myPoly
the (outer) shape of the junction
Definition NBNode.h:962
NBEdge * getConnectionTo(NBNode *n) const
get connection to certain node
Definition NBNode.cpp:2799
bool crossesFringe(const NBEdge *e1, const NBEdge *e2) const
return true if the given sidewalks are separated by a fringe road
Definition NBNode.cpp:4001
void getEdgesThatApproach(NBEdge *currentOutgoing, EdgeVector &approaching)
returns a list of edges which are connected to the given outgoing edge
Definition NBNode.cpp:1828
void setFringeType(FringeType fringeType)
set method for computing right-of-way
Definition NBNode.h:581
EdgeVector getEdgesSortedByAngleAtNodeCenter() const
returns the list of all edges sorted clockwise by getAngleAtNodeToCenter
Definition NBNode.cpp:4238
EdgeVector edgesBetween(const NBEdge *e1, const NBEdge *e2) const
return all edges that lie clockwise between the given edges
Definition NBNode.cpp:4009
PositionVector computeInternalLaneShape(const NBEdge *fromE, const NBEdge::Connection &con, int numPoints, NBNode *recordError=0, int shapeFlag=0) const
Compute the shape for an internal lane.
Definition NBNode.cpp:834
~NBNode()
Destructor.
Definition NBNode.cpp:345
NBEdge * getPossiblySplittedIncoming(const std::string &edgeid)
get possibly splitted incoming edge
Definition NBNode.cpp:2039
void shiftTLConnectionLaneIndex(NBEdge *edge, int offset, int threshold=-1)
patches loaded signal plans by modifying lane indices above threshold by the given offset
Definition NBNode.cpp:490
bool geometryLike() const
whether this is structurally similar to a geometry node
Definition NBNode.cpp:4035
bool isNearDistrict() const
@chech if node is near district
Definition NBNode.cpp:2810
static const int INDIRECT_LEFT
Definition NBNode.h:228
EdgeVector myIncomingEdges
Vector of incoming edges.
Definition NBNode.h:935
WalkingArea & getWalkingArea(const std::string &id)
return the walkingArea with the given ID
Definition NBNode.cpp:4147
void addTrafficLight(NBTrafficLightDefinition *tlDef)
Adds a traffic light to the list of traffic lights that control this node.
Definition NBNode.cpp:427
static SVCPermissions myPermitUnsignalizedClasses
all rail classes for which operation without rail signals is permitted
Definition NBNode.h:1009
int guessCrossings()
guess pedestrian crossings and return how many were guessed
Definition NBNode.cpp:2833
bool isTLControlled() const
Returns whether this node is controlled by any tls.
Definition NBNode.h:331
bool getKeepClear() const
Returns the keepClear flag.
Definition NBNode.h:295
static const int SCURVE_IGNORE
Definition NBNode.h:227
const std::string getFoes(int linkIndex) const
get the 'foes' string (conflict bit set) of the right-of-way logic
Definition NBNode.cpp:1139
NBEdge * getOppositeIncoming(NBEdge *e) const
returns the opposite incoming edge of certain edge
Definition NBNode.cpp:2004
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
Definition NBNode.cpp:616
The base class for traffic light logic definitions.
A container for traffic light definitions and built programs.
A storage for available edgeTypes of edges.
Definition NBTypeCont.h:52
Base class for objects which have an id.
Definition Named.h:54
const std::string & getID() const
Returns the id.
Definition Named.h:74
A storage for options typed value containers)
Definition OptionsCont.h:89
Static storage of an output device and its base (abstract) implementation.
An upper class for objects with additional parameters.
A point in 2D or 3D with translation and scaling methods.
Definition Position.h:37
A list of positions.
static const PositionVector EMPTY
empty Vector
#define UNUSED_PARAMETER(x)
A structure which describes a connection between edges or lanes.
Definition NBEdge.h:201
std::set< const NBEdge *, ComparatorIdLess > edges
Definition NBNode.h:210
A definition of a pedestrian walking area.
Definition NBNode.h:177
int minPrevCrossingEdges
minimum number of edges crossed by incoming crossings
Definition NBNode.h:204
std::vector< std::string > nextSidewalks
the lane-id of the next sidewalk lane or ""
Definition NBNode.h:196
std::vector< std::string > prevSidewalks
the lane-id of the previous sidewalk lane or ""
Definition NBNode.h:198
std::string id
the (edge)-id of this walkingArea
Definition NBNode.h:184
WalkingArea(const std::string &_id, double _width)
constructor
Definition NBNode.h:179
bool hasCustomShape
whether this walkingArea has a custom shape
Definition NBNode.h:200
std::set< const NBEdge *, ComparatorIdLess > refEdges
reference edges that uniquely identify this walkingarea
Definition NBNode.h:206
double width
This lane's width.
Definition NBNode.h:186
std::vector< std::string > nextCrossings
the lane-id of the next crossing(s)
Definition NBNode.h:192
std::vector< std::string > prevCrossings
the lane-id of the previous crossing(s)
Definition NBNode.h:194
PositionVector shape
The polygonal shape.
Definition NBNode.h:190
double length
This lane's width.
Definition NBNode.h:188
int minNextCrossingEdges
minimum number of edges crossed by nextCrossings
Definition NBNode.h:202