com.askgeo.astronomy
Enum Accuracy

java.lang.Object
  extended by java.lang.Enum<Accuracy>
      extended by com.askgeo.astronomy.Accuracy
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Accuracy>

public enum Accuracy
extends java.lang.Enum<Accuracy>

The accuracy of a new Earth instance is specified with this enumeration. Higher accuracy comes at the cost of longer computation times. The lowest accuracy is sufficient for most purposes.

The primary difference between the accuracy levels is in the number of terms used to represent the nutation of the Earth (described in each value below). In addition, the low and medium accuracy modes are less accurate in computing:


Enum Constant Summary
HIGH_ACCURACY
          Uses the IAU 2000A nutation model that includes 1,365 terms and is the most accurate model we make available.
LOW_ACCURACY
          Uses the IAU 2000B nutation model that includes 77-terms and is accurate to about 1 milliarcsecond.
MEDIUM_ACCURACY
          Uses the IAU 2000K nutation model that includes the largest 488 terms from the IAU 2000A model and is accurate to about 0.1 milliarcsecond.
 
Method Summary
static Accuracy valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Accuracy[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

LOW_ACCURACY

public static final Accuracy LOW_ACCURACY
Uses the IAU 2000B nutation model that includes 77-terms and is accurate to about 1 milliarcsecond.


MEDIUM_ACCURACY

public static final Accuracy MEDIUM_ACCURACY
Uses the IAU 2000K nutation model that includes the largest 488 terms from the IAU 2000A model and is accurate to about 0.1 milliarcsecond.


HIGH_ACCURACY

public static final Accuracy HIGH_ACCURACY
Uses the IAU 2000A nutation model that includes 1,365 terms and is the most accurate model we make available.

Method Detail

values

public static Accuracy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Accuracy c : Accuracy.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Accuracy valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null


Copyright © 2012 Vector Magic, Inc.