| |
- 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)
- isSelected(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)
- select(self, value=True)
- setParam(self, key, value)
- setRawShape(self, shape)
- setTLS(self, tls)
Data descriptors defined here:
- __dict__
- dictionary for instance variables
- __weakref__
- list of weak references to the object
| |