public class TrafficLightSensor extends Object
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 |
|---|
TrafficLightSensor(String id,
Lane lane,
org.djunits.value.vdouble.scalar.Length position,
org.djunits.value.vdouble.scalar.Length length,
org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator) |
| Modifier and Type | Method and Description |
|---|---|
TrafficLightSensor |
clone(CrossSectionElement newCSE,
org.opentrafficsim.core.dsol.OTSSimulatorInterface newSimulator,
boolean animation)
Clone the TrafficLightSensor for e.g., copying a network.
|
String |
toString() |
public TrafficLightSensor(String id, Lane lane, org.djunits.value.vdouble.scalar.Length position, org.djunits.value.vdouble.scalar.Length length, org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator) throws org.opentrafficsim.core.network.NetworkException
id - String; id of this sensorlane - Lane; the lane of this sensorposition - Length; the position where the front of LaneBasedGTUs is detected by this sensorlength - Length; the distance after position where the rear of LaneBasedGTUs is detected by this sensorsimulator - OTSDEVSSimulatorInterface; the simulatororg.opentrafficsim.core.network.NetworkException - when the network is inconsistent.public TrafficLightSensor clone(CrossSectionElement newCSE, org.opentrafficsim.core.dsol.OTSSimulatorInterface newSimulator, boolean animation) throws org.opentrafficsim.core.network.NetworkException
newCSE - the new cross section element to which the clone belongsnewSimulator - the new simulator for this networkanimation - whether to (re)create animation or notorg.opentrafficsim.core.network.NetworkException - in case the cloning failsCopyright © 2014–2016 Delft University of Technology. All rights reserved.