sumolib.net.edge | index /home/delphi/gcc/sumo/tools/sumolib/net/edge.py

`# Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
# Copyright (C) 2011-2022 German Aerospace Center (DLR) and others.
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License 2.0 which is available at
# https://www.eclipse.org/legal/epl-2.0/
# This Source Code may also be made available under the following Secondary
# Licenses when the conditions for such availability set forth in the Eclipse
# Public License 2.0 are satisfied: GNU General Public License, version 2
# or later which is available at
# https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later`

Modules
`` |  |
sumolib |  |  |

Classes
`` |  | builtins.object Edge
class Edge(builtins.object)
`` | `Edge(id, fromN, toN, prio, function, name, edgeType='') Edges from a sumo network`
| Methods defined here: __init__(self, id, fromN, toN, prio, function, name, edgeType='') `Initialize self. See help(type(self)) for accurate signature.` __repr__(self) `Return repr(self).` addLane(self, lane) addOutgoing(self, conn) allows(self, vClass) `true if this edge has a lane which allows the given vehicle class` getAllowedOutgoing(self, vClass) getBidi(self) getBoundingBox(self, includeJunctions=True) getClosestLanePosDist(self, point, perpendicular=False) getConnections(self, toEdge) `Returns all connections to the given target edge` getCrossingEdges(self) getFromNode(self) getFunction(self) getID(self) getIncoming(self) getLane(self, idx) getLaneNumber(self) getLanes(self) getLength(self) getName(self) getOutgoing(self) getParam(self, key, default=None) getParams(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) getType(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, checkJunctions=False) `true if this edge has no incoming or no outgoing connections (except turnarounds) If connections is given, only those connections are considered` rebuildShape(self) setParam(self, key, value) setRawShape(self, shape) setTLS(self, tls) Data descriptors defined here: __dict__ `dictionary for instance variables (if defined)` __weakref__ `list of weak references to the object (if defined)`