|JEphem Presentation Ephemeris SkyMap Curve Informatic Library Download Glossary About|
|JEphem Ephemeris trail Class organization|
Now that we know how to get the coordinates of the celestial bodies, we can have a first glance at the program organization.
more details will be given in the page "Putting all together".
Pluto99is autonom, but
ELP82use other files ; this is summarized in the following diagram :
All these classes are in the package |
The text files containing data are in directory
Bodyis a class representing a celestial body, used to memorize the coordinates. One field (
index) permits to know which planet the body refers to. For this, an integer is used. All classes of JEphem use constants of
SolarSystemConstantsto identify celestial bodies.
AstroContextis the conductor of ephemeris calculation, the central class. It handles the date for which the computation is asked (
jd), and an array of bodies.
AstroContext.calcBodyCoords(). One of the tasks of
AstroContextis to call the low-level classes in function of the bodies it is handling.
jephem.astro.AstroContextis characterized by its julian day and its bodies. As always in JEphem, the variables holding these data are private, and accessible via public methods.
whichBodyis expressed with constants of