Class ConflictAnimation

java.lang.Object
nl.tudelft.simulation.dsol.animation.D2.Renderable2D<T>
org.opentrafficsim.draw.road.AbstractLineAnimation<Conflict>
org.opentrafficsim.draw.road.ConflictAnimation
All Implemented Interfaces:
Serializable, nl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface<Conflict>

public class ConflictAnimation extends AbstractLineAnimation<Conflict> implements Serializable
Animate a conflict.

Copyright (c) 2013-2023 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.

Author:
Alexander Verbraeck, Peter Knoppers, Wouter Schakel
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    ConflictAnimation(Conflict source, org.opentrafficsim.core.dsol.OtsSimulatorInterface simulator)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final void
    paint(Graphics2D graphics, ImageObserver observer)
    final String

    Methods inherited from class org.opentrafficsim.draw.road.AbstractLineAnimation

    getHalfLength

    Methods inherited from class nl.tudelft.simulation.dsol.animation.D2.Renderable2D

    bind2Context, contains, destroy, getId, getSource, isFlip, isRotate, isScale, isScaleObject, isScaleY, isTranslate, paint, paintComponent, setFlip, setRotate, setScale, setScaleObject, setScaleY, setTranslate

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ConflictAnimation

      public ConflictAnimation(Conflict source, org.opentrafficsim.core.dsol.OtsSimulatorInterface simulator) throws NamingException, RemoteException
      Parameters:
      source - Conflict; the conflict to draw
      simulator - OtsSimulatorInterface; the simulator to schedule on
      Throws:
      NamingException - in case of registration failure of the animation
      RemoteException - on communication failure
  • Method Details