public class PredatorUavMessage extends Object implements IMisbMessage
| Modifier and Type | Field and Description |
|---|---|
protected SortedMap<PredatorMetadataKey,IPredatorMetadataValue> |
map
Map containing all data elements in the message.
|
| Constructor and Description |
|---|
PredatorUavMessage(byte[] bytes)
Create from encoded bytes.
|
| Modifier and Type | Method and Description |
|---|---|
String |
displayHeader()
A display header for the message type.
|
byte[] |
frameMessage(boolean isNested)
Frame the message into a byte array.
|
IPredatorMetadataValue |
getField(IKlvKey tag)
Get the value of a given item.
|
IPredatorMetadataValue |
getField(PredatorMetadataKey key)
Get the value of a specified key.
|
Set<PredatorMetadataKey> |
getIdentifiers()
Get all keys present in the message.
|
UniversalLabel |
getUniversalLabel()
Get the Universal Label (UL) identifying the message type.
|
protected SortedMap<PredatorMetadataKey,IPredatorMetadataValue> map
public PredatorUavMessage(byte[] bytes)
throws KlvParseException
bytes - Byte array containing the EG0104-encoded dataKlvParseException - if a parsing error occurspublic UniversalLabel getUniversalLabel()
IMisbMessagegetUniversalLabel in interface IMisbMessageUniversalLabelpublic byte[] frameMessage(boolean isNested)
IMisbMessageframeMessage in interface IMisbMessageisNested - If true, the key and length field are omitted, and only the value will be
writtenpublic String displayHeader()
IMisbMessageThis will typically identify which standard the message conforms to.
displayHeader in interface IMisbMessagepublic Set<PredatorMetadataKey> getIdentifiers()
getIdentifiers in interface INestedKlvValuepublic IPredatorMetadataValue getField(PredatorMetadataKey key)
key - The key to retrievepublic IPredatorMetadataValue getField(IKlvKey tag)
INestedKlvValuegetField in interface INestedKlvValuetag - Tag or other identifier of the value to retrieveCopyright © 2022 West Ridge Systems. All rights reserved.