|
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.LogicalTimeDouble
Implementation of Logical Time. Time is represented by a double.
| Constructor Summary | |
LogicalTimeDouble(double value)
Constructs and initates a Logical Time. |
|
LogicalTimeDouble(LogicalTimeDouble other)
Constructs and initates a Logical Time from another LogicalTimeDouble. |
|
LogicalTimeDouble(java.lang.String s)
Constructs and initates a Logical Time. |
|
| Method Summary | |
void |
decreaseBy(LogicalTimeInterval subtrahend)
Decreses logical time by the specified interval. |
void |
encode(byte[] buffer,
int offset)
Encodes the logical time to a transportable format. |
int |
encodedLength()
Returns the length of the encoded logical time. |
double |
getValue()
Return the logical time as a double. |
void |
increaseBy(LogicalTimeInterval addend)
Increses the logical time by the specified interval. |
boolean |
isEqualTo(LogicalTime value)
Checks if times are equal. |
boolean |
isFinal()
Checks if the value of time is final (greatest time possible). |
boolean |
isGreaterThan(LogicalTime value)
Compares if the time is greater than another time. |
boolean |
isGreaterThanOrEqualTo(LogicalTime value)
Compares if the time is greater than or equal to another time. |
boolean |
isInitial()
Check if the value of time is initial (lowest time possible). |
boolean |
isLessThan(LogicalTime value)
Compares if the time is less than another time. |
boolean |
isLessThanOrEqualTo(LogicalTime value)
Compares if the time is less than or equal to another time. |
void |
setFinal()
Sets the time to the greatest time possible. |
void |
setInitial()
Sets the time to the lowest time possible. |
void |
setTo(LogicalTime value)
Sets the time to a specified Logical Time. |
LogicalTimeInterval |
subtract(LogicalTime subtrahend)
Decreses logical time by the specified logical time. |
java.lang.String |
toString()
Return a string representation of the logical time. |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public LogicalTimeDouble(double value)
throws hla.rti.InvalidFederationTime
value - The initial time as a double
public LogicalTimeDouble(java.lang.String s)
throws hla.rti.InvalidFederationTime
s - The initial time encoded in a string.public LogicalTimeDouble(LogicalTimeDouble other)
other - Initial time from another Logical Time Double.| Method Detail |
public double getValue()
public void increaseBy(LogicalTimeInterval addend)
addend - Logical Time Intervalpublic boolean isEqualTo(LogicalTime value)
value - Time to compare with.public boolean isInitial()
public boolean isGreaterThan(LogicalTime value)
value - The logical time to compare with.
public void encode(byte[] buffer,
int offset)
buffer - The resulting byte array bufferoffset - Start position in the destination data
public void decreaseBy(LogicalTimeInterval subtrahend)
throws hla.rti.IllegalTimeArithmetic
subtrahend - Logical time intervalpublic boolean isGreaterThanOrEqualTo(LogicalTime value)
value - The logical time to compare with.public void setTo(LogicalTime value)
value - Logical Timepublic boolean isLessThan(LogicalTime value)
value - The logical time to compare with.public void setFinal()
public int encodedLength()
public boolean isLessThanOrEqualTo(LogicalTime value)
value - The logical time to compare with.public boolean isFinal()
public void setInitial()
public LogicalTimeInterval subtract(LogicalTime subtrahend)
subtrahend - Logical timepublic java.lang.String toString()
|
pRTI v1.3 | ||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||