Class AbstractVariableStepIntegratorBuilder
- java.lang.Object
-
- org.orekit.propagation.conversion.AbstractVariableStepIntegratorBuilder
-
- All Implemented Interfaces:
ODEIntegratorBuilder
- Direct Known Subclasses:
AdamsBashforthIntegratorBuilder
,AdamsMoultonIntegratorBuilder
,DormandPrince54IntegratorBuilder
,DormandPrince853IntegratorBuilder
,GraggBulirschStoerIntegratorBuilder
,HighamHall54IntegratorBuilder
public abstract class AbstractVariableStepIntegratorBuilder extends Object implements ODEIntegratorBuilder
Abstract class for integrator builder using variable step size.- Since:
- 12.2
- Author:
- Romain Serra
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractVariableStepIntegratorBuilder(double minStep, double maxStep, ToleranceProvider toleranceProvider)
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract AbstractIntegrator
buildIntegrator(double[][] tolerances)
Builds an integrator from input absolute and relative tolerances.AbstractIntegrator
buildIntegrator(Orbit orbit, OrbitType orbitType, PositionAngleType angleType)
Build a first order integrator.AbstractIntegrator
buildIntegrator(AbsolutePVCoordinates absolutePVCoordinates)
Build a first order integrator.protected static ToleranceProvider
getDefaultToleranceProvider(double dP)
Get a default tolerance provider.double
getMaxStep()
Getter for the maximum step.double
getMinStep()
Getter for the minimum step.protected double[][]
getTolerances(Orbit orbit, OrbitType orbitType)
Computes tolerances.protected double[][]
getTolerances(AbsolutePVCoordinates absolutePVCoordinates)
Computes tolerances.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.orekit.propagation.conversion.ODEIntegratorBuilder
buildIntegrator
-
-
-
-
Constructor Detail
-
AbstractVariableStepIntegratorBuilder
protected AbstractVariableStepIntegratorBuilder(double minStep, double maxStep, ToleranceProvider toleranceProvider)
Constructor.- Parameters:
minStep
- minimum step size (s)maxStep
- maximum step size (s)toleranceProvider
- integration tolerance provider- Since:
- 13.0
-
-
Method Detail
-
getMaxStep
public double getMaxStep()
Getter for the maximum step.- Returns:
- max stepsize
- Since:
- 13.0
-
getMinStep
public double getMinStep()
Getter for the minimum step.- Returns:
- min stepsize
- Since:
- 13.0
-
getTolerances
protected double[][] getTolerances(Orbit orbit, OrbitType orbitType)
Computes tolerances.- Parameters:
orbit
- initial orbitorbitType
- orbit type for integration- Returns:
- integrator tolerances
-
getTolerances
protected double[][] getTolerances(AbsolutePVCoordinates absolutePVCoordinates)
Computes tolerances.- Parameters:
absolutePVCoordinates
- position-velocity vector- Returns:
- integrator tolerances
- Since:
- 13.0
-
buildIntegrator
public AbstractIntegrator buildIntegrator(Orbit orbit, OrbitType orbitType, PositionAngleType angleType)
Build a first order integrator.- Specified by:
buildIntegrator
in interfaceODEIntegratorBuilder
- Parameters:
orbit
- reference orbitorbitType
- orbit type to useangleType
- position angle type to use- Returns:
- a first order integrator ready to use
-
buildIntegrator
public AbstractIntegrator buildIntegrator(AbsolutePVCoordinates absolutePVCoordinates)
Build a first order integrator. Non-orbit version.- Specified by:
buildIntegrator
in interfaceODEIntegratorBuilder
- Parameters:
absolutePVCoordinates
- absolute position-velocity vector- Returns:
- a first order integrator ready to use
-
buildIntegrator
protected abstract AbstractIntegrator buildIntegrator(double[][] tolerances)
Builds an integrator from input absolute and relative tolerances.- Parameters:
tolerances
- tolerance array- Returns:
- integrator
- Since:
- 13.0
-
getDefaultToleranceProvider
protected static ToleranceProvider getDefaultToleranceProvider(double dP)
Get a default tolerance provider.- Parameters:
dP
- expected position error (m)- Returns:
- tolerance provider
- Since:
- 13.0
-
-