|
pRTI v1.3 | ||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--se.pitch.prti.LogicalTimeIntervalDouble
Implementation of LogicalTimeInterval. Represents time intervals using double.
| Constructor Summary | |
LogicalTimeIntervalDouble(double value)
Constructs a LogicalTimeIntervalDouble. |
|
LogicalTimeIntervalDouble(LogicalTimeIntervalDouble other)
Constructs a LogicalTimeIntervalDouble. |
|
LogicalTimeIntervalDouble(java.lang.String s)
Constructs a LogicalTimeIntervalDouble. |
|
| 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. |
double |
getValue()
Return the Logical Time Interval as a double. |
boolean |
isEpsilon()
Check is time interval is epsilon |
boolean |
isEqualTo(LogicalTimeInterval value)
Checks if times interval are equal in length. |
boolean |
isFinal()
Check if the value of the Logical Time Interval is the maximum possible value. |
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. |
java.lang.String |
toString()
String representation of Logical Time Interval Double. |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public LogicalTimeIntervalDouble(double value)
throws hla.rti.InvalidLookahead
value - Inital double interval value.
public LogicalTimeIntervalDouble(java.lang.String s)
throws hla.rti.InvalidLookahead
value - Inital interval value encoded in a string.public LogicalTimeIntervalDouble(LogicalTimeIntervalDouble other)
other - Inital interval value from another LogicalTimeIntervalDouble.| Method Detail |
public double getValue()
public boolean isEpsilon()
public boolean isFinal()
public boolean isEqualTo(LogicalTimeInterval value)
value - Interval to compare with.public boolean isGreaterThan(LogicalTimeInterval value)
value - The logical time interval to compare with.
public void encode(byte[] buffer,
int offset)
buffer - The serialized logical time intervaloffset - Start position in the destination datapublic boolean isGreaterThanOrEqualTo(LogicalTimeInterval value)
value - The logical time interval to compare with.public void setTo(LogicalTimeInterval value)
value - Logical Time Intervalpublic boolean isLessThan(LogicalTimeInterval value)
value - The logical time interval to compare with.public int encodedLength()
public void setZero()
public boolean isLessThanOrEqualTo(LogicalTimeInterval value)
value - The logical time interval to compare with.public boolean isZero()
value - Logical time intervalpublic void setEpsilon()
public java.lang.String toString()
|
pRTI v1.3 | ||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||