Package org.orekit.propagation.sampling
Class FieldOrekitStepNormalizer<T extends org.hipparchus.RealFieldElement<T>>
- java.lang.Object
-
- org.orekit.propagation.sampling.FieldOrekitStepNormalizer<T>
-
- All Implemented Interfaces:
FieldOrekitStepHandler<T>
public class FieldOrekitStepNormalizer<T extends org.hipparchus.RealFieldElement<T>> extends Object implements FieldOrekitStepHandler<T>
This class wraps an object implementingOrekitFixedStepHandler
into aOrekitStepHandler
.It mirrors the
StepNormalizer
interface from commons-math but provides a space-dynamics interface to the methods.- Author:
- Luc Maisonobe
-
-
Constructor Summary
Constructors Constructor Description FieldOrekitStepNormalizer(T h, FieldOrekitFixedStepHandler<T> handler)
Simple constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleStep(FieldOrekitStepInterpolator<T> interpolator, boolean isLast)
Handle the last accepted step.void
init(FieldSpacecraftState<T> s0, FieldAbsoluteDate<T> t)
Initialize step handler at the start of a propagation.boolean
requiresDenseOutput()
Determines whether this handler needs dense output.
-
-
-
Constructor Detail
-
FieldOrekitStepNormalizer
public FieldOrekitStepNormalizer(T h, FieldOrekitFixedStepHandler<T> handler)
Simple constructor.- Parameters:
h
- fixed time step (sign is not used)handler
- fixed time step handler to wrap
-
-
Method Detail
-
requiresDenseOutput
public boolean requiresDenseOutput()
Determines whether this handler needs dense output. This handler needs dense output in order to provide data at regularly spaced steps regardless of the steps the propagator uses, so this method always returns true.- Returns:
- always true
-
init
public void init(FieldSpacecraftState<T> s0, FieldAbsoluteDate<T> t)
Initialize step handler at the start of a propagation.This method is called once at the start of the propagation. It may be used by the step handler to initialize some internal data if needed.
- Specified by:
init
in interfaceFieldOrekitStepHandler<T extends org.hipparchus.RealFieldElement<T>>
- Parameters:
s0
- initial statet
- target time for the integration
-
handleStep
public void handleStep(FieldOrekitStepInterpolator<T> interpolator, boolean isLast)
Handle the last accepted step.- Specified by:
handleStep
in interfaceFieldOrekitStepHandler<T extends org.hipparchus.RealFieldElement<T>>
- Parameters:
interpolator
- interpolator for the last accepted step. For efficiency purposes, the various propagators reuse the same object on each call, so if the instance wants to keep it across all calls (for example to provide at the end of the propagation a continuous model valid throughout the propagation range), it should build a local copy using the clone method and store this copy.isLast
- true if the step is the last one
-
-