public class Controller extends Object implements Serializable
Copyright (c) 2013-2016 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Constructor and Description |
---|
Controller(String name,
org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator) |
Modifier and Type | Method and Description |
---|---|
void |
addTrafficLight(int sequence2,
org.opentrafficsim.road.network.lane.object.trafficlight.SimpleTrafficLight trafficLight) |
String |
toString() |
protected void |
unBlock() |
public Controller(String name, org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator) throws org.opentrafficsim.core.gtu.GTUException, org.opentrafficsim.core.network.NetworkException, NamingException
name
- the name of the OnOffTrafficLightsimulator
- the simulator to avoid NullPointerExceptionsorg.opentrafficsim.core.gtu.GTUException
- when GTU cannot be created.NamingException
- if an error occurs when adding the animation handlerorg.opentrafficsim.core.network.NetworkException
- when the GTU cannot be placed on the given laneCopyright © 2014–2016 Delft University of Technology. All rights reserved.