Interface CelestialBodies

  • All Known Implementing Classes:
    LazyLoadedCelestialBodies

    public interface CelestialBodies
    Commonly used celestial bodies. This interface defines methods for obtaining intances of the commonly used celestial bodies.
    Since:
    10.1
    Author:
    Luc Maisonobe, Evan Ward
    See Also:
    CelestialBodyFactory
    • Method Detail

      • getSun

        CelestialBody getSun()
        Get the Sun singleton body.
        Returns:
        Sun body
      • getMercury

        CelestialBody getMercury()
        Get the Mercury singleton body.
        Returns:
        Sun body
      • getVenus

        CelestialBody getVenus()
        Get the Venus singleton body.
        Returns:
        Venus body
      • getEarth

        CelestialBody getEarth()
        Get the Earth singleton body.
        Returns:
        Earth body
      • getMoon

        CelestialBody getMoon()
        Get the Moon singleton body.
        Returns:
        Moon body
      • getMars

        CelestialBody getMars()
        Get the Mars singleton body.
        Returns:
        Mars body
      • getJupiter

        CelestialBody getJupiter()
        Get the Jupiter singleton body.
        Returns:
        Jupiter body
      • getSaturn

        CelestialBody getSaturn()
        Get the Saturn singleton body.
        Returns:
        Saturn body
      • getUranus

        CelestialBody getUranus()
        Get the Uranus singleton body.
        Returns:
        Uranus body
      • getNeptune

        CelestialBody getNeptune()
        Get the Neptune singleton body.
        Returns:
        Neptune body
      • getPluto

        CelestialBody getPluto()
        Get the Pluto singleton body.
        Returns:
        Pluto body
      • getBody

        CelestialBody getBody​(String name)
        Get a celestial body. The names of the common bodies are defined as constants in CelestialBodyFactory.
        Parameters:
        name - name of the celestial body
        Returns:
        celestial body