sumolib.net.edge
index
/build/sumo-cS4omS/sumo-1.1.0+dfsg1/tools/sumolib/net/edge.py

# Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
# Copyright (C) 2011-2018 German Aerospace Center (DLR) and others.
# This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v2.0
# which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v20.html
# SPDX-License-Identifier: EPL-2.0

 
Classes
       
Edge

 
class Edge
    Edges from a sumo network
 
  Methods defined here:
__init__(self, id, fromN, toN, prio, function, name)
__repr__(self)
addLane(self, lane)
addOutgoing(self, conn)
allows(self, vClass)
true if this edge has a lane which allows the given vehicle class
getBoundingBox(self, includeJunctions=True)
getClosestLanePosDist(self, point, perpendicular=False)
getConnections(self, toEdge)
Returns all connections to the given target edge
getFromNode(self)
getFunction(self)
getID(self)
getIncoming(self)
getLane(self, idx)
getLaneNumber(self)
getLanes(self)
getLength(self)
getName(self)
getOutgoing(self)
getPriority(self)
getRawShape(self)
Return the shape that was used in netconvert for building this edge (2D).
getRawShape3D(self)
Return the shape that was used in netconvert for building this edge (3D).
getShape(self, includeJunctions=False)
Return the 2D shape that is the average of all lane shapes (segment-wise)
getShape3D(self, includeJunctions=False)
getSpeed(self)
getTLS(self)
getToNode(self)
isSpecial(self)
Check if the edge has a special function.
 
Returns False if edge's function is 'normal', else False, e.g. for
internal edges or connector edges
is_fringe(self, connections=None)
true if this edge has no incoming or no outgoing connections (except turnarounds)
If connections is given, only those connections are considered
rebuildShape(self)
setRawShape(self, shape)
setTLS(self, tls)