Interface TrafficLightDetectorAnimation.TrafficLightDetectorData

All Superinterfaces:
DetectorData, Identifiable, Locatable, OtsShape
Enclosing class:
TrafficLightDetectorAnimation

public static interface TrafficLightDetectorAnimation.TrafficLightDetectorData extends DetectorData, Identifiable
TrafficLightDetectorData provides the information required to draw a traffic light detector.

Copyright (c) 2023-2026 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.

Author:
Wouter Schakel
  • Method Details

    • getOccupancy

      boolean getOccupancy()
      Returns whether the detector is occupied.
      Returns:
      whether the detector is occupied.
    • getLocation

      DirectedPoint2d getLocation()
      Specified by:
      getLocation in interface Locatable
      Specified by:
      getLocation in interface OtsShape
    • getZ

      default double getZ()
      Specified by:
      getZ in interface Locatable