public interface SingleSensor extends Sensor, Comparable<SingleSensor>, LaneBasedObject
Copyright (c) 2013-2016 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
$LastChangedDate: 2015-09-14 01:33:02 +0200 (Mon, 14 Sep 2015) $, @version $Revision: 1401 $, by $Author: averbraeck $,
initial version Dec 31, 2014
| Modifier and Type | Field and Description |
|---|---|
static org.djunits.value.vdouble.scalar.Length |
DEFAULT_SENSOR_ELEVATION
Default elevation of a sensor; if the lane is not at elevation 0; this value is probably far off.
|
static nl.tudelft.simulation.event.EventType |
SENSOR_TRIGGER_EVENT
The timed event type for pub/sub indicating the triggering of a Sensor on a lane.
|
| Modifier and Type | Method and Description |
|---|---|
org.opentrafficsim.core.gtu.RelativePosition.TYPE |
getPositionType() |
org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface |
getSimulator() |
ImmutableSet<org.opentrafficsim.core.gtu.GTUType> |
getTriggeringGTUTypes()
Return which GTU types will trigger this particular sensor.
|
void |
trigger(LaneBasedGTU gtu)
Trigger an action on the GTU.
|
compareTogetBounds, getDirection, getLane, getLocation, getLongitudinalPosition, makeGeometrystatic final nl.tudelft.simulation.event.EventType SENSOR_TRIGGER_EVENT
static final org.djunits.value.vdouble.scalar.Length DEFAULT_SENSOR_ELEVATION
org.opentrafficsim.core.gtu.RelativePosition.TYPE getPositionType()
void trigger(LaneBasedGTU gtu)
sensor.trigger(this);.gtu - the GTU for which to carry out the trigger action.org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface getSimulator()
ImmutableSet<org.opentrafficsim.core.gtu.GTUType> getTriggeringGTUTypes()
Copyright © 2014–2016 Delft University of Technology. All rights reserved.