public final class DateDPFacade extends AbsoluteDate implements DeviationProvider
This class is a facade for the use of dates.
DeviationProvider
,
Serialized FormCCSDS_EPOCH, FIFTIES_EPOCH_TAI, FIFTIES_EPOCH_TT, FIFTIES_EPOCH_UTC, FUTURE_INFINITY, GALILEO_EPOCH, GPS_EPOCH, J2000_EPOCH, JAVA_EPOCH, JULIAN_EPOCH, MODIFIED_JULIAN_EPOCH, PAST_INFINITY
Modifier and Type | Method and Description |
---|---|
static DateDPFacade |
buildDateDPFacade(double[] primitiveData)
factory method.
|
double |
computeDeviationTo(boolean absolute,
DeviationProvider obj,
boolean positive)
computes the deviation in seconds between the stored date and the given one.
|
compareTo, createGPSDate, durationFrom, equals, getComponents, getDate, getEpoch, getOffset, hashCode, offsetFrom, parseCCSDSCalendarSegmentedTimeCode, parseCCSDSDaySegmentedTimeCode, parseCCSDSUnsegmentedTimeCode, preciseDurationFrom, shiftedBy, timeScalesOffset, toDate, toString, toString, toString, toString
public static DateDPFacade buildDateDPFacade(double[] primitiveData)
primitiveData
- the date components. Can be either :
ArrayRealVector.ArrayRealVector(double[])
public double computeDeviationTo(boolean absolute, DeviationProvider obj, boolean positive)
computeDeviationTo
in interface DeviationProvider
absolute
- absolute or relative comparisonobj
- the DeviationProvider that should be a DateDPFacadepositive
- true if absolute value of deviations, false otherwiseEphemerisComparatorRuntimeException
- if the DeviationProvider is not of the correct typeDeviationProvider.computeDeviationTo(boolean, DeviationProvider, boolean)
Copyright © 2019 CNES. All Rights Reserved.