_Network
Module Contents
Classes
- class _Network.Network
Bases:
trasmapy._SimUpdatable.SimUpdatable
- property edges: list[trasmapy.network._Edge.Edge]
Returns a list of all edges in the network.
- property lanes: list[trasmapy.network._Lane.Lane]
Returns a list of all edges in the network.
- property stops: list[trasmapy.network._Stop.Stop]
Returns a list of all stops in the network.
- _indexStops(laneToStopMap, StopClass, traciModule)
- getEdge(edgeId: str) trasmapy.network._Edge.Edge
Returns an object representing the edge with the given ID in the network. Raises KeyError if the given edge doesn’t exist.
- getLane(laneId: str) trasmapy.network._Lane.Lane
Returns an object representing the lane with the given ID in the network. Raises KeyError if the given lane doesn’t exist in any edge.
- getStop(stopId: str) trasmapy.network._Stop.Stop
Returns an object representing the lane with the given ID in the network. Raises KeyError if the given lane doesn’t exist in any edge.
- getDetector(detectorId: str) trasmapy.network._Detector.Detector
Returns an object representing the inductionloop (E1) with the given ID in the network. Raises KeyError if the given inductionloop doesn’t exist in any lane.
- createLaneStop(laneId: str, endPos: float = 0, startPos: float = INVALID_DOUBLE_VALUE) trasmapy.network._LaneStop.LaneStop
- createEdgeStop(edgeId: str, endPos: float = 0, startPos: float = INVALID_DOUBLE_VALUE) trasmapy.network._LaneStop.LaneStop
- _doSimulationStep(*args, step: int, time: float) None