public class FrameFacade extends Object
Constructor and Description |
---|
FrameFacade(Frame frame,
CelestialBodyFrame celestialBodyFrame,
OrbitRelativeFrame orbitRelativeFrame,
SpacecraftBodyFrame spacecraftBodyFrame,
String name)
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
CelestialBodyFrame |
asCelestialBodyFrame()
Get the associated
celestial body frame . |
Frame |
asFrame()
Get the associated frame tree node.
|
OrbitRelativeFrame |
asOrbitRelativeFrame()
Get the associated
orbit relative frame . |
SpacecraftBodyFrame |
asSpacecraftBodyFrame()
Get the associated
spacecraft body frame . |
String |
getName()
Get the CCSDS name for the frame.
|
static FrameFacade |
map(Frame frame)
Map an Orekit frame to a CCSDS frame facade.
|
static FrameFacade |
parse(String name,
IERSConventions conventions,
boolean simpleEOP,
DataContext dataContext,
boolean allowCelestial,
boolean allowOrbit,
boolean allowSpacecraft)
Simple constructor.
|
public FrameFacade(Frame frame, CelestialBodyFrame celestialBodyFrame, OrbitRelativeFrame orbitRelativeFrame, SpacecraftBodyFrame spacecraftBodyFrame, String name)
At most one of celestialBodyFrame
, orbitRelativeFrame
or spacecraftBodyFrame
may be non null. They may all be null
if frame is unknown, in which case only the name will be available.
frame
- reference to node in Orekit frames tree (may be null)celestialBodyFrame
- reference to celestial body centered frame (may be null)orbitRelativeFrame
- reference to orbit-relative frame (may be null)spacecraftBodyFrame
- reference to spacecraft body frame (may be null)name
- name of the framepublic Frame asFrame()
public CelestialBodyFrame asCelestialBodyFrame()
celestial body frame
.orbit
,
a spacecraft
or is not supportedpublic OrbitRelativeFrame asOrbitRelativeFrame()
orbit relative frame
.celestial body
,
a spacecraft
or is not supportedpublic SpacecraftBodyFrame asSpacecraftBodyFrame()
spacecraft body frame
.celestial body
,
an orbit
or is not supportedpublic String getName()
public static FrameFacade map(Frame frame)
frame
- a reference frame.public static FrameFacade parse(String name, IERSConventions conventions, boolean simpleEOP, DataContext dataContext, boolean allowCelestial, boolean allowOrbit, boolean allowSpacecraft)
name
- name of the frameconventions
- IERS conventions to usesimpleEOP
- if true, tidal effects are ignored when interpolating EOPdataContext
- to use when creating the frameallowCelestial
- if true, CelestialBodyFrame
are allowedallowOrbit
- if true, OrbitRelativeFrame
are allowedallowSpacecraft
- if true, SpacecraftBodyFrame
are allowedCopyright © 2002-2022 CS GROUP. All rights reserved.