Package org.hipparchus.ode.sampling
Interface ODEFixedStepHandler
-
public interface ODEFixedStepHandlerThis interface represents a handler that should be called after each successful fixed step.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
StepNormalizerthat itself is used as the generalODEStepHandlerby the integrator. TheStepNormalizerobject is called according to the integrator internal algorithms and it calls objects implementing this interface as necessary at fixed time steps.- See Also:
ODEStepHandler,StepNormalizer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidhandleStep(ODEStateAndDerivative state, boolean isLast)Handle the last accepted stepdefault voidinit(ODEStateAndDerivative initialState, double finalTime)Initialize step handler at the start of an ODE integration.
-
-
-
Method Detail
-
init
default void init(ODEStateAndDerivative initialState, double finalTime)
Initialize step handler at the start of an ODE integration.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.
- Parameters:
initialState- initial time, state vector and derivativefinalTime- target time for the integration
-
handleStep
void handleStep(ODEStateAndDerivative state, boolean isLast)
Handle the last accepted step- Parameters:
state- current stateisLast- true if the step is the last one
-
-