public class ContourPlotDelay extends AbstractContourPlot<Duration>
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-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
DEFAULT_INITIAL_UPPER_TIME_BOUND, GRAPH_ADD_EVENT, GRAPH_REMOVE_EVENT| Constructor and Description |
|---|
ContourPlotDelay(String caption,
OTSSimulatorInterface simulator,
ContourDataSource<GtuData> dataPool)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected ContourDataSource.ContourDataType<Duration,Duration> |
getContourDataType()
Returns the contour data type for use in a
ContourDataSource. |
GraphType |
getGraphType()
Return the graph type for transceiver.
|
protected double |
getValue(int item,
double cellLength,
double cellSpan)
Obtain value for cell from the data pool.
|
protected double |
scale(double si)
Scale the value from SI to the desired unit for users.
|
actionPerformed, getBlockRenderer, getDataPool, getDomainOrder, getItemCount, getRangeBinCount, getSeriesCount, getSeriesKey, getSpaceGranularity, getStatusLabel, getTimeGranularity, getX, getXValue, getY, getYValue, getZ, getZValue, increaseTime, indexOf, setInterpolation, setSpaceGranularity, setTimeGranularitygetEndLocation, getPath, getSampler, getTrajectoriessetAutoBoundDomain, setAutoBoundRange, setChart, update, updateFixedDomainRangesetLowerDomainBound, setLowerRangeBound, setUpperDomainBound, setUpperRangeBoundaddChangeListener, encodeAsPng, getCaption, getChart, getGroup, getId, getSimulator, getUpdateTime, notifyPlotChange, removeChangeListener, setGroup, setUpdateIntervalclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddChangeListener, getGroup, removeChangeListener, setGrouppublic ContourPlotDelay(String caption, OTSSimulatorInterface simulator, ContourDataSource<GtuData> dataPool)
caption - String; captionsimulator - OTSSimulatorInterface; simulatordataPool - ContourDataSource<GtuData>; data poolpublic GraphType getGraphType()
getGraphType in class AbstractPlotprotected double scale(double si)
scale in class AbstractContourPlot<Duration>si - double; SI valueprotected double getValue(int item,
double cellLength,
double cellSpan)
getValue in class AbstractContourPlot<Duration>item - int; item numbercellLength - double; cell lengthcellSpan - double; cell durationprotected ContourDataSource.ContourDataType<Duration,Duration> getContourDataType()
ContourDataSource.getContourDataType in class AbstractContourPlot<Duration>Copyright © 2014–2019 Delft University of Technology. All rights reserved.