public static class RoadSimulationModelIMB.SimpleSilentSensor
extends org.opentrafficsim.road.network.lane.AbstractSensor
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.
listenersFIRST_POSITION, LAST_POSITION| Constructor and Description |
|---|
SimpleSilentSensor(String id,
org.opentrafficsim.road.network.lane.Lane lane,
org.djunits.value.vdouble.scalar.Length position,
org.opentrafficsim.core.gtu.RelativePosition.TYPE triggerPosition,
org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator) |
| Modifier and Type | Method and Description |
|---|---|
String |
toString() |
void |
triggerResponse(org.opentrafficsim.road.gtu.lane.LaneBasedGTU gtu) |
compareTo, equals, getId, getPositionType, getSimulator, hashCode, triggergetLane, getLength, getLongitudinalPositiongetBounds, getGeometry, getHeight, getLocationaddListener, 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, getLane, getLength, getLocation, getLongitudinalPositiongetGeometry, getHeightaddListener, addListener, addListener, addListener, removeListenerpublic SimpleSilentSensor(String id, org.opentrafficsim.road.network.lane.Lane lane, org.djunits.value.vdouble.scalar.Length position, org.opentrafficsim.core.gtu.RelativePosition.TYPE triggerPosition, org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator) throws org.opentrafficsim.core.network.NetworkException, org.opentrafficsim.core.geometry.OTSGeometryException
lane - the lane of the sensor.position - the position of the sensortriggerPosition - RelativePosition.TYPE; the relative position type (e.g., FRONT, REAR) of the vehicle that
triggers the sensor.id - the id of the sensor.simulator - the simulator to enable animation.org.opentrafficsim.core.network.NetworkException - when the position on the lane is out of bounds w.r.t. the center line of the laneorg.opentrafficsim.core.geometry.OTSGeometryException - when the geometry of the sensor cannot be calculated, e.g. when the lane width is zero,
or the position is beyond or before the lane lengthpublic final void triggerResponse(org.opentrafficsim.road.gtu.lane.LaneBasedGTU gtu)
triggerResponse in class org.opentrafficsim.road.network.lane.AbstractSensorpublic final String toString()
toString in class org.opentrafficsim.core.object.StaticObjectCopyright © 2014–2016 Delft University of Technology. All rights reserved.