fr.cnes.sirius.patrius.tools.ephemerisComparator
Class PVCoordinatesDPFacade

java.lang.Object
  extended by org.orekit.utils.PVCoordinates
      extended by 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

Field Summary
 
Fields inherited from class org.orekit.utils.PVCoordinates
ZERO
 
Constructor Summary
PVCoordinatesDPFacade(double[] vector, DataType etype)
          Build an instance from an elapsed duration since to another instant.
 
Method Summary
 double computeDeviationTo(boolean absolute, DeviationProvider obj, boolean positive)
          computes the deviation in seconds between the stored PV and the given one.
 
Methods inherited from class org.orekit.utils.PVCoordinates
crossProduct, estimateVelocity, getAcceleration, getAngularVelocity, getMomentum, getPosition, getVelocity, interpolate, negate, normalize, shiftedBy, toDerivativeStructureVector, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PVCoordinatesDPFacade

public PVCoordinatesDPFacade(double[] vector,
                             DataType etype)
Build an instance from an elapsed duration since to another instant.

Parameters:
vector - the 6 component vector
etype - the attribute type
Since:
1.0
See Also:
PVCoordinates.PVCoordinates(Vector3D, Vector3D)
Method Detail

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 deviation
obj - the DeviationProvider that should be a PVCoordinatesDPFacade
positive - 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.