|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.orekit.bodies.AbstractCelestialBody
public abstract class AbstractCelestialBody
Abstract implementation of the CelestialBody interface.
This abstract implementation provides basic services that can be shared
by most implementations of the CelestialBody interface. It holds
the attraction coefficient and the body-centered frame, and also provides a
way to build this frame automatically if not already provided by sub-classes.
The only method that still needs to be implemented by sub-classes is the
getPVCoordinates method.
| Constructor Summary | |
|---|---|
protected |
AbstractCelestialBody(double gm,
Frame frame)
Build an instance using an existing body-centered frame. |
protected |
AbstractCelestialBody(double gm,
java.lang.String frameName,
Frame definingFrame)
Build an instance and the underlying frame. |
| Method Summary | |
|---|---|
Frame |
getFrame()
Get an inertially oriented body-centered frame. |
double |
getGM()
Get the attraction coefficient of the body. |
abstract PVCoordinates |
getPVCoordinates(AbsoluteDate date,
Frame frame)
Get the PVCoordinates of the body in the selected frame. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractCelestialBody(double gm,
Frame frame)
gm - attraction coefficient (in m3/s2)frame - existing body-centered frame to use
protected AbstractCelestialBody(double gm,
java.lang.String frameName,
Frame definingFrame)
The underlying body-centered frame built is a direct child of EME2000. Its defining transform is a simple linear
translation/velocity transform
without any rotation. The frame axes are therefore always parallel to
EME2000 frame axes.
gm - attraction coefficient (in m3/s2)frameName - frame name to usedefiningFrame - frame in which celestial body coordinates are defined| Method Detail |
|---|
public double getGM()
getGM in interface CelestialBodypublic Frame getFrame()
The frame is always bound to the body center, and its axes have a fixed orientation with respect to other inertial frames.
getFrame in interface CelestialBody
public abstract PVCoordinates getPVCoordinates(AbsoluteDate date,
Frame frame)
throws OrekitException
PVCoordinates of the body in the selected frame.
getPVCoordinates in interface PVCoordinatesProviderdate - current dateframe - the frame where to define the position
OrekitException - if position cannot be computed in given frame
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||