public class SinkSensor extends AbstractSensor
Copyright (c) 2013-2017 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
GTUTYPE_SET_ALLDEFAULT_SENSOR_ELEVATION, SENSOR_TRIGGER_EVENT| Constructor and Description |
|---|
SinkSensor(Lane lane,
org.djunits.value.vdouble.scalar.Length position,
org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator) |
SinkSensor(String dummy1,
Lane lane,
org.djunits.value.vdouble.scalar.Length position,
org.opentrafficsim.core.gtu.RelativePosition.TYPE dummy2,
org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator) |
| Modifier and Type | Method and Description |
|---|---|
SinkSensor |
clone(CrossSectionElement newCSE,
org.opentrafficsim.core.dsol.OTSSimulatorInterface newSimulator,
boolean animation)
Clone the LaneBasedObject for e.g., copying a network.
|
String |
toString() |
void |
triggerResponse(LaneBasedGTU gtu)
Implementation of the response to a trigger of this sensor by a GTU.
|
compareTo, equals, getPositionType, getSimulator, getTriggeringGTUTypes, hashCode, triggerclone, getDirection, getFullId, getLane, getLocation, getLongitudinalPositiongetBounds, getGeometry, getHeight, getIdaddListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, removeAllListeners, removeAllListeners, removeListenerclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetBounds, getDirection, getLane, getLocation, getLongitudinalPositionpublic SinkSensor(Lane lane, org.djunits.value.vdouble.scalar.Length position, org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator) throws org.opentrafficsim.core.network.NetworkException
lane - the lane that triggers the deletion of the GTU.position - the position of the sensorsimulator - the simulator to enable animation.org.opentrafficsim.core.network.NetworkException - when the position on the lane is out of bounds w.r.t. the center line of the lanepublic SinkSensor(String dummy1, Lane lane, org.djunits.value.vdouble.scalar.Length position, org.opentrafficsim.core.gtu.RelativePosition.TYPE dummy2, org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator) throws org.opentrafficsim.core.network.NetworkException
dummy1 - dummylane - the lane that triggers the deletion of the GTU.position - the position of the sensordummy2 - dummysimulator - the simulator to enable animation.org.opentrafficsim.core.network.NetworkException - when the position on the lane is out of bounds w.r.t. the center line of the lanepublic final void triggerResponse(LaneBasedGTU gtu)
triggerResponse in class AbstractSensorgtu - LaneBasedGTU; the lane based GTU that triggered this sensor.public final String toString()
toString in class AbstractSensorpublic SinkSensor clone(CrossSectionElement newCSE, org.opentrafficsim.core.dsol.OTSSimulatorInterface newSimulator, boolean animation) throws org.opentrafficsim.core.network.NetworkException
clone in class AbstractSensornewCSE - CrossSectionElement; the new cross section element to which the clone belongsnewSimulator - OTSSimulatorInterface; the new simulator for this networkanimation - boolean; whether to (re)create animation or notorg.opentrafficsim.core.network.NetworkException - in case the cloning failsCopyright © 2014–2017 Delft University of Technology. All rights reserved.