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()
IMisbMessage
getUniversalLabel
in interface IMisbMessage
UniversalLabel
public byte[] frameMessage(boolean isNested)
IMisbMessage
frameMessage
in interface IMisbMessage
isNested
- If true, the key and length field are omitted, and only the value will be
writtenpublic String displayHeader()
IMisbMessage
This will typically identify which standard the message conforms to.
displayHeader
in interface IMisbMessage
public Set<PredatorMetadataKey> getIdentifiers()
getIdentifiers
in interface INestedKlvValue
public IPredatorMetadataValue getField(PredatorMetadataKey key)
key
- The key to retrievepublic IPredatorMetadataValue getField(IKlvKey tag)
INestedKlvValue
getField
in interface INestedKlvValue
tag
- Tag or other identifier of the value to retrieveCopyright © 2022 West Ridge Systems. All rights reserved.