1 package org.opentrafficsim.road.gtu.lane.object; 2 3 import javax.naming.NamingException; 4 5 import nl.tudelft.simulation.dsol.SimRuntimeException; 6 7 import org.djunits.value.vdouble.scalar.Length.Rel; 8 import org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface; 9 import org.opentrafficsim.core.geometry.OTSGeometryException; 10 import org.opentrafficsim.core.gtu.GTUException; 11 import org.opentrafficsim.core.network.NetworkException; 12 import org.opentrafficsim.core.network.OTSNetwork; 13 import org.opentrafficsim.road.network.lane.Lane; 14 15 /** 16 * <p> 17 * Copyright (c) 2013-2015 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br> 18 * BSD-style license. See <a href="http://opentrafficsim.org/docs/license.html">OpenTrafficSim License</a>. 19 * </p> 20 * $LastChangedDate: 2015-07-24 02:58:59 +0200 (Fri, 24 Jul 2015) $, @version $Revision: 1147 $, by $Author: averbraeck $, 21 * initial version Jan 6, 2016 <br> 22 * @author <a href="http://www.tbm.tudelft.nl/averbraeck">Alexander Verbraeck</a> 23 * @author <a href="http://www.tudelft.nl/pknoppers">Peter Knoppers</a> 24 */ 25 public class SimpleTrafficLight extends AbstractTrafficLight 26 { 27 /** */ 28 private static final long serialVersionUID = 1L; 29 30 /** 31 * @param name the name or id of the traffic light 32 * @param lane The lane where the block has to be put 33 * @param position the position on the lane as a length 34 * @param simulator the simulator to avoid NullPointerExceptions 35 * @param network the network that the GTU is initially registered in 36 * @throws GTUException when GTU cannot be created. 37 * @throws NamingException if an error occurs when adding the animation handler 38 * @throws NetworkException when the GTU cannot be placed on the given lane 39 * @throws OTSGeometryException x 40 * @throws SimRuntimeException x 41 */ 42 public SimpleTrafficLight(String name, Lane lane, Rel position, OTSDEVSSimulatorInterface simulator, 43 OTSNetwork network) throws GTUException, NetworkException, NamingException, SimRuntimeException, 44 OTSGeometryException 45 { 46 super(name, lane, position, simulator, network); 47 setBlocked(false); 48 } 49 50 } 51