|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.mathematics.analysis.ode.AbstractStepInterpolator
org.jscience.mathematics.analysis.ode.DummyStepInterpolator
public class DummyStepInterpolator
This class is a step interpolator that does nothing.
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| Field Summary |
|---|
| Fields inherited from class org.jscience.mathematics.analysis.ode.AbstractStepInterpolator |
|---|
currentState, currentTime, h, interpolatedState, interpolatedTime, previousTime |
| Constructor Summary | |
|---|---|
protected |
DummyStepInterpolator()
Simple constructor. |
protected |
DummyStepInterpolator(double[] y,
boolean forward)
Simple constructor. |
protected |
DummyStepInterpolator(DummyStepInterpolator interpolator)
Copy constructor. |
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Copy the instance. |
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)
|
| Methods inherited from class org.jscience.mathematics.analysis.ode.AbstractStepInterpolator |
|---|
doFinalize, finalizeStep, getCurrentTime, getInterpolatedState, getInterpolatedTime, getPreviousTime, isForward, readBaseExternal, reinitialize, setInterpolatedTime, shift, storeTime, writeBaseExternal |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected 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 DummyStepInterpolator(DummyStepInterpolator interpolator)
The copied interpolator should have been finalized before the
copy, otherwise the copy will not be able to perform correctly
any interpolation and will throw a NullPointerException
later. Since we don't want this constructor to throw the
exceptions finalization may involve and since we don't want this
method to modify the state of the copied interpolator,
finalization is not done automatically, it
remains under user control.
The copy is a deep copy: its arrays are separated from the original arrays of the instance.
interpolator - interpolator to copy from.| Method Detail |
|---|
public java.lang.Object clone()
clone in class AbstractStepInterpolator
protected 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 time
DerivativeException - this exception is propagated to the caller if the
underlying user function triggers one
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.ExternalizablewriteExternal in class AbstractStepInterpolatorjava.io.IOException
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException
readExternal in interface java.io.ExternalizablereadExternal in class AbstractStepInterpolatorjava.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||