public class SensorLaneStart extends AbstractSensor
Copyright (c) 2013-2014 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights
reserved.
BSD-style license. See OpenTrafficSim License.
| Constructor and Description |
|---|
SensorLaneStart(Lane lane)
Place a sensor that is triggered with the front of the GTU at the start of the lane.
|
| Modifier and Type | Method and Description |
|---|---|
String |
toString() |
void |
trigger(LaneBasedGTU<?> gtu)
Trigger an action on the GTU.
|
compareTo, equals, getLane, getLongitudinalPosition, getLongitudinalPositionSI, getPositionType, hashCodepublic SensorLaneStart(Lane lane)
lane - The lane for which this is a sensor.public final void trigger(LaneBasedGTU<?> gtu) throws RemoteException
sensor.trigger(this);. gtu - the GTU for which to carry out the trigger action.RemoteException - on communications failureCopyright © 2014–2015 Delft University of Technology. All rights reserved.