|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensourcephysics.numerics.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 | |
static ODESolver |
createODESolver(ODE ode,
java.lang.String solverName)
A factory method that creates an ODESolver using a name. |
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 ODESolverpublic 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
public static ODESolver createODESolver(ODE ode,
java.lang.String solverName)
ode - ODEsolverName - String the name of the algorithm
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||