Class AnimationTrafficLightDetectorData

java.lang.Object
org.opentrafficsim.animation.data.AnimationTrafficLightDetectorData
All Implemented Interfaces:
nl.tudelft.simulation.dsol.animation.Locatable, org.djutils.base.Identifiable, org.opentrafficsim.base.geometry.OtsLocatable, DetectorData, TrafficLightDetectorAnimation.TrafficLightDetectorData

public class AnimationTrafficLightDetectorData extends Object implements TrafficLightDetectorAnimation.TrafficLightDetectorData
Animation data of a TrafficLightDetector.

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
  • Constructor Details

    • AnimationTrafficLightDetectorData

      public AnimationTrafficLightDetectorData(TrafficLightDetector trafficLigthDetector)
      Constructor.
      Parameters:
      trafficLigthDetector - TrafficLightDetector; traffic light detector.
  • Method Details

    • getLocation

      public 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
      Specified by:
      getLocation in interface TrafficLightDetectorAnimation.TrafficLightDetectorData
    • getBounds

      public org.opentrafficsim.base.geometry.OtsBounds2d getBounds()
      Specified by:
      getBounds in interface nl.tudelft.simulation.dsol.animation.Locatable
      Specified by:
      getBounds in interface org.opentrafficsim.base.geometry.OtsLocatable
    • getGeometry

      public org.djutils.draw.line.PolyLine2d getGeometry()
      Specified by:
      getGeometry in interface TrafficLightDetectorAnimation.TrafficLightDetectorData
    • getOccupancy

      public boolean getOccupancy()
      Specified by:
      getOccupancy in interface TrafficLightDetectorAnimation.TrafficLightDetectorData
    • getId

      public String getId()
      Specified by:
      getId in interface org.djutils.base.Identifiable
    • getTrafficLightDetector

      public TrafficLightDetector getTrafficLightDetector()
      Returns the traffic light detector.
      Returns:
      TrafficLightDetector; traffic light detector.
    • toString

      public String toString()
      Overrides:
      toString in class Object