public enum FlowRateUnits extends java.lang.Enum<FlowRateUnits> implements IUnits<FlowRateUnits>
Enum Constant and Description |
---|
CUBIC_METER_PER_SECOND
Cubic meter per second
|
KILOGRAM_PER_SECOND
Kilogram per second
|
LITER_PER_SECOND
Liter per second
|
OIL_BARREL_PER_SECOND
Oil barrel per second
|
TON_PER_SECOND
Ton per second
|
ALL_UNIT_TYPES
Modifier and Type | Method and Description |
---|---|
double |
convertTo(double value,
FlowRateUnits units)
Converts the given value from this units to the given
units |
AmountType |
getAmountType() |
AmountUnits |
getAmountUnits() |
java.lang.String |
getName()
Returns human-readable name (e.g.
|
TimeUnits |
getTimeUnits() |
double |
modifier(FlowRateUnits units) |
static FlowRateUnits |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FlowRateUnits[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FlowRateUnits LITER_PER_SECOND
public static final FlowRateUnits OIL_BARREL_PER_SECOND
public static final FlowRateUnits CUBIC_METER_PER_SECOND
public static final FlowRateUnits KILOGRAM_PER_SECOND
public static final FlowRateUnits TON_PER_SECOND
public static FlowRateUnits[] values()
for (FlowRateUnits c : FlowRateUnits.values()) System.out.println(c);
public static FlowRateUnits valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic AmountUnits getAmountUnits()
public AmountType getAmountType()
public TimeUnits getTimeUnits()
public java.lang.String getName()
IUnits
getName
in interface IUnits<FlowRateUnits>
public double modifier(FlowRateUnits units)
modifier
in interface IUnits<FlowRateUnits>
public double convertTo(double value, FlowRateUnits units)
IUnits
units
convertTo
in interface IUnits<FlowRateUnits>
value
- the value, measured in this unitsunits
- units to convert the value tounits
Copyright © AnyLogic North America, LLC. All Rights Reserved.