Class AnimationSpeedSignData

java.lang.Object
org.opentrafficsim.animation.data.AnimationSpeedSignData
All Implemented Interfaces:
nl.tudelft.simulation.dsol.animation.Locatable, org.opentrafficsim.base.geometry.OtsLocatable, SpeedSignAnimation.SpeedSignData

public class AnimationSpeedSignData extends Object implements SpeedSignAnimation.SpeedSignData
Animation data of a SpeedSign.

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

    • AnimationSpeedSignData

      public AnimationSpeedSignData(SpeedSign speedSign)
      Constructor.
      Parameters:
      speedSign - SpeedSign; speed sign.
  • 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
    • 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
    • getSpeed

      public org.djunits.value.vdouble.scalar.Speed getSpeed()
      Specified by:
      getSpeed in interface SpeedSignAnimation.SpeedSignData
    • getSpeedSign

      public SpeedSign getSpeedSign()
      Returns the speed sign.
      Returns:
      SpeedSign; speed sign.
    • toString

      public String toString()
      Overrides:
      toString in class Object