Package org.opentrafficsim.draw.graphs
Enum Class FundamentalDiagram.Quantity
java.lang.Object
java.lang.Enum<FundamentalDiagram.Quantity>
org.opentrafficsim.draw.graphs.FundamentalDiagram.Quantity
- All Implemented Interfaces:
- Serializable,- Comparable<FundamentalDiagram.Quantity>,- Constable
- Enclosing class:
- FundamentalDiagram
Quantity enum defining density, flow and speed.
 
 Copyright (c) 2013-2024 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 SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum Constants
- 
Method SummaryModifier and TypeMethodDescriptionabstract doublecomputeOther(FundamentalDiagram.Quantity pairing, double thisValue, double pairedValue) Compute the value of the 3rd quantity.abstract Stringformat(double value) Formats a value for status display.abstract doublegetValue(FundamentalDiagram.FdSource src, int series, int item) Get scaled value in presentation unit.abstract Stringlabel()Returns an axis label of the quantity.static FundamentalDiagram.QuantityReturns the enum constant of this class with the specified name.static FundamentalDiagram.Quantity[]values()Returns an array containing the constants of this enum class, in the order they are declared.
- 
Enum Constant Details- 
DENSITYDensity.
- 
FLOWFlow.
- 
SPEEDSpeed.
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
 
- 
valueOfReturns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum class has no constant with the specified name
- NullPointerException- if the argument is null
 
- 
labelReturns an axis label of the quantity.- Returns:
- axis label of the quantity
 
- 
formatFormats a value for status display.- Parameters:
- value- value
- Returns:
- formatted string including quantity
 
- 
getValueGet scaled value in presentation unit.- Parameters:
- src- the data source
- series- series number
- item- item number in series
- Returns:
- scaled value in presentation unit
 
- 
computeOtherpublic abstract double computeOther(FundamentalDiagram.Quantity pairing, double thisValue, double pairedValue) Compute the value of the 3rd quantity.- Parameters:
- pairing- quantity on other axis
- thisValue- value of this quantity
- pairedValue- value of the paired quantity on the other axis
- Returns:
- value of the 3rd quantity
 
 
-