public class OrekitStepNormalizer extends Object implements OrekitStepHandler
OrekitFixedStepHandler
into a OrekitStepHandler
.
It mirrors the StepNormalizer
interface from Hipparchus but
provides a space-dynamics interface to the methods.
Constructor and Description |
---|
OrekitStepNormalizer(double h,
OrekitFixedStepHandler handler)
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
finish(SpacecraftState finalState)
Finalize propagation.
|
OrekitFixedStepHandler |
getFixedStepHandler()
Get the underlying fixed step handler.
|
double |
getFixedTimeStep()
Get the fixed time step.
|
void |
handleStep(OrekitStepInterpolator interpolator)
Handle the last accepted step.
|
void |
init(SpacecraftState s0,
AbsoluteDate t)
Initialize step handler at the start of a propagation.
|
boolean |
requiresDenseOutput()
Determines whether this handler needs dense output.
|
public OrekitStepNormalizer(double h, OrekitFixedStepHandler handler)
h
- fixed time step (sign is not used)handler
- fixed time step handler to wrappublic double getFixedTimeStep()
public OrekitFixedStepHandler getFixedStepHandler()
public boolean requiresDenseOutput()
public void init(SpacecraftState s0, AbsoluteDate t)
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.
The default method does nothing
init
in interface OrekitStepHandler
s0
- initial statet
- target time for the integrationpublic void handleStep(OrekitStepInterpolator interpolator)
handleStep
in interface OrekitStepHandler
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.public void finish(SpacecraftState finalState)
finish
in interface OrekitStepHandler
finalState
- state at propagation endCopyright © 2002-2021 CS GROUP. All rights reserved.