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 Form| Modifier and Type | Field and Description |
|---|---|
private double[] |
currentDerivative
Current derivative.
|
private static long |
serialVersionUID
Serializable version identifier.
|
currentState, h, interpolatedDerivatives, interpolatedState, interpolatedTime| Constructor and Description |
|---|
DummyStepInterpolator()
Simple constructor.
|
DummyStepInterpolator(double[] y,
double[] yDot,
boolean forward)
Simple constructor.
|
DummyStepInterpolator(DummyStepInterpolator interpolator)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
computeInterpolatedStateAndDerivatives(double theta,
double oneMinusThetaH)
Compute the state at the interpolated time.
|
protected StepInterpolator |
doCopy()
Really copy the finalized instance.
|
void |
readExternal(java.io.ObjectInput in)
Read the instance from an input channel.
|
void |
writeExternal(java.io.ObjectOutput out)
Write the instance to an output channel.
|
copy, doFinalize, finalizeStep, getCurrentTime, getGlobalCurrentTime, getGlobalPreviousTime, getInterpolatedDerivatives, getInterpolatedState, getInterpolatedTime, getPreviousTime, isForward, readBaseExternal, reinitialize, setInterpolatedTime, setSoftCurrentTime, setSoftPreviousTime, shift, storeTime, writeBaseExternalprivate static final long serialVersionUID
private double[] currentDerivative
public DummyStepInterpolator()
AbstractStepInterpolator.reinitialize protected 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 EmbeddedRungeKuttaIntegrator uses
the prototyping design pattern to create the step interpolators by
cloning an uninitialized model and latter initializing the copy.public DummyStepInterpolator(double[] y,
double[] yDot,
boolean forward)
y - reference to the integrator array holding the state at
the end of the stepyDot - reference to the integrator array holding the state
derivative at some arbitrary point within the stepforward - integration direction indicatorpublic DummyStepInterpolator(DummyStepInterpolator interpolator)
interpolator - interpolator to copy from. The copy is a deep
copy: its arrays are separated from the original arrays of the
instanceprotected StepInterpolator doCopy()
doCopy in class AbstractStepInterpolatorprotected void computeInterpolatedStateAndDerivatives(double theta,
double oneMinusThetaH)
computeInterpolatedStateAndDerivatives 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 timepublic void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.ExternalizablewriteExternal in class AbstractStepInterpolatorout - output channeljava.io.IOException - if the instance cannot be writtenpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException
readExternal in interface java.io.ExternalizablereadExternal in class AbstractStepInterpolatorin - input channeljava.io.IOException - if the instance cannot be readCopyright (c) 2003-2013 Apache Software Foundation