public static class ModelControlDemo.CircularRoadIMB.SimpleSilentSensor
extends org.opentrafficsim.road.network.lane.object.sensor.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.
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 |
---|---|
org.opentrafficsim.road.network.lane.object.sensor.AbstractSensor |
clone(org.opentrafficsim.road.network.lane.CrossSectionElement newCSE,
org.opentrafficsim.core.dsol.OTSSimulatorInterface newSimulator,
boolean animation) |
String |
toString() |
void |
triggerResponse(org.opentrafficsim.road.gtu.lane.LaneBasedGTU gtu) |
compareTo, equals, getId, getPositionType, getSimulator, hashCode, trigger
clone, getLane, getLongitudinalPosition
getBounds, getGeometry, getHeight, getLocation
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 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.object.sensor.AbstractSensor
public final String toString()
toString
in class org.opentrafficsim.core.object.StaticObject
public org.opentrafficsim.road.network.lane.object.sensor.AbstractSensor clone(org.opentrafficsim.road.network.lane.CrossSectionElement newCSE, org.opentrafficsim.core.dsol.OTSSimulatorInterface 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–2016 Delft University of Technology. All rights reserved.