Class AnimationNodeData

java.lang.Object
org.opentrafficsim.animation.data.AnimationNodeData
All Implemented Interfaces:
nl.tudelft.simulation.dsol.animation.Locatable, org.djutils.base.Identifiable, org.opentrafficsim.base.geometry.OtsLocatable, NodeAnimation.NodeData

public class AnimationNodeData extends Object implements NodeAnimation.NodeData
Animation data of a Node.

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

    • AnimationNodeData

      public AnimationNodeData(org.opentrafficsim.core.network.Node node)
      Constructor.
      Parameters:
      node - Node; node.
  • 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
    • getLocation

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

      public org.opentrafficsim.core.network.Node getNode()
      Returns the node.
      Returns:
      Node; node.
    • toString

      public String toString()
      Overrides:
      toString in class Object