View Javadoc
1   package org.opentrafficsim.road.gtu.lane.perception.headway;
2   
3   import org.opentrafficsim.road.network.lane.object.trafficlight.TrafficLightColor;
4   
5   /**
6    * Headway object for traffic lights.
7    * <p>
8    * Copyright (c) 2024-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
9    * BSD-style license. See <a href="https://opentrafficsim.org/docs/license.html">OpenTrafficSim License</a>.
10   * </p>
11   * @author <a href="https://github.com/wjschakel">Wouter Schakel</a>
12   */
13  public interface HeadwayTrafficLight extends HeadwayLaneBasedObject
14  {
15  
16      /**
17       * Returns the traffic light color.
18       * @return the traffic light color.
19       */
20      TrafficLightColor getTrafficLightColor();
21  
22      /**
23       * Whether the perceiving GTU may turn on red.
24       * @return whether the perceiving GTU may turn on red.
25       */
26      boolean canTurnOnRed();
27  
28  }