166 Connection(
int fromLane_,
NBEdge* toEdge_,
int toLane_,
bool mayDefinitelyPass_,
bool keepClear_,
SUMOReal contPos_,
SUMOReal visibility_,
bool haveVia_ =
false);
288 NBEdge(
const std::string&
id,
290 SUMOReal speed,
int nolanes,
int priority,
292 const std::string& streetName =
"",
317 NBEdge(
const std::string&
id,
319 SUMOReal speed,
int nolanes,
int priority,
322 const std::string& streetName =
"",
323 const std::string& origID =
"",
325 bool tryIgnoreNodePositions =
false);
338 NBEdge(
const std::string&
id,
365 SUMOReal speed,
int nolanes,
int priority,
367 const std::string& streetName,
369 bool tryIgnoreNodePositions =
false);
552 const std::vector<NBEdge::Lane>&
getLanes()
const {
710 bool mayUseSameDestination =
false,
711 bool mayDefinitelyPass =
false,
712 bool keepClear =
true,
713 SUMOReal contPos = UNSPECIFIED_CONTPOS,
714 SUMOReal visibility = UNSPECIFIED_VISIBILITY_DISTANCE);
734 NBEdge* dest,
int toLane,
int no,
736 bool mayDefinitelyPass =
false);
751 bool mayUseSameDestination =
false,
752 bool mayDefinitelyPass =
false,
753 bool keepClear =
true,
754 SUMOReal contPos = UNSPECIFIED_CONTPOS,
755 SUMOReal visibility = UNSPECIFIED_VISIBILITY_DISTANCE);
1060 void deleteLane(
int index,
bool recompute =
true);
1063 void addLane(
int index,
bool recompute =
true);
1118 assert(lane < (
int)
myLanes.size());
1124 assert(lane < (
int)
myLanes.size());
1172 : myTransitions(transitions) { }
1178 void execute(
const int lane,
const int virtEdge);
1253 void init(
int noLanes,
bool tryIgnoreNodePositions,
const std::string& origID);
ToEdgeConnectionsAdder(const EdgeVector &transitions)
constructor
NBEdge::Lane getFirstNonPedestrianLane(int direction) const
get first non-pedestrian lane
std::string id
id of Connection
void moveConnectionToRight(int lane)
void invalidateConnections(bool reallowSetting=false)
invalidate current connections of edge
int tlLinkNo
The index of this connection within the controlling traffic light.
void init(int noLanes, bool tryIgnoreNodePositions, const std::string &origID)
Initialization routines common to all constructors.
std::vector< Lane > myLanes
Lane information.
bool includes(Direction d) const
returns the information whether the street in the given direction has a higher priority ...
PositionVector cutAtIntersection(const PositionVector &old) const
cut shape at the intersection shapes
const std::string & getTypeID() const
get ID of type
bool setControllingTLInformation(const NBConnection &c, const std::string &tlID)
Returns if the link could be set as to be controlled.
SUMOReal endOffset
This lane's offset to the intersection begin.
void divideOnEdges(const EdgeVector *outgoing)
divides the lanes on the outgoing edges
A structure which describes a connection between edges or lanes.
int toLane
The lane the connections yields in.
static const SUMOReal UNSPECIFIED_WIDTH
unspecified lane width
A class representing a single street sign.
std::string foeIncomingLanes
FOE Incomings lanes.
connections_conflict_finder(int fromLane, NBEdge *const edge2find, bool checkRight)
constructor
PositionVector shape
The lane's shape.
NBEdge *const myEdge2Find
edge to find
SUMOReal myEndOffset
This edges's offset to the intersection begin (will be applied to all lanes)
std::vector< TLSDisabledConnection > myTLSDisabledConnections
vector with the disabled connections
connections_relative_edgelane_sorter(NBEdge *e)
constructor
static const SUMOReal UNSPECIFIED_SIGNAL_OFFSET
unspecified signal offset
LaneSpreadFunction myLaneSpreadFunction
The information about how to spread the lanes.
SUMOReal viaVmax
Maximun velocity of via.
void sortOutgoingConnectionsByAngle()
sorts the outgoing connections by their angle relative to their junction
std::string viaID
if Connection have a via, ID of it
void addSign(NBSign sign)
add Sign
NBEdge * toEdge
The edge the connections yields in.
bool hasDefaultGeometry() const
Returns whether the geometry consists only of the node positions.
void mirrorX()
mirror coordinates along the x-axis
SUMOVehicleClass
Definition of vehicle classes to differ between different lane usage and authority types...
bool operator()(const Connection &c) const
operator ()
The relationships between edges are computed/loaded.
bool empty() const
returns the information whether no following street has a higher priority
std::vector< Connection > getConnectionsFromLane(int lane) const
Returns connections from a given lane.
void setNodeBorder(const NBNode *node, const Position &p)
Set Node border.
connections_toedge_finder & operator=(const connections_toedge_finder &s)
invalidated assignment operator
bool operator()(const TLSDisabledConnection &e) const
operator ()
std::vector< NBSign > mySigns
the street signs along this edge
bool hasLaneSpecificEndOffset() const
whether lanes differ in offset
void setLaneWidth(int lane, SUMOReal width)
set lane specific width (negative lane implies set for all lanes)
Holds (- relative to the edge it is build from -!!!) the list of main directions a vehicle that drive...
void setSpeed(int lane, SUMOReal speed)
set lane specific speed (negative lane implies set for all lanes)
int myLane2Find
lane to find
const std::vector< NBEdge::Lane > & getLanes() const
Returns the lane definitions.
void moveConnectionToLeft(int lane)
~ToEdgeConnectionsAdder()
destructor
void addSidewalk(SUMOReal width)
add a pedestrian sidewalk of the given width and shift existing connctions
SUMOReal getEndAngle() const
Returns the angle at the end of the edge (relative to the node shape center) The angle is computed in...
int myFromLane2Find
from lane to find
std::map< NBEdge *, std::vector< int > > myConnections
map of edges to this edge's lanes that reach them
The representation of a single edge during network building.
void reinitNodes(NBNode *from, NBNode *to)
Resets nodes but keeps all other values the same (used when joining)
void clearControllingTLInformation()
clears tlID for all connections
Lane2LaneInfoType
Modes of setting connections between lanes.
void declareConnectionsAsLoaded()
declares connections as fully loaded. This is needed to avoid recomputing connections if an edge has ...
std::vector< int > * prepareEdgePriorities(const EdgeVector *outgoing)
recomputes the edge priorities and manipulates them for a distribution of lanes on edges which is mor...
bool mayBeTLSControlled(int fromLane, NBEdge *toEdge, int toLane) const
return true if certain connection must be controlled by TLS
bool hasDefaultGeometryEndpoints() const
Returns whether the geometry is terminated by the node positions This default may be violated by init...
Lane(NBEdge *e, const std::string &_origID)
constructor
bool operator()(const Connection &c) const
operator ()
PositionVector getCCWBoundaryLine(const NBNode &n) const
get the outer boundary of this edge when going counter-clock-wise around the given node ...
void setStreetName(const std::string &name)
sets the street name of this edge
static const SUMOReal UNSPECIFIED_SPEED
unspecified lane speed
std::vector< Direction > myDirs
list of the main direction within the following junction relative to the edge
void markAsInLane2LaneState()
mark edge as in lane to state lane
SUMOReal getTotalWidth() const
Returns the combined width of all lanes of this edge.
TLS Disabled Connections.
Lanes to lanes - relationships are computed; should be recheked.
SUMOReal getLaneWidth() const
Returns the default width of lanes of this edge.
void setPermissions(SVCPermissions permissions, int lane=-1)
set allowed/disallowed classes for the given lane or for all lanes if -1 is given ...
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
int myFromJunctionPriority
The priority normalised for the node the edge is outgoing of.
void computeLaneShapes()
compute lane shapes
bool mayDefinitelyPass
Information about being definitely free to drive (on-ramps)
tls_disable_finder(const TLSDisabledConnection &tpl)
constructor
SUMOReal getShapeStartAngle() const
Returns the angle at the start of the edge.
bool isInnerEdge() const
Returns whether this edge was marked as being within an intersection.
PositionVector myGeom
The geometry for the edge.
void remapConnections(const EdgeVector &incoming)
Remaps the connection in a way that allows the removal of it.
static const SUMOReal UNSPECIFIED_CONTPOS
unspecified internal junction position
Lane & getLaneStruct(int lane)
static const SUMOReal UNSPECIFIED_OFFSET
unspecified lane offset
PositionVector myFromBorder
intersection borders (because the node shape might be invalid)
void restoreBikelane(std::vector< NBEdge::Lane > oldLanes, PositionVector oldGeometry, std::vector< NBEdge::Connection > oldConnections)
restore an previously added BikeLane
MainDirections & operator=(const MainDirections &)
Invalidated assignment operator.
void setGeometry(const PositionVector &g, bool inner=false)
(Re)sets the edge's geometry
static SUMOReal firstIntersection(const PositionVector &v1, const PositionVector &v2, SUMOReal width2)
compute the first intersection point between the given lane geometries considering their rspective wi...
void setSignalOffset(SUMOReal offset)
sets the offset of a traffic signal from the end of this edge
SUMOReal getLaneSpeed(int lane) const
get lane speed
const EdgeVector & myTransitions
the transition from the virtual lane to the edge it belongs to
The connection was computed and validated.
void reinit(NBNode *from, NBNode *to, const std::string &type, SUMOReal speed, int nolanes, int priority, PositionVector geom, SUMOReal width, SUMOReal offset, const std::string &streetName, LaneSpreadFunction spread=LANESPREAD_RIGHT, bool tryIgnoreNodePositions=false)
Resets initial values.
SUMOReal vmax
maximun velocity
const std::vector< NBSign > & getSigns() const
get Signs
The edge has been loaded, nothing is computed yet.
bool myInvertEdge2find
invert edge to find
int myToJunctionPriority
The priority normalised for the node the edge is incoming in.
EdgeVector getConnectedEdges() const
Returns the list of outgoing edges unsorted.
PositionVector shape
shape of Connection
void restoreSidewalk(std::vector< NBEdge::Lane > oldLanes, PositionVector oldGeometry, std::vector< NBEdge::Connection > oldConnections)
restore an previously added sidewalk
SUMOReal speed
The speed allowed on this lane.
bool keepClear
whether the junction must be kept clear when using this connection
bool operator()(const Connection &c) const
operator ()
bool hasPermissions() const
whether at least one lane has restrictions
SUMOReal getLoadedLength() const
Returns the length was set explicitly or the computed length if it wasn't set.
An (internal) definition of a single lane of an edge.
connections_toedge_finder(NBEdge *const edge2find, bool hasFromLane=false)
constructor
SUMOReal mySpeed
The maximal speed.
SVCPermissions permissions
List of vehicle types that are allowed on this lane.
void addLane(int index, bool recompute=true)
add lane
bool addEdge2EdgeConnection(NBEdge *dest)
Adds a connection to another edge.
void incLaneNo(int by)
increment lane
bool myAmMacroscopicConnector
Information whether this edge is a (macroscopic) connector.
bool isConnectedTo(NBEdge *e)
Returns the information whethe a connection to the given edge has been added (or computed) ...
const PositionVector getInnerGeometry() const
Returns the geometry of the edge without the endpoints.
void reshiftPosition(SUMOReal xoff, SUMOReal yoff)
Applies an offset to the edge.
bool computeLanes2Edges()
computes the edge, step2: computation of which lanes approach the edges)
NBEdge * myTurnDestination
The turn destination edge (if a connection exists)
friend class NBEdgeSuccessorBuilder
connections_finder(int fromLane, NBEdge *const edge2find, int lane2find, bool invertEdge2find=false)
constructor
Lanes to lanes - relationships are loaded; no recheck is necessary/wished.
Connection getConnection(int fromLane, const NBEdge *to, int toLane) const
Returns the specified connection This method goes through "myConnections" and returns the specified o...
int operator()(const Connection &c1, const Connection &c2) const
comparing operation
bool hasConnectionTo(NBEdge *destEdge, int destLane, int fromLane=-1) const
Retrieves info about a connection to a certain lane of a certain edge.
bool hasLaneSpecificSpeed() const
whether lanes differ in speed
int getPriority() const
Returns the priority of the edge.
void checkGeometry(const SUMOReal maxAngle, const SUMOReal minRadius, bool fix)
Check the angles of successive geometry segments.
void addCrossingPointsAsIncomingWithGivenOutgoing(NBEdge *o, PositionVector &into)
add crossing points as incoming with given outgoing
void decLaneNo(int by)
decrement lane
NBEdge(const std::string &id, NBNode *from, NBNode *to, std::string type, SUMOReal speed, int nolanes, int priority, SUMOReal width, SUMOReal offset, const std::string &streetName="", LaneSpreadFunction spread=LANESPREAD_RIGHT)
Constructor.
std::string tlID
The id of the traffic light that controls this connection.
SVCPermissions preferred
List of vehicle types that are preferred on this lane.
std::string getInternalLaneID() const
get ID of internal lnae
int fromLane
The lane the connections starts at.
A point in 2D or 3D with translation and scaling methods.
void deleteLane(int index, bool recompute=true)
delete lane
TLSDisabledConnection myDefinition
definition of disable connection
NBEdge & operator=(const NBEdge &s)
invalidated assignment operator
bool addLane2LaneConnections(int fromLane, NBEdge *dest, int toLane, int no, Lane2LaneInfoType type, bool invalidatePrevious=false, bool mayDefinitelyPass=false)
Builds no connections starting at the given lanes.
tls_disable_finder & operator=(const tls_disable_finder &s)
invalidated assignment operator
void moveOutgoingConnectionsFrom(NBEdge *e, int laneOff)
move outgoing connection
bool hasLaneSpecificPermissions() const
whether lanes differ in allowed vehicle classes
bool lanesWereAssigned() const
Check if lanes were assigned.
bool hatBikelane() const
check if current edge hat a bikelane
static int computePrioritySum(const std::vector< int > &priorities)
computes the sum of the given list's entries (sic!)
static const SUMOReal UNSPECIFIED_VISIBILITY_DISTANCE
unspecified foe visibility for connections
static bool connections_sorter(const Connection &c1, const Connection &c2)
connections_sorter sort by fromLane, toEdge and toLane
std::vector< Connection > & getConnections()
Returns the connections.
const std::map< NBEdge *, std::vector< int > > & getBuiltConnections() const
get built connections
EdgeBuildingStep
Current state of the edge within the building process.
NBEdge * myPossibleTurnDestination
The edge that would be the turn destination if there was one.
void setAsMacroscopicConnector()
PositionVector getCWBoundaryLine(const NBNode &n) const
get the outer boundary of this edge when going clock-wise around the given node
bool addLane2LaneConnection(int fromLane, NBEdge *dest, int toLane, Lane2LaneInfoType type, bool mayUseSameDestination=false, bool mayDefinitelyPass=false, bool keepClear=true, SUMOReal contPos=UNSPECIFIED_CONTPOS, SUMOReal visibility=UNSPECIFIED_VISIBILITY_DISTANCE)
Adds a connection between the specified this edge's lane and an approached one.
bool hasLoadedLength() const
Returns whether a length was set explicitly.
int getNumLanes() const
Returns the number of lanes.
EdgeBuildingStep getStep() const
The building step of this edge.
bool isTurningDirectionAt(const NBEdge *const edge) const
Returns whether the given edge is the opposite direction to this edge.
SUMOReal contPos
custom position for internal junction on this connection
SUMOReal myLaneWidth
This width of this edge's lanes.
int myPriority
The priority of the edge.
int getFirstNonPedestrianLaneIndex(int direction, bool exclusive=false) const
return the first lane with permissions other than SVC_PEDESTRIAN and 0
Storage for edges, including some functionality operating on multiple edges.
std::string origID
origin ID
bool needsLaneSpecificOutput() const
whether at least one lane has values differing from the edges values
Connection(int fromLane_, NBEdge *toEdge_, int toLane_)
Constructor.
ToEdgeConnectionsAdder & operator=(const ToEdgeConnectionsAdder &)
Invalidated assignment operator.
EdgeBuildingStep myStep
The building step.
bool canMoveConnection(const Connection &con, int newFromLane) const
whether the connection can originate on newFromLane
const bool myHasFromLane
check if has from lane
std::string getLaneIDInsecure(int lane) const
get Lane ID (Insecure)
Class to sort edges by their angle.
void buildInnerEdges(const NBNode &n, int noInternalNoSplits, int &linkIndex, int &splitIndex)
SUMOReal getAngleAtNodeToCenter(const NBNode *const node) const
Returns the angle of from the node shape center to where the edge meets the node shape.
std::vector< Connection > myConnections
List of connections to following edges.
void setLoadedLength(SUMOReal val)
set loaded lenght
void execute(const int lane, const int virtEdge)
executes a bresenham - step
connections_fromlane_finder(int lane2find)
The connection was given by the user.
An upper class for objects with additional parameters.
SUMOReal getSignalOffset() const
Returns the offset of a traffic signal from the end of this edge.
void removeFromConnections(NBEdge *toEdge, int fromLane=-1, int toLane=-1, bool tryLater=false)
Removes the specified connection(s)
connections_toedgelane_finder & operator=(const connections_toedgelane_finder &s)
invalidated assignment operator
SUMOReal getEndOffset() const
Returns the offset to the destination node.
connections_conflict_finder & operator=(const connections_conflict_finder &s)
invalidated assignment operator
bool myAmInnerEdge
Information whether this is a junction-inner edge.
bool hatSidewalk() const
check if current edge hat a sideWalk
Base class for objects which have an id.
bool recheckLanes()
recheck whether all lanes within the edge are all right and optimises the connections once again ...
int getJunctionPriority(const NBNode *const node) const
Returns the junction priority (normalised for the node currently build)
int myLane2Find
index of lane to find
SUMOReal myLoadedLength
An optional length to use (-1 if not valid)
PositionVector startShapeAt(const PositionVector &laneShape, const NBNode *startNode, PositionVector nodeShape) const
std::string origID
An original ID, if given.
int internalLaneIndex
The lane index of this internal lane within the internal edge.
int myLane2Find
lane to find
A road/street connecting two junctions (netedit-version)
bool myCheckRight
check if is right
SVCPermissions getPermissions(int lane=-1) const
get the union of allowed classes over all lanes or for a specific lane
JunctionPriority
junction priority values set by setJunctionPriority
SUMOReal getCrossingAngle(NBNode *node)
return the angle for computing pedestrian crossings at the given node
void addRestrictedLane(SUMOReal width, SUMOVehicleClass vclass)
add a lane of the given width, restricted to the given class and shift existing connections ...
void setTurningDestination(NBEdge *e, bool onlyPossible=false)
Sets the turing destination at the given edge.
int myFromLane
index of from lane
void addBikeLane(SUMOReal width)
add a bicycle lane of the given width and shift existing connctions
NBNode * getToNode() const
Returns the destination node of the edge.
std::vector< int > getConnectionLanes(NBEdge *currentOutgoing) const
Returns the list of lanes that may be used to reach the given edge.
void computeEdgeShape()
Recomputeds the lane shapes to terminate at the node shape For every lane the intersection with the f...
void addStraightConnections(const EdgeVector *outgoing, const std::vector< int > &availableLanes, const std::vector< int > *priorities)
add some straight connections
void disableConnection4TLS(int fromLane, NBEdge *toEdge, int toLane)
disable connections for TLS
PositionVector viaShape
shape of via
std::string oppositeID
An opposite lane ID, if given.
SUMOReal getMaxLaneOffset()
get max lane offset
PositionVector myToBorder
static const SUMOReal UNSPECIFIED_LOADED_LENGTH
no length override given
std::vector< NBEdge * > EdgeVector
static const int UNSPECIFIED_INTERNAL_LANE_INDEX
internal lane computation not yet done
NBEdge * myEdge
the edge to compute the relative angle of
SUMOReal myLength
The length of the edge.
void setPreferredVehicleClass(SVCPermissions permissions, int lane=-1)
set preferred Vehicle Class
const PositionVector & getGeometry() const
Returns the geometry of the edge.
The edge has been loaded and connections shall not be added.
std::vector< Connection > myConnectionsToDelete
List of connections marked for delayed removal.
bool isMacroscopicConnector() const
Returns whether this edge was marked as a macroscopic connector.
connections_toedgelane_finder(NBEdge *const edge2find, int lane2find, int fromLane2find)
constructor
void reduceGeometry(const SUMOReal minDist)
Removes points with a distance lesser than the given.
void setJunctionPriority(const NBNode *const node, int prio)
Sets the junction priority of the edge.
const EdgeVector * getConnectedSorted()
Returns the list of outgoing edges without the turnaround sorted in clockwise direction.
NBEdge *const myEdge2Find
edge to find
void setIsInnerEdge()
Marks this edge being within an intersection.
void restoreRestrictedLane(SUMOVehicleClass vclass, std::vector< NBEdge::Lane > oldLanes, PositionVector oldGeometry, std::vector< NBEdge::Connection > oldConnections)
restore a restricted lane
void sortOutgoingConnectionsByIndex()
sorts the outgoing connections by their from-lane-index and their to-lane-index
NBEdge *const myEdge2Find
edge to find
std::string myType
The type of the edge.
SUMOReal mySignalOffset
the offset of a traffic light signal from the end of this edge (-1 for None)
LaneSpreadFunction
Numbers representing special SUMO-XML-attribute values Information how the edge's lateral offset shal...
void append(NBEdge *continuation)
append another edge
connections_finder & operator=(const connections_finder &s)
invalidated assignment operator
const Lane & getLaneStruct(int lane) const
NBNode * tryGetNodeAtPosition(SUMOReal pos, SUMOReal tolerance=5.0) const
Returns the node at the given edges length (using an epsilon)
The connection was computed.
LaneSpreadFunction getLaneSpreadFunction() const
Returns how this edge's lanes' lateral offset is computed.
SUMOReal myStartAngle
The angles of the edge.
SUMOReal getTotalAngle() const
Returns the angle at the start of the edge.
Represents a single node (junction) during network building.
PositionVector computeLaneShape(int lane, SUMOReal offset) const
Computes the shape for the given lane.
MainDirections(const EdgeVector &outgoing, NBEdge *parent, NBNode *to, int indexOfStraightest)
constructor
void dismissVehicleClassInformation()
dimiss vehicle class information
bool hasSignalisedConnectionTo(const NBEdge *const e) const
Check if edge has signalised connections.
Lanes to lanes - relationships are computed; no recheck is necessary/wished.
void replaceInConnections(NBEdge *which, NBEdge *by, int laneOff)
replace in current connections of edge
bool hasLaneSpecificWidth() const
whether lanes differ in width
Static storage of an output device and its base (abstract) implementation.
void setEndOffset(int lane, SUMOReal offset)
set lane specific end-offset (negative lane implies set for all lanes)
void appendTurnaround(bool noTLSControlled, bool checkPermissions)
Add a connection to the previously computed turnaround, if wished.
Direction
enum of possible directions
bool isNearEnough2BeJoined2(NBEdge *e, SUMOReal threshold) const
Check if edge is near enought to be joined to another edge.
void preferVehicleClass(int lane, SUMOVehicleClass vclass)
prefer certain vehicle class
std::string getLaneID(int lane) const
get Lane ID (Secure)
void allowVehicleClass(int lane, SUMOVehicleClass vclass)
set allowed class for the given lane or for all lanes if -1 is given
void insertConnection(NBEdge::Connection connection)
insert a previously created NBEdge::connection
void addGeometryPoint(int index, const Position &p)
Adds a further geometry point.
void shiftToLanesToEdge(NBEdge *to, int laneOff)
modifify the toLane for all connections to the given edge
connections_fromlane_finder & operator=(const connections_fromlane_finder &s)
invalidated assignment operator
SUMOReal getShapeEndAngle() const
Returns the angle at the end of the edge.
void computeAngle()
computes the angle of this edge and stores it in myAngle
SUMOReal getSpeed() const
Returns the speed allowed on this edge.
Container for nodes during the netbuilding process.
SUMOReal getFinalLength() const
get length that will be assigned to the lanes in the final network
SUMOReal getStartAngle() const
Returns the angle at the start of the edge (relative to the node shape center) The angle is computed ...
bool computeEdge2Edges(bool noLeftMovers)
computes the edge (step1: computation of approached edges)
int myFromLane
index of from lane
bool haveVia
check if Connection have a Via
void setLaneSpreadFunction(LaneSpreadFunction spread)
(Re)sets how the lanes lateral offset shall be computed
bool operator()(const Connection &c) const
operator ()
void divideSelectedLanesOnEdges(const EdgeVector *outgoing, const std::vector< int > &availableLanes, const std::vector< int > *priorities)
divide selected lanes on edges
std::set< SVCPermissions > getPermissionVariants(int iStart, int iEnd) const
return all permission variants within the specified lane range [iStart, iEnd[
Lanes to edges - relationships are computed/loaded.
std::string myStreetName
The street name (or whatever arbitrary string you wish to attach)
const std::string & getStreetName() const
Returns the street name of this edge.
const std::vector< Connection > & getConnections() const
Returns the connections.
NBNode * myFrom
The source and the destination node.
bool expandableBy(NBEdge *possContinuation) const
Check if Node is expandable.
NBEdge * getTurnDestination(bool possibleDestination=false) const
Connection & getConnectionRef(int fromLane, const NBEdge *to, int toLane)
Returns reference to the specified connection This method goes through "myConnections" and returns th...
bool setConnection(int lane, NBEdge *destEdge, int destLane, Lane2LaneInfoType type, bool mayUseSameDestination=false, bool mayDefinitelyPass=false, bool keepClear=true, SUMOReal contPos=UNSPECIFIED_CONTPOS, SUMOReal visibility=UNSPECIFIED_VISIBILITY_DISTANCE)
Adds a connection to a certain lane of a certain edge.
std::vector< int > foeInternalLinks
FOE Internal links.
~MainDirections()
destructor
const PositionVector & getLaneShape(int i) const
Returns the shape of the nth lane.
void shiftPositionAtNode(NBNode *node, NBEdge *opposite)
shift geometry at the given node to avoid overlap
NBEdge *const myEdge2Find
edge to find
bool operator()(const Connection &c) const
operator ()
void disallowVehicleClass(int lane, SUMOVehicleClass vclass)
set disallowed class for the given lane or for all lanes if -1 is given
SUMOReal width
This lane's width.
void copyConnectionsFrom(NBEdge *src)
copy connections from antoher edge
A class that being a bresenham-callback assigns the incoming lanes to the edges.
static const SUMOReal ANGLE_LOOKAHEAD
the distance at which to take the default angle
SUMOReal getLength() const
Returns the computed length of the edge.
SUMOReal getAngleAtNode(const NBNode *const node) const
Returns the angle of the edge's geometry at the given node.
SUMOReal visibility
custom foe visiblity for connection
NBNode * getFromNode() const
Returns the origin node of the edge.
bool splitGeometry(NBEdgeCont &ec, NBNodeCont &nc)
Splits this edge at geometry points.