hla.rti1516.jlc.omt
Class OmtHLAopaqueData

java.lang.Object
  extended by hla.rti1516.jlc.omt.AbstractDataElement
      extended by hla.rti1516.jlc.omt.OmtHLAopaqueData
All Implemented Interfaces:
DataElement, HLAopaqueData

public class OmtHLAopaqueData
extends AbstractDataElement
implements HLAopaqueData


Constructor Summary
OmtHLAopaqueData()
           
OmtHLAopaqueData(byte[] bytes)
           
 
Method Summary
 void decode(ByteWrapper byteWrapper)
          Decodes this element from the ByteWrapper.
 void encode(ByteWrapper byteWrapper)
          Encodes this element into the specified ByteWrapper.
 boolean equals(java.lang.Object obj)
          
 byte get(int index)
          Returns the DataElement at the specified position in this array.
 int getEncodedLength()
          Returns the size in bytes of this element's encoding.
 int getOctetBoundary()
          Returns the octet boundary of this element.
 byte[] getValue()
           
 int hashCode()
          
 java.util.Iterator iterator()
          Returns an iterator over the elements in this array in proper sequence.
 int size()
          Returns the number of components in this array.
 
Methods inherited from class hla.rti1516.jlc.omt.AbstractDataElement
toByteArray
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface hla.rti1516.jlc.DataElement
toByteArray
 

Constructor Detail

OmtHLAopaqueData

public OmtHLAopaqueData()

OmtHLAopaqueData

public OmtHLAopaqueData(byte[] bytes)
Method Detail

size

public int size()
Returns the number of components in this array.

Specified by:
size in interface HLAopaqueData
Returns:
the number of components in this array.

get

public byte get(int index)
Returns the DataElement at the specified position in this array.

Specified by:
get in interface HLAopaqueData
Parameters:
index - index of DataElement to return.
Returns:
DataElement at the specified index

iterator

public java.util.Iterator iterator()
Returns an iterator over the elements in this array in proper sequence.

Specified by:
iterator in interface HLAopaqueData
Returns:
an iterator over the elements in this array in proper sequence.

encode

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

Specified by:
encode in interface DataElement
Specified by:
encode in interface HLAopaqueData

decode

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

Specified by:
decode in interface DataElement
Specified by:
decode in interface HLAopaqueData

getEncodedLength

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

Specified by:
getEncodedLength in interface DataElement
Specified by:
getEncodedLength in interface HLAopaqueData
Returns:
size

getOctetBoundary

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

Specified by:
getOctetBoundary in interface DataElement
Specified by:
getOctetBoundary in interface HLAopaqueData
Returns:

getValue

public byte[] getValue()
Specified by:
getValue in interface HLAopaqueData

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)

Overrides:
equals in class java.lang.Object