Package org.opentrafficsim.draw.road
Class ConflictAnimation
java.lang.Object
nl.tudelft.simulation.dsol.animation.d2.Renderable2d<L>
org.opentrafficsim.draw.OtsRenderable<T>
org.opentrafficsim.draw.road.AbstractLineAnimation<ConflictAnimation.ConflictData>
org.opentrafficsim.draw.road.ConflictAnimation
- All Implemented Interfaces:
Serializable
,nl.tudelft.simulation.dsol.animation.d2.Renderable2dInterface<ConflictAnimation.ConflictData>
Animate a conflict.
Copyright (c) 2013-2024 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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
ConflictData provides the information required to draw a conflict.Nested classes/interfaces inherited from class org.opentrafficsim.draw.road.AbstractLineAnimation
AbstractLineAnimation.LaneBasedObjectData
-
Constructor Summary
ConstructorsConstructorDescriptionConflictAnimation
(ConflictAnimation.ConflictData source, nl.tudelft.simulation.naming.context.Contextualized contextualized) -
Method Summary
Modifier and TypeMethodDescriptionfinal void
paint
(Graphics2D graphics, ImageObserver observer) final String
toString()
Methods inherited from class org.opentrafficsim.draw.OtsRenderable
contains, resetRendering, setRendering
Methods inherited from class nl.tudelft.simulation.dsol.animation.d2.Renderable2d
bind2Context, destroy, getId, getSource, isFlip, isRotate, isScale, isScaleObject, isScaleY, isTranslate, paint, paintComponent, setFlip, setRotate, setScale, setScaleObject, setScaleY, setTranslate
-
Constructor Details
-
ConflictAnimation
public ConflictAnimation(ConflictAnimation.ConflictData source, nl.tudelft.simulation.naming.context.Contextualized contextualized) throws NamingException, RemoteException - Parameters:
source
- the conflict to drawcontextualized
- context provider- Throws:
NamingException
- in case of registration failure of the animationRemoteException
- on communication failure
-
-
Method Details
-
paint
- Overrides:
paint
in classAbstractLineAnimation<ConflictAnimation.ConflictData>
-
toString
- Overrides:
toString
in classnl.tudelft.simulation.dsol.animation.d2.Renderable2d<ConflictAnimation.ConflictData>
-