class FlankSensor extends AbstractSensor
SENSOR_TRIGGER_EVENT| Constructor and Description |
|---|
FlankSensor(String id,
Lane lane,
org.djunits.value.vdouble.scalar.Length position,
org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator,
boolean up,
Set<LaneBasedGTU> currentGTUs)
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.
|
String |
toString() |
protected void |
triggerResponse(LaneBasedGTU gtu)
Implementation of the response to a trigger of this sensor by a GTU.
|
compareTo, equals, getId, getPositionType, getSimulator, hashCode, triggerclone, getLane, 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, getLocation, getLongitudinalPositionFlankSensor(String id, Lane lane, org.djunits.value.vdouble.scalar.Length position, org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator, boolean up, Set<LaneBasedGTU> currentGTUs) throws org.opentrafficsim.core.network.NetworkException
id - String; name of the sensorlane - Lane; lane on which the sensor is positionedposition - Length; position from the start of the lanesimulator - OTSDEVSSimulatorInterface; the simulatorup - boolean; if true; this sensor will sense the front of GTUs, if false; this sensor will sens the rear of GTUscurrentGTUs - Set<LaneBasedGTU>; Set where the current set of GTUs covering the sensor is administratedorg.opentrafficsim.core.network.NetworkException - if 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 - the new cross section element to which the clone belongsnewSimulator - the new simulator for this networkanimation - whether to (re)create animation or notorg.opentrafficsim.core.network.NetworkException - in case the cloning failspublic String toString()
toString in class org.opentrafficsim.core.object.StaticObjectCopyright © 2014–2016 Delft University of Technology. All rights reserved.