ODEFixedStepHandler
ODEFixedStepHandler
@Deprecated public interface FixedStepHandler extends ODEFixedStepHandler
This interface should be implemented by anyone who is interested
in getting the solution of an ordinary differential equation at
fixed time steps. Objects implementing this interface should be
wrapped within an instance of StepNormalizer
that itself
is used as the general StepHandler
by the integrator. The
StepNormalizer
object is called according to the integrator
internal algorithms and it calls objects implementing this
interface as necessary at fixed time steps.
StepHandler
,
StepNormalizer
Modifier and Type | Method | Description |
---|---|---|
void |
handleStep(double t,
double[] y,
double[] yDot,
boolean isLast) |
Deprecated.
Handle the last accepted step
|
default void |
handleStep(ODEStateAndDerivative state,
boolean isLast) |
Deprecated.
Handle the last accepted step
|
void |
init(double t0,
double[] y0,
double t) |
Deprecated.
Initialize step handler at the start of an ODE integration.
|
default void |
init(ODEStateAndDerivative initialState,
double finalTime) |
Deprecated.
Initialize step handler at the start of an ODE integration.
|
default void init(ODEStateAndDerivative initialState, double finalTime)
This method is called once at the start of the integration. It may be used by the step handler to initialize some internal data if needed.
The default implementation does nothing.
}init
in interface ODEFixedStepHandler
initialState
- initial time, state vector and derivativefinalTime
- target time for the integrationdefault void handleStep(ODEStateAndDerivative state, boolean isLast)
handleStep
in interface ODEFixedStepHandler
state
- current stateisLast
- true if the step is the last onevoid init(double t0, double[] y0, double t)
This method is called once at the start of the integration. It may be used by the step handler to initialize some internal data if needed.
t0
- start value of the independent time variabley0
- array containing the start value of the state vectort
- target time for the integrationvoid handleStep(double t, double[] y, double[] yDot, boolean isLast)
t
- time of the current stepy
- state vector at t. For efficiency purposes, the StepNormalizer
class reuses the same array on each call, so if
the instance wants to keep it across all calls (for example to
provide at the end of the integration a complete array of all
steps), it should build a local copy store this copy.yDot
- derivatives of the state vector state vector at t.
For efficiency purposes, the StepNormalizer
class reuses
the same array on each call, so if
the instance wants to keep it across all calls (for example to
provide at the end of the integration a complete array of all
steps), it should build a local copy store this copy.isLast
- true if the step is the last oneCopyright © 2016–2018 Hipparchus.org. All rights reserved.