public enum ProtocolFamily extends java.lang.Enum<ProtocolFamily>
Enum Constant and Description |
---|
APRS
APRS packets over AX.25 UI frames, PID=0xF0 (NOLVL3)n.
|
OPENTRAC
OpenTRAC packets over AX.25 UI frames, PID=0x77 (OPENTRAC).
|
OTHER
Some other transport provided by a plugin's PortConnector subclass, where the
PortConnector is entirely responsible for any packet reformatting.
|
RAW_AX25
Other level 2 AX.25 frames, including connected-mode frames, PID=0xF0 (NOLVL3).
|
Modifier and Type | Method and Description |
---|---|
byte |
getPid()
Get the AX.25 protocol ID value associated with this ProtocolFamily.
|
static ProtocolFamily |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ProtocolFamily[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProtocolFamily APRS
PortConfig.PROTOCOL_APRS
public static final ProtocolFamily OPENTRAC
PortConfig.PROTOCOL_OPENTRAC
public static final ProtocolFamily RAW_AX25
PortConfig.PROTOCOL_AX25
public static final ProtocolFamily OTHER
PortConfig.PROTOCOL_OTHER_TRANSPORT
public static ProtocolFamily[] values()
for (ProtocolFamily c : ProtocolFamily.values()) System.out.println(c);
public static ProtocolFamily 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 byte getPid()