org.orekit.bodies
Class UserCelestialBody

java.lang.Object
  extended by org.orekit.bodies.AbstractCelestialBody
      extended by org.orekit.bodies.UserCelestialBody
All Implemented Interfaces:
Serializable, CelestialBody, PVCoordinatesProvider

public class UserCelestialBody
extends AbstractCelestialBody

User-defined celestial body. It can be used to define any celestial body with:

Since:
3.4
Version:
$Id: UserCelestialBody.java 17582 2017-05-10 12:58:16Z bignon $
Author:
Emmanuel Bignon
See Also:
Serialized Form
Concurrency :
immutable

Constructor Summary
UserCelestialBody(String name, PVCoordinatesProvider aPVCoordinateProvider, double gm, IAUPole iauPole)
          Build an instance and the underlying frame.
 
Method Summary
 PVCoordinates getPVCoordinates(AbsoluteDate date, Frame frame)
          Get the PVCoordinates of the body in the selected frame.
 
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(String name,
                         PVCoordinatesProvider aPVCoordinateProvider,
                         double gm,
                         IAUPole iauPole)
Build an instance and the underlying frame.

Parameters:
name - name of the body
aPVCoordinateProvider - Position-Velocity of celestial body
gm - attraction coefficient (in m3/s2)
iauPole - IAU pole implementation
Method Detail

getPVCoordinates

public PVCoordinates getPVCoordinates(AbsoluteDate date,
                                      Frame frame)
                               throws OrekitException
Get the PVCoordinates of the body in the selected frame.

Specified by:
getPVCoordinates in interface PVCoordinatesProvider
Specified by:
getPVCoordinates in class AbstractCelestialBody
Parameters:
date - current date
frame - the frame where to define the position
Returns:
position/velocity of the body (m and m/s)
Throws:
OrekitException - if position cannot be computed in given frame


Copyright © 2017 CNES. All Rights Reserved.