Interface HeadwayTrafficLight

All Superinterfaces:
Comparable<Headway>, Headway, HeadwayLaneBasedObject, org.djutils.base.Identifiable, PerceivedObject, Serializable
All Known Implementing Classes:
HeadwayTrafficLightReal

public interface HeadwayTrafficLight extends HeadwayLaneBasedObject
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
  • 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.