public class DummyStepInterpolator extends AbstractStepInterpolator
This class is used when the "step handler"
set up by the user does not need step interpolation. It does not
recompute the state when setInterpolatedTime is called. This implies the interpolated state
is always the state at the end of the current step.
StepHandler,
Serialized FormcurrentState, currentTime, h, interpolatedState, interpolatedTime, previousTime| Modifier | Constructor and Description |
|---|---|
|
DummyStepInterpolator()
Simple constructor.
|
protected |
DummyStepInterpolator(double[] y,
boolean forward)
Simple constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
computeInterpolatedState(double theta,
double oneMinusThetaH)
Compute the state at the interpolated time.
|
void |
readExternal(java.io.ObjectInput in) |
void |
writeExternal(java.io.ObjectOutput out) |
clone, doFinalize, finalizeStep, getCurrentTime, getInterpolatedState, getInterpolatedTime, getPreviousTime, isForward, readBaseExternal, reinitialize, setInterpolatedTime, shift, storeTime, writeBaseExternalpublic DummyStepInterpolator()
AbstractStepInterpolator.reinitialize(double[], boolean) method should be called
before using the instance in order to initialize the internal arrays. This
constructor is used only in order to delay the initialization in
some cases. As an example, the RungeKuttaFehlbergIntegrator uses the prototyping design pattern
to create the step interpolators by cloning an uninitialized
model and latter initializing the copy.protected DummyStepInterpolator(double[] y,
boolean forward)
y - reference to the integrator array holding the state at
the end of the stepforward - integration direction indicatorprotected void computeInterpolatedState(double theta,
double oneMinusThetaH)
throws DerivativeException
computeInterpolatedState in class AbstractStepInterpolatortheta - normalized interpolation abscissa within the step
(theta is zero at the previous time step and one at the current time step)oneMinusThetaH - time gap between the interpolated time and
the current timeDerivativeException - this exception is propagated to the caller if the
underlying user function triggers onepublic void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.ExternalizablewriteExternal in class AbstractStepInterpolatorjava.io.IOExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException
readExternal in interface java.io.ExternalizablereadExternal in class AbstractStepInterpolatorjava.io.IOExceptionCopyright © 2001-2007 Luc Maisonobe. All Rights Reserved.