Class AbstractVariableStepIntegratorBuilder<T extends AdaptiveStepsizeIntegrator>
- java.lang.Object
-
- org.orekit.propagation.conversion.AbstractIntegratorBuilder<T>
-
- org.orekit.propagation.conversion.AbstractVariableStepIntegratorBuilder<T>
-
- All Implemented Interfaces:
ODEIntegratorBuilder
- Direct Known Subclasses:
AdamsBashforthIntegratorBuilder,AdamsMoultonIntegratorBuilder,DormandPrince54IntegratorBuilder,DormandPrince853IntegratorBuilder,GraggBulirschStoerIntegratorBuilder,HighamHall54IntegratorBuilder
public abstract class AbstractVariableStepIntegratorBuilder<T extends AdaptiveStepsizeIntegrator> extends AbstractIntegratorBuilder<T>
Abstract class for integrator builder using variable step size.- Since:
- 12.2
- Author:
- Romain Serra
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractVariableStepIntegratorBuilder(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 TbuildIntegrator(double[][] tolerances)Builds an integrator from input absolute and relative tolerances.TbuildIntegrator(Orbit orbit, OrbitType orbitType, PositionAngleType angleType)Build a first order integrator.TbuildIntegrator(AbsolutePVCoordinates absolutePVCoordinates)Build a first order integrator.protected static ToleranceProvidergetDefaultToleranceProvider(double dP)Get a default tolerance provider.doublegetMaxStep()Getter for the maximum step.doublegetMinStep()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 org.orekit.propagation.conversion.AbstractIntegratorBuilder
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 T buildIntegrator(Orbit orbit, OrbitType orbitType, PositionAngleType angleType)
Build a first order integrator.- Specified by:
buildIntegratorin interfaceODEIntegratorBuilder- Specified by:
buildIntegratorin classAbstractIntegratorBuilder<T extends AdaptiveStepsizeIntegrator>- Parameters:
orbit- reference orbitorbitType- orbit type to useangleType- position angle type to use- Returns:
- a first order integrator ready to use
-
buildIntegrator
public T buildIntegrator(AbsolutePVCoordinates absolutePVCoordinates)
Build a first order integrator. Non-orbit version.- Specified by:
buildIntegratorin interfaceODEIntegratorBuilder- Overrides:
buildIntegratorin classAbstractIntegratorBuilder<T extends AdaptiveStepsizeIntegrator>- Parameters:
absolutePVCoordinates- absolute position-velocity vector- Returns:
- a first order integrator ready to use
-
buildIntegrator
protected abstract T 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
-
-