- All Superinterfaces:
Comparable<HLAfloat64Interval>,LogicalTimeInterval<HLAfloat64Interval>,Serializable
Interface for the interval part of the standardized time type HLAfloat64Time.
-
Method Summary
Modifier and TypeMethodDescriptionadd(HLAfloat64Interval addend) Returns a LogicalTimeInterval whose value is (this + addend).intcompareTo(HLAfloat64Interval other) Compares this object with the specified object for order.voidencode(byte[] buffer, int offset) Encodes this object in the specified buffer starting at the specified offset.intReturns the size of the buffer required to encode this object.doublegetValue()booleanReturns true is this time is an epsilon interval.booleanisZero()Returns true is this time is a zero interval.subtract(HLAfloat64Interval subtrahend) Returns a LogicalTimeInterval whose value is (this - subtrahend).Methods inherited from interface hla.rti1516e.LogicalTimeInterval
equals, hashCode, toString
-
Method Details
-
isZero
boolean isZero()Description copied from interface:LogicalTimeIntervalReturns true is this time is a zero interval.- Specified by:
isZeroin interfaceLogicalTimeInterval<HLAfloat64Interval>- Returns:
- true if zero interval.
-
isEpsilon
boolean isEpsilon()Description copied from interface:LogicalTimeIntervalReturns true is this time is an epsilon interval.- Specified by:
isEpsilonin interfaceLogicalTimeInterval<HLAfloat64Interval>- Returns:
- true if epsilon.
-
add
HLAfloat64Interval add(HLAfloat64Interval addend) throws IllegalTimeArithmetic, InvalidLogicalTimeInterval Description copied from interface:LogicalTimeIntervalReturns a LogicalTimeInterval whose value is (this + addend). The returned value shall be different from this value if the specified addend != 0.- Specified by:
addin interfaceLogicalTimeInterval<HLAfloat64Interval>- Parameters:
addend- interval to add.- Returns:
- new interval.
- Throws:
IllegalTimeArithmeticInvalidLogicalTimeInterval
-
subtract
HLAfloat64Interval subtract(HLAfloat64Interval subtrahend) throws IllegalTimeArithmetic, InvalidLogicalTimeInterval Description copied from interface:LogicalTimeIntervalReturns a LogicalTimeInterval whose value is (this - subtrahend). The returned value shall be different from this value if the specified subtrahend != 0.- Specified by:
subtractin interfaceLogicalTimeInterval<HLAfloat64Interval>- Parameters:
subtrahend- interval to subtract.- Returns:
- new interval.
- Throws:
IllegalTimeArithmeticInvalidLogicalTimeInterval
-
compareTo
Description copied from interface:LogicalTimeIntervalCompares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.- Specified by:
compareToin interfaceComparable<HLAfloat64Interval>- Specified by:
compareToin interfaceLogicalTimeInterval<HLAfloat64Interval>- Parameters:
other- the Object to be compared.- Returns:
- a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
-
encodedLength
int encodedLength()Description copied from interface:LogicalTimeIntervalReturns the size of the buffer required to encode this object.- Specified by:
encodedLengthin interfaceLogicalTimeInterval<HLAfloat64Interval>- Returns:
- size of buffer.
-
encode
Description copied from interface:LogicalTimeIntervalEncodes this object in the specified buffer starting at the specified offset.- Specified by:
encodein interfaceLogicalTimeInterval<HLAfloat64Interval>- Parameters:
buffer- the buffer to encode into.offset- the offset where to start encoding.- Throws:
CouldNotEncode
-
getValue
double getValue()
-