fr.cnes.sirius.patrius.tools.ephemerisComparator
Class DateDPFacade
java.lang.Object
org.orekit.time.AbsoluteDate
fr.cnes.sirius.patrius.tools.ephemerisComparator.DateDPFacade
- All Implemented Interfaces:
- DeviationProvider, Serializable, Comparable<AbsoluteDate>, TimeShiftable<AbsoluteDate>, TimeStamped
public final class DateDPFacade
- extends AbsoluteDate
- implements DeviationProvider
This class is a facade for the use of dates.
- Since:
- 1.0
- Version:
- $Id: DateDPFacade.java 17581 2017-05-10 12:47:31Z bignon $
- Author:
- Philippe Pavero
- See Also:
DeviationProvider
,
Serialized Form- Concurrency :
- immutable
Fields inherited from class org.orekit.time.AbsoluteDate |
CCSDS_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 |
Methods inherited from class org.orekit.time.AbsoluteDate |
compareTo, createGPSDate, durationFrom, equals, getComponents, getDate, getEpoch, getOffset, hashCode, offsetFrom, parseCCSDSCalendarSegmentedTimeCode, parseCCSDSDaySegmentedTimeCode, parseCCSDSUnsegmentedTimeCode, shiftedBy, timeScalesOffset, toDate, toString, toString, toString, toString |
buildDateDPFacade
public static DateDPFacade buildDateDPFacade(double[] primitiveData)
- factory method.
- Parameters:
primitiveData
- the date components. Can be either :
- Julian day 1950 : elapsed days, elapsed seconds since the 01/01/1950 at 00:00:00
- year, month, day (the time is set to 00:00:00)
- year, month, day, elapsed time from this date
- year, month, day, hour, minute, second
- year, month, day, hour, minute, second, elapsed time from this date
- Returns:
- a DateDPFacade instance
- Since:
- 1.0
- See Also:
ArrayRealVector.ArrayRealVector(double[])
computeDeviationTo
public double computeDeviationTo(boolean absolute,
DeviationProvider obj,
boolean positive)
- computes the deviation in seconds between the stored date and the given one.
- Specified by:
computeDeviationTo
in interface DeviationProvider
- Parameters:
absolute
- absolute or relative comparisonobj
- the DeviationProvider that should be a DateDPFacadepositive
- true if absolute value of deviations, false otherwise
- Returns:
- the deviation between the two values. The deviation is positive if the stored value is after than the one
given, 0 if they are equal and negative if smaller.
- Throws:
EphemerisComparatorRuntimeException
- if the DeviationProvider is not of the correct type- See Also:
DeviationProvider.computeDeviationTo(boolean, DeviationProvider, boolean)
Copyright © 2017 CNES. All Rights Reserved.