Class AnimationTrafficLightDetectorData
java.lang.Object
org.opentrafficsim.animation.data.AnimationTrafficLightDetectorData
- All Implemented Interfaces:
nl.tudelft.simulation.dsol.animation.Locatable
,org.djutils.base.Identifiable
,org.opentrafficsim.base.geometry.OtsLocatable
,org.opentrafficsim.base.geometry.SpatialObject
,ClickableLocatable
,DetectorData
,TrafficLightDetectorAnimation.TrafficLightDetectorData
public class AnimationTrafficLightDetectorData
extends Object
implements TrafficLightDetectorAnimation.TrafficLightDetectorData
Animation data of a TrafficLightDetector.
Copyright (c) 2023-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Wouter Schakel
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opentrafficsim.draw.road.DetectorData
DetectorData.Text
-
Field Summary
Fields inherited from interface org.opentrafficsim.draw.ClickableLocatable
EXPANSE
-
Constructor Summary
ConstructorsConstructorDescriptionAnimationTrafficLightDetectorData
(TrafficLightDetector trafficLigthDetector) Constructor. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface nl.tudelft.simulation.dsol.animation.Locatable
getDirZ
Methods inherited from interface org.opentrafficsim.base.geometry.OtsLocatable
getShape
Methods inherited from interface org.opentrafficsim.draw.road.TrafficLightDetectorAnimation.TrafficLightDetectorData
getZ
-
Constructor Details
-
AnimationTrafficLightDetectorData
Constructor.- Parameters:
trafficLigthDetector
- traffic light detector.
-
-
Method Details
-
getLocation
public org.djutils.draw.point.OrientedPoint2d getLocation()- Specified by:
getLocation
in interfacenl.tudelft.simulation.dsol.animation.Locatable
- Specified by:
getLocation
in interfaceorg.opentrafficsim.base.geometry.OtsLocatable
- Specified by:
getLocation
in interfaceTrafficLightDetectorAnimation.TrafficLightDetectorData
-
getBounds
public org.djutils.draw.bounds.Bounds2d getBounds()- Specified by:
getBounds
in interfaceClickableLocatable
- Specified by:
getBounds
in interfacenl.tudelft.simulation.dsol.animation.Locatable
- Specified by:
getBounds
in interfaceorg.opentrafficsim.base.geometry.OtsLocatable
-
getContour
public org.djutils.draw.line.Polygon2d getContour()- Specified by:
getContour
in interfaceorg.opentrafficsim.base.geometry.SpatialObject
-
getOccupancy
public boolean getOccupancy()- Specified by:
getOccupancy
in interfaceTrafficLightDetectorAnimation.TrafficLightDetectorData
-
getId
- Specified by:
getId
in interfaceorg.djutils.base.Identifiable
-
getTrafficLightDetector
Returns the traffic light detector.- Returns:
- traffic light detector.
-
toString
-