public class BodyFacade extends Object
| Constructor and Description |
|---|
BodyFacade(String name,
CelestialBody body)
Simple constructor.
|
| Modifier and Type | Method and 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.
|
public BodyFacade(String name, CelestialBody body)
name - name of the framebody - celestial body (may be null)public String getName()
public CelestialBody getBody()
@DefaultDataContext public static BodyFacade create(CenterName centerName)
This method uses the default data context.
centerName - input center namepublic static BodyFacade create(CenterName centerName, DataContext context)
centerName - input center namecontext - data contextpublic static BodyFacade create(CenterName centerName, CelestialBodies bodies)
centerName - input center namebodies - celestial bodiesCopyright © 2002-2023 CS GROUP. All rights reserved.