class TriggerSensor extends AbstractSensor
GTUTYPE_SET_ALLDEFAULT_SENSOR_ELEVATION, SENSOR_TRIGGER_EVENT| Constructor and Description |
|---|
TriggerSensor(Lane lane,
org.djunits.value.vdouble.scalar.Length longitudinalPosition,
org.opentrafficsim.core.gtu.RelativePosition.TYPE positionType,
String name,
org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator) |
| Modifier and Type | Method and Description |
|---|---|
AbstractSensor |
clone(CrossSectionElement newCSE,
org.opentrafficsim.core.dsol.OTSSimulatorInterface newSimulator,
boolean animation) |
void |
triggerResponse(LaneBasedGTU gtu) |
compareTo, equals, getPositionType, getSimulator, getTriggeringGTUTypes, hashCode, triggerclone, getLane, getLocation, getLongitudinalPositiongetBounds, getGeometry, getHeight, getId, toStringaddListener, 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, getLane, getLocation, getLongitudinalPositionpublic TriggerSensor(Lane lane, org.djunits.value.vdouble.scalar.Length longitudinalPosition, org.opentrafficsim.core.gtu.RelativePosition.TYPE positionType, String name, org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator) throws org.opentrafficsim.core.network.NetworkException
lane - lane of the sensorlongitudinalPosition - position of the sensor on the lanepositionType - trigger position of the GTUname - name of the sensorsimulator - the simulatororg.opentrafficsim.core.network.NetworkException - in case position is out of boundspublic void triggerResponse(LaneBasedGTU gtu)
triggerResponse in class AbstractSensorpublic AbstractSensor clone(CrossSectionElement newCSE, org.opentrafficsim.core.dsol.OTSSimulatorInterface newSimulator, boolean animation) throws org.opentrafficsim.core.network.NetworkException
clone in class AbstractSensororg.opentrafficsim.core.network.NetworkExceptionCopyright © 2014–2016 Delft University of Technology. All rights reserved.