public enum HurricaneEnum extends java.lang.Enum<HurricaneEnum> implements EnumWithImageName, EnumWithUnits
PositionReport
Modifier and Type | Class and Description |
---|---|
static class |
HurricaneEnum.StormType
Values allowed for type of storm in a hurricane position report.
|
Enum Constant and Description |
---|
GUST
Peak gust speed of wind in storm in knots (nm/hr).
|
PRESSURE
Barometric pressure at center of storm in hectoPascals (millibars).
|
RADIUS_GALE
Radius of gale-force winds in nautical miles.
|
RADIUS_HURRICANE
Radius of hurricane winds in nautical miles.
|
RADIUS_TROP_STORM
Radius of tropical-storm-level winds in nautical miles.
|
STORM_TYPE
Type of severe storm.
|
SUSTAINED_WIND
Sustained windspeed of storm in knots (nm/hr).
|
Modifier and Type | Field and Description |
---|---|
int |
paramLen
Number of characters for parameter identified by this enum.
|
Modifier and Type | Method and Description |
---|---|
static HurricaneEnum |
getEnumForLetter(char ch)
Get the enumeration associated with the hurricane message letter code.
|
java.lang.String |
getImagePath()
Return the relative path name of the image file for this enum value.
|
java.lang.Enum<?> |
getUnit()
Get the unit (if any) for values for this WeatherEnum,
|
float |
getUnitScaling()
Get the scaling factor to apply to the unit for values for this WeatherEnum.
|
boolean |
isUnitARate()
Indicate whether values and units should be interpreted as a rate over an appropriate time unit
rather than a fixed quantity.
|
static HurricaneEnum[] |
nonClonedValues()
Returns a single copy of the list of WeatherEnums.
|
static HurricaneEnum |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HurricaneEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HurricaneEnum STORM_TYPE
HurricaneEnum.StormType
public static final HurricaneEnum SUSTAINED_WIND
DistanceUnit.NM
public static final HurricaneEnum GUST
DistanceUnit.NM
public static final HurricaneEnum PRESSURE
PressureUnit.HPa
public static final HurricaneEnum RADIUS_HURRICANE
DistanceUnit.NM
public static final HurricaneEnum RADIUS_TROP_STORM
DistanceUnit.NM
public static final HurricaneEnum RADIUS_GALE
DistanceUnit.NM
public final int paramLen
public static HurricaneEnum[] values()
for (HurricaneEnum c : HurricaneEnum.values()) System.out.println(c);
public static HurricaneEnum 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 java.lang.String getImagePath()
getImagePath
in interface EnumWithImageName
public static HurricaneEnum getEnumForLetter(char ch)
ch
- letter to match against the known enumspublic java.lang.Enum<?> getUnit()
getUnit
in interface EnumWithUnits
public boolean isUnitARate()
isUnitARate
in interface EnumWithUnits
public float getUnitScaling()
public static HurricaneEnum[] nonClonedValues()