sumolib.net.node | index /home/delphi/gcc/sumo/tools/sumolib/net/node.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`

Classes
`` |  | 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.` 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) 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) 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 (if defined)` __weakref__ `list of weak references to the object (if defined)`