org.orekit.bodies
Class UserCelestialBody
java.lang.Object
org.orekit.bodies.AbstractCelestialBody
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:
- Its name
- A
PVCoordinatesProvider
providing body position-velocity through time
- Its gravitational constant
- Its pole motion (reference data are provided by IAU)
- Since:
- 3.4
- Version:
- $Id: UserCelestialBody.java 17582 2017-05-10 12:58:16Z bignon $
- Author:
- Emmanuel Bignon
- See Also:
- Serialized Form
- Concurrency :
- immutable
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UserCelestialBody
public UserCelestialBody(String name,
PVCoordinatesProvider aPVCoordinateProvider,
double gm,
IAUPole iauPole)
- Build an instance and the underlying frame.
- Parameters:
name
- name of the bodyaPVCoordinateProvider
- Position-Velocity of celestial bodygm
- attraction coefficient (in m3/s2)iauPole
- IAU pole implementation
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 dateframe
- 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.