public class OpenTracRadioCapabilities extends OpenTracElement
RadioCapability
,
Serialized Formid
Constructor and Description |
---|
OpenTracRadioCapabilities()
Create a OpenTracRadioCapabilities element with no capabilities.
|
OpenTracRadioCapabilities(int type,
byte[] body,
int offset,
int length)
Extract a OpenTracRadioCapabilities element from a byte array
|
OpenTracRadioCapabilities(RadioCapability capability)
Create a OpenTracRadioCapabilities element with one capability.
|
Modifier and Type | Method and Description |
---|---|
int |
computeBody(byte[] buf,
int offset)
Append this element to a message buffer
|
boolean |
equalsElement(OpenTracElement other)
Test if this OpenTracElement has the same type and value as another OpenTracElement.
|
int |
length()
Return the number of bytes needed to encode this element.
|
java.lang.String |
valueString()
Get the string representation of the value of this element.
|
getId, toString
public OpenTracRadioCapabilities()
public OpenTracRadioCapabilities(RadioCapability capability)
capability
- RadioCapability to encapsulate in this elementpublic OpenTracRadioCapabilities(int type, byte[] body, int offset, int length)
type
- OpenTracTypes code for this elementbody
- byte array to extract element fromoffset
- zero-based array index to start extractionlength
- number of bytes to extractpublic int computeBody(byte[] buf, int offset)
computeBody
in class OpenTracElement
buf
- byte array to add the element tooffset
- starting index to store the elementpublic java.lang.String valueString()
valueString
in class OpenTracElement
public int length()
length
in class OpenTracElement
public boolean equalsElement(OpenTracElement other)
equalsElement
in class OpenTracElement
other
- OpenTracElement to compare against this element