| |
- builtins.object
-
- Node
class Node(builtins.object) |
|
Node(id, type, coord, incLanes, intLanes=None)
Nodes from a sumo network |
|
Methods defined here:
- __init__(self, id, type, coord, incLanes, intLanes=None)
- Initialize self. See help(type(self)) for accurate signature.
- __repr__(self)
- Return repr(self).
- addIncoming(self, edge)
- addOutgoing(self, edge)
- areFoes(self, link1, link2)
- forbids(self, possProhibitor, possProhibited)
- getConnections(self, source=None, target=None)
- getCoord(self)
- getCoord3D(self)
- getFringe(self)
- getID(self)
- getIncoming(self)
- getInternal(self)
- Returns the internal lanes starting at the border of the node.
This function returns the junction internal lanes as defined in the
"intLanes" attribute in net.xml. Note that this may not contain
all internal lanes because there may be internal junctions where
further internal lanes start.
The returned list contains string ids and no lane objects.
- getLinkIndex(self, conn)
- getMaxTLLinkIndex(self)
- getNeighboringNodes(self, outgoingNodes=True, incomingNodes=True)
- getOutgoing(self)
- getParam(self, key, default=None)
- getParams(self)
- getShape(self)
- Returns the shape of the node in 2d.
This function returns the shape of the node, as defined in the net.xml
file. The returned shape is a list containing numerical
2-tuples representing the x,y coordinates of the shape points.
If no shape is defined in the xml, an empty list will be returned.
- getShape3D(self)
- Returns the shape of the node in 3d.
This function returns the shape of the node, as defined in the net.xml
file. The returned shape is a list containing numerical
3-tuples representing the x,y,z coordinates of the shape points.
If no shape is defined in the xml, an empty list will be returned.
- getType(self)
- isSelected(self)
- select(self, value=True)
- setFoes(self, index, foes, prohibits)
- setParam(self, key, value)
- setShape(self, shape)
- Set the shape of the node.
Shape must be a list containing x,y,z coords as numbers
to represent the shape of the node.
Data descriptors defined here:
- __dict__
- dictionary for instance variables
- __weakref__
- list of weak references to the object
| |