public class UserCelestialBodyLoader extends Object implements CelestialBodyLoader
UserCelestialBody
or BasicCelestialPoint
.
This loader is to be used in conjunction with CelestialBodyFactory
.
Constructor and Description |
---|
UserCelestialBodyLoader(PVCoordinatesProvider pvCoordinatesProvider,
double gm,
CelestialBodyOrientation celestialBodyOrientation,
Frame parentFrame,
BodyShape shape)
Constructor.
|
UserCelestialBodyLoader(PVCoordinatesProvider pvCoordinatesProvider,
double gm,
CelestialBodyOrientation celestialBodyOrientation,
Frame parentFrame,
BodyShape shape,
BSPEphemerisLoader.SpiceJ2000ConventionEnum spiceJ2000Convention)
Complete constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getName(String patriusName)
Returns name of body as known by the loader corresponding to PATRIUS body name.
|
CelestialBody |
loadCelestialBody(String name)
Load celestial body.
|
CelestialPoint |
loadCelestialPoint(String name)
Load celestial point.
|
public UserCelestialBodyLoader(PVCoordinatesProvider pvCoordinatesProvider, double gm, CelestialBodyOrientation celestialBodyOrientation, Frame parentFrame, BodyShape shape)
SpiceJ2000ConventionEnum is set to ICRF.
pvCoordinatesProvider
- position-velocity of the bodygm
- the value of the body's gravitational constantcelestialBodyOrientation
- celestial body orientation (may be null)parentFrame
- parent frame (usually it should be the ICRF centered on the parent body)shape
- body shape (may be null)public UserCelestialBodyLoader(PVCoordinatesProvider pvCoordinatesProvider, double gm, CelestialBodyOrientation celestialBodyOrientation, Frame parentFrame, BodyShape shape, BSPEphemerisLoader.SpiceJ2000ConventionEnum spiceJ2000Convention)
pvCoordinatesProvider
- position-velocity of the bodygm
- the value of the body's gravitational constantcelestialBodyOrientation
- celestial body orientation (may be null)parentFrame
- parent frame (usually it should be the ICRF centered on the parent body)shape
- body shape (may be null)spiceJ2000Convention
- Spice conventionpublic CelestialBody loadCelestialBody(String name)
loadCelestialBody
in interface CelestialBodyLoader
name
- name of the celestial bodypublic CelestialPoint loadCelestialPoint(String name) throws PatriusException
loadCelestialPoint
in interface CelestialBodyLoader
name
- name of the celestial pointPatriusException
- if the point cannot be loadedpublic String getName(String patriusName)
getName
in interface CelestialBodyLoader
patriusName
- PATRIUS body nameCopyright © 2023 CNES. All rights reserved.