SUMO - Simulation of Urban MObility
NBEdge.h
Go to the documentation of this file.
1 /****************************************************************************/
9 // The representation of a single edge during network building
10 /****************************************************************************/
11 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
12 // Copyright (C) 2001-2015 DLR (http://www.dlr.de/) and contributors
13 /****************************************************************************/
14 //
15 // This file is part of SUMO.
16 // SUMO is free software: you can redistribute it and/or modify
17 // it under the terms of the GNU General Public License as published by
18 // the Free Software Foundation, either version 3 of the License, or
19 // (at your option) any later version.
20 //
21 /****************************************************************************/
22 #ifndef NBEdge_h
23 #define NBEdge_h
24 
25 
26 // ===========================================================================
27 // included modules
28 // ===========================================================================
29 #ifdef _MSC_VER
30 #include <windows_config.h>
31 #else
32 #include <config.h>
33 #endif
34 
35 #include <map>
36 #include <vector>
37 #include <string>
38 #include <set>
39 #include <utils/common/Named.h>
43 #include <utils/geom/Bresenham.h>
47 #include "NBCont.h"
48 #include "NBHelpers.h"
49 #include "NBSign.h"
50 
51 
52 // ===========================================================================
53 // class declarations
54 // ===========================================================================
55 class NBNode;
56 class NBConnection;
57 class NBNodeCont;
58 class NBEdgeCont;
59 class OutputDevice;
60 class GNELane;
61 
62 
63 // ===========================================================================
64 // class definitions
65 // ===========================================================================
70 class NBEdge : public Named, public Parameterised {
72  friend class NBEdgeSuccessorBuilder;
73  friend class NBEdgeCont;
74 
76  friend class GNELane;
77  friend class GNEEdge;
78 
79 public:
80 
103  };
104 
105 
116  };
117 
118 
122  struct Lane {
123  Lane(NBEdge* e, const std::string& _origID) :
126  origID(_origID) {}
140  std::string origID;
141 
142  };
143 
144 
148  struct Connection {
154  Connection(int fromLane_, NBEdge* toEdge_, int toLane_)
155  : fromLane(fromLane_), toEdge(toEdge_), toLane(toLane_),
156  mayDefinitelyPass(false), keepClear(true), haveVia(false) { }
157 
159 
160 
162  int fromLane;
166  int toLane;
168  std::string tlID;
170  unsigned int tlLinkNo;
174  bool keepClear;
177 
178 
179  std::string origID;
180 
181  std::string id;
184 
185  bool haveVia;
186  std::string viaID;
189 
190  std::vector<unsigned int> foeInternalLinks;
191  std::string foeIncomingLanes;
192 
194  unsigned int internalLaneIndex;
195 
196  std::string getInternalLaneID() const;
197 
198  };
199 
208 
214  static const SUMOReal ANGLE_LOOKAHEAD;
215 
216 public:
235  NBEdge(const std::string& id,
236  NBNode* from, NBNode* to, std::string type,
237  SUMOReal speed, unsigned int nolanes, int priority,
238  SUMOReal width, SUMOReal offset,
239  const std::string& streetName = "",
241 
242 
264  NBEdge(const std::string& id,
265  NBNode* from, NBNode* to, std::string type,
266  SUMOReal speed, unsigned int nolanes, int priority,
267  SUMOReal width, SUMOReal offset,
268  PositionVector geom,
269  const std::string& streetName = "",
270  const std::string& origID = "",
272  bool tryIgnoreNodePositions = false);
273 
285  NBEdge(const std::string& id,
286  NBNode* from, NBNode* to,
287  NBEdge* tpl,
288  const PositionVector& geom = PositionVector(),
289  int numLanes = -1);
290 
291 
294  ~NBEdge();
295 
296 
312  void reinit(NBNode* from, NBNode* to, const std::string& type,
313  SUMOReal speed, unsigned int nolanes, int priority,
314  PositionVector geom, SUMOReal width, SUMOReal offset,
315  const std::string& streetName,
317  bool tryIgnoreNodePositions = false);
318 
323  void reinitNodes(NBNode* from, NBNode* to);
324 
325 
328 
333  void reshiftPosition(SUMOReal xoff, SUMOReal yoff);
334 
336  void mirrorX();
338 
340 
341 
345  unsigned int getNumLanes() const {
346  return (unsigned int) myLanes.size();
347  }
348 
349 
353  int getPriority() const {
354  return myPriority;
355  }
356 
357 
361  NBNode* getFromNode() const {
362  return myFrom;
363  }
364 
365 
369  NBNode* getToNode() const {
370  return myTo;
371  }
372 
373 
378  inline SUMOReal getStartAngle() const {
379  return myStartAngle;
380  }
381 
382 
387  inline SUMOReal getEndAngle() const {
388  return myEndAngle;
389  }
390 
391 
393 
397  inline SUMOReal getTotalAngle() const {
398  return myTotalAngle;
399  }
400 
404  SUMOReal getLength() const {
405  return myLength;
406  }
407 
408 
414  return myLoadedLength > 0 ? myLoadedLength : myLength;
415  }
416 
417 
421  bool hasLoadedLength() const {
422  return myLoadedLength > 0;
423  }
424 
425 
429  SUMOReal getSpeed() const {
430  return mySpeed;
431  }
432 
433 
440  return myStep;
441  }
442 
443 
448  return myLaneWidth;
449  }
450 
454  SUMOReal getLaneWidth(int lane) const;
455 
456 
459  SUMOReal getTotalWidth() const;
460 
463  const std::string& getStreetName() const {
464  return myStreetName;
465  }
466 
469  void setStreetName(const std::string& name) {
470  myStreetName = name;
471  }
472 
477  return myEndOffset;
478  }
479 
483  SUMOReal getEndOffset(int lane) const;
484 
488  return mySignalOffset;
489  }
490 
493  void setSignalOffset(SUMOReal offset) {
494  mySignalOffset = offset;
495  }
496 
500  const std::vector<NBEdge::Lane>& getLanes() const {
501  return myLanes;
502  }
504 
509  int getFirstNonPedestrianLaneIndex(int direction, bool exclusive = false) const;
510  NBEdge::Lane getFirstNonPedestrianLane(int direction) const;
511 
514 
516 
517 
521  const PositionVector& getGeometry() const {
522  return myGeom;
523  }
524 
525 
527  const PositionVector getInnerGeometry() const;
528 
529 
532  bool hasDefaultGeometry() const;
533 
534 
540  bool hasDefaultGeometryEndpoints() const;
541 
542 
553  void setGeometry(const PositionVector& g, bool inner = false);
554 
555 
565  void addGeometryPoint(int index, const Position& p);
566 
570  void shiftPositionAtNode(NBNode* node, NBEdge* opposite);
571 
581  void computeEdgeShape();
582 
583 
587  const PositionVector& getLaneShape(unsigned int i) const;
588 
589 
595 
596 
602  return myLaneSpreadFunction;
603  }
604 
605 
611  bool splitGeometry(NBEdgeCont& ec, NBNodeCont& nc);
612 
613 
617  void reduceGeometry(const SUMOReal minDist);
618 
619 
625  void checkGeometry(const SUMOReal maxAngle, const SUMOReal minRadius, bool fix);
627 
628 
629 
632 
647  bool addEdge2EdgeConnection(NBEdge* dest);
648 
649 
670  bool addLane2LaneConnection(unsigned int fromLane, NBEdge* dest,
671  unsigned int toLane, Lane2LaneInfoType type,
672  bool mayUseSameDestination = false,
673  bool mayDefinitelyPass = false,
674  bool keepClear = true,
675  SUMOReal contPos = UNSPECIFIED_CONTPOS);
676 
677 
695  bool addLane2LaneConnections(unsigned int fromLane,
696  NBEdge* dest, unsigned int toLane, unsigned int no,
697  Lane2LaneInfoType type, bool invalidatePrevious = false,
698  bool mayDefinitelyPass = false);
699 
700 
711  void setConnection(unsigned int lane, NBEdge* destEdge,
712  unsigned int destLane,
713  Lane2LaneInfoType type,
714  bool mayUseSameDestination = false,
715  bool mayDefinitelyPass = false,
716  bool keepClear = true,
717  SUMOReal contPos = UNSPECIFIED_CONTPOS);
718 
719 
720 
729  std::vector<Connection> getConnectionsFromLane(unsigned int lane) const;
730 
735  Connection getConnection(int fromLane, const NBEdge* to, int toLane) const;
736 
737 
746  bool hasConnectionTo(NBEdge* destEdge, unsigned int destLane, int fromLane = -1) const;
747 
748 
755  bool isConnectedTo(NBEdge* e);
756 
757 
761  const std::vector<Connection>& getConnections() const {
762  return myConnections;
763  }
764 
765 
769  std::vector<Connection>& getConnections() {
770  return myConnections;
771  }
772 
773 
778 
779 
784 
785 
789  std::vector<int> getConnectionLanes(NBEdge* currentOutgoing) const;
790 
791 
795 
796 
800 
801 
807  void remapConnections(const EdgeVector& incoming);
808 
809 
816  void removeFromConnections(NBEdge* toEdge, int fromLane = -1, int toLane = -1, bool tryLater = false);
817 
818  void invalidateConnections(bool reallowSetting = false);
819 
820  void replaceInConnections(NBEdge* which, NBEdge* by, unsigned int laneOff);
821  void replaceInConnections(NBEdge* which, const std::vector<NBEdge::Connection>& origConns);
822  void copyConnectionsFrom(NBEdge* src);
823 
825  void shiftToLanesToEdge(NBEdge* to, unsigned int laneOff);
827 
828 
829 
835  bool isTurningDirectionAt(const NBEdge* const edge) const;
836 
837 
842  void setTurningDestination(NBEdge* e, bool onlyPossible = false);
843 
844 
845 
848 
853  }
854 
855 
859  bool isMacroscopicConnector() const {
861  }
862 
863 
866  void setIsInnerEdge() {
867  myAmInnerEdge = true;
868  }
869 
870 
874  bool isInnerEdge() const {
875  return myAmInnerEdge;
876  }
878 
879 
880 
881 
887  void setJunctionPriority(const NBNode* const node, int prio);
888 
889 
899  int getJunctionPriority(const NBNode* const node) const;
900 
901  void setLoadedLength(SUMOReal val);
903 
904 
905  const std::string& getTypeID() const {
906  return myType;
907  }
908 
910  bool needsLaneSpecificOutput() const;
911 
913  bool hasPermissions() const;
914 
916  bool hasLaneSpecificPermissions() const;
917 
919  bool hasLaneSpecificSpeed() const;
920 
922  bool hasLaneSpecificEndOffset() const;
923 
925  bool hasLaneSpecificWidth() const;
926 
928  bool computeEdge2Edges(bool noLeftMovers);
929 
931  bool computeLanes2Edges();
932 
935  bool recheckLanes();
936 
945  void appendTurnaround(bool noTLSControlled);
946 
947 
948 
952  NBNode* tryGetNodeAtPosition(SUMOReal pos, SUMOReal tolerance = 5.0) const;
953 
954 
956 
957  bool lanesWereAssigned() const;
958 
959  bool mayBeTLSControlled(int fromLane, NBEdge* toEdge, int toLane) const;
960 
962  bool setControllingTLInformation(const NBConnection& c, const std::string& tlID);
963 
966 
968  PositionVector& into);
969 
971  PositionVector getCWBoundaryLine(const NBNode& n) const;
972 
974  PositionVector getCCWBoundaryLine(const NBNode& n) const;
975 
976  bool expandableBy(NBEdge* possContinuation) const;
977  void append(NBEdge* continuation);
978 
979  bool hasSignalisedConnectionTo(const NBEdge* const e) const;
980 
981 
982  void moveOutgoingConnectionsFrom(NBEdge* e, unsigned int laneOff);
983 
984  /* @brief return the turn destination if it exists
985  * @param[in] possibleDestination Wether myPossibleTurnDestination should be returned if no turnaround connection
986  * exists
987  */
988  NBEdge* getTurnDestination(bool possibleDestination = false) const;
989 
990  std::string getLaneID(unsigned int lane) const;
991 
992  std::string getLaneIDInsecure(unsigned int lane) const;
993 
994  SUMOReal getLaneSpeed(unsigned int lane) const;
995 
996  bool isNearEnough2BeJoined2(NBEdge* e, SUMOReal threshold) const;
997 
998 
1006  SUMOReal getAngleAtNode(const NBNode* const node) const;
1007 
1008 
1017  SUMOReal getAngleAtNodeToCenter(const NBNode* const node) const;
1018 
1019 
1020  void incLaneNo(unsigned int by);
1021 
1022  void decLaneNo(unsigned int by);
1023 
1024  void deleteLane(unsigned int index, bool recompute = true);
1025 
1026  void addLane(unsigned int index, bool recompute = true);
1027 
1028  void markAsInLane2LaneState();
1029 
1031  void addSidewalk(SUMOReal width);
1032 
1034  void addBikeLane(SUMOReal width);
1035 
1037  void setPermissions(SVCPermissions permissions, int lane = -1);
1038 
1039  void setPreferredVehicleClass(SVCPermissions permissions, int lane = -1);
1040 
1042  void allowVehicleClass(int lane, SUMOVehicleClass vclass);
1044  void disallowVehicleClass(int lane, SUMOVehicleClass vclass);
1045 
1046  void preferVehicleClass(int lane, SUMOVehicleClass vclass);
1047 
1048 
1050  void setLaneWidth(int lane, SUMOReal width);
1051 
1053  void setEndOffset(int lane, SUMOReal offset);
1054 
1056  void setSpeed(int lane, SUMOReal speed);
1057 
1059  SVCPermissions getPermissions(int lane = -1) const;
1060 
1061  void disableConnection4TLS(int fromLane, NBEdge* toEdge, int toLane);
1062 
1063 
1064  // returns a reference to the internal structure for the convenience of NETEDIT
1065  Lane& getLaneStruct(unsigned int lane) {
1066  return myLanes[lane];
1067  }
1068 
1069  // returns a reference to the internal structure for the convenience of NETEDIT
1070  const Lane& getLaneStruct(unsigned int lane) const {
1071  return myLanes[lane];
1072  }
1073 
1074  /* declares connections as fully loaded. This is needed to avoid recomputing connections
1075  * if an edge has no connections intentionally. */
1078  }
1079 
1080  /* @brief fill connection attributes shape, viaShape, ...
1081  *
1082  * @param[in,out] edgeIndex The number of connections already handled
1083  * @param[in,out] splitIndex The number of via edges already built
1084  * @param[in] tryIgnoreNodePositions Does not add node geometries if geom.size()>=2
1085  */
1086  void buildInnerEdges(const NBNode& n, unsigned int noInternalNoSplits, unsigned int& linkIndex, unsigned int& splitIndex);
1087 
1088  inline const std::vector<NBSign>& getSigns() const {
1089  return mySigns;
1090  }
1091 
1092  inline void addSign(NBSign sign) {
1093  mySigns.push_back(sign);
1094  }
1095 
1098 
1099 private:
1106  private:
1108  std::map<NBEdge*, std::vector<unsigned int> > myConnections;
1109 
1112 
1113  public:
1116  : myTransitions(transitions) { }
1117 
1120 
1122  void execute(const unsigned int lane, const unsigned int virtEdge);
1123 
1124  const std::map<NBEdge*, std::vector<unsigned int> >& getBuiltConnections() const {
1125  return myConnections;
1126  }
1127 
1128  private:
1131 
1134 
1135  };
1136 
1137 
1146  public:
1148  enum Direction { DIR_RIGHTMOST, DIR_LEFTMOST, DIR_FORWARD };
1149 
1152  std::vector<Direction> myDirs;
1153 
1154  public:
1156  MainDirections(const EdgeVector& outgoing,
1157  NBEdge* parent, NBNode* to);
1158 
1160  ~MainDirections();
1161 
1164  bool empty() const;
1165 
1168  bool includes(Direction d) const;
1169 
1170  private:
1173 
1176 
1177  };
1178 
1180  PositionVector computeLaneShape(unsigned int lane, SUMOReal offset) const;
1181 
1182  void computeLaneShapes();
1183 
1184 
1185 
1186 private:
1203  void init(unsigned int noLanes, bool tryIgnoreNodePositions, const std::string& origID);
1204 
1205 
1207  void divideOnEdges(const EdgeVector* outgoing);
1208  void divideSelectedLanesOnEdges(const EdgeVector* outgoing, const std::vector<int>& availableLanes,
1209  const std::vector<unsigned int>* priorities);
1210 
1213  std::vector<unsigned int>* prepareEdgePriorities(
1214  const EdgeVector* outgoing);
1215 
1217  static unsigned int computePrioritySum(const std::vector<unsigned int>& priorities);
1218 
1219 
1222 
1225  void moveConnectionToLeft(unsigned int lane);
1226 
1229  void moveConnectionToRight(unsigned int lane);
1230 
1232  bool canMoveConnection(const Connection& con, unsigned int newFromLane) const;
1234 
1235 
1240  PositionVector startShapeAt(const PositionVector& laneShape, const NBNode* startNode) const;
1241 
1243  void computeAngle();
1244 
1245 
1246  /* @brief compute the first intersection point between the given lane
1247  * geometries considering their rspective widths */
1248  static SUMOReal firstIntersection(const PositionVector& v1, const PositionVector& v2, SUMOReal width2);
1249 
1250 
1252  void addRestrictedLane(SUMOReal width, SUMOVehicleClass vclass);
1253 
1254 private:
1259 
1261  std::string myType;
1262 
1265 
1268 
1273 
1276 
1279 
1283  std::vector<Connection> myConnections;
1284 
1287  std::vector<Connection> myConnectionsToDelete;
1288 
1293 
1296 
1299 
1302 
1305 
1308 
1311 
1315  std::vector<Lane> myLanes;
1316 
1319 
1322 
1325 
1329  int toLane;
1330  };
1331 
1332  std::vector<TLSDisabledConnection> myTLSDisabledConnections;
1333 
1334 
1336  std::string myStreetName;
1337 
1338 
1340  std::vector<NBSign> mySigns;
1341 
1344 
1345 public:
1350  public:
1352  tls_disable_finder(const TLSDisabledConnection& tpl) : myDefinition(tpl) { }
1353 
1354  bool operator()(const TLSDisabledConnection& e) const {
1355  if (e.to != myDefinition.to) {
1356  return false;
1357  }
1358  if (e.fromLane != myDefinition.fromLane) {
1359  return false;
1360  }
1361  if (e.toLane != myDefinition.toLane) {
1362  return false;
1363  }
1364  return true;
1365  }
1366 
1367  private:
1369 
1370  private:
1373 
1374  };
1375 
1376 
1377 
1382  public:
1384  connections_toedge_finder(NBEdge* const edge2find, bool hasFromLane = false) :
1385  myHasFromLane(hasFromLane),
1386  myEdge2Find(edge2find) { }
1387 
1388  bool operator()(const Connection& c) const {
1389  return c.toEdge == myEdge2Find && (!myHasFromLane || c.fromLane != -1);
1390  }
1391 
1392  private:
1393  const bool myHasFromLane;
1395 
1396  private:
1399 
1400  };
1401 
1406  public:
1408  connections_toedgelane_finder(NBEdge* const edge2find, int lane2find, int fromLane2find) :
1409  myEdge2Find(edge2find),
1410  myLane2Find(lane2find),
1411  myFromLane2Find(fromLane2find) { }
1412 
1413  bool operator()(const Connection& c) const {
1414  return c.toEdge == myEdge2Find && c.toLane == myLane2Find && (myFromLane2Find < 0 || c.fromLane == myFromLane2Find);
1415  }
1416 
1417  private:
1421 
1422  private:
1425 
1426  };
1427 
1428 
1433  public:
1435  connections_finder(int fromLane, NBEdge* const edge2find, int lane2find) : myFromLane(fromLane), myEdge2Find(edge2find), myLane2Find(lane2find) { }
1436 
1437  bool operator()(const Connection& c) const {
1438  return c.fromLane == myFromLane && c.toEdge == myEdge2Find && c.toLane == myLane2Find;
1439  }
1440 
1441  private:
1445 
1446  private:
1449 
1450  };
1451 
1456  public:
1458  connections_fromlane_finder(int lane2find) : myLane2Find(lane2find) { }
1459 
1460  bool operator()(const Connection& c) const {
1461  return c.fromLane == myLane2Find;
1462  }
1463 
1464  private:
1466 
1467  private:
1470 
1471  };
1472 
1476  static bool connections_sorter(const Connection& c1, const Connection& c2);
1477 
1483  public:
1485  explicit connections_relative_edgelane_sorter(NBEdge* e) : myEdge(e) {}
1486 
1487  public:
1489  int operator()(const Connection& c1, const Connection& c2) const;
1490 
1491  private:
1494  };
1495 
1496 private:
1498  NBEdge(const NBEdge& s);
1499 
1501  NBEdge& operator=(const NBEdge& s);
1502 
1503 
1504 };
1505 
1506 
1507 #endif
1508 
1509 /****************************************************************************/
1510 
ToEdgeConnectionsAdder(const EdgeVector &transitions)
constructor
Definition: NBEdge.h:1115
NBEdge::Lane getFirstNonPedestrianLane(int direction) const
Definition: NBEdge.cpp:2437
std::string id
Definition: NBEdge.h:181
void invalidateConnections(bool reallowSetting=false)
Definition: NBEdge.cpp:943
const PositionVector & getLaneShape(unsigned int i) const
Returns the shape of the nth lane.
Definition: NBEdge.cpp:532
std::vector< Lane > myLanes
Lane information.
Definition: NBEdge.h:1315
PositionVector cutAtIntersection(const PositionVector &old) const
cut shape at the intersection shapes
Definition: NBEdge.cpp:441
bool hasConnectionTo(NBEdge *destEdge, unsigned int destLane, int fromLane=-1) const
Retrieves info about a connection to a certain lane of a certain edge.
Definition: NBEdge.cpp:806
const std::string & getTypeID() const
Definition: NBEdge.h:905
bool setControllingTLInformation(const NBConnection &c, const std::string &tlID)
Returns if the link could be set as to be controlled.
Definition: NBEdge.cpp:1900
SUMOReal endOffset
This lane&#39;s offset to the intersection begin.
Definition: NBEdge.h:136
void divideOnEdges(const EdgeVector *outgoing)
Definition: NBEdge.cpp:1604
A structure which describes a connection between edges or lanes.
Definition: NBEdge.h:148
int toLane
The lane the connections yields in.
Definition: NBEdge.h:166
static const SUMOReal UNSPECIFIED_WIDTH
unspecified lane width
Definition: NBEdge.h:201
SUMOReal myTotalAngle
Definition: NBEdge.h:1272
A class representing a single street sign.
Definition: NBSign.h:51
connections_finder(int fromLane, NBEdge *const edge2find, int lane2find)
constructor
Definition: NBEdge.h:1435
std::string foeIncomingLanes
Definition: NBEdge.h:191
PositionVector shape
The lane&#39;s shape.
Definition: NBEdge.h:128
SUMOReal myEndOffset
This edges&#39;s offset to the intersection begin (will be applied to all lanes)
Definition: NBEdge.h:1307
std::vector< TLSDisabledConnection > myTLSDisabledConnections
Definition: NBEdge.h:1332
connections_relative_edgelane_sorter(NBEdge *e)
constructor
Definition: NBEdge.h:1485
~NBEdge()
Destructor.
Definition: NBEdge.cpp:378
static const SUMOReal UNSPECIFIED_SIGNAL_OFFSET
unspecified signal offset
Definition: NBEdge.h:212
LaneSpreadFunction myLaneSpreadFunction
The information about how to spread the lanes.
Definition: NBEdge.h:1304
SUMOReal viaVmax
Definition: NBEdge.h:187
void sortOutgoingConnectionsByAngle()
sorts the outgoing connections by their angle relative to their junction
Definition: NBEdge.cpp:888
std::string viaID
Definition: NBEdge.h:186
void addSign(NBSign sign)
Definition: NBEdge.h:1092
NBEdge * toEdge
The edge the connections yields in.
Definition: NBEdge.h:164
bool hasDefaultGeometry() const
Returns whether the geometry consists only of the node positions.
Definition: NBEdge.cpp:414
void mirrorX()
mirror coordinates along the x-axis
Definition: NBEdge.cpp:393
SUMOVehicleClass
Definition of vehicle classes to differ between different lane usage and authority types...
NBNode * myTo
Definition: NBEdge.h:1264
The relationships between edges are computed/loaded.
Definition: NBEdge.h:94
void appendTurnaround(bool noTLSControlled)
Add a connection to the previously computed turnaround, if wished.
Definition: NBEdge.cpp:1819
bool operator()(const TLSDisabledConnection &e) const
Definition: NBEdge.h:1354
std::vector< NBSign > mySigns
the street signs along this edge
Definition: NBEdge.h:1340
bool hasLaneSpecificEndOffset() const
whether lanes differ in offset
Definition: NBEdge.cpp:1459
void setLaneWidth(int lane, SUMOReal width)
set lane specific width (negative lane implies set for all lanes)
Definition: NBEdge.cpp:2263
void setSpeed(int lane, SUMOReal speed)
set lane specific speed (negative lane implies set for all lanes)
Definition: NBEdge.cpp:2318
const std::vector< NBEdge::Lane > & getLanes() const
Returns the lane definitions.
Definition: NBEdge.h:500
void moveOutgoingConnectionsFrom(NBEdge *e, unsigned int laneOff)
Definition: NBEdge.cpp:1861
~ToEdgeConnectionsAdder()
destructor
Definition: NBEdge.h:1119
void addSidewalk(SUMOReal width)
add a pedestrian sidewalk of the given width and shift existing connctions
Definition: NBEdge.cpp:2447
SUMOReal getEndAngle() const
Returns the angle at the end of the edge The angle is computed in computeAngle()
Definition: NBEdge.h:387
int SVCPermissions
The representation of a single edge during network building.
Definition: NBEdge.h:70
void reinitNodes(NBNode *from, NBNode *to)
Resets nodes but keeps all other values the same (used when joining)
Definition: NBEdge.cpp:314
void clearControllingTLInformation()
clears tlID for all connections
Definition: NBEdge.cpp:1965
Lane2LaneInfoType
Modes of setting connections between lanes.
Definition: NBEdge.h:109
void declareConnectionsAsLoaded()
Definition: NBEdge.h:1076
bool mayBeTLSControlled(int fromLane, NBEdge *toEdge, int toLane) const
Definition: NBEdge.cpp:1889
bool hasDefaultGeometryEndpoints() const
Returns whether the geometry is terminated by the node positions This default may be violated by init...
Definition: NBEdge.cpp:420
Lane(NBEdge *e, const std::string &_origID)
Definition: NBEdge.h:123
bool operator()(const Connection &c) const
Definition: NBEdge.h:1413
void incLaneNo(unsigned int by)
Definition: NBEdge.cpp:2179
PositionVector getCCWBoundaryLine(const NBNode &n) const
get the outer boundary of this edge when going counter-clock-wise around the given node ...
Definition: NBEdge.cpp:2001
bool addLane2LaneConnection(unsigned int fromLane, NBEdge *dest, unsigned int toLane, Lane2LaneInfoType type, bool mayUseSameDestination=false, bool mayDefinitelyPass=false, bool keepClear=true, SUMOReal contPos=UNSPECIFIED_CONTPOS)
Adds a connection between the specified this edge&#39;s lane and an approached one.
Definition: NBEdge.cpp:675
bool addLane2LaneConnections(unsigned int fromLane, NBEdge *dest, unsigned int toLane, unsigned int no, Lane2LaneInfoType type, bool invalidatePrevious=false, bool mayDefinitelyPass=false)
Builds no connections starting at the given lanes.
Definition: NBEdge.cpp:699
void setStreetName(const std::string &name)
sets the street name of this edge
Definition: NBEdge.h:469
static const SUMOReal UNSPECIFIED_SPEED
unspecified lane speed
Definition: NBEdge.h:205
std::vector< Direction > myDirs
Definition: NBEdge.h:1152
void buildInnerEdges(const NBNode &n, unsigned int noInternalNoSplits, unsigned int &linkIndex, unsigned int &splitIndex)
Definition: NBEdge.cpp:1068
void markAsInLane2LaneState()
Definition: NBEdge.cpp:2217
SUMOReal getTotalWidth() const
Returns the combined width of all lanes of this edge.
Definition: NBEdge.cpp:2287
Lanes to lanes - relationships are computed; should be recheked.
Definition: NBEdge.h:98
SUMOReal getLaneWidth() const
Returns the default width of lanes of this edge.
Definition: NBEdge.h:447
std::string getLaneIDInsecure(unsigned int lane) const
Definition: NBEdge.cpp:2141
void setPermissions(SVCPermissions permissions, int lane=-1)
set allowed/disallowed classes for the given lane or for all lanes if -1 is given ...
Definition: NBEdge.cpp:2334
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
Definition: GNELane.h:56
int myFromJunctionPriority
The priority normalised for the node the edge is outgoing of.
Definition: NBEdge.h:1295
void computeLaneShapes()
Definition: NBEdge.cpp:1323
bool mayDefinitelyPass
Information about being definitely free to drive (on-ramps)
Definition: NBEdge.h:172
tls_disable_finder(const TLSDisabledConnection &tpl)
constructor
Definition: NBEdge.h:1352
bool isInnerEdge() const
Returns whether this edge was marked as being within an intersection.
Definition: NBEdge.h:874
PositionVector myGeom
The geometry for the edge.
Definition: NBEdge.h:1301
void remapConnections(const EdgeVector &incoming)
Remaps the connection in a way that allows the removal of it.
Definition: NBEdge.cpp:900
static const SUMOReal UNSPECIFIED_CONTPOS
unspecified internal junction position
Definition: NBEdge.h:207
const SVCPermissions SVCAll
static const SUMOReal UNSPECIFIED_OFFSET
unspecified lane offset
Definition: NBEdge.h:203
std::vector< Connection > getConnectionsFromLane(unsigned int lane) const
Returns connections from a given lane.
Definition: NBEdge.cpp:779
void setGeometry(const PositionVector &g, bool inner=false)
(Re)sets the edge&#39;s geometry
Definition: NBEdge.cpp:427
static SUMOReal firstIntersection(const PositionVector &v1, const PositionVector &v2, SUMOReal width2)
Definition: NBEdge.cpp:1235
void setSignalOffset(SUMOReal offset)
sets the offset of a traffic signal from the end of this edge
Definition: NBEdge.h:493
const EdgeVector & myTransitions
the transition from the virtual lane to the edge it belongs to
Definition: NBEdge.h:1111
The connection was computed and validated.
Definition: NBEdge.h:115
PositionVector startShapeAt(const PositionVector &laneShape, const NBNode *startNode) const
Definition: NBEdge.cpp:487
SUMOReal vmax
Definition: NBEdge.h:183
const std::vector< NBSign > & getSigns() const
Definition: NBEdge.h:1088
The edge has been loaded, nothing is computed yet.
Definition: NBEdge.h:92
int myToJunctionPriority
The priority normalised for the node the edge is incoming in.
Definition: NBEdge.h:1298
EdgeVector getConnectedEdges() const
Returns the list of outgoing edges unsorted.
Definition: NBEdge.cpp:862
PositionVector shape
Definition: NBEdge.h:182
SUMOReal speed
The speed allowed on this lane.
Definition: NBEdge.h:130
bool keepClear
whether the junction must be kept clear when using this connection
Definition: NBEdge.h:174
void moveConnectionToRight(unsigned int lane)
Definition: NBEdge.cpp:1055
bool operator()(const Connection &c) const
Definition: NBEdge.h:1388
bool hasPermissions() const
whether at least one lane has restrictions
Definition: NBEdge.cpp:1412
SUMOReal getLoadedLength() const
Returns the length was set explicitly or the computed length if it wasn&#39;t set.
Definition: NBEdge.h:413
An (internal) definition of a single lane of an edge.
Definition: NBEdge.h:122
connections_toedge_finder(NBEdge *const edge2find, bool hasFromLane=false)
constructor
Definition: NBEdge.h:1384
SUMOReal mySpeed
The maximal speed.
Definition: NBEdge.h:1278
SVCPermissions permissions
List of vehicle types that are allowed on this lane.
Definition: NBEdge.h:132
bool addEdge2EdgeConnection(NBEdge *dest)
Adds a connection to another edge.
Definition: NBEdge.cpp:651
bool myAmMacroscopicConnector
Information whether this edge is a (macroscopic) connector.
Definition: NBEdge.h:1324
bool isConnectedTo(NBEdge *e)
Returns the information whethe a connection to the given edge has been added (or computed) ...
Definition: NBEdge.cpp:812
const PositionVector getInnerGeometry() const
Returns the geometry of the edge without the endpoints.
Definition: NBEdge.cpp:408
void reshiftPosition(SUMOReal xoff, SUMOReal yoff)
Applies an offset to the edge.
Definition: NBEdge.cpp:383
void divideSelectedLanesOnEdges(const EdgeVector *outgoing, const std::vector< int > &availableLanes, const std::vector< unsigned int > *priorities)
Definition: NBEdge.cpp:1668
static unsigned int computePrioritySum(const std::vector< unsigned int > &priorities)
Definition: NBEdge.cpp:1809
bool computeLanes2Edges()
computes the edge, step2: computation of which lanes approach the edges)
Definition: NBEdge.cpp:1498
NBEdge * myTurnDestination
The turn destination edge (if a connection exists)
Definition: NBEdge.h:1290
const std::map< NBEdge *, std::vector< unsigned int > > & getBuiltConnections() const
Definition: NBEdge.h:1124
const Lane & getLaneStruct(unsigned int lane) const
Definition: NBEdge.h:1070
friend class NBEdgeSuccessorBuilder
Definition: NBEdge.h:72
Lanes to lanes - relationships are loaded; no recheck is necessary/wished.
Definition: NBEdge.h:102
Connection getConnection(int fromLane, const NBEdge *to, int toLane) const
Returns the specified connection This method goes through "myConnections" and returns the specified o...
Definition: NBEdge.cpp:791
bool hasLaneSpecificSpeed() const
whether lanes differ in speed
Definition: NBEdge.cpp:1448
int getPriority() const
Returns the priority of the edge.
Definition: NBEdge.h:353
void checkGeometry(const SUMOReal maxAngle, const SUMOReal minRadius, bool fix)
Check the angles of successive geometry segments.
Definition: NBEdge.cpp:605
std::string getLaneID(unsigned int lane) const
Definition: NBEdge.cpp:2135
void moveConnectionToLeft(unsigned int lane)
Definition: NBEdge.cpp:1040
void addCrossingPointsAsIncomingWithGivenOutgoing(NBEdge *o, PositionVector &into)
std::string tlID
The id of the traffic light that controls this connection.
Definition: NBEdge.h:168
SVCPermissions preferred
List of vehicle types that are preferred on this lane.
Definition: NBEdge.h:134
int fromLane
The lane the connections starts at.
Definition: NBEdge.h:162
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:46
TLSDisabledConnection myDefinition
Definition: NBEdge.h:1368
NBEdge & operator=(const NBEdge &s)
invalidated assignment operator
A list of positions.
SUMOReal myEndAngle
Definition: NBEdge.h:1271
bool hasLaneSpecificPermissions() const
whether lanes differ in allowed vehicle classes
Definition: NBEdge.cpp:1423
bool lanesWereAssigned() const
Definition: NBEdge.cpp:1877
static bool connections_sorter(const Connection &c1, const Connection &c2)
Definition: NBEdge.cpp:2392
std::vector< unsigned int > foeInternalLinks
Definition: NBEdge.h:190
std::vector< Connection > & getConnections()
Returns the connections.
Definition: NBEdge.h:769
unsigned int getNumLanes() const
Returns the number of lanes.
Definition: NBEdge.h:345
EdgeBuildingStep
Current state of the edge within the building process.
Definition: NBEdge.h:88
NBEdge * myPossibleTurnDestination
The edge that would be the turn destination if there was one.
Definition: NBEdge.h:1292
void setAsMacroscopicConnector()
Marks this edge as a macroscopic connector.
Definition: NBEdge.h:851
PositionVector getCWBoundaryLine(const NBNode &n) const
get the outer boundary of this edge when going clock-wise around the given node
Definition: NBEdge.cpp:1983
bool hasLoadedLength() const
Returns whether a length was set explicitly.
Definition: NBEdge.h:421
EdgeBuildingStep getStep() const
The building step of this edge.
Definition: NBEdge.h:439
bool canMoveConnection(const Connection &con, unsigned int newFromLane) const
whether the connection can originate on newFromLane
Definition: NBEdge.cpp:1031
bool isTurningDirectionAt(const NBEdge *const edge) const
Returns whether the given edge is the opposite direction to this edge.
Definition: NBEdge.cpp:1834
SUMOReal contPos
custom position for internal junction on this connection
Definition: NBEdge.h:176
SUMOReal myLaneWidth
This width of this edge&#39;s lanes.
Definition: NBEdge.h:1310
int myPriority
The priority of the edge.
Definition: NBEdge.h:1275
int getFirstNonPedestrianLaneIndex(int direction, bool exclusive=false) const
return the first lane with permissions other than SVC_PEDESTRIAN and 0
Definition: NBEdge.cpp:2404
Storage for edges, including some functionality operating on multiple edges.
Definition: NBEdgeCont.h:66
std::string origID
Definition: NBEdge.h:179
bool needsLaneSpecificOutput() const
whether at least one lane has values differing from the edges values
Definition: NBEdge.cpp:1470
Connection(int fromLane_, NBEdge *toEdge_, int toLane_)
Constructor.
Definition: NBEdge.h:154
EdgeBuildingStep myStep
The building step.
Definition: NBEdge.h:1258
SUMOReal getAngleAtNodeToCenter(const NBNode *const node) const
Returns the angle of from the node shape center to where the edge meets the node shape.
Definition: NBEdge.cpp:1293
std::vector< Connection > myConnections
List of connections to following edges.
Definition: NBEdge.h:1283
void setLoadedLength(SUMOReal val)
Definition: NBEdge.cpp:2377
connections_fromlane_finder(int lane2find)
constructor
Definition: NBEdge.h:1458
The connection was given by the user.
Definition: NBEdge.h:113
An upper class for objects with additional parameters.
Definition: Parameterised.h:47
SUMOReal getSignalOffset() const
Returns the offset of a traffic signal from the end of this edge.
Definition: NBEdge.h:487
void removeFromConnections(NBEdge *toEdge, int fromLane=-1, int toLane=-1, bool tryLater=false)
Removes the specified connection(s)
Definition: NBEdge.cpp:916
SUMOReal getEndOffset() const
Returns the offset to the destination node.
Definition: NBEdge.h:476
bool myAmInnerEdge
Information whether this is a junction-inner edge.
Definition: NBEdge.h:1321
Base class for objects which have an id.
Definition: Named.h:45
bool recheckLanes()
Definition: NBEdge.cpp:1522
int getJunctionPriority(const NBNode *const node) const
Returns the junction priority (normalised for the node currently build)
Definition: NBEdge.cpp:1261
SUMOReal myLoadedLength
An optional length to use (-1 if not valid)
Definition: NBEdge.h:1318
std::string origID
An original ID, if given (.
Definition: NBEdge.h:140
A road/street connecting two junctions (netedit-version)
Definition: GNEEdge.h:61
std::map< NBEdge *, std::vector< unsigned int > > myConnections
map of edges to this edge&#39;s lanes that reach them
Definition: NBEdge.h:1108
SVCPermissions getPermissions(int lane=-1) const
get the union of allowed classes over all lanes or for a specific lane
Definition: NBEdge.cpp:2362
SUMOReal getCrossingAngle(NBNode *node)
return the angle for computing pedestrian crossings at the given node
Definition: NBEdge.cpp:2421
void addRestrictedLane(SUMOReal width, SUMOVehicleClass vclass)
add a lane of the given width, restricted to the given class and shift existing connctions ...
Definition: NBEdge.cpp:2459
void setTurningDestination(NBEdge *e, bool onlyPossible=false)
Sets the turing destination at the given edge.
Definition: NBEdge.cpp:1308
void addBikeLane(SUMOReal width)
add a bicycle lane of the given width and shift existing connctions
Definition: NBEdge.cpp:2453
void decLaneNo(unsigned int by)
Definition: NBEdge.cpp:2205
NBNode * getToNode() const
Returns the destination node of the edge.
Definition: NBEdge.h:369
#define sign(a)
Definition: polyfonts.c:68
std::vector< int > getConnectionLanes(NBEdge *currentOutgoing) const
Returns the list of lanes that may be used to reach the given edge.
Definition: NBEdge.cpp:874
void computeEdgeShape()
Recomputeds the lane shapes to terminate at the node shape For every lane the intersection with the f...
Definition: NBEdge.cpp:471
void disableConnection4TLS(int fromLane, NBEdge *toEdge, int toLane)
Definition: NBEdge.cpp:1973
PositionVector viaShape
Definition: NBEdge.h:188
SUMOReal getMaxLaneOffset()
Definition: NBEdge.cpp:1883
static const SUMOReal UNSPECIFIED_LOADED_LENGTH
no length override given
Definition: NBEdge.h:210
void deleteLane(unsigned int index, bool recompute=true)
Definition: NBEdge.cpp:2190
std::vector< NBEdge * > EdgeVector
Definition: NBCont.h:41
std::vector< unsigned int > * prepareEdgePriorities(const EdgeVector *outgoing)
Definition: NBEdge.cpp:1763
NBEdge * myEdge
the edge to compute the relative angle of
Definition: NBEdge.h:1493
SUMOReal myLength
The length of the edge.
Definition: NBEdge.h:1267
void setPreferredVehicleClass(SVCPermissions permissions, int lane=-1)
Definition: NBEdge.cpp:2348
const PositionVector & getGeometry() const
Returns the geometry of the edge.
Definition: NBEdge.h:521
The edge has been loaded and connections shall not be added.
Definition: NBEdge.h:90
std::vector< Connection > myConnectionsToDelete
List of connections marked for delayed removal.
Definition: NBEdge.h:1287
bool isMacroscopicConnector() const
Returns whether this edge was marked as a macroscopic connector.
Definition: NBEdge.h:859
PositionVector computeLaneShape(unsigned int lane, SUMOReal offset) const
Computes the shape for the given lane.
Definition: NBEdge.cpp:1366
connections_toedgelane_finder(NBEdge *const edge2find, int lane2find, int fromLane2find)
constructor
Definition: NBEdge.h:1408
void reduceGeometry(const SUMOReal minDist)
Removes points with a distance lesser than the given.
Definition: NBEdge.cpp:599
void setJunctionPriority(const NBNode *const node, int prio)
Sets the junction priority of the edge.
Definition: NBEdge.cpp:1271
void replaceInConnections(NBEdge *which, NBEdge *by, unsigned int laneOff)
Definition: NBEdge.cpp:955
const EdgeVector * getConnectedSorted()
Returns the list of outgoing edges without the turnaround sorted in clockwise direction.
Definition: NBEdge.cpp:825
NBEdge *const myEdge2Find
Definition: NBEdge.h:1443
void setIsInnerEdge()
Marks this edge being within an intersection.
Definition: NBEdge.h:866
void sortOutgoingConnectionsByIndex()
sorts the outgoing connections by their from-lane-index and their to-lane-index
Definition: NBEdge.cpp:894
std::string myType
The type of the edge.
Definition: NBEdge.h:1261
SUMOReal mySignalOffset
the offset of a traffic light signal from the end of this edge (-1 for None)
Definition: NBEdge.h:1343
LaneSpreadFunction
Numbers representing special SUMO-XML-attribute values Information how the edge&#39;s lateral offset shal...
void append(NBEdge *continuation)
Definition: NBEdge.cpp:2090
unsigned int tlLinkNo
The index of this connection within the controlling traffic light.
Definition: NBEdge.h:170
SUMOReal getLaneSpeed(unsigned int lane) const
Definition: NBEdge.cpp:1317
void shiftToLanesToEdge(NBEdge *to, unsigned int laneOff)
modifify the toLane for all connections to the given edge
Definition: NBEdge.cpp:2493
NBNode * tryGetNodeAtPosition(SUMOReal pos, SUMOReal tolerance=5.0) const
Returns the node at the given edges length (using an epsilon) When no node is existing at the given p...
Definition: NBEdge.cpp:1847
The connection was computed.
Definition: NBEdge.h:111
LaneSpreadFunction getLaneSpreadFunction() const
Returns how this edge&#39;s lanes&#39; lateral offset is computed.
Definition: NBEdge.h:601
SUMOReal myStartAngle
The angles of the edge.
Definition: NBEdge.h:1270
SUMOReal getTotalAngle() const
get the angle as measure from the start to the end of this edge
Definition: NBEdge.h:397
Represents a single node (junction) during network building.
Definition: NBNode.h:74
void dismissVehicleClassInformation()
Definition: NBEdge.cpp:2383
Lane & getLaneStruct(unsigned int lane)
Definition: NBEdge.h:1065
bool hasSignalisedConnectionTo(const NBEdge *const e) const
Definition: NBEdge.cpp:2115
Lanes to lanes - relationships are computed; no recheck is necessary/wished.
Definition: NBEdge.h:100
bool hasLaneSpecificWidth() const
whether lanes differ in width
Definition: NBEdge.cpp:1437
Static storage of an output device and its base (abstract) implementation.
Definition: OutputDevice.h:71
void setEndOffset(int lane, SUMOReal offset)
set lane specific end-offset (negative lane implies set for all lanes)
Definition: NBEdge.cpp:2302
Direction
enum of possible directions
Definition: NBEdge.h:1148
#define SUMOReal
Definition: config.h:214
bool isNearEnough2BeJoined2(NBEdge *e, SUMOReal threshold) const
Definition: NBEdge.cpp:2147
void preferVehicleClass(int lane, SUMOVehicleClass vclass)
Definition: NBEdge.cpp:2250
void allowVehicleClass(int lane, SUMOVehicleClass vclass)
set allowed class for the given lane or for all lanes if -1 is given
Definition: NBEdge.cpp:2224
void addGeometryPoint(int index, const Position &p)
Adds a further geometry point.
Definition: NBEdge.cpp:544
void computeAngle()
computes the angle of this edge and stores it in myAngle
Definition: NBEdge.cpp:1378
SUMOReal getSpeed() const
Returns the speed allowed on this edge.
Definition: NBEdge.h:429
Container for nodes during the netbuilding process.
Definition: NBNodeCont.h:64
SUMOReal getStartAngle() const
Returns the angle at the start of the edge The angle is computed in computeAngle() ...
Definition: NBEdge.h:378
bool computeEdge2Edges(bool noLeftMovers)
computes the edge (step1: computation of approached edges)
Definition: NBEdge.cpp:1477
unsigned int internalLaneIndex
The lane index of this internal lane within the internal edge.
Definition: NBEdge.h:194
void setLaneSpreadFunction(LaneSpreadFunction spread)
(Re)sets how the lanes lateral offset shall be computed
Definition: NBEdge.cpp:538
bool operator()(const Connection &c) const
Definition: NBEdge.h:1437
NBEdge(const std::string &id, NBNode *from, NBNode *to, std::string type, SUMOReal speed, unsigned int nolanes, int priority, SUMOReal width, SUMOReal offset, const std::string &streetName="", LaneSpreadFunction spread=LANESPREAD_RIGHT)
Constructor.
Definition: NBEdge.cpp:185
Lanes to edges - relationships are computed/loaded.
Definition: NBEdge.h:96
std::string myStreetName
The street name (or whatever arbitrary string you wish to attach)
Definition: NBEdge.h:1336
const std::string & getStreetName() const
Returns the street name of this edge.
Definition: NBEdge.h:463
void setConnection(unsigned int lane, NBEdge *destEdge, unsigned int destLane, Lane2LaneInfoType type, bool mayUseSameDestination=false, bool mayDefinitelyPass=false, bool keepClear=true, SUMOReal contPos=UNSPECIFIED_CONTPOS)
Adds a connection to a certain lane of a certain edge.
Definition: NBEdge.cpp:716
void addLane(unsigned int index, bool recompute=true)
Definition: NBEdge.cpp:2155
const std::vector< Connection > & getConnections() const
Returns the connections.
Definition: NBEdge.h:761
NBNode * myFrom
The source and the destination node.
Definition: NBEdge.h:1264
bool expandableBy(NBEdge *possContinuation) const
Definition: NBEdge.cpp:2019
NBEdge * getTurnDestination(bool possibleDestination=false) const
Definition: NBEdge.cpp:2126
void init(unsigned int noLanes, bool tryIgnoreNodePositions, const std::string &origID)
Initialization routines common to all constructors.
Definition: NBEdge.cpp:334
void shiftPositionAtNode(NBNode *node, NBEdge *opposite)
shift geometry at the given node to avoid overlap
Definition: NBEdge.cpp:2504
bool operator()(const Connection &c) const
Definition: NBEdge.h:1460
void disallowVehicleClass(int lane, SUMOVehicleClass vclass)
set disallowed class for the given lane or for all lanes if -1 is given
Definition: NBEdge.cpp:2237
SUMOReal width
This lane&#39;s width.
Definition: NBEdge.h:138
void copyConnectionsFrom(NBEdge *src)
Definition: NBEdge.cpp:1024
void reinit(NBNode *from, NBNode *to, const std::string &type, SUMOReal speed, unsigned int nolanes, int priority, PositionVector geom, SUMOReal width, SUMOReal offset, const std::string &streetName, LaneSpreadFunction spread=LANESPREAD_RIGHT, bool tryIgnoreNodePositions=false)
Resets initial values.
Definition: NBEdge.cpp:266
static const SUMOReal ANGLE_LOOKAHEAD
the distance at which to take the default angle
Definition: NBEdge.h:214
SUMOReal getLength() const
Returns the computed length of the edge.
Definition: NBEdge.h:404
SUMOReal getAngleAtNode(const NBNode *const node) const
Returns the angle of the edge&#39;s geometry at the given node.
Definition: NBEdge.cpp:1281
NBNode * getFromNode() const
Returns the origin node of the edge.
Definition: NBEdge.h:361
bool splitGeometry(NBEdgeCont &ec, NBNodeCont &nc)
Splits this edge at geometry points.
Definition: NBEdge.cpp:554