org.orekit.bodies
Class PosVelChebyshev

java.lang.Object
  extended by org.orekit.bodies.PosVelChebyshev
All Implemented Interfaces:
Serializable, TimeStamped

public class PosVelChebyshev
extends Object
implements TimeStamped, Serializable

Position-Velocity model based on Chebyshev polynomials.

This class represent the most basic element of the piecewise ephemerides for solar system bodies like JPL DE 405 ephemerides.

Author:
Luc Maisonobe
See Also:
JPLEphemeridesLoader, Serialized Form

Constructor Summary
PosVelChebyshev(AbsoluteDate start, double duration, double[] xCoeffs, double[] yCoeffs, double[] zCoeffs)
          Simple constructor.
 
Method Summary
 AbsoluteDate getDate()
          Get the date.
 PVCoordinates getPositionVelocity(AbsoluteDate date)
          Get the position-velocity at a specified date.
 double getValidityDuration()
          Get model validity duration.
 boolean inRange(AbsoluteDate date)
          Check if a date is in validity range.
 boolean isSuccessorOf(PosVelChebyshev predecessor)
          Check if the instance is the exact successor of another model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PosVelChebyshev

public PosVelChebyshev(AbsoluteDate start,
                       double duration,
                       double[] xCoeffs,
                       double[] yCoeffs,
                       double[] zCoeffs)
Simple constructor.

Parameters:
start - start of the validity range of the instance
duration - duration of the validity range of the instance
xCoeffs - Chebyshev polynomials coefficients for the X component (a reference to the array will be stored in the instance)
yCoeffs - Chebyshev polynomials coefficients for the Y component (a reference to the array will be stored in the instance)
zCoeffs - Chebyshev polynomials coefficients for the Z component (a reference to the array will be stored in the instance)
Method Detail

getDate

public AbsoluteDate getDate()
Get the date.

Specified by:
getDate in interface TimeStamped
Returns:
date attached to the object

getValidityDuration

public double getValidityDuration()
Get model validity duration.

Returns:
model validity duration in seconds

isSuccessorOf

public boolean isSuccessorOf(PosVelChebyshev predecessor)
Check if the instance is the exact successor of another model.

The instance is the successor of another model if its start date is within a 1ms tolerance interval of the end date of the other model.

Parameters:
predecessor - model to check instance against
Returns:
true if the instance is the successor of the predecessor model

inRange

public boolean inRange(AbsoluteDate date)
Check if a date is in validity range.

Parameters:
date - date to check
Returns:
true if date is in validity range

getPositionVelocity

public PVCoordinates getPositionVelocity(AbsoluteDate date)
Get the position-velocity at a specified date.

Parameters:
date - date at which position-velocity is requested
Returns:
position-velocity at specified date


Copyright © 2016 CNES. All Rights Reserved.