class FundamentalDiagram.FundamentalDiagramSensor extends 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.
$LastChangedDate: 2015-09-14 01:33:02 +0200 (Mon, 14 Sep 2015) $, @version $Revision: 1401 $, by $Author: averbraeck $,
initial version feb. 2015
listenersSENSOR_TRIGGER_EVENTFIRST_POSITION, LAST_POSITION| Constructor and Description |
|---|
FundamentalDiagramSensor(Lane lane,
org.djunits.value.vdouble.scalar.Length longitudinalPosition,
org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator)
Construct a FundamentalDiagramSensor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
toString() |
void |
triggerResponse(LaneBasedGTU gtu)
Implementation of the response to a trigger of this sensor by a 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 FundamentalDiagramSensor(Lane lane, org.djunits.value.vdouble.scalar.Length longitudinalPosition, org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator) throws org.opentrafficsim.core.network.NetworkException
lane - Lane; the Lane on which the new FundamentalDiagramSensor is to be addedlongitudinalPosition - Length; longitudinal position on the Lane of the new FundamentalDiagramSensorsimulator - simulator to allow animationorg.opentrafficsim.core.network.NetworkException - on network inconsistencypublic void triggerResponse(LaneBasedGTU gtu)
triggerResponse in class AbstractSensorgtu - LaneBasedGTU; the lane based GTU that triggered this sensor.public final String toString()
toString in class org.opentrafficsim.core.object.StaticObjectCopyright © 2014–2016 Delft University of Technology. All rights reserved.