public class Controller extends Object implements Serializable
Copyright (c) 2013-2018 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 - the name of the OnOffTrafficLightsimulator - 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 - sequence2trafficLight - trafficLightCopyright © 2014–2018 Delft University of Technology. All rights reserved.