|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Body.Name>
org.hermit.astro.Body.Name
public static enum Body.Name
This enumeration defines the celestial bodies we know about. Each member of the enum also contains the following information for the body:
Note that not all parameters are relevant to all objects. The Moon's diameter and magnitude are calculated in a special way.
Note: for Jupiter and Saturn, the apparent diameter and hence magnitude depend on the angle at which they present themselves to the Earth. We ignore this since we only need a rough magnitude.
NOTE: the angular data in the definitions is presented in the units noted. However we convert to RADIANS for the stored values.
Enum Constant Summary | |
---|---|
EARTH
The Earth. |
|
JUPITER
Jupiter. |
|
MARS
Mars. |
|
MERCURY
Mercury. |
|
MOON
The Moon. |
|
NEPTUNE
Neptune. |
|
SATURN
Saturn. |
|
SUN
The Sun. |
|
URANUS
Uranus. |
|
VENUS
Venus. |
Field Summary | |
---|---|
java.lang.String |
name
Name of this body. |
char |
symbol
Symbol of this body. |
org.hermit.astro.Vsop87 |
terms
VSOP Periodic terms; null for the Sun and Moon. |
double |
V_o
Base factor for magnitude, from AA chapter 41. |
double |
θ_o
Apparent diameter in radians at 1 AU (not semi-diameter!). |
Method Summary | |
---|---|
static Body.Name |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Body.Name[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Body.Name SUN
public static final Body.Name MOON
public static final Body.Name MERCURY
public static final Body.Name VENUS
public static final Body.Name EARTH
public static final Body.Name MARS
public static final Body.Name JUPITER
public static final Body.Name SATURN
public static final Body.Name URANUS
public static final Body.Name NEPTUNE
Field Detail |
---|
public final java.lang.String name
public final char symbol
public final org.hermit.astro.Vsop87 terms
public final double θ_o
public final double V_o
Method Detail |
---|
public static Body.Name[] values()
for (Body.Name c : Body.Name.values()) System.out.println(c);
public static Body.Name valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |