class FlankSensor extends AbstractSensor
DEFAULT_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,
nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface.TimeDoubleUnit simulator,
TrafficLightSensor parent,
org.opentrafficsim.core.compatibility.Compatible compatible)
Construct a new FlankSensor.
|
| Modifier and Type | Method and Description |
|---|---|
FlankSensor |
clone(CrossSectionElement newCSE,
nl.tudelft.simulation.dsol.simulators.SimulatorInterface.TimeDoubleUnit newSimulator,
boolean animation)
Clone the LaneBasedObject for e.g., copying a network.
|
String |
toString() |
protected void |
triggerResponse(LaneBasedGTU gtu)
Implementation of the response to a trigger of this sensor by a GTU.
|
compareTo, equals, getDetectedGTUTypes, getPositionType, getSimulator, hashCode, isCompatible, triggerclone, getDirection, getFullId, getLane, getLocation, getLongitudinalPositiongetBounds, getGeometry, getHeight, getIdaddListener, 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, nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface.TimeDoubleUnit simulator, TrafficLightSensor parent, org.opentrafficsim.core.compatibility.Compatible compatible) 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 - DEVSSimulatorInterface.TimeDoubleUnit; the simulator engineparent - TrafficLightSensor; the traffic light sensor that deploys this FlankSensorcompatible - Compatible; object that determines if a GTU is detectable by the new 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, nl.tudelft.simulation.dsol.simulators.SimulatorInterface.TimeDoubleUnit newSimulator, boolean animation) throws org.opentrafficsim.core.network.NetworkException
clone in class AbstractSensornewCSE - CrossSectionElement; the new cross section element to which the clone belongsnewSimulator - SimulatorInterface.TimeDoubleUnit; the new simulator for this networkanimation - boolean; whether to (re)create animation or notorg.opentrafficsim.core.network.NetworkException - in case the cloning failspublic final String toString()
toString in class AbstractSensorCopyright © 2014–2018 Delft University of Technology. All rights reserved.