Package org.ka2ddo.ax25
Enum Class ProtocolFamily
- All Implemented Interfaces:
Serializable
,Comparable<ProtocolFamily>
,Constable
This enumeration categorizes AX.25 messages by what protocol they are carrying,
to make it easier for YAAC I/O ports to determine if a particular AX25Frame should
be sent out a particular port.
- Author:
- Andrew Pavlin, KA2DDO
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte
getPid()
Get the AX.25 protocol ID value associated with this ProtocolFamily.static ProtocolFamily
Returns the enum constant of this class with the specified name.static ProtocolFamily[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
APRS
APRS packets over AX.25 UI frames, PID=0xF0 (NOLVL3). -
OPENTRAC
OpenTRAC packets over AX.25 UI frames, PID=0x77 (OPENTRAC). -
RAW_AX25
Other level 2 AX.25 frames, including connected-mode frames, PID=0xF0 (NOLVL3).
-
-
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
-
getPid
public byte getPid()Get the AX.25 protocol ID value associated with this ProtocolFamily.- Returns:
- PID value
-