public abstract class AbstractPropagatorBuilder extends Object implements PropagatorBuilder
| Constructor and Description |
|---|
AbstractPropagatorBuilder(Frame frame,
double mu,
OrbitType orbitType,
PositionAngle positionAngle)
Build a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addSupportedParameter(String name)
Add a supported parameter name.
|
protected void |
checkParameters(double[] parameters)
Check the size of the parameters array.
|
protected Orbit |
createInitialOrbit(AbsoluteDate date,
double[] parameters)
Crate the orbit for the first 6 parameters.
|
Frame |
getFrame()
Get the frame in which the orbit is propagated.
|
List<String> |
getFreeParameters()
Get the free parameters used to build the propagator.
|
OrbitType |
getOrbitType()
Get the orbit type expected for the 6 first parameters in
PropagatorBuilder.buildPropagator(AbsoluteDate, double[]). |
double |
getParameter(String name)
Get parameter value from its name.
|
PositionAngle |
getPositionAngle()
Get the position angle type expected for the 6 first parameters in
PropagatorBuilder.buildPropagator(AbsoluteDate, double[]). |
List<String> |
getSupportedParameters()
Get the names of the supported parameters.
|
void |
setFreeParameters(List<String> parameters)
Set the free parameters in order to build the propagator.
|
void |
setParameter(String name,
double value)
Set parameter value from its name.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuildPropagatorpublic AbstractPropagatorBuilder(Frame frame, double mu, OrbitType orbitType, PositionAngle positionAngle)
frame - the frame in which the orbit is propagated
(must be a pseudo-inertial frame)mu - central attraction coefficient (m³/s²)orbitType - orbit type to usepositionAngle - position angle type to usepublic OrbitType getOrbitType()
PropagatorBuilder.buildPropagator(AbsoluteDate, double[]).getOrbitType in interface PropagatorBuilderPropagatorBuilder.buildPropagator(AbsoluteDate, double[])PropagatorBuilder.buildPropagator(AbsoluteDate, double[]),
PropagatorBuilder.getPositionAngle()public PositionAngle getPositionAngle()
PropagatorBuilder.buildPropagator(AbsoluteDate, double[]).getPositionAngle in interface PropagatorBuilderPropagatorBuilder.buildPropagator(AbsoluteDate, double[])PropagatorBuilder.buildPropagator(AbsoluteDate, double[]),
PropagatorBuilder.getOrbitType()public Frame getFrame()
getFrame in interface PropagatorBuilderpublic List<String> getSupportedParameters()
getSupportedParameters in interface PropagatorBuilderpublic void setFreeParameters(List<String> parameters) throws OrekitIllegalArgumentException
The parameters must belong to the list returned by PropagatorBuilder.getSupportedParameters()
setFreeParameters in interface PropagatorBuilderparameters - free parameters to set when building the propagatorOrekitIllegalArgumentException - if one of the parameters is not supportedpublic List<String> getFreeParameters()
getFreeParameters in interface PropagatorBuilderpublic double getParameter(String name) throws OrekitIllegalArgumentException
The abstract base class only supports NewtonianAttraction.CENTRAL_ATTRACTION_COEFFICIENT, specialized propagator
builders may support more parameters.
getParameter in interface PropagatorBuildername - parameter nameOrekitIllegalArgumentException - if parameter is not supportedpublic void setParameter(String name, double value) throws OrekitIllegalArgumentException
The abstract base class only supports NewtonianAttraction.CENTRAL_ATTRACTION_COEFFICIENT, specialized propagator
builders may support more parameters.
setParameter in interface PropagatorBuildername - parameter namevalue - parameter valueOrekitIllegalArgumentException - if parameter is not supportedprotected void checkParameters(double[] parameters)
throws OrekitIllegalArgumentException
parameters - to configure the propagatorOrekitIllegalArgumentException - if the number of
parameters is not 6 (for initial state) plus the number of free
parametersprotected Orbit createInitialOrbit(AbsoluteDate date, double[] parameters)
date - date associated to the parameters to configure the initial stateparameters - set of position/velocity(/free) parameters to configure the propagatorprotected void addSupportedParameter(String name) throws OrekitIllegalArgumentException
name - name of a supported parameterOrekitIllegalArgumentException - if the name is already supportedCopyright © 2002-2016 CS Systèmes d'information. All rights reserved.