Enum Class BeaconData.PositionType

java.lang.Object
java.lang.Enum<BeaconData.PositionType>
org.ka2ddo.yaac.io.BeaconData.PositionType
All Implemented Interfaces:
Serializable, Comparable<BeaconData.PositionType>, Constable
Enclosing class:
BeaconData

public static enum BeaconData.PositionType extends Enum<BeaconData.PositionType>
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.
  • Enum Constant Details

    • NO_TIME_W_MESSAGING

      public static final BeaconData.PositionType 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

      public static final BeaconData.PositionType 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

      public static final BeaconData.PositionType TIME_W_MESSAGING
      Generate current timestamp, report that station is capable of text messaging.
    • TIME_NO_MESSAGING

      public static final BeaconData.PositionType TIME_NO_MESSAGING
      Generate current timestamp, report that station is not capable of text messaging (not actually true for YAAC).
  • Method Details

    • values

      public static BeaconData.PositionType[] 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

      public static BeaconData.PositionType valueOf(String name)
      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 name
      NullPointerException - 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