fr.cnes.sirius.validate.mocks.ephemeris
Enum EphemerisBody

java.lang.Object
  extended by java.lang.Enum<EphemerisBody>
      extended by fr.cnes.sirius.validate.mocks.ephemeris.EphemerisBody
All Implemented Interfaces:
IEphemerisBody, Serializable, Comparable<EphemerisBody>

public enum EphemerisBody
extends Enum<EphemerisBody>
implements IEphemerisBody

Class implementing the IEphemerisBody interface with the implementation of the methods returning the attraction coefficient and the definition for the IAU pole. The methods for the IAU pole have been copied from the JPL ephemeris classes.

Since:
1.2
Version:
$Id: EphemerisBody.java 6766 2012-10-29 15:14:38Z CardosoP $
Author:
Tiziana Sabatini

Enum Constant Summary
MOON
          The Moon.
SUN
          The Sun.
 
Method Summary
static EphemerisBody valueOf(String name)
          Returns the enum constant of this type with the specified name.
static EphemerisBody[] 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
 
Methods inherited from interface fr.cnes.sirius.validate.mocks.ephemeris.IEphemerisBody
getGM, getIAUPole, name
 

Enum Constant Detail

SUN

public static final EphemerisBody SUN
The Sun.


MOON

public static final EphemerisBody MOON
The Moon.

Method Detail

values

public static EphemerisBody[] 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 (EphemerisBody c : EphemerisBody.values())
    System.out.println(c);

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

valueOf

public static EphemerisBody valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2016 CNES. All Rights Reserved.