hla.rti
Interface LogicalTimeFactory

All Superinterfaces:
java.io.Serializable

public interface LogicalTimeFactory
extends java.io.Serializable

A factory for LogicalTimes.

Author:
DMSO

Method Summary
 LogicalTime decode(byte[] buffer, int offset)
          Decodes a logical time stored within the specified buffer, returning a LogicalTime object corresponding to the decoded value.
 LogicalTime makeFinal()
          Creates and returns an instance of the final logical time.
 LogicalTime makeInitial()
          Creates and returns an instance of the initial logical time.
 

Method Detail

decode

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

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:
CouldNotDecode - if the value could not be decoded

makeInitial

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

Returns:
an instance of the initial logical time

makeFinal

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

Returns:
an instance of the final logical time