Package org.ka2ddo.yaac.io
Enum Class BeaconData.PositionType
- All Implemented Interfaces:
Serializable
,Comparable<BeaconData.PositionType>
,Constable
- Enclosing class:
- BeaconData
Enum specifying the specific APRS Position Report message type code used for BeaconType.POSITION
and BeaconType.COMPRESSED beacon messages in APRS. Note this has no effect on OpenTRAC beacons.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDon't generate timestamp, report that station is not capable of text messaging (not actually true for YAAC).Don't generate timestamp, report that station is capable of text messaging (this is the YAAC default).Generate current timestamp, report that station is not capable of text messaging (not actually true for YAAC).Generate current timestamp, report that station is capable of text messaging. -
Method Summary
Modifier and TypeMethodDescriptionboolean
canMsg()
Report whether YAAC has an operator capable of receiving text messages,char
Report the message type character prefix to use for APRS Position Report message (APRS 1.0.1 specification, chapter 8).static BeaconData.PositionType
Returns the enum constant of this class with the specified name.static BeaconData.PositionType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NO_TIME_W_MESSAGING
Don't generate timestamp, report that station is capable of text messaging (this is the YAAC default). -
NO_TIME_NO_MESSAGING
Don't generate timestamp, report that station is not capable of text messaging (not actually true for YAAC). -
TIME_W_MESSAGING
Generate current timestamp, report that station is capable of text messaging. -
TIME_NO_MESSAGING
Generate current timestamp, report that station is not capable of text messaging (not actually true for YAAC).
-
-
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
-
getMsgType
public char getMsgType()Report the message type character prefix to use for APRS Position Report message (APRS 1.0.1 specification, chapter 8).- Returns:
- char value for beacon prefix
-
canMsg
public boolean canMsg()Report whether YAAC has an operator capable of receiving text messages,- Returns:
- boolean true if it can handle text messages
-