public static enum FundamentalDiagram.Quantity extends Enum<FundamentalDiagram.Quantity>
 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.
 
| Enum Constant and Description | 
|---|
| DENSITYDensity. | 
| FLOWFlow. | 
| SPEEDSpeed. | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract double | computeOther(FundamentalDiagram.Quantity pairing,
            double thisValue,
            double pairedValue)Compute the value of the 3rd quantity. | 
| abstract String | format(double value)Formats a value for status display. | 
| abstract double | getValue(FundamentalDiagram.FdSource src,
        int series,
        int item)Get scaled value in presentation unit. | 
| abstract String | label()Returns an axis label of the quantity. | 
| static FundamentalDiagram.Quantity | valueOf(String name)Returns the enum constant of this type with the specified name. | 
| static FundamentalDiagram.Quantity[] | values()Returns an array containing the constants of this enum type, in
the order they are declared. | 
public static final FundamentalDiagram.Quantity DENSITY
public static final FundamentalDiagram.Quantity FLOW
public static final FundamentalDiagram.Quantity SPEED
public static FundamentalDiagram.Quantity[] values()
for (FundamentalDiagram.Quantity c : FundamentalDiagram.Quantity.values()) System.out.println(c);
public static FundamentalDiagram.Quantity valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic abstract String label()
public abstract String format(double value)
value - double; valuepublic abstract double getValue(FundamentalDiagram.FdSource src, int series, int item)
src - FdSource; the data sourceseries - int; series numberitem - int; item number in seriespublic abstract double computeOther(FundamentalDiagram.Quantity pairing, double thisValue, double pairedValue)
pairing - Quantity; quantity on other axisthisValue - double; value of this quantitypairedValue - double; value of the paired quantity on the other axisCopyright © 2014–2019 Delft University of Technology. All rights reserved.