org.opensourcephysics.numerics
Class ODEMultistepSolver.InternalODE

java.lang.Object
  extended byorg.opensourcephysics.numerics.ODEMultistepSolver.InternalODE
All Implemented Interfaces:
ODE
Enclosing class:
ODEMultistepSolver

protected final class ODEMultistepSolver.InternalODE
extends java.lang.Object
implements ODE

A class that saves an internal state that may be different from the orginal ODE. This internal state is used with interpolation solvers.


Method Summary
 void getRate(double[] state, double[] rate)
          Gets the rate using the given state.
 double[] getState()
          Gets the state.
 void setInitialConditions()
          Sets the initial conditions using the current state of the ODE.
 void update()
          updates the ODE state using the engine's internal state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getRate

public void getRate(double[] state,
                    double[] rate)
Gets the rate using the given state.

Specified by:
getRate in interface ODE
Parameters:
state - double[]
rate - double[]

getState

public double[] getState()
Gets the state.

Specified by:
getState in interface ODE
Returns:
double[]

setInitialConditions

public void setInitialConditions()
Sets the initial conditions using the current state of the ODE.

Returns:
double[]

update

public void update()
updates the ODE state using the engine's internal state.