Class AnimationLinkData

java.lang.Object
org.opentrafficsim.animation.data.AnimationLinkData
All Implemented Interfaces:
nl.tudelft.simulation.dsol.animation.Locatable, org.djutils.base.Identifiable, org.opentrafficsim.base.geometry.OtsLocatable, LinkAnimation.LinkData

public class AnimationLinkData extends Object implements LinkAnimation.LinkData
Animation data of a Link.

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

    • AnimationLinkData

      public AnimationLinkData(org.opentrafficsim.core.network.Link link)
      Constructor.
      Parameters:
      link - Link; link.
  • Method Details

    • 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
    • getId

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

      public boolean isConnector()
      Specified by:
      isConnector in interface LinkAnimation.LinkData
    • getDesignLine

      public org.djutils.draw.line.PolyLine2d getDesignLine()
      Specified by:
      getDesignLine in interface LinkAnimation.LinkData
    • getLocation

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

      public org.opentrafficsim.core.network.Link getLink()
      Returns the link.
      Returns:
      Link; link.
    • toString

      public String toString()
      Overrides:
      toString in class Object