public class UserCelestialBody extends AbstractCelestialBody
PVCoordinatesProvider providing body position-velocity through timeCONSTANT_ROTATING_FRAME_NAME, ICRF_FRAME_NAME, INERTIAL_EQUATOR_FRAME_NAME, MEAN_EQUATOR_FRAME_NAME, MEAN_ROTATING_FRAME_NAME, TRUE_EQUATOR_FRAME_NAME, TRUE_ROTATING_FRAME_NAME| Constructor and Description |
|---|
UserCelestialBody(String name,
PVCoordinatesProvider aPVCoordinateProvider,
double gm,
IAUPole iauPole,
Frame definingFrameIn,
GeometricBodyShape shapeIn)
Build an instance and the underlying frame.
|
| Modifier and Type | Method and Description |
|---|---|
Frame |
getNativeFrame(AbsoluteDate date,
Frame frame)
Get the native frame, i.e.
|
PVCoordinates |
getPVCoordinates(AbsoluteDate date,
Frame frame)
Get the
PVCoordinates of the body in the selected frame. |
PVCoordinatesProvider |
getPVCoordinatesProvider()
Get the PV coordinates provider.
|
String |
toString()
Returns a string representation of the body and its attributes.
|
getAttractionModel, getConstantRotatingFrame, getGM, getIAUPole, getICRF, getInertialEquatorFrame, getMeanEquatorFrame, getMeanRotatingFrame, getName, getShape, getTrueEquatorFrame, getTrueRotatingFrame, setAttractionModel, setGM, setIAUPole, setShapepublic UserCelestialBody(String name, PVCoordinatesProvider aPVCoordinateProvider, double gm, IAUPole iauPole, Frame definingFrameIn, GeometricBodyShape shapeIn)
name - name of the bodyaPVCoordinateProvider - Position-Velocity of celestial bodygm - attraction coefficient (in m3/s2)iauPole - IAU pole implementationdefiningFrameIn - frame in which celestial body coordinates are definedshapeIn - body shapepublic PVCoordinatesProvider getPVCoordinatesProvider()
public PVCoordinates getPVCoordinates(AbsoluteDate date, Frame frame) throws PatriusException
PVCoordinates of the body in the selected frame.getPVCoordinates in interface PVCoordinatesProvidergetPVCoordinates in class AbstractCelestialBodydate - current dateframe - the frame where to define the positionPatriusException - if position cannot be computed in given framepublic Frame getNativeFrame(AbsoluteDate date, Frame frame) throws PatriusException
date - a dateframe - a framePatriusException - thrown if native frame is undefined or unknownpublic String toString()
toString in interface CelestialBodytoString in class AbstractCelestialBodyCopyright © 2022 CNES. All rights reserved.