class TriggerSensor extends AbstractSensor
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, getId, getPositionType, getSimulator, hashCode, trigger
clone, getLane, getLongitudinalPosition
getBounds, getGeometry, getHeight, getLocation, toString
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, 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
- longitudinalPosition
- positionType
- name
- simulator
- org.opentrafficsim.core.network.NetworkException
public 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–2016 Delft University of Technology. All rights reserved.