|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensourcephysics.numerics.AbstractODESolver
public abstract class AbstractODESolver
AbstractODE provides a common superclass for ODESolvers.
Field Summary | |
---|---|
protected int |
numEqn
|
protected ODE |
ode
|
protected double |
stepSize
|
Constructor Summary | |
---|---|
AbstractODESolver(ODE _ode)
Constructs the ODESolver for a system of ordinary differential equations. |
Method Summary | |
---|---|
double |
getStepSize()
Gets the step size. |
void |
initialize(double _stepSize)
Initializes the ODE solver. |
void |
setStepSize(double _stepSize)
Sets the step size. |
abstract double |
step()
Steps (advances) the differential equations by the stepSize. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected double stepSize
protected int numEqn
protected ODE ode
Constructor Detail |
---|
public AbstractODESolver(ODE _ode)
_ode
- the system of differential equations.Method Detail |
---|
public abstract double step()
step
in interface ODESolver
public void setStepSize(double _stepSize)
setStepSize
in interface ODESolver
_stepSize
- public void initialize(double _stepSize)
initialize
in interface ODESolver
_stepSize
- public double getStepSize()
getStepSize
in interface ODESolver
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |