Class ContourPlotDelay
- All Implemented Interfaces:
Identifiable,org.jfree.data.general.Dataset,org.jfree.data.general.SeriesDataset,org.jfree.data.xy.XYDataset,org.jfree.data.xy.XYZDataset
A note on the unit "/km". This unit is derived by measuring the total delay over a cell in space-time, which gives an SI value in [s]. With varying granularity, the value needs to be normalized to space-time. Hence, the value is divided by the length of the cell [m], and divided by the duration of the cell [s]. This gives a unit of [s/s/m] = [1/m]. This means that a traffic state represented by a value of D/km, gives a total amount of delay equal to D * x * t, where x * t is the size of the cell, and the resulting value is in the same unit as t. So if D = 50/km, then measuring this state over 2km and during 3 hours gives 50 * 2 * 3 = 300h of delay.
Copyright (c) 2013-2026 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opentrafficsim.animation.graphs.AbstractContourPlot
AbstractContourPlot.Bounds<Z extends Number>, AbstractContourPlot.ContourPaintState, AbstractContourPlot.LabelData<Z extends Number> -
Field Summary
Fields inherited from class org.opentrafficsim.animation.graphs.AbstractPlot
DEFAULT_INITIAL_UPPER_TIME_BOUND, GRAPH_ADD_EVENT, GRAPH_REMOVE_EVENT -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.opentrafficsim.animation.graphs.AbstractContourPlot
addListener, calculatePaintState, emptyPaintState, getContourDataType, getDomainOrder, getEndLocation, getGranularities, getGranularity, getItemCount, getRangeBinCount, getSeriesCount, getSeriesKey, getStatusLabel, getX, getXValue, getY, getYValue, getZ, getZValue, indexOf, setGranularity, setInterpolate, setPaintState, setSmoothMethods inherited from class org.opentrafficsim.animation.graphs.AbstractSpaceTimePlot
setAutoBoundDomain, setAutoBoundRange, setChart, updateFixedDomainRangeMethods inherited from class org.opentrafficsim.animation.graphs.AbstractBoundedPlot
setLowerDomainBound, setLowerRangeBound, setUpperDomainBound, setUpperRangeBoundMethods inherited from class org.opentrafficsim.animation.graphs.AbstractPlot
addChangeListener, encodeAsPng, getAvailableTime, getCaption, getChart, getGroup, getId, getPaintState, invalidate, notifyPlotChange, offerPaintState, offerUpdateInterval, removeChangeListener, setGroup, updateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jfree.data.general.Dataset
addChangeListener, getGroup, removeChangeListener, setGroup
-
Constructor Details
-
ContourPlotDelay
Constructor. In case this plot is created live, the sampler of the sample data in the data source needs to have the extended data typeReferenceSpeed.INSTANCEregistered.- Parameters:
caption- captionsource- source pool
-
-
Method Details
-
getGraphType
Description copied from class:AbstractPlotReturn the graph type for transceiver.- Specified by:
getGraphTypein classAbstractPlot<AbstractContourPlot.ContourPaintState>- Returns:
- the graph type.
-
scale
protected double scale(double si) Description copied from class:AbstractContourPlotScale the z-value from SI to the desired unit for users, in line with unit inAbstractContourPlot.LabelData.labelFormat.- Specified by:
scalein classAbstractContourPlot<org.djunits.value.vdouble.scalar.Duration>- Parameters:
si- SI value- Returns:
- scaled value
-
toString
-