Class BodyFacade

java.lang.Object
org.orekit.files.ccsds.definitions.BodyFacade

public class BodyFacade extends Object
Facade in front of several center bodies in CCSDS messages.
Since:
11.0
Author:
Luc Maisonobe
  • Constructor Details

    • BodyFacade

      public BodyFacade(String name, CelestialBody body)
      Simple constructor.
      Parameters:
      name - name of the frame
      body - celestial body (may be null)
  • Method Details

    • getName

      public String getName()
      Get the CCSDS name for the body.
      Returns:
      CCSDS name
    • getBody

      public CelestialBody getBody()
      Get the celestial body.
      Returns:
      celestial body (may be null)
    • create

      @DefaultDataContext public static BodyFacade create(CenterName centerName)
      Create a body facade from an input center name.

      This method uses the default data context.

      Parameters:
      centerName - input center name
      Returns:
      a body facade corresponding to the input center name
      Since:
      11.2
    • create

      public static BodyFacade create(CenterName centerName, DataContext context)
      Create a body facade from an input center name.
      Parameters:
      centerName - input center name
      context - data context
      Returns:
      a body facade corresponding to the input center name
      Since:
      12.0
    • create

      public static BodyFacade create(CenterName centerName, CelestialBodies bodies)
      Create a body facade from an input center name.
      Parameters:
      centerName - input center name
      bodies - celestial bodies
      Returns:
      a body facade corresponding to the input center name
      Since:
      12.0