Class JulianEpoch

java.lang.Object
  extended by CoordinateEpoch
      extended by JulianEpoch
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Comparable<CoordinateEpoch>

public class JulianEpoch
extends CoordinateEpoch


Field Summary
static double MJD2000
           
 
Fields inherited from class CoordinateEpoch
precision, year
 
Constructor Summary
JulianEpoch()
           
JulianEpoch(double epoch)
           
 
Method Summary
 BesselianEpoch getBesselianEpoch()
           
 double getBesselianYear()
           
 double getJulianYear()
           
 double getMJD()
           
static double getMJDForYear(double year)
           
static double getYearForMJD(double MJD)
           
 void parse(java.lang.String text)
           
 void setMJD(double MJD)
           
 java.lang.String toString()
           
 java.lang.String toString(java.text.NumberFormat nf)
           
 
Methods inherited from class CoordinateEpoch
clone, compareTo, edit, edit, equals, forJulianDate, forString, getJulianDate, parse, parse
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MJD2000

public static final double MJD2000
See Also:
Constant Field Values
Constructor Detail

JulianEpoch

public JulianEpoch()

JulianEpoch

public JulianEpoch(double epoch)
Method Detail

getJulianYear

public double getJulianYear()
Specified by:
getJulianYear in class CoordinateEpoch

getBesselianYear

public double getBesselianYear()
Specified by:
getBesselianYear in class CoordinateEpoch

getBesselianEpoch

public BesselianEpoch getBesselianEpoch()

setMJD

public void setMJD(double MJD)
Specified by:
setMJD in class CoordinateEpoch

getMJD

public double getMJD()
Specified by:
getMJD in class CoordinateEpoch

getYearForMJD

public static double getYearForMJD(double MJD)

getMJDForYear

public static double getMJDForYear(double year)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toString

public java.lang.String toString(java.text.NumberFormat nf)

parse

public void parse(java.lang.String text)
           throws java.lang.NumberFormatException,
                  java.lang.IllegalArgumentException
Throws:
java.lang.NumberFormatException
java.lang.IllegalArgumentException