fr.cnes.sirius.patrius.tools.ephemerisComparator
Class PVCoordinatesDPFacade
java.lang.Object
org.orekit.utils.PVCoordinates
fr.cnes.sirius.patrius.tools.ephemerisComparator.PVCoordinatesDPFacade
- All Implemented Interfaces:
- DeviationProvider, Serializable, TimeShiftable<PVCoordinates>
public final class PVCoordinatesDPFacade
- extends PVCoordinates
- implements DeviationProvider
This class is a facade for the use of PVCoordinates.
- Since:
- 1.0
- Version:
- $Id: PVCoordinatesDPFacade.java 11391 2014-10-31 15:01:11Z maggiorani $
- Author:
- Philippe Pavero
- See Also:
DeviationProvider
,
Serialized Form- Concurrency :
- immutable
Methods inherited from class org.orekit.utils.PVCoordinates |
crossProduct, estimateVelocity, getAcceleration, getAngularVelocity, getMomentum, getPosition, getVelocity, interpolate, negate, normalize, shiftedBy, toDerivativeStructureVector, toString |
PVCoordinatesDPFacade
public PVCoordinatesDPFacade(double[] vector,
DataType etype)
- Build an instance from an elapsed duration since to another instant.
- Parameters:
vector
- the 6 component vectoretype
- the attribute type- Since:
- 1.0
- See Also:
PVCoordinates.PVCoordinates(Vector3D, Vector3D)
computeDeviationTo
public double computeDeviationTo(boolean absolute,
DeviationProvider obj,
boolean positive)
- computes the deviation in seconds between the stored PV and the given one.
- Specified by:
computeDeviationTo
in interface DeviationProvider
- Parameters:
absolute
- absolute or relative deviationobj
- the DeviationProvider that should be a PVCoordinatesDPFacadepositive
- 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 © 2016 CNES. All Rights Reserved.