_Detector
Module Contents
Classes
- class _Detector.Detector(detectorId: str)
Bases:
trasmapy._IdentifiedObject.IdentifiedObject
,trasmapy._SimUpdatable.SimUpdatable
- property timeSinceLastDetection: float
Returns how many seconds elapsed since the last detection.
- property laneId: str
Returns the ID of the lane where the detector is placed.
- property position: float
Returns the position of the detection on its containing lane.
- listen(listener)
Hooks into the detector. The given function will be called with the IDs of the detected vehicles there’s a detection.
- _doSimulationStep(*args, step: int, time: float) None