Package org.opentrafficsim.draw.road
Class SinkAnimation
java.lang.Object
nl.tudelft.simulation.dsol.animation.D2.Renderable2D<T>
org.opentrafficsim.draw.road.AbstractLineAnimation<SinkDetector>
org.opentrafficsim.draw.road.SinkAnimation
- All Implemented Interfaces:
Serializable
,nl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface<SinkDetector>
sink sensor animation.
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
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSinkAnimation
(SinkDetector source, org.opentrafficsim.core.dsol.OtsSimulatorInterface simulator) Construct the Sink animation. -
Method Summary
Modifier and TypeMethodDescriptionfinal void
paint
(Graphics2D graphics, ImageObserver observer) final String
toString()
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
-
Constructor Details
-
SinkAnimation
public SinkAnimation(SinkDetector source, org.opentrafficsim.core.dsol.OtsSimulatorInterface simulator) throws NamingException, RemoteException Construct the Sink animation.- Parameters:
source
- SinkSensor; the Car to drawsimulator
- OtsSimulatorInterface; the simulator to schedule on- Throws:
NamingException
- in case of registration failure of the animationRemoteException
- in case of remote registration failure of the animation
-
-
Method Details
-
paint
- Overrides:
paint
in classAbstractLineAnimation<SinkDetector>
-
toString
- Overrides:
toString
in classnl.tudelft.simulation.dsol.animation.D2.Renderable2D<SinkDetector>
-