hla.rti1516.jlc
Interface HLAvariableArray

All Superinterfaces:
DataElement

public interface HLAvariableArray
extends DataElement


Method Summary
 void addElement(DataElement dataElement)
          Adds an element to this variable array.
 void decode(ByteWrapper byteWrapper)
          Decodes this element from the ByteWrapper.
 void encode(ByteWrapper byteWrapper)
          Encodes this element into the specified ByteWrapper.
 DataElement get(int index)
          Returns element at the specified index.
 int getEncodedLength()
          Returns the size in bytes of this element's encoding.
 int getOctetBoundary()
          Returns the octet boundary of this element.
 Iterator iterator()
          Returns an iterator for the elements in this variable array.
 int size()
          Returns the number of elements in this variable array.
 
Methods inherited from interface hla.rti1516.jlc.DataElement
toByteArray
 

Method Detail

encode

void encode(ByteWrapper byteWrapper)
Description copied from interface: DataElement
Encodes this element into the specified ByteWrapper.

Specified by:
encode in interface DataElement

decode

void decode(ByteWrapper byteWrapper)
Description copied from interface: DataElement
Decodes this element from the ByteWrapper.

Specified by:
decode in interface DataElement

getEncodedLength

int getEncodedLength()
Description copied from interface: DataElement
Returns the size in bytes of this element's encoding.

Specified by:
getEncodedLength in interface DataElement
Returns:
size

getOctetBoundary

int getOctetBoundary()
Description copied from interface: DataElement
Returns the octet boundary of this element.

Specified by:
getOctetBoundary in interface DataElement

addElement

void addElement(DataElement dataElement)
Adds an element to this variable array.

Parameters:
dataElement -

size

int size()
Returns the number of elements in this variable array.


get

DataElement get(int index)
Returns element at the specified index.

Parameters:
index -

iterator

Iterator iterator()
Returns an iterator for the elements in this variable array.