Enum Class CenterName

java.lang.Object
java.lang.Enum<CenterName>
org.orekit.files.ccsds.definitions.CenterName
All Implemented Interfaces:
Serializable, Comparable<CenterName>, Constable

public enum CenterName extends Enum<CenterName>
Orbit central bodies for which a Celestial body can be created.
Since:
6.1
Author:
sports
  • Enum Constant Details

    • SOLAR_SYSTEM_BARYCENTER

      public static final CenterName SOLAR_SYSTEM_BARYCENTER
      Solar system barycenter aggregated body.
    • SUN

      public static final CenterName SUN
      Sun body.
    • MERCURY

      public static final CenterName MERCURY
      Mercury body.
    • VENUS

      public static final CenterName VENUS
      Venus body.
    • EARTH_MOON

      public static final CenterName EARTH_MOON
      Earth-Moon barycenter bodies pair.
    • EARTH

      public static final CenterName EARTH
      Earth body.
    • MOON

      public static final CenterName MOON
      Moon body.
    • MARS

      public static final CenterName MARS
      Mars body.
    • JUPITER

      public static final CenterName JUPITER
      Jupiter body.
    • SATURN

      public static final CenterName SATURN
      Saturn body.
    • URANUS

      public static final CenterName URANUS
      Uranus body.
    • NEPTUNE

      public static final CenterName NEPTUNE
      Neptune body.
    • PLUTO

      public static final CenterName PLUTO
      Pluto body.
  • Method Details

    • values

      public static CenterName[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static CenterName valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getCelestialBody

      @DefaultDataContext public CelestialBody getCelestialBody()
      Get the celestial body corresponding to the CCSDS constant.

      This method uses the default data context.

      Returns:
      celestial body corresponding to the CCSDS constant
      See Also:
    • getCelestialBody

      public CelestialBody getCelestialBody(CelestialBodies celestialBodies)
      Get the celestial body corresponding to the CCSDS constant.
      Parameters:
      celestialBodies - the set of celestial bodies to use.
      Returns:
      celestial body corresponding to the CCSDS constant
      Since:
      10.1
    • guessCenter

      public static String guessCenter(Frame frame)
      Guess the name of the center of the reference frame.
      Parameters:
      frame - a reference frame for ephemeris output.
      Returns:
      the string to use in the OEM file to describe the origin of frame.
    • map

      public static CenterName map(Frame frame)
      Map an Orekit frame to a CCSDS center.
      Parameters:
      frame - a reference frame.
      Returns:
      the string to use in the OEM file to describe the origin of frame, or null if no such center can be found