|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.grelf.astro.Epoch
public class Epoch
Represent astronomical epochs, such as B1950.0 or J2010.0. The IAU changed the standard from Besselian to Julian as from 1984. Besselian epochs use tropical years of 365.2421988 days. The Julian system is in some ways simpler because it uses years of exactly 365.25 days. Epoch B1950.0 was JDE 2433282.4235. Epoch J2000.0 was JDE 2451545.0 exactly.
| Field Summary | |
|---|---|
static Epoch |
J2000
|
| Constructor Summary | |
|---|---|
Epoch(char type,
float year)
Creates an Epoch with any type letter (but it must be 'B' or 'J' to make sense astronomically). |
|
Epoch(float year)
Creates an Epoch assuming the type letter is 'J'. |
|
| Method Summary | |
|---|---|
Epoch |
clone()
Returns a new Epoch object with the same data. |
boolean |
equals(java.lang.Object other)
|
JulianDate |
getJulianDate()
Returns null if the epoch type is not 'B' or 'J'. |
char |
getType()
'J' or 'B'. |
float |
getYear()
|
int |
hashCode()
Enable objects of this class to be used as hash keys. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Epoch J2000
| Constructor Detail |
|---|
public Epoch(float year)
public Epoch(char type,
float year)
| Method Detail |
|---|
public float getYear()
public char getType()
public JulianDate getJulianDate()
public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic Epoch clone()
clone in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||