hla.rti
Interface LogicalTimeIntervalFactory

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
DoubleValuedLogicalTimeIntervalFactory, LongValuedLogicalTimeIntervalFactory

public interface LogicalTimeIntervalFactory
extends java.io.Serializable

A factory for LogicalTimeIntervals.

Author:
DMSO

Method Summary
 LogicalTimeInterval decode(byte[] buffer, int offset)
          Decodes a logical time interval stored within the specified buffer, returning a corresponding new LogicalTimeInterval.
 LogicalTimeInterval makeEpsilon()
          Creates and returns an epsilon-length logical time interval.
 LogicalTimeInterval makeZero()
          Creates and returns a zero-length logical time interval.
 

Method Detail

decode

public LogicalTimeInterval decode(byte[] buffer,
                                  int offset)
                           throws CouldNotDecode
Decodes a logical time interval stored within the specified buffer, returning a corresponding new LogicalTimeInterval.

Parameters:
buffer - the buffer containing the encoded interval
offset - the offset within the buffer at which the encoded interval is stored
Returns:
a new LogicalTimeInterval corresponding to the encoded interval
Throws:
CouldNotDecode - if the time interval could not be decoded

makeZero

public LogicalTimeInterval makeZero()
Creates and returns a zero-length logical time interval.

Returns:
a new zero-length LogicalTimeInterval

makeEpsilon

public LogicalTimeInterval makeEpsilon()
Creates and returns an epsilon-length logical time interval.

Returns:
a new epsilon-length LogicalTimeInterval