hla.rti1516
Interface LogicalTimeInterval

All Superinterfaces:
java.lang.Comparable, java.io.Serializable

public interface LogicalTimeInterval
extends java.lang.Comparable, java.io.Serializable

LogicalTimeInterval declares an interface to an immutable time interval value


Method Summary
 int compareTo(java.lang.Object other)
           
 void encode(byte[] buffer, int offset)
           
 int encodedLength()
           
 boolean equals(java.lang.Object other)
          Returns true iff this and other represent the same time interval.
 int hashCode()
          Two LogicalTimeIntervals for which equals() is true should yield same hash code
 boolean isEpsilon()
           
 boolean isZero()
           
 LogicalTimeInterval subtract(LogicalTimeInterval subtrahend)
          Returns a LogicalTimeInterval whose value is (this - subtrahend).
 java.lang.String toString()
           
 

Method Detail

isZero

boolean isZero()

isEpsilon

boolean isEpsilon()

subtract

LogicalTimeInterval subtract(LogicalTimeInterval subtrahend)
Returns a LogicalTimeInterval whose value is (this - subtrahend).


compareTo

int compareTo(java.lang.Object other)
Specified by:
compareTo in interface java.lang.Comparable

equals

boolean equals(java.lang.Object other)
Returns true iff this and other represent the same time interval.

Overrides:
equals in class java.lang.Object

hashCode

int hashCode()
Two LogicalTimeIntervals for which equals() is true should yield same hash code

Overrides:
hashCode in class java.lang.Object

toString

java.lang.String toString()
Overrides:
toString in class java.lang.Object

encodedLength

int encodedLength()

encode

void encode(byte[] buffer,
            int offset)