public class OldTrafficLight extends TrafficLight
Copyright (c) 2013-2015 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
TrafficLight.TrafficLightColor
Constructor and Description |
---|
OldTrafficLight(String id,
Lane lane,
org.djunits.value.vdouble.scalar.Length.Rel position,
org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator) |
createTrafficLight, getTrafficLightColor, setTrafficLightColor
createRectangleNextToCSE, createRectangleOnCSE
public OldTrafficLight(String id, Lane lane, org.djunits.value.vdouble.scalar.Length.Rel position, org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator) throws org.opentrafficsim.core.geometry.OTSGeometryException
id
- traffic light idlane
- lane where the traffic light is locatedposition
- position of the traffic light on the lane, in the design directionsimulator
- simulator on which to schedule color changesorg.opentrafficsim.core.geometry.OTSGeometryException
- on failure to place the objectCopyright © 2014–2016 Delft University of Technology. All rights reserved.