Package org.opentrafficsim.draw.road
Class TrafficLightDetectorAnimation
java.lang.Object
nl.tudelft.simulation.dsol.animation.D2.Renderable2D<TrafficLightDetector>
org.opentrafficsim.draw.road.TrafficLightDetectorAnimation
- All Implemented Interfaces:
Serializable
,nl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface<TrafficLightDetector>
public class TrafficLightDetectorAnimation
extends nl.tudelft.simulation.dsol.animation.D2.Renderable2D<TrafficLightDetector>
implements Serializable
Traffic light detector 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
ConstructorsConstructorDescriptionTrafficLightDetectorAnimation
(TrafficLightDetector detector, org.opentrafficsim.core.dsol.OtsSimulatorInterface simulator) Construct a TrafficLightDetectorAnimation. -
Method Summary
Modifier and TypeMethodDescriptionfinal void
paint
(Graphics2D graphics, ImageObserver observer) final String
toString()
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
-
TrafficLightDetectorAnimation
public TrafficLightDetectorAnimation(TrafficLightDetector detector, org.opentrafficsim.core.dsol.OtsSimulatorInterface simulator) throws NamingException, RemoteException, org.opentrafficsim.core.geometry.OtsGeometryException Construct a TrafficLightDetectorAnimation.- Parameters:
detector
- TrafficLightSensor; the traffic light detector that will be animatedsimulator
- OtsSimulatorInterface; the simulator to schedule on- Throws:
NamingException
- in case of registration failure of the animationRemoteException
- in case of remote registration failure of the animationorg.opentrafficsim.core.geometry.OtsGeometryException
- when the geometry is bad
-
-
Method Details
-
paint
- Specified by:
paint
in classnl.tudelft.simulation.dsol.animation.D2.Renderable2D<TrafficLightDetector>
-
toString
- Overrides:
toString
in classnl.tudelft.simulation.dsol.animation.D2.Renderable2D<TrafficLightDetector>
-