public class NumericalPropagatorBuilder extends Object implements PropagatorBuilder
Constructor and Description |
---|
NumericalPropagatorBuilder(double mu,
Frame frame,
FirstOrderIntegratorBuilder builder)
Build a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addForceModel(ForceModel model)
Add a force model to the global perturbation model.
|
NumericalPropagator |
buildPropagator(AbsoluteDate date,
double[] parameters)
Build a propagator.
|
Frame |
getFrame()
Get the frame in which the orbit is propagated.
|
double |
getParameter(String name) |
Collection<String> |
getParametersNames() |
boolean |
isSupported(String name) |
void |
setAttitudeProvider(AttitudeProvider attitudeProvider)
Set the attitude provider.
|
void |
setFreeParameters(Collection<String> parameters)
Set the free parameters in order to build the propagator.
|
void |
setMass(double mass)
Set the initial mass.
|
void |
setParameter(String name,
double value) |
public NumericalPropagatorBuilder(double mu, Frame frame, FirstOrderIntegratorBuilder builder)
mu
- central attraction coefficient (m³/s²)frame
- the frame in which the orbit is propagated
(must be a pseudo-inertial frame
)builder
- first order integrator builderpublic void setAttitudeProvider(AttitudeProvider attitudeProvider)
attitudeProvider
- attitude providerpublic void setMass(double mass)
mass
- the mass (kg)public void addForceModel(ForceModel model)
If this method is not called at all, the integrated orbit will follow a keplerian evolution only.
model
- perturbing ForceModel
to addpublic NumericalPropagator buildPropagator(AbsoluteDate date, double[] parameters) throws OrekitException
buildPropagator
in interface PropagatorBuilder
date
- date associated to the parameters to configure the initial stateparameters
- set of position/velocity(/free) parameters to configure the propagatorOrekitException
- if propagator cannot be buildpublic Frame getFrame()
getFrame
in interface PropagatorBuilder
public void setFreeParameters(Collection<String> parameters) throws IllegalArgumentException
The parameters must belong to the list returned by Parameterizable.getParametersNames()
setFreeParameters
in interface PropagatorBuilder
parameters
- free parameters to set when building the propagatorIllegalArgumentException
public Collection<String> getParametersNames()
getParametersNames
in interface Parameterizable
public boolean isSupported(String name)
isSupported
in interface Parameterizable
public double getParameter(String name) throws IllegalArgumentException
getParameter
in interface ParameterizedODE
IllegalArgumentException
public void setParameter(String name, double value) throws IllegalArgumentException
setParameter
in interface ParameterizedODE
IllegalArgumentException
Copyright © 2002-2015 CS Systèmes d'information. All rights reserved.