pRTI™ v1.3

hla.rti
Interface LogicalTimeInterval

All Known Implementing Classes:
LogicalTimeIntervalDouble

public interface LogicalTimeInterval

Representation of Logical Time Interval.


Method Summary
 void encode(byte[] buffer, int offset)
          Encodes the logical time interval to a transportable format.
 int encodedLength()
          Returns the length of the encoded logical time interval.
 boolean isEpsilon()
          Check is time interval is epsilon
 boolean isEqualTo(LogicalTimeInterval value)
          Checks if times interval are equal in length.
 boolean isGreaterThan(LogicalTimeInterval value)
          Compares if the interval is longer than another interval.
 boolean isGreaterThanOrEqualTo(LogicalTimeInterval value)
          Compares if the interval is longer or equal to to another interval.
 boolean isLessThan(LogicalTimeInterval value)
          Compares if the interval is shorter than another interval.
 boolean isLessThanOrEqualTo(LogicalTimeInterval value)
          Compares if the interval is shorter or equal to to another interval.
 boolean isZero()
          Check is the interval is zero.
 void setEpsilon()
          Sets the interval to epsilon.
 void setTo(LogicalTimeInterval value)
          Sets the interval to the specified length.
 void setZero()
          Sets the interval to zero.
 

Method Detail

encode

public void encode(byte[] buffer,
                   int offset)
Encodes the logical time interval to a transportable format.
Parameters:
buffer - The serialized logical time interval
offset - Start position in the destination data

encodedLength

public int encodedLength()
Returns the length of the encoded logical time interval.
Returns:
Length of encoded time interval.

isEpsilon

public boolean isEpsilon()
Check is time interval is epsilon
Returns:
True if the interval is epsilon, false otherwise.

isEqualTo

public boolean isEqualTo(LogicalTimeInterval value)
Checks if times interval are equal in length.
Parameters:
value - Interval to compare with.
Returns:
True if equal, false if not.

isGreaterThan

public boolean isGreaterThan(LogicalTimeInterval value)
Compares if the interval is longer than another interval.
Parameters:
value - The logical time interval to compare with.
Returns:
True if interval is longer than the supplied interval. False if not.

isGreaterThanOrEqualTo

public boolean isGreaterThanOrEqualTo(LogicalTimeInterval value)
Compares if the interval is longer or equal to to another interval.
Parameters:
value - The logical time interval to compare with.
Returns:
True if time is longer or equal to the supplied interval. False if not.

isLessThan

public boolean isLessThan(LogicalTimeInterval value)
Compares if the interval is shorter than another interval.
Parameters:
value - The logical time interval to compare with.
Returns:
True if interval is shorter than the supplied interval. False if not.

isLessThanOrEqualTo

public boolean isLessThanOrEqualTo(LogicalTimeInterval value)
Compares if the interval is shorter or equal to to another interval.
Parameters:
value - The logical time interval to compare with.
Returns:
True if time is shorter or equal to the supplied interval. False if not.

isZero

public boolean isZero()
Check is the interval is zero.
Parameters:
value - Logical time interval
Returns:
True if interval is zero, false otherwise.

setEpsilon

public void setEpsilon()
Sets the interval to epsilon.

setTo

public void setTo(LogicalTimeInterval value)
Sets the interval to the specified length.
Parameters:
value - Logical Time Interval

setZero

public void setZero()
Sets the interval to zero.

pRTI™ v1.3

Visit the pRTI™ Website

pRTI is a trademark of Pitch Technologies AB

Repslagaregatan 25
S-582 22 Linkoping,
Sweden.
All Rights Reserved.