fr.cnes.sirius.validate.mocks.ephemeris
Class UserCelestialBody

java.lang.Object
  extended by org.orekit.bodies.AbstractCelestialBody
      extended by fr.cnes.sirius.validate.mocks.ephemeris.UserCelestialBody
All Implemented Interfaces:
Serializable, CelestialBody, PVCoordinatesProvider

public class UserCelestialBody
extends AbstractCelestialBody

User-made Celestial body.

Since:
1.2
Version:
$Id: UserCelestialBody.java 17578 2017-05-10 12:20:20Z bignon $
Author:
Tiziana Sabatini
See Also:
Serialized Form

Constructor Summary
UserCelestialBody(IEphemerisBody body, IUserEphemeris ephemeris)
          Constructor.
UserCelestialBody(IEphemerisBody body, IUserEphemeris ephemeris, FramesConfiguration framesConfigurationIn)
          Constructor with frame configuration.
 
Method Summary
 PVCoordinates getPVCoordinates(AbsoluteDate date, Frame frame)
          Computes the PV coordinates at a date using linear interpolator.
 PVCoordinates getPVCoordinatesLagrange4(AbsoluteDate date, Frame frame)
          Computes the PV coordinates at a date using Lagrange 4 interpolator.
 
Methods inherited from class org.orekit.bodies.AbstractCelestialBody
getBodyOrientedFrame, getFrame, getGM, getInertiallyOrientedFrame, getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserCelestialBody

public UserCelestialBody(IEphemerisBody body,
                         IUserEphemeris ephemeris)
Constructor.

Parameters:
body - the body
ephemeris - the ephemeris

UserCelestialBody

public UserCelestialBody(IEphemerisBody body,
                         IUserEphemeris ephemeris,
                         FramesConfiguration framesConfigurationIn)
Constructor with frame configuration.

Parameters:
body - the body
ephemeris - the ephemeris
framesConfigurationIn - the frame configuration
Method Detail

getPVCoordinatesLagrange4

public PVCoordinates getPVCoordinatesLagrange4(AbsoluteDate date,
                                               Frame frame)
                                        throws OrekitException
Computes the PV coordinates at a date using Lagrange 4 interpolator.

Parameters:
date - the date
frame - the frame
Returns:
the PV coordinates at the given date
Throws:
OrekitException - should not happen

getPVCoordinates

public PVCoordinates getPVCoordinates(AbsoluteDate date,
                                      Frame frame)
                               throws OrekitException
Computes the PV coordinates at a date using linear interpolator.

Specified by:
getPVCoordinates in interface PVCoordinatesProvider
Specified by:
getPVCoordinates in class AbstractCelestialBody
Parameters:
date - the date
frame - the frame
Returns:
the PV coordinates at the given date
Throws:
OrekitException - thrown if some frame conversion failed


Copyright © 2017 CNES. All Rights Reserved.