Package org.opentrafficsim.draw.road
Class GtuGeneratorPositionAnimation
java.lang.Object
nl.tudelft.simulation.dsol.animation.D2.Renderable2D<org.opentrafficsim.core.gtu.GtuGenerator.GtuGeneratorPosition>
org.opentrafficsim.draw.road.GtuGeneratorPositionAnimation
- All Implemented Interfaces:
Serializable
,nl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface<org.opentrafficsim.core.gtu.GtuGenerator.GtuGeneratorPosition>
public class GtuGeneratorPositionAnimation
extends nl.tudelft.simulation.dsol.animation.D2.Renderable2D<org.opentrafficsim.core.gtu.GtuGenerator.GtuGeneratorPosition>
Animates a GtuGeneratorPosition.
Copyright (c) 2022-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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
Paints a queue counter with a GtuGeneratorPosition. -
Constructor Summary
ConstructorsConstructorDescriptionGtuGeneratorPositionAnimation
(org.opentrafficsim.core.gtu.GtuGenerator.GtuGeneratorPosition source, org.opentrafficsim.core.dsol.OtsSimulatorInterface contextProvider) Constructor. -
Method Summary
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, toString
-
Constructor Details
-
GtuGeneratorPositionAnimation
public GtuGeneratorPositionAnimation(org.opentrafficsim.core.gtu.GtuGenerator.GtuGeneratorPosition source, org.opentrafficsim.core.dsol.OtsSimulatorInterface contextProvider) throws RemoteException, NamingException Constructor.- Parameters:
source
- GtuGeneratorPosition; source.contextProvider
- OtsSimulatorInterface; simulator.- Throws:
NamingException
- when animation context cannot be created or retrievedRemoteException
- when remote context cannot be found
-
-
Method Details
-
paint
- Specified by:
paint
in classnl.tudelft.simulation.dsol.animation.D2.Renderable2D<org.opentrafficsim.core.gtu.GtuGenerator.GtuGeneratorPosition>
-