class FlankSensor extends AbstractSensor
GTUTYPE_SET_ALLDEFAULT_SENSOR_ELEVATION, SENSOR_TRIGGER_EVENT| Constructor and Description |
|---|
FlankSensor(String id,
Lane lane,
org.djunits.value.vdouble.scalar.Length longitudinalPosition,
org.opentrafficsim.core.gtu.RelativePosition.TYPE positionType,
org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator,
TrafficLightSensor parent)
Construct a new FlankSensor.
|
| Modifier and Type | Method and Description |
|---|---|
FlankSensor |
clone(CrossSectionElement newCSE,
org.opentrafficsim.core.dsol.OTSSimulatorInterface newSimulator,
boolean animation)
Clone the LaneBasedObject for e.g., copying a network.
|
protected void |
triggerResponse(LaneBasedGTU gtu)
Implementation of the response to a trigger of this sensor by a GTU.
|
compareTo, equals, getPositionType, getSimulator, getTriggeringGTUTypes, hashCode, triggerclone, getDirection, getLane, getLocation, getLongitudinalPositiongetBounds, getGeometry, getHeight, getId, toStringaddListener, 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, getLongitudinalPositionFlankSensor(String id, Lane lane, org.djunits.value.vdouble.scalar.Length longitudinalPosition, org.opentrafficsim.core.gtu.RelativePosition.TYPE positionType, org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator, TrafficLightSensor parent) throws org.opentrafficsim.core.network.NetworkException
id - String; the name of the new FlankSensorlane - Lane; the lane of the new FlankSensorlongitudinalPosition - Length; the longitudinal position of the new FlankSensorpositionType - TYPE; the position on the GTUs that triggers the new FlankSensorsimulator - OTSDEVSSimulatorInterface; the simulator engineparent - TrafficLightSensor; the traffic light sensor that deploys this FlankSensororg.opentrafficsim.core.network.NetworkException - when the network is inconsistentprotected void triggerResponse(LaneBasedGTU gtu)
triggerResponse in class AbstractSensorgtu - LaneBasedGTU; the lane based GTU that triggered this sensor.public FlankSensor clone(CrossSectionElement newCSE, org.opentrafficsim.core.dsol.OTSSimulatorInterface newSimulator, boolean animation) throws org.opentrafficsim.core.network.NetworkException
clone in class AbstractSensornewCSE - CrossSectionElement; the new cross section element to which the clone belongsnewSimulator - OTSSimulatorInterface; the new simulator for this networkanimation - boolean; whether to (re)create animation or notorg.opentrafficsim.core.network.NetworkException - in case the cloning failsCopyright © 2014–2016 Delft University of Technology. All rights reserved.