Class AnimationPriorityData

java.lang.Object
org.opentrafficsim.animation.data.AnimationPriorityData
All Implemented Interfaces:
nl.tudelft.simulation.dsol.animation.Locatable, org.opentrafficsim.base.geometry.OtsLocatable, org.opentrafficsim.base.geometry.SpatialObject, ClickableLocatable, PriorityAnimation.PriorityData

public class AnimationPriorityData extends Object implements PriorityAnimation.PriorityData
Priority data for animation.

Copyright (c) 2024-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

    • AnimationPriorityData

      public AnimationPriorityData(CrossSectionLink link)
      Constructor.
      Parameters:
      link - link.
  • Method Details

    • getLocation

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

      public org.djutils.draw.line.Polygon2d getContour()
      Specified by:
      getContour in interface org.opentrafficsim.base.geometry.SpatialObject
    • getBounds

      public org.djutils.draw.bounds.Bounds2d getBounds()
      Specified by:
      getBounds in interface ClickableLocatable
      Specified by:
      getBounds in interface nl.tudelft.simulation.dsol.animation.Locatable
      Specified by:
      getBounds in interface org.opentrafficsim.base.geometry.OtsLocatable
    • isAllStop

      public boolean isAllStop()
      Specified by:
      isAllStop in interface PriorityAnimation.PriorityData
    • isBusStop

      public boolean isBusStop()
      Specified by:
      isBusStop in interface PriorityAnimation.PriorityData
    • isNone

      public boolean isNone()
      Specified by:
      isNone in interface PriorityAnimation.PriorityData
    • isPriority

      public boolean isPriority()
      Specified by:
      isPriority in interface PriorityAnimation.PriorityData
    • isStop

      public boolean isStop()
      Specified by:
      isStop in interface PriorityAnimation.PriorityData
    • isYield

      public boolean isYield()
      Specified by:
      isYield in interface PriorityAnimation.PriorityData
    • toString

      public String toString()
      Overrides:
      toString in class Object