hla.rti1516.jlc.omt
Class OmtHLAfixedRecord

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

public class OmtHLAfixedRecord
extends AbstractDataElement
implements HLAfixedRecord


Constructor Summary
OmtHLAfixedRecord()
           
OmtHLAfixedRecord(DataElement dataElement)
           
OmtHLAfixedRecord(DataElement dataElement1, DataElement dataElement2)
           
 
Method Summary
 void add(DataElement dataElement)
          Adds an element to this fixed record.
 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)
          
 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.
 int hashCode()
          
 java.util.Iterator iterator()
          Returns an iterator for the elements in this fixed record.
 int size()
          Returns the number of elements in this fixed record.
 
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

OmtHLAfixedRecord

public OmtHLAfixedRecord()

OmtHLAfixedRecord

public OmtHLAfixedRecord(DataElement dataElement)

OmtHLAfixedRecord

public OmtHLAfixedRecord(DataElement dataElement1,
                         DataElement dataElement2)
Method Detail

add

public final void add(DataElement dataElement)
Description copied from interface: HLAfixedRecord
Adds an element to this fixed record.

Specified by:
add in interface HLAfixedRecord

size

public int size()
Description copied from interface: HLAfixedRecord
Returns the number of elements in this fixed record.

Specified by:
size in interface HLAfixedRecord
Returns:

get

public DataElement get(int index)
Description copied from interface: HLAfixedRecord
Returns element at the specified index.

Specified by:
get in interface HLAfixedRecord
Returns:

iterator

public java.util.Iterator iterator()
Description copied from interface: HLAfixedRecord
Returns an iterator for the elements in this fixed record.

Specified by:
iterator in interface HLAfixedRecord
Returns:

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 HLAfixedRecord
Returns:

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 HLAfixedRecord

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 HLAfixedRecord
Returns:
size

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 HLAfixedRecord

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