HiRISE

HiRISE.HiPlan.SPICE
Class Calc_Ls.Record

java.lang.Object
  extended by HiRISE.HiPlan.SPICE.Calc_Ls.Record
All Implemented Interfaces:
Comparable<Calc_Ls.Record>
Enclosing class:
Calc_Ls

public static class Calc_Ls.Record
extends Object
implements Comparable<Calc_Ls.Record>

An immutable solar longitude calculation record. In addition to solar longitude, the record contains a heliocentric distance for Mars in AU and a geocentric distance for Mars in AU.

Version:
1.5
Author:
Christian Schaller

Constructor Summary
Calc_Ls.Record(Date date, double et, double ls, double sunMarsDistance, double earthMarsDistance)
          Creates a new record from the input data.
 
Method Summary
 int compareTo(Calc_Ls.Record r)
          Compares this record to another.
 boolean equals(Object o)
           
 Date getDate()
           
 double getEarthMarsDistance()
           
 double getEt()
           
 double getLs()
          Radians.
 double getSunMarsDistance()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Calc_Ls.Record

public Calc_Ls.Record(Date date,
                      double et,
                      double ls,
                      double sunMarsDistance,
                      double earthMarsDistance)
Creates a new record from the input data.

Parameters:
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.
Method Detail

getDate

public Date getDate()

getEt

public double getEt()

getLs

public double getLs()
Radians.


getSunMarsDistance

public double getSunMarsDistance()

getEarthMarsDistance

public double getEarthMarsDistance()

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

compareTo

public int compareTo(Calc_Ls.Record r)
Compares this record to another. Only the UTC dates are compared, so this comparator imposes an order that is inconsistent with equals.

Specified by:
compareTo in interface Comparable<Calc_Ls.Record>
Parameters:
r - the other record.
Returns:
the value 0 if the argument record's date is equal to this one's; a value less than 0 if this record's date is before the argument's date; and a value greater than 0 if this record's date is after the argument's date.
See Also:
Date.compareTo(Date)

HiRISE

Copyright (C) Arizona Board of Regents on behalf of the Planetary Image Research Laboratory, Lunar and Planetary Laboratory at the University of Arizona