hla.rti1516
Interface LogicalTime

All Superinterfaces:
Comparable, Serializable

public interface LogicalTime
extends Comparable, Serializable


Method Summary
 LogicalTime add(LogicalTimeInterval val)
          Returns a LogicalTime whose value is (this + val).
 int compareTo(Object other)
           
 LogicalTimeInterval distance(LogicalTime val)
          Returns a LogicalTimeInterval whose value is the time interval between this and val.
 void encode(byte[] buffer, int offset)
           
 int encodedLength()
           
 boolean equals(Object other)
          Returns true iff this and other represent the same logical time Supports standard Java mechanisms.
 int hashCode()
          Two LogicalTimes for which equals() is true should yield same hash code
 boolean isFinal()
           
 boolean isInitial()
           
 LogicalTime subtract(LogicalTimeInterval val)
          Returns a LogicalTime whose value is (this - val).
 String toString()
           
 

Method Detail

isInitial

boolean isInitial()

isFinal

boolean isFinal()

add

LogicalTime add(LogicalTimeInterval val)
                throws IllegalTimeArithmetic
Returns a LogicalTime whose value is (this + val).

Throws:
IllegalTimeArithmetic

subtract

LogicalTime subtract(LogicalTimeInterval val)
                     throws IllegalTimeArithmetic
Returns a LogicalTime whose value is (this - val).

Throws:
IllegalTimeArithmetic

distance

LogicalTimeInterval distance(LogicalTime val)
Returns a LogicalTimeInterval whose value is the time interval between this and val.


compareTo

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

equals

boolean equals(Object other)
Returns true iff this and other represent the same logical time Supports standard Java mechanisms.

Overrides:
equals in class Object

hashCode

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

Overrides:
hashCode in class Object

toString

String toString()
Overrides:
toString in class Object

encodedLength

int encodedLength()

encode

void encode(byte[] buffer,
            int offset)