public class VTargetSeries extends Object implements IVmtiMetadataValue, INestedKlvValue
From ST0903:
VTargetSeries is a Series type which contains VTarget Packs only. The Length field for the series is the sum of all the data in the VTargetSeries Value field. The Value field is comprised of one or more VTarget Packs, each of which can be of a different size (thereby including different information) parsed according to the Length provided for each VTarget Pack.
Constructor and Description |
---|
VTargetSeries(byte[] bytes)
Deprecated.
use
VTargetSeries(byte[], EncodingMode) instead |
VTargetSeries(byte[] bytes,
EncodingMode encodingMode)
Create from encoded bytes.
|
VTargetSeries(List<VTargetPack> values)
Create the message from a list of VTargetPacks.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getBytes()
Get the encoded bytes.
|
String |
getDisplayableValue()
Return a string of the displayable value.
|
String |
getDisplayName()
Get the human-readable name for the value.
|
IKlvValue |
getField(IKlvKey tag)
Get the value of a given item.
|
Set<? extends IKlvKey> |
getIdentifiers()
Get the set of identifiers for populated values.
|
List<VTargetPack> |
getVTargets()
Get the VTargets in the series.
|
public VTargetSeries(List<VTargetPack> values)
values
- the target packs to include in the series.@Deprecated public VTargetSeries(byte[] bytes) throws KlvParseException
VTargetSeries(byte[], EncodingMode)
insteadThis constructor only supports ST0903.4 and later.
bytes
- Encoded byte arrayKlvParseException
- if there is a parsing error on the byte array.public VTargetSeries(byte[] bytes, EncodingMode encodingMode) throws KlvParseException
This constructor allows selection of which encoding rules (according to the ST0903 version) to apply.
bytes
- Encoded byte arrayencodingMode
- which encoding mode the bytes
parameter uses.KlvParseException
- if there is a parsing error on the byte array.public byte[] getBytes()
IVmtiMetadataValue
getBytes
in interface IVmtiMetadataValue
public String getDisplayableValue()
IKlvValue
getDisplayableValue
in interface IKlvValue
public String getDisplayName()
IKlvValue
getDisplayName
in interface IKlvValue
public List<VTargetPack> getVTargets()
public IKlvValue getField(IKlvKey tag)
INestedKlvValue
getField
in interface INestedKlvValue
tag
- Tag or other identifier of the value to retrievepublic Set<? extends IKlvKey> getIdentifiers()
INestedKlvValue
getIdentifiers
in interface INestedKlvValue
Copyright © 2022 West Ridge Systems. All rights reserved.