public static class GPSPropagator.Builder extends Object
It implements the classical builder pattern.
Constructor and Description |
---|
Builder(GPSOrbitalElements gpsOrbElt)
Initializes the builder.
|
Builder(GPSOrbitalElements gpsOrbElt,
Frames frames)
Initializes the builder.
|
Modifier and Type | Method and Description |
---|---|
GPSPropagator.Builder |
attitudeProvider(AttitudeProvider userProvider)
Sets the attitude provider.
|
GPSPropagator |
build()
Finalizes the build.
|
GPSPropagator.Builder |
ecef(Frame bodyFixed)
Sets the Earth Centered Earth Fixed frame assimilated to the WGS84 ECEF.
|
GPSPropagator.Builder |
eci(Frame inertial)
Sets the Earth Centered Inertial frame used for propagation.
|
GPSPropagator.Builder |
mass(double userMass)
Sets the mass.
|
@DefaultDataContext public Builder(GPSOrbitalElements gpsOrbElt)
The GPS orbital elements is the only requested parameter to build a GPSPropagator.
The attitude provider is set by default to the
DEFAULT_LAW
in the
default data context.
The mass is set by default to the
DEFAULT_MASS
.
The ECI frame is set by default to the
EME2000 frame
in the default data
context.
The ECEF frame is set by default to the
CIO/2010-based ITRF simple EOP
in the default data context.
This constructor uses the default data context
.
Another data context can be set using
Builder(final GPSOrbitalElements gpsOrbElt, final Frames frames)
gpsOrbElt
- the GPS orbital elements to be used by the GPSpropagator.attitudeProvider(AttitudeProvider provider)
,
mass(double mass)
,
eci(Frame inertial)
,
ecef(Frame bodyFixed)
public Builder(GPSOrbitalElements gpsOrbElt, Frames frames)
The GPS orbital elements is the only requested parameter to build a GPSPropagator.
The attitude provider is set by default to the
Propagator.getDefaultLaw(Frames)
DEFAULT_LAW}.
The mass is set by default to the
DEFAULT_MASS
.
The ECI frame is set by default to the
EME2000 frame
.
The ECEF frame is set by default to the
Frames.getITRF(IERSConventions, boolean)
CIO/2010-based ITRF simple EOP}.
gpsOrbElt
- the GPS orbital elements to be used by the GPSpropagator.frames
- set of frames to use.attitudeProvider(AttitudeProvider provider)
,
mass(double mass)
,
eci(Frame inertial)
,
ecef(Frame bodyFixed)
public GPSPropagator.Builder attitudeProvider(AttitudeProvider userProvider)
userProvider
- the attitude providerpublic GPSPropagator.Builder mass(double userMass)
userMass
- the mass (in kg)public GPSPropagator.Builder eci(Frame inertial)
inertial
- the ECI framepublic GPSPropagator.Builder ecef(Frame bodyFixed)
bodyFixed
- the ECEF framepublic GPSPropagator build()
Copyright © 2002-2020 CS Group. All rights reserved.