|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eodisp.wrapper.hla.LongValuedLogicalTimeInterval
public class LongValuedLogicalTimeInterval
An immutable long-valued logical time interval.
| Constructor Summary | |
|---|---|
LongValuedLogicalTimeInterval(long pValue)
Creates a new XRTILogicalTimeInterval. |
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object other)
Compares this logical time interval to another. |
void |
encode(byte[] buffer,
int offset)
Encodes this logical time interval, placing the result into the specified buffer. |
int |
encodedLength()
Returns the encoded length of this logical time interval. |
boolean |
equals(java.lang.Object other)
Checks this logical time interval for equality with another. |
long |
getValue()
Returns the value of this time interval. |
int |
hashCode()
Computes and returns a hash code corresponding to this logical time interval. |
boolean |
isEpsilon()
Checks whether this logical time interval has an epsilon length. |
boolean |
isZero()
Checks whether this logical time interval has a zero length. |
hla.rti1516.LogicalTimeInterval |
subtract(hla.rti1516.LogicalTimeInterval subtrahend)
Subtracts the specified logical time interval from this one, returning a new LogicalTimeInterval representing the result. |
java.lang.String |
toString()
Returns a string representation of this logical time interval. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LongValuedLogicalTimeInterval(long pValue)
XRTILogicalTimeInterval.
pValue - the value of the logical time interval| Method Detail |
|---|
public long getValue()
public boolean isZero()
isZero in interface hla.rti1516.LogicalTimeIntervaltrue if this logical time interval has a zero
length, false otherwisepublic boolean isEpsilon()
isEpsilon in interface hla.rti1516.LogicalTimeIntervaltrue if this logical time interval has an epsilon
length, false otherwisepublic hla.rti1516.LogicalTimeInterval subtract(hla.rti1516.LogicalTimeInterval subtrahend)
LogicalTimeInterval representing the result.
subtract in interface hla.rti1516.LogicalTimeIntervalsubtrahend - the logical time interval to subtract from this one
LogicalTimeInterval representing the result
of the operationpublic int compareTo(java.lang.Object other)
compareTo in interface hla.rti1516.LogicalTimeIntervalcompareTo in interface java.lang.Comparableother - the LogicalTimeInterval to compare this to
+1 if this logical time interval is longer than
the other, -1 if it is shorter, or 0
if the two intervals are the same lengthpublic boolean equals(java.lang.Object other)
equals in interface hla.rti1516.LogicalTimeIntervalequals in class java.lang.Objectother - the LogicalTimeInterval to compare this to
true if the two intervals are equal,
false otherwisepublic int hashCode()
hashCode in interface hla.rti1516.LogicalTimeIntervalhashCode in class java.lang.Objectpublic java.lang.String toString()
toString in interface hla.rti1516.LogicalTimeIntervaltoString in class java.lang.Objectpublic int encodedLength()
encodedLength in interface hla.rti1516.LogicalTimeInterval
public void encode(byte[] buffer,
int offset)
encode in interface hla.rti1516.LogicalTimeIntervalbuffer - the buffer in which to place the encoded intervaloffset - the offset within the buffer at which to store the encoded
interval
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||