Class AnimationTrafficLightDetectorData
java.lang.Object
org.opentrafficsim.animation.data.AnimationIdentifiableShape<TrafficLightDetector>
org.opentrafficsim.animation.data.AnimationTrafficLightDetectorData
- All Implemented Interfaces:
Locatable,Identifiable,OtsShape,DetectorData,TrafficLightDetectorAnimation.TrafficLightDetectorData
public class AnimationTrafficLightDetectorData
extends AnimationIdentifiableShape<TrafficLightDetector>
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.base.geometry.OtsShape
DEFAULT_POLYGON_SEGMENTS, WORLD_MARGIN_LINE -
Constructor Summary
ConstructorsConstructorDescriptionAnimationTrafficLightDetectorData(TrafficLightDetector trafficLigthDetector) Constructor. -
Method Summary
Methods inherited from class org.opentrafficsim.animation.data.AnimationIdentifiableShape
getAbsoluteContour, getId, getLocation, getObject, getRelativeBounds, getRelativeContourMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.djutils.base.Identifiable
getIdMethods inherited from interface org.opentrafficsim.base.geometry.OtsShape
contains, contains, getAbsoluteBounds, getAbsoluteContour, getAbsoluteContour, getDirZ, getRelativeBounds, getRelativeContour, signedDistance, signedDistanceMethods inherited from interface org.opentrafficsim.draw.road.TrafficLightDetectorAnimation.TrafficLightDetectorData
getLocation, getZ
-
Constructor Details
-
AnimationTrafficLightDetectorData
Constructor.- Parameters:
trafficLigthDetector- traffic light detector.
-
-
Method Details
-
getOccupancy
public boolean getOccupancy()- Specified by:
getOccupancyin interfaceTrafficLightDetectorAnimation.TrafficLightDetectorData
-
toString
-