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 Summary
Constructors Constructor Description BodyFacade(String name, CelestialBody body)
Simple constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BodyFacade
create(CenterName centerName)
Create a body facade from an input center name.static BodyFacade
create(CenterName centerName, CelestialBodies bodies)
Create a body facade from an input center name.static BodyFacade
create(CenterName centerName, DataContext context)
Create a body facade from an input center name.CelestialBody
getBody()
Get the celestial body.String
getName()
Get the CCSDS name for the body.
-
-
-
Constructor Detail
-
BodyFacade
public BodyFacade(String name, CelestialBody body)
Simple constructor.- Parameters:
name
- name of the framebody
- celestial body (may be null)
-
-
Method Detail
-
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 namecontext
- 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 namebodies
- celestial bodies- Returns:
- a body facade corresponding to the input center name
- Since:
- 12.0
-
-