Package org.ka2ddo.aprs
Enum Class HurricaneEnum
- All Implemented Interfaces:
Serializable
,Comparable<HurricaneEnum>
,Constable
,EnumWithImageName
,EnumWithUnits
Symbolic codes for different types of hurricane/tropical storm information. The letter codes correspond to the
hurricane comments in APRS position reports, as defined in the APRS protocol specification, chapter 12.
- Author:
- Andrew Pavlin, KA2DDO
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Values allowed for type of storm in a hurricane position report.Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionPeak gust speed of wind in storm in knots (nm/hr).Barometric pressure at center of storm in hectoPascals (millibars).Radius of gale-force winds in nautical miles.Radius of hurricane winds in nautical miles.Radius of tropical-storm-level winds in nautical miles.Type of severe storm.Sustained windspeed of storm in knots (nm/hr). -
Field Summary
Modifier and TypeFieldDescriptionfinal int
Number of characters for parameter identified by this enum. -
Method Summary
Modifier and TypeMethodDescriptionstatic HurricaneEnum
getEnumForLetter
(char ch) Get the enumeration associated with the hurricane message letter code.Return the relative path name of the image file for this enum value.Enum<?>
getUnit()
Get the unit (if any) for values for this WeatherEnum,float
Get the scaling factor to apply to the unit for values for this WeatherEnum.boolean
Indicate whether values and units should be interpreted as a rate over an appropriate time unit rather than a fixed quantity.static HurricaneEnum[]
Returns a single copy of the list of WeatherEnums.static HurricaneEnum
Returns the enum constant of this class with the specified name.static HurricaneEnum[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STORM_TYPE
Type of severe storm.- See Also:
-
SUSTAINED_WIND
Sustained windspeed of storm in knots (nm/hr).- See Also:
-
GUST
Peak gust speed of wind in storm in knots (nm/hr).- See Also:
-
PRESSURE
Barometric pressure at center of storm in hectoPascals (millibars).- See Also:
-
RADIUS_HURRICANE
Radius of hurricane winds in nautical miles.- See Also:
-
RADIUS_TROP_STORM
Radius of tropical-storm-level winds in nautical miles.- See Also:
-
RADIUS_GALE
Radius of gale-force winds in nautical miles.- See Also:
-
-
Field Details
-
paramLen
public final int paramLenNumber of characters for parameter identified by this enum.
-
-
Method Details
-
values
Returns 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
-
valueOf
Returns 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 nameNullPointerException
- if the argument is null
-
getImagePath
Return the relative path name of the image file for this enum value.- Specified by:
getImagePath
in interfaceEnumWithImageName
- Returns:
- path name String, or a two-character APRS symbol table ID and code
-
getEnumForLetter
Get the enumeration associated with the hurricane message letter code.- Parameters:
ch
- letter to match against the known enums- Returns:
- HurricaneEnum corresponding to the letter, or null if not matching any known hurricane parameter
-
getUnit
Get the unit (if any) for values for this WeatherEnum,- Specified by:
getUnit
in interfaceEnumWithUnits
- Returns:
- unit Enum, or null if no unit known
-
isUnitARate
public boolean isUnitARate()Indicate whether values and units should be interpreted as a rate over an appropriate time unit rather than a fixed quantity.- Specified by:
isUnitARate
in interfaceEnumWithUnits
- Returns:
- boolean true if unit is a rate rather than a scalar
-
getUnitScaling
public float getUnitScaling()Get the scaling factor to apply to the unit for values for this WeatherEnum.- Returns:
- float scale factor to apply to unit for displaying value, or Float.NaN if no unit
-
nonClonedValues
Returns a single copy of the list of WeatherEnums. Callers should ensure they do not modify the returned array, as this could have unpredictable consequences to other users of the array.- Returns:
- array of defined WeatherEnum values in enumerated order
-