org.spaceroots.mantissa.ode
Class DummyStepInterpolator
- java.lang.Object
-
- org.spaceroots.mantissa.ode.AbstractStepInterpolator
-
- org.spaceroots.mantissa.ode.DummyStepInterpolator
-
- All Implemented Interfaces:
- java.io.Externalizable, java.io.Serializable, java.lang.Cloneable, 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 whensetInterpolatedTimeis called. This implies the interpolated state is always the state at the end of the current step.- See Also:
StepHandler, Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description DummyStepInterpolator()Simple constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidreadExternal(java.io.ObjectInput in)voidwriteExternal(java.io.ObjectOutput out)-
Methods inherited from class org.spaceroots.mantissa.ode.AbstractStepInterpolator
clone, finalizeStep, getCurrentTime, getInterpolatedState, getInterpolatedTime, getPreviousTime, isForward, setInterpolatedTime, shift, storeTime
-
-
-
-
Constructor Detail
-
DummyStepInterpolator
public DummyStepInterpolator()
Simple constructor. This constructor builds an instance that is not usable yet, theAbstractStepInterpolator.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, theRungeKuttaFehlbergIntegratoruses the prototyping design pattern to create the step interpolators by cloning an uninitialized model and latter initializing the copy.
-
-
Method Detail
-
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException- Specified by:
writeExternalin interfacejava.io.Externalizable- Specified by:
writeExternalin classAbstractStepInterpolator- Throws:
java.io.IOException
-
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException- Specified by:
readExternalin interfacejava.io.Externalizable- Specified by:
readExternalin classAbstractStepInterpolator- Throws:
java.io.IOException
-
-
DataMelt 3.0 © DataMelt by jWork.ORG