Interface HeadwayTrafficLight
- All Superinterfaces:
Comparable<Headway>
,Headway
,HeadwayLaneBasedObject
,org.djutils.base.Identifiable
,PerceivedObject
,Serializable
- All Known Implementing Classes:
HeadwayTrafficLightReal
Headway object for traffic lights.
Copyright (c) 2024-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.road.gtu.lane.perception.headway.Headway
Headway.ObjectType
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Whether the perceiving GTU may turn on red.Returns the traffic light color.Methods inherited from interface org.opentrafficsim.road.gtu.lane.perception.headway.Headway
compareTo, getAcceleration, getDistance, getId, getLength, getObjectType, getOverlap, getOverlapFront, getOverlapRear, getSpeed, isAhead, isBehind, isParallel
Methods inherited from interface org.opentrafficsim.road.gtu.lane.perception.headway.HeadwayLaneBasedObject
getLane
-
Method Details
-
getTrafficLightColor
TrafficLightColor getTrafficLightColor()Returns the traffic light color.- Returns:
- the traffic light color.
-
canTurnOnRed
boolean canTurnOnRed()Whether the perceiving GTU may turn on red.- Returns:
- whether the perceiving GTU may turn on red.
-