|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eodisp.wrapper.hla.LongValuedLogicalTime
public class LongValuedLogicalTime
An immutable long-valued logical time value.
| Constructor Summary | |
|---|---|
LongValuedLogicalTime(long pValue)
Creates a new XRTILogicalTime. |
|
| Method Summary | |
|---|---|
hla.rti1516.LogicalTime |
add(hla.rti1516.LogicalTimeInterval val)
Adds the specified time interval to this logical time, returning the result as a new LogicalTime. |
int |
compareTo(java.lang.Object other)
Compares this logical time to another. |
hla.rti1516.LogicalTimeInterval |
distance(hla.rti1516.LogicalTime val)
Computes and returns the time interval between this logical time and another one. |
void |
encode(byte[] buffer,
int offset)
Encodes this logical time, placing the result into the specified buffer. |
int |
encodedLength()
Returns the encoded length of this logical time. |
boolean |
equals(java.lang.Object other)
Checks this logical time for equality with another. |
int |
hashCode()
Computes and returns a hash code corresponding to this logical time. |
boolean |
isFinal()
Checks whether this represents a final time. |
boolean |
isInitial()
Checks whether this represents an initial time. |
hla.rti1516.LogicalTime |
subtract(hla.rti1516.LogicalTimeInterval val)
Subtracts the specified time interval from this logical time, returning the result as a new LogicalTime. |
java.lang.String |
toString()
Returns a string representation of this logical time. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LongValuedLogicalTime(long pValue)
XRTILogicalTime.
pValue - the value of the logical time| Method Detail |
|---|
public boolean isInitial()
isInitial in interface hla.rti1516.LogicalTimetrue if this represents an initial time,
false otherwisepublic boolean isFinal()
isFinal in interface hla.rti1516.LogicalTimetrue if this represents a final time,
false otherwise
public hla.rti1516.LogicalTime add(hla.rti1516.LogicalTimeInterval val)
throws hla.rti1516.IllegalTimeArithmetic
LogicalTime.
add in interface hla.rti1516.LogicalTimeval - the time interval to add to this logical time
LogicalTime that represents this logical
time plus the specified time interval
hla.rti1516.IllegalTimeArithmetic - if the operation cannot be performed
public hla.rti1516.LogicalTime subtract(hla.rti1516.LogicalTimeInterval val)
throws hla.rti1516.IllegalTimeArithmetic
LogicalTime.
subtract in interface hla.rti1516.LogicalTimeval - the time interval to subtract from this logical time
LogicalTime that represents this logical
time minus the specified time interval
hla.rti1516.IllegalTimeArithmetic - if the operation cannot be performedpublic hla.rti1516.LogicalTimeInterval distance(hla.rti1516.LogicalTime val)
distance in interface hla.rti1516.LogicalTimeval - the other logical time
public int compareTo(java.lang.Object other)
compareTo in interface hla.rti1516.LogicalTimecompareTo in interface java.lang.Comparableother - the logical time to compare this to
+1 if this logical time is greater than the other
one, -1 if this logical time is less than the
other one, 0 if the two logical times are equalpublic boolean equals(java.lang.Object other)
equals in interface hla.rti1516.LogicalTimeequals in class java.lang.Objectother - the other logical time to compare this to
true if the other object represents the same
logical time as this one, false otherwisepublic int hashCode()
hashCode in interface hla.rti1516.LogicalTimehashCode in class java.lang.Objectpublic java.lang.String toString()
toString in interface hla.rti1516.LogicalTimetoString in class java.lang.Objectpublic int encodedLength()
encodedLength in interface hla.rti1516.LogicalTime
public void encode(byte[] buffer,
int offset)
encode in interface hla.rti1516.LogicalTimebuffer - the buffer in which to place the resultoffset - the offset within the buffer at which to store the encoded
value
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||