Package org.opentrafficsim.draw.road
Interface TrafficLightDetectorAnimation.TrafficLightDetectorData
- All Superinterfaces:
DetectorData,Identifiable,nl.tudelft.simulation.dsol.animation.Locatable,OtsShape
- Enclosing class:
- TrafficLightDetectorAnimation
public static interface TrafficLightDetectorAnimation.TrafficLightDetectorData
extends DetectorData, Identifiable
TrafficLightDetectorData provides the information required to draw a traffic light detector.
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 -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether the detector is occupied.default doublegetZ()Methods 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, signedDistance
-
Method Details
-
getOccupancy
boolean getOccupancy()Returns whether the detector is occupied.- Returns:
- whether the detector is occupied.
-
getLocation
DirectedPoint2d getLocation()- Specified by:
getLocationin interfacenl.tudelft.simulation.dsol.animation.Locatable- Specified by:
getLocationin interfaceOtsShape
-
getZ
default double getZ()- Specified by:
getZin interfacenl.tudelft.simulation.dsol.animation.Locatable
-