|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<WeatherEnum>
org.ka2ddo.aprs.WeatherEnum
public enum WeatherEnum
Symbolic codes for different types of weather information. The letter codes correspond to the weather comments in APRS position reports and positionless weather reports, as defined in the APRS protocol specification, chapter 12.
PositionReport
,
PositionlessWeatherReport
Enum Constant Summary | |
---|---|
APRS_SA_STATION
Indicates APRS+SA station sent the weather report. |
|
APRSDOS_STATION
Indicates APRSdos station sent the weather report. |
|
COURSE
The wind direction relative to True North (or travel direction for non-weather-stations). |
|
DATE_TIME
The date and time of a PositionlessWeatherReport. |
|
FLOOD_LEVEL
Flood level in 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 a millibar. |
|
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. |
|
XAPRS_STATION
Indicates that an X-APRS station (or Xastir?) sent the weather report. |
Field Summary | |
---|---|
int |
paramLen
Number of characters for parameter identified by this enum. |
Method Summary | |
---|---|
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. |
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final WeatherEnum DATE_TIME
PositionlessWeatherReport
public static final WeatherEnum COURSE
public static final WeatherEnum SPEED
public static final WeatherEnum GUST
public static final WeatherEnum TEMP
TemperatureUnit
public static final WeatherEnum RAIN_LASTHOUR
public static final WeatherEnum RAIN_LAST24HR
public static final WeatherEnum RAIN_SINCE_MIDNIGHT
public static final WeatherEnum HUMIDITY
public static final WeatherEnum PRESSURE_0_1MBAR
public static final WeatherEnum LUMINOSITY
public static final WeatherEnum SNOWFALL
public static final WeatherEnum FLOOD_LEVEL
public static final WeatherEnum VOLTAGE
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 XAPRS_STATION
public static final WeatherEnum RAIN_HISTORY
public static final WeatherEnum LAST_RAIN_OF_DAY
public static final WeatherEnum LAST_MINUTE_OF_RAIN_DAY
Field Detail |
---|
public final int paramLen
Method Detail |
---|
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 name
java.lang.NullPointerException
- if the argument is nullpublic static WeatherEnum getEnumForLetter(char ch)
ch
- letter to match against the known enums
public 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 float getUnitScaling()
public int getDigitsAfterDecimalPoint()
public static WeatherEnum[] nonClonedValues()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |