public class SinkSensor extends AbstractSensor
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.
$LastChangedDate: 2015-08-12 16:37:45 +0200 (Wed, 12 Aug 2015) $, @version $Revision: 1240 $, by $Author: averbraeck $,
initial version an 30, 2015
Constructor and Description |
---|
SinkSensor(Lane lane,
org.djunits.value.vdouble.scalar.Length.Rel position,
org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator) |
Modifier and Type | Method and Description |
---|---|
String |
toString() |
void |
trigger(LaneBasedGTU gtu)
Trigger an action on the GTU.
|
compareTo, equals, getBounds, getLane, getLocation, getLongitudinalPosition, getLongitudinalPositionSI, getName, getPositionType, getSimulator, hashCode
public SinkSensor(Lane lane, org.djunits.value.vdouble.scalar.Length.Rel position, org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator)
lane
- the lane that triggers the deletion of the GTU.position
- the position of the sensorsimulator
- the simulator to enable animation.public void trigger(LaneBasedGTU gtu)
sensor.trigger(this);
.gtu
- the GTU for which to carry out the trigger action.Copyright © 2014–2015 Delft University of Technology. All rights reserved.