private class MultistepFieldIntegrator.FieldNordsieckInitializer extends java.lang.Object implements FieldStepHandler<T>
| Modifier and Type | Field and Description |
|---|---|
private int |
count
Steps counter.
|
private FieldEquationsMapper<T> |
mapper
Equation mapper.
|
private FieldODEStateAndDerivative<T> |
savedStart
Saved start.
|
private T[] |
t
First steps times.
|
private T[][] |
y
First steps states.
|
private T[][] |
yDot
First steps derivatives.
|
| Constructor and Description |
|---|
MultistepFieldIntegrator.FieldNordsieckInitializer(FieldEquationsMapper<T> mapper,
int nbStartPoints)
Simple constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
handleStep(FieldStepInterpolator<T> interpolator,
boolean isLast)
Handle the last accepted step
|
void |
init(FieldODEStateAndDerivative<T> initialState,
T finalTime)
Initialize step handler at the start of an ODE integration.
|
private final FieldEquationsMapper<T extends RealFieldElement<T>> mapper
private int count
private FieldODEStateAndDerivative<T extends RealFieldElement<T>> savedStart
private final T extends RealFieldElement<T>[] t
private final T extends RealFieldElement<T>[][] y
private final T extends RealFieldElement<T>[][] yDot
MultistepFieldIntegrator.FieldNordsieckInitializer(FieldEquationsMapper<T> mapper, int nbStartPoints)
mapper - equation mappernbStartPoints - number of start points (including the initial point)public void handleStep(FieldStepInterpolator<T> interpolator, boolean isLast) throws MaxCountExceededException
handleStep in interface FieldStepHandler<T extends RealFieldElement<T>>interpolator - interpolator for the last accepted step. For
efficiency purposes, the various integrators 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 integration a
continuous model valid throughout the integration range, as the
ContinuousOutputModel class does), it should build a local copy
using the clone method of the interpolator and store this copy.
Keeping only a reference to the interpolator and reusing it will
result in unpredictable behavior (potentially crashing the application).isLast - true if the step is the last oneMaxCountExceededException - if the interpolator throws one because
the number of functions evaluations is exceededpublic void init(FieldODEStateAndDerivative<T> initialState, T 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.
init in interface FieldStepHandler<T extends RealFieldElement<T>>initialState - initial time, state vector and derivativefinalTime - target time for the integrationCopyright (c) 2003-2017 Apache Software Foundation