Interface TrafficLightDetectorAnimation.TrafficLightDetectorData

All Superinterfaces:
DetectorData, org.djutils.base.Identifiable, nl.tudelft.simulation.dsol.animation.Locatable, org.opentrafficsim.base.geometry.OtsLocatable
Enclosing class:
TrafficLightDetectorAnimation

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

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

Author:
Wouter Schakel
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.opentrafficsim.draw.road.DetectorData

    DetectorData.Text
  • Method Summary

    Modifier and Type
    Method
    Description
    org.djutils.draw.line.PolyLine2d
    Returns the geometry.
    org.djutils.draw.point.OrientedPoint2d
    boolean
    Returns whether the detector is occupied.
    default double

    Methods inherited from interface org.djutils.base.Identifiable

    getId

    Methods inherited from interface nl.tudelft.simulation.dsol.animation.Locatable

    getDirZ

    Methods inherited from interface org.opentrafficsim.base.geometry.OtsLocatable

    getBounds
  • Method Details

    • getGeometry

      org.djutils.draw.line.PolyLine2d getGeometry()
      Returns the geometry.
      Returns:
      PolyLine2d; geometry.
    • getOccupancy

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

      org.djutils.draw.point.OrientedPoint2d getLocation()
      Specified by:
      getLocation in interface nl.tudelft.simulation.dsol.animation.Locatable
      Specified by:
      getLocation in interface org.opentrafficsim.base.geometry.OtsLocatable
    • getZ

      default double getZ()
      Specified by:
      getZ in interface nl.tudelft.simulation.dsol.animation.Locatable