class FundamentalDiagram.FundamentalDiagramSensor extends AbstractSensor
 Copyright (c) 2013-2018 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 
DEFAULT_SENSOR_ELEVATION, SENSOR_TRIGGER_EVENT| Constructor and Description | 
|---|
FundamentalDiagramSensor(Lane lane,
                        org.djunits.value.vdouble.scalar.Length longitudinalPosition,
                        org.opentrafficsim.core.compatibility.Compatible detectedGTUTypes,
                        nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface.TimeDoubleUnit simulator)
Construct a FundamentalDiagramSensor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
FundamentalDiagram.FundamentalDiagramSensor | 
clone(CrossSectionElement newCSE,
     nl.tudelft.simulation.dsol.simulators.SimulatorInterface.TimeDoubleUnit newSimulator,
     boolean animation)
Clone the LaneBasedObject for e.g., copying a network. 
 | 
String | 
toString() | 
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, getLongitudinalPositionFundamentalDiagramSensor(Lane lane, org.djunits.value.vdouble.scalar.Length longitudinalPosition, org.opentrafficsim.core.compatibility.Compatible detectedGTUTypes, nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface.TimeDoubleUnit 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 FundamentalDiagramSensordetectedGTUTypes - Compatible; the GTU types that the new FundamentalDiagramSensor will registersimulator - 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 AbstractSensorpublic FundamentalDiagram.FundamentalDiagramSensor 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 failsCopyright © 2014–2018 Delft University of Technology. All rights reserved.