astro.data.ephemerides
Class CelestialComputer

java.lang.Object
  |
  +--astro.data.ephemerides.CelestialComputer

public class CelestialComputer
extends java.lang.Object

This class has been written after the work of:

This class actually doesn't do anything else than what Henning Umland very appropriatly provided in JavaScript. The constructor is actually triggering the calculation process, finishing with the setData() method, that populates a JavaBean containing the result of the calculation, ready to be displayed or reused. We provide as examples two ways to call this class.

See Also:
Main, DataPublisher, Data

Constructor Summary
CelestialComputer(java.util.Date date)
          Takes a Date as a parameter.
CelestialComputer(java.lang.String y, java.lang.String m, java.lang.String d, java.lang.String h, java.lang.String mn, java.lang.String s, java.lang.String deltaT)
          Class constructor Processes all the position for the given time.
 
Method Summary
 Data getData()
          To call to get the result of the computations done by the constructor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CelestialComputer

public CelestialComputer(java.util.Date date)
Takes a Date as a parameter. Will compute after this. Delta will be considered as null (0).

Parameters:
date - The date you want the data for.

CelestialComputer

public CelestialComputer(java.lang.String y,
                         java.lang.String m,
                         java.lang.String d,
                         java.lang.String h,
                         java.lang.String mn,
                         java.lang.String s,
                         java.lang.String deltaT)
Class constructor Processes all the position for the given time. All data will be stored in a astro.data.Data, returned by the getData() method.

Parameters:
y - year
m - month
d - day
h - hour
mn - minute
s - second
deltaT - delta
See Also:
Data
Method Detail

getData

public Data getData()
To call to get the result of the computations done by the constructor.

Returns:
astro.data.Data
See Also:
Data