public class Controller extends Object implements Serializable
Copyright (c) 2013-2019 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,
DEVSSimulatorInterface.TimeDoubleUnit simulator) |
Modifier and Type | Method and Description |
---|---|
void |
addTrafficLight(int sequence2,
SimpleTrafficLight trafficLight) |
String |
toString() |
protected void |
unBlock() |
public Controller(String name, DEVSSimulatorInterface.TimeDoubleUnit simulator) throws GTUException, NetworkException, NamingException
name
- String; the name of the OnOffTrafficLightsimulator
- DEVSSimulatorInterface.TimeDoubleUnit; the simulator to avoid NullPointerExceptionsGTUException
- when GTU cannot be created.NamingException
- if an error occurs when adding the animation handlerNetworkException
- when the GTU cannot be placed on the given laneprotected void unBlock()
public void addTrafficLight(int sequence2, SimpleTrafficLight trafficLight)
sequence2
- int; sequence2trafficLight
- SimpleTrafficLight; trafficLightCopyright © 2014–2019 Delft University of Technology. All rights reserved.