class TriggerSensor extends AbstractSensor
GTUTYPE_SET_ALL
DEFAULT_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, toString, trigger
clone, getDirection, getFullId, getLane, getLocation, getLongitudinalPosition
getBounds, getGeometry, getHeight, getId
addListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, removeAllListeners, removeAllListeners, removeListener
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getBounds, getDirection, getLane, getLocation, getLongitudinalPosition
public 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 AbstractSensor
public AbstractSensor clone(CrossSectionElement newCSE, org.opentrafficsim.core.dsol.OTSSimulatorInterface newSimulator, boolean animation) throws org.opentrafficsim.core.network.NetworkException
clone
in class AbstractSensor
org.opentrafficsim.core.network.NetworkException
Copyright © 2014–2017 Delft University of Technology. All rights reserved.