Class AnimationGtuGeneratorPositionData

java.lang.Object
org.opentrafficsim.animation.data.AnimationGtuGeneratorPositionData
All Implemented Interfaces:
nl.tudelft.simulation.dsol.animation.Locatable, org.opentrafficsim.base.geometry.OtsLocatable, GtuGeneratorPositionAnimation.GtuGeneratorPositionData

public class AnimationGtuGeneratorPositionData extends Object implements GtuGeneratorPositionAnimation.GtuGeneratorPositionData
Animation data of a GtuGeneratorPosition.

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

    • AnimationGtuGeneratorPositionData

      public AnimationGtuGeneratorPositionData(org.opentrafficsim.core.gtu.GtuGenerator.GtuGeneratorPosition position)
      Constructor.
      Parameters:
      position - GtuGeneratorPosition; position within a generator.
  • 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
    • 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
    • getQueueCount

      public int getQueueCount()
      Specified by:
      getQueueCount in interface GtuGeneratorPositionAnimation.GtuGeneratorPositionData
    • getGeneratorPosition

      public org.opentrafficsim.core.gtu.GtuGenerator.GtuGeneratorPosition getGeneratorPosition()
      Returns the generator position.
      Returns:
      GtuGeneratorPosition; generator position.
    • toString

      public String toString()
      Overrides:
      toString in class Object