org.eodisp.wrapper.hla
Class LongValuedLogicalTimeFactory

java.lang.Object
  extended by org.eodisp.wrapper.hla.LongValuedLogicalTimeFactory
All Implemented Interfaces:
hla.rti1516.LogicalTimeFactory, java.io.Serializable

public class LongValuedLogicalTimeFactory
extends java.lang.Object
implements hla.rti1516.LogicalTimeFactory

A factory for LongValuedLogicalTimes.

Author:
Andrzej Kapolka
See Also:
Serialized Form

Constructor Summary
LongValuedLogicalTimeFactory()
           
 
Method Summary
 hla.rti1516.LogicalTime decode(byte[] buffer, int offset)
          Decodes a logical time stored within the specified buffer, returning a LogicalTime object corresponding to the decoded value.
 hla.rti1516.LogicalTime makeFinal()
          Creates and returns an instance of the final logical time.
 hla.rti1516.LogicalTime makeInitial()
          Creates and returns an instance of the initial logical time.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LongValuedLogicalTimeFactory

public LongValuedLogicalTimeFactory()
Method Detail

decode

public hla.rti1516.LogicalTime decode(byte[] buffer,
                                      int offset)
                               throws hla.rti1516.CouldNotDecode
Decodes a logical time stored within the specified buffer, returning a LogicalTime object corresponding to the decoded value.

Specified by:
decode in interface hla.rti1516.LogicalTimeFactory
Parameters:
buffer - the buffer that contains the encoded value
offset - the offset within the buffer at which the encoded value is stored
Returns:
a new LogicalTime representing the decoded value
Throws:
hla.rti1516.CouldNotDecode - if the value could not be decoded

makeInitial

public hla.rti1516.LogicalTime makeInitial()
Creates and returns an instance of the initial logical time.

Specified by:
makeInitial in interface hla.rti1516.LogicalTimeFactory
Returns:
an instance of the initial logical time

makeFinal

public hla.rti1516.LogicalTime makeFinal()
Creates and returns an instance of the final logical time.

Specified by:
makeFinal in interface hla.rti1516.LogicalTimeFactory
Returns:
an instance of the final logical time