public class RadioCapability
extends java.lang.Object
implements java.io.Serializable
OpenTracRadioCapabilities
,
Serialized FormModifier and Type | Field and Description |
---|---|
int |
bandwidth
Modulation bandwidth in Hertz.
|
byte |
ctcss
CTCSS subtone in use, as index through CTCSS codes.
|
byte |
detail
Further details about the information, in index through FCC definition letters.
|
static java.lang.String |
DETAIL_TYPES
Detail type codes in numeric index order.
|
int |
frequency
Radio frequency in 10s of kiloHertz.
|
byte |
function
Radio function, as index through function names.
|
byte |
information
Information type, in index through FCC definition letters.
|
static java.lang.String |
INFORMATION_TYPES
Information content type codes in numeric index order.
|
byte |
modulation
Modulation scheme, in index through FCC definition letters.
|
static java.lang.String |
MODULATION_TYPES
Modulation type codes in numeric index order.
|
byte |
multiplex
Multiplexing scheme, in index through FCC definition letters.
|
static java.lang.String |
MULTIPLEX_TYPES
Multiplexing codes in numeric index order.
|
byte |
signal
Signal content type, in index through FCC definition numbers.
|
static java.lang.String |
SIGNAL_TYPES
Signal type codes in numeric index order.
|
static int |
SIZE
Number of bytes to encode one RadioCapability structure.
|
Constructor and Description |
---|
RadioCapability()
Create an uninitialized RadioCapability element.
|
Modifier and Type | Method and Description |
---|---|
int |
computeBody(byte[] buf,
int offset)
Append this element to a message buffer
|
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one.
|
int |
hashCode()
Returns a hash code value for the object.
|
java.lang.String |
valueString()
Get the human-readable String of this element's value.
|
public static final int SIZE
public int frequency
public byte signal
SIGNAL_TYPES
public byte modulation
MODULATION_TYPES
public byte information
INFORMATION_TYPES
public byte detail
DETAIL_TYPES
public byte multiplex
MULTIPLEX_TYPES
public byte function
FUNCTION_TYPES
public byte ctcss
XmitEncoding.CTCSS_FREQS
public int bandwidth
public static final java.lang.String MODULATION_TYPES
public static final java.lang.String SIGNAL_TYPES
public static final java.lang.String INFORMATION_TYPES
public static final java.lang.String DETAIL_TYPES
public static final java.lang.String MULTIPLEX_TYPES
public RadioCapability()
public int computeBody(byte[] buf, int offset)
buf
- byte array to add the element tooffset
- starting index to store the elementpublic java.lang.String valueString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the reference object with which to compare.true
if this object is the same as the obj
argument; false
otherwise.hashCode()
,
HashMap
public int hashCode()
hashCode
in class java.lang.Object
equals(Object)