1 package org.opentrafficsim.road.network.lane.object.trafficlight; 2 3 import org.opentrafficsim.road.network.lane.object.LaneBasedObject; 4 5 import nl.tudelft.simulation.dsol.animation.Locatable; 6 7 /** 8 * <p> 9 * Copyright (c) 2013-2016 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br> 10 * BSD-style license. See <a href="http://opentrafficsim.org/docs/current/license.html">OpenTrafficSim License</a>. 11 * </p> 12 * $LastChangedDate: 2015-07-24 02:58:59 +0200 (Fri, 24 Jul 2015) $, @version $Revision: 1147 $, by $Author: averbraeck $, 13 * initial version Oct 6, 2016 <br> 14 * @author <a href="http://www.tbm.tudelft.nl/averbraeck">Alexander Verbraeck</a> 15 * @author <a href="http://www.tudelft.nl/pknoppers">Peter Knoppers</a> 16 * @author <a href="http://www.transport.citg.tudelft.nl">Wouter Schakel</a> 17 */ 18 public interface TrafficLight extends Locatable, LaneBasedObject 19 { 20 /** @return the trafficLightColor */ 21 TrafficLightColor getTrafficLightColor(); 22 23 /** 24 * Set the new traffic light color. 25 * @param trafficLightColor set the trafficLightColor 26 */ 27 void setTrafficLightColor(TrafficLightColor trafficLightColor); 28 29 /** 30 * Return the id of the traffic light. 31 * @return String; the id of the traffic light 32 */ 33 String getId(); 34 35 } 36