public enum WeatherEnum extends java.lang.Enum<WeatherEnum> implements EnumWithImageName, EnumWithUnits
PositionReport
,
PositionlessWeatherReport
Enum Constant and Description |
---|
APRS_SA_STATION
Indicates APRS+SA station sent the weather report.
|
APRSDOS_STATION
Indicates APRSdos station sent the weather report.
|
COURSE
The wind direction (or travel direction for non-weather-stations) in degrees from True North.
|
DATE_TIME
The date and time of a PositionlessWeatherReport.
|
FLOOD_LEVEL
Flood level in tenths of inches above nominal.
|
GUST
Wind peak gust speed in statute miles per hour in the last 5 minutes.
|
HUMIDITY
Relative humidity in percent.
|
LAST_MINUTE_OF_RAIN_DAY |
LAST_RAIN_OF_DAY |
LUMINOSITY
Light intensity in watts per square meter.
|
MACAPRS_STATION
Indicates MacAPRS station sent the weather report.
|
PRESSURE_0_1MBAR
Barometric pressure in tenths of millibars (hecto-Pascals).
|
RADIATION
Radiation level using resistor-code formatting (2 digits of precision plus 10s power exponent)
of radiation intensity in nanosieverts per hour.
|
RAIN_HISTORY
Internal use only: rain history data structure to infer 24 hours from midnight or vice versa.
|
RAIN_LAST24HR
Rain in the last 24 hours in hundredths of an inch.
|
RAIN_LASTHOUR
Rain in the last hour in hundredths of an inch.
|
RAIN_SINCE_MIDNIGHT
Rain since local midnight in hundredths of an inch.
|
SNOWFALL
Snowfall in the last 24 hours in inches.
|
SPEED
The wind speed in statute miles per hour (or travel speed for non-weather-stations).
|
TEMP
The current temperature in degrees Fahrenheit.
|
VOLTAGE
Power voltage in volts.
|
WINAPRS_STATION
Indicates that WinAPRS station sent the weather report.
|
Modifier and Type | Field and Description |
---|---|
int |
paramLen
Number of characters for parameter identified by this enum.
|
Modifier and Type | Method and Description |
---|---|
float |
decodeValue(int encodedValue)
Convert a numeric value from APRS encoding format to actual numeric value.
|
int |
encodeValue(float rawValue)
Convert a raw numeric value into the encoding that would be used for APRS packet
creation.
|
int |
getDigitsAfterDecimalPoint()
Get the number of digits after the decimal point that should be displayed for values for this enum.
|
static WeatherEnum |
getEnumForLetter(char ch)
Get the enumeration associated with the weather message letter code.
|
java.lang.String |
getImagePath()
Return the relative path name of the image file for this enum value.
|
char |
getLetter()
Get the weather message parameter prefix letter for this parameter type.
|
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 |
isRequired()
Report whether an APRS weather message is required to include this parameter.
|
boolean |
isUnitARate()
Indicate whether values and units should be interpreted as a rate over an appropriate time unit
rather than a fixed quantity.
|
static WeatherEnum[] |
nonClonedValues()
Returns a single copy of the list of WeatherEnums.
|
java.lang.String |
toString()
Returns the name of this enum constant, as contained in the
declaration.
|
static WeatherEnum |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WeatherEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WeatherEnum DATE_TIME
PositionlessWeatherReport
public static final WeatherEnum COURSE
public static final WeatherEnum SPEED
DistanceUnit.MI
public static final WeatherEnum GUST
DistanceUnit.MI
public static final WeatherEnum TEMP
TemperatureUnit.F
public static final WeatherEnum RAIN_LASTHOUR
DistanceUnit.INCH
public static final WeatherEnum RAIN_LAST24HR
DistanceUnit.INCH
public static final WeatherEnum RAIN_SINCE_MIDNIGHT
DistanceUnit.INCH
public static final WeatherEnum HUMIDITY
public static final WeatherEnum PRESSURE_0_1MBAR
PressureUnit.HPa
public static final WeatherEnum LUMINOSITY
public static final WeatherEnum SNOWFALL
DistanceUnit.INCH
public static final WeatherEnum FLOOD_LEVEL
DistanceUnit.INCH
public static final WeatherEnum VOLTAGE
public static final WeatherEnum RADIATION
public static final WeatherEnum APRSDOS_STATION
public static final WeatherEnum MACAPRS_STATION
public static final WeatherEnum APRS_SA_STATION
public static final WeatherEnum WINAPRS_STATION
public static final WeatherEnum RAIN_HISTORY
public static final WeatherEnum LAST_RAIN_OF_DAY
public static final WeatherEnum LAST_MINUTE_OF_RAIN_DAY
public final int paramLen
public static WeatherEnum[] values()
for (WeatherEnum c : WeatherEnum.values()) System.out.println(c);
public static WeatherEnum 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 static WeatherEnum getEnumForLetter(char ch)
ch
- letter to match against the known enumspublic char getLetter()
public boolean isRequired()
public java.lang.String toString()
toString
in class java.lang.Enum<WeatherEnum>
public java.lang.String getImagePath()
getImagePath
in interface EnumWithImageName
public java.lang.Enum<?> getUnit()
getUnit
in interface EnumWithUnits
public boolean isUnitARate()
isUnitARate
in interface EnumWithUnits
public float getUnitScaling()
public int getDigitsAfterDecimalPoint()
public float decodeValue(int encodedValue)
encodedValue
- int value of encoded digitspublic int encodeValue(float rawValue)
rawValue
- float raw valuepublic static WeatherEnum[] nonClonedValues()