public enum SpeedUnits extends java.lang.Enum<SpeedUnits> implements IUnits<SpeedUnits>
Enum Constant and Description |
---|
FPM
Feet per minute
|
FPS
Feet per second
|
KN
Knots
|
KPH
Kilometers per hour
|
MPH
Miles per hour
|
MPS
Meters per second
|
ALL_UNIT_TYPES
Modifier and Type | Method and Description |
---|---|
double |
convertTo(double value,
SpeedUnits units)
Converts the given value from this units to the given
units |
LengthUnits |
getLengthUnits() |
java.lang.String |
getName()
Returns human-readable name (e.g.
|
TimeUnits |
getTimeUnits() |
double |
modifier(SpeedUnits units) |
static SpeedUnits |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SpeedUnits[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SpeedUnits MPS
public static final SpeedUnits KPH
public static final SpeedUnits FPS
public static final SpeedUnits FPM
public static final SpeedUnits MPH
public static final SpeedUnits KN
public static SpeedUnits[] values()
for (SpeedUnits c : SpeedUnits.values()) System.out.println(c);
public static SpeedUnits 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 LengthUnits getLengthUnits()
public TimeUnits getTimeUnits()
public java.lang.String getName()
IUnits
getName
in interface IUnits<SpeedUnits>
public double modifier(SpeedUnits units)
modifier
in interface IUnits<SpeedUnits>
public double convertTo(double value, SpeedUnits units)
IUnits
units
convertTo
in interface IUnits<SpeedUnits>
value
- the value, measured in this unitsunits
- units to convert the value tounits
Copyright © AnyLogic North America, LLC. All Rights Reserved.