class TriggerSensor
extends org.opentrafficsim.road.network.lane.object.sensor.AbstractSensor
DEFAULT_SENSOR_ELEVATION, SENSOR_TRIGGER_EVENT| Constructor and Description |
|---|
TriggerSensor(org.opentrafficsim.road.network.lane.Lane lane,
org.djunits.value.vdouble.scalar.Length longitudinalPosition,
org.opentrafficsim.core.gtu.RelativePosition.TYPE positionType,
String name,
nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface.TimeDoubleUnit simulator) |
| Modifier and Type | Method and Description |
|---|---|
org.opentrafficsim.road.network.lane.object.sensor.AbstractSensor |
clone(org.opentrafficsim.road.network.lane.CrossSectionElement newCSE,
nl.tudelft.simulation.dsol.simulators.SimulatorInterface.TimeDoubleUnit newSimulator,
boolean animation) |
void |
triggerResponse(org.opentrafficsim.road.gtu.lane.LaneBasedGTU gtu) |
compareTo, equals, getDetectedGTUTypes, getPositionType, getSimulator, hashCode, isCompatible, toString, 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, getLongitudinalPositionTriggerSensor(org.opentrafficsim.road.network.lane.Lane lane,
org.djunits.value.vdouble.scalar.Length longitudinalPosition,
org.opentrafficsim.core.gtu.RelativePosition.TYPE positionType,
String name,
nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface.TimeDoubleUnit 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(org.opentrafficsim.road.gtu.lane.LaneBasedGTU gtu)
triggerResponse in class org.opentrafficsim.road.network.lane.object.sensor.AbstractSensorpublic org.opentrafficsim.road.network.lane.object.sensor.AbstractSensor clone(org.opentrafficsim.road.network.lane.CrossSectionElement newCSE,
nl.tudelft.simulation.dsol.simulators.SimulatorInterface.TimeDoubleUnit newSimulator,
boolean animation)
throws org.opentrafficsim.core.network.NetworkException
clone in class org.opentrafficsim.road.network.lane.object.sensor.AbstractSensororg.opentrafficsim.core.network.NetworkExceptionCopyright © 2014–2018 Delft University of Technology. All rights reserved.