public static class Calc_Ls.Record extends java.lang.Object implements java.lang.Comparable<Calc_Ls.Record>
Constructor and Description |
---|
Record(java.util.Date date,
double et,
double ls,
double sunMarsDistance,
double earthMarsDistance)
Creates a new record from the input data.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Calc_Ls.Record r)
Compares this record to another.
|
boolean |
equals(java.lang.Object o) |
java.util.Date |
getDate() |
double |
getEarthMarsDistance() |
double |
getEt() |
double |
getLs()
Radians.
|
double |
getSunMarsDistance() |
int |
hashCode() |
java.lang.String |
toString() |
public Record(java.util.Date date, double et, double ls, double sunMarsDistance, double earthMarsDistance)
date
- the UTC date.et
- the ephemeris time.ls
- the solar longitude in radians.sunMarsDistance
- the heliocentric distance to Mars in AU.earthMarsDistance
- the geocentric distance to Mars in AU.public java.util.Date getDate()
public double getEt()
public double getLs()
public double getSunMarsDistance()
public double getEarthMarsDistance()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int compareTo(Calc_Ls.Record r)
compareTo
in interface java.lang.Comparable<Calc_Ls.Record>
r
- the other record.Date.compareTo(Date)
Copyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona