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, 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
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) 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.AbstractSensor
public 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.AbstractSensor
org.opentrafficsim.core.network.NetworkException
Copyright © 2014–2018 Delft University of Technology. All rights reserved.