org.spaceroots.mantissa.ode
Class DummyStepInterpolator
java.lang.Object
org.spaceroots.mantissa.ode.AbstractStepInterpolator
org.spaceroots.mantissa.ode.DummyStepInterpolator
- All Implemented Interfaces:
- Cloneable, Externalizable, Serializable, StepInterpolator
- public class DummyStepInterpolator
- extends AbstractStepInterpolator
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.
- Version:
- $Id: DummyStepInterpolator.java 1721 2007-10-07 20:21:25Z luc $
- Author:
- L. Maisonobe
- See Also:
StepHandler,
Serialized Form
| Methods inherited from class org.spaceroots.mantissa.ode.AbstractStepInterpolator |
clone, doFinalize, finalizeStep, getCurrentTime, getInterpolatedState, getInterpolatedTime, getPreviousTime, isForward, readBaseExternal, reinitialize, setInterpolatedTime, shift, storeTime, writeBaseExternal |
DummyStepInterpolator
public DummyStepInterpolator()
- Simple constructor.
This constructor builds an instance that is not usable yet, the
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.
DummyStepInterpolator
protected DummyStepInterpolator(double[] y,
boolean forward)
- Simple constructor.
- Parameters:
y - reference to the integrator array holding the state at
the end of the stepforward - integration direction indicator
computeInterpolatedState
protected void computeInterpolatedState(double theta,
double oneMinusThetaH)
throws DerivativeException
- Compute the state at the interpolated time.
In this class, this method does nothing: the interpolated state
is always the state at the end of the current step.
- Specified by:
computeInterpolatedState in class AbstractStepInterpolator
- Parameters:
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
- Throws:
DerivativeException - this exception is propagated to the caller if the
underlying user function triggers one
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
- Specified by:
writeExternal in interface Externalizable- Specified by:
writeExternal in class AbstractStepInterpolator
- Throws:
IOException
readExternal
public void readExternal(ObjectInput in)
throws IOException
- Specified by:
readExternal in interface Externalizable- Specified by:
readExternal in class AbstractStepInterpolator
- Throws:
IOException
Copyright © 2001-2007 Luc Maisonobe. All Rights Reserved.