|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.math.ode.sampling.AbstractStepInterpolator
org.apache.commons.math.ode.sampling.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 FormField Summary |
---|
Fields inherited from class org.apache.commons.math.ode.sampling.AbstractStepInterpolator |
---|
currentState, currentTime, h, interpolatedDerivatives, interpolatedState, interpolatedTime, previousTime |
Constructor Summary | |
---|---|
DummyStepInterpolator()
Simple constructor. |
|
DummyStepInterpolator(double[] y,
boolean forward)
Simple constructor. |
|
DummyStepInterpolator(DummyStepInterpolator interpolator)
Copy constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.apache.commons.math.ode.sampling.AbstractStepInterpolator |
---|
copy, doFinalize, finalizeStep, getCurrentTime, getInterpolatedDerivatives, getInterpolatedState, getInterpolatedTime, getPreviousTime, isForward, readBaseExternal, reinitialize, setInterpolatedTime, shift, storeTime, writeBaseExternal |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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, boolean forward)
y
- reference to the integrator array holding the state at
the end of 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
instanceMethod Detail |
---|
protected StepInterpolator doCopy()
doCopy
in class AbstractStepInterpolator
protected void computeInterpolatedStateAndDerivatives(double theta, double oneMinusThetaH) throws DerivativeException
computeInterpolatedStateAndDerivatives
in class AbstractStepInterpolator
theta
- 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 onepublic void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
writeExternal
in class AbstractStepInterpolator
out
- output channel
java.io.IOException
- if the instance cannot be writtenpublic void readExternal(java.io.ObjectInput in) throws java.io.IOException
readExternal
in interface java.io.Externalizable
readExternal
in class AbstractStepInterpolator
in
- input channel
java.io.IOException
- if the instance cannot be read
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |