Package org.aavso.tools.vstar.util.date
Class AbstractHJDConverter
java.lang.Object
org.aavso.tools.vstar.util.date.AbstractHJDConverter
- Direct Known Subclasses:
B1950HJDConverter,J2000HJDConverter
All HJD converters must extend this base class which also acts as a Factory
Method to select a converter for a specified epoch.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract doubleGiven a JD, RA, and Dec, return HJD.static AbstractHJDConvertergetInstance(EpochType epoch) Factory method to return suitable converter for a given epoch.
-
Constructor Details
-
AbstractHJDConverter
public AbstractHJDConverter()
-
-
Method Details
-
getInstance
Factory method to return suitable converter for a given epoch.- Returns:
- The HJD converter for the specified epoch.
-
convert
Given a JD, RA, and Dec, return HJD.- Parameters:
jd- The Julian Date to be converted.ra- The right ascension coordinate.dec- The declination coordinate.- Returns:
- The corresponding Heliocentric Julian Date.
-