|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.math.ode.TestProblemAbstract
public abstract class TestProblemAbstract
This class is used as the base class of the problems that are integrated during the junit tests for the ODE integrators.
| Field Summary | |
|---|---|
protected int |
calls
Number of functions calls. |
protected double[] |
errorScale
Error scale |
protected int |
n
Dimension of the problem. |
protected double |
t0
Initial time |
protected double |
t1
Final time |
protected double[] |
y0
Initial state |
| Constructor Summary | |
|---|---|
protected |
TestProblemAbstract()
Simple constructor. |
protected |
TestProblemAbstract(TestProblemAbstract problem)
Copy constructor. |
| Method Summary | |
|---|---|
void |
computeDerivatives(double t,
double[] y,
double[] yDot)
|
abstract double[] |
computeTheoreticalState(double t)
Compute the theoretical state at the specified time. |
abstract TestProblemAbstract |
copy()
Copy operation. |
abstract void |
doComputeDerivatives(double t,
double[] y,
double[] yDot)
|
int |
getCalls()
Get the number of calls. |
int |
getDimension()
|
double[] |
getErrorScale()
Get the error scale. |
org.apache.commons.math.ode.events.EventHandler[] |
getEventsHandlers()
Get the events handlers. |
double |
getFinalTime()
Get the final time. |
double[] |
getInitialState()
Get the initial state vector. |
double |
getInitialTime()
Get the initial time. |
protected void |
setErrorScale(double[] errorScale)
Set the error scale |
protected void |
setFinalConditions(double t1)
Set the final conditions. |
protected void |
setInitialConditions(double t0,
double[] y0)
Set the initial conditions |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int n
protected int calls
protected double t0
protected double[] y0
protected double t1
protected double[] errorScale
| Constructor Detail |
|---|
protected TestProblemAbstract()
protected TestProblemAbstract(TestProblemAbstract problem)
problem - problem to copy| Method Detail |
|---|
public abstract TestProblemAbstract copy()
protected void setInitialConditions(double t0,
double[] y0)
t0 - initial timey0 - initial state vectorprotected void setFinalConditions(double t1)
t1 - final timeprotected void setErrorScale(double[] errorScale)
errorScale - error scalepublic int getDimension()
getDimension in interface org.apache.commons.math.ode.FirstOrderDifferentialEquationspublic double getInitialTime()
public double[] getInitialState()
public double getFinalTime()
public double[] getErrorScale()
public org.apache.commons.math.ode.events.EventHandler[] getEventsHandlers()
public int getCalls()
public void computeDerivatives(double t,
double[] y,
double[] yDot)
computeDerivatives in interface org.apache.commons.math.ode.FirstOrderDifferentialEquations
public abstract void doComputeDerivatives(double t,
double[] y,
double[] yDot)
public abstract double[] computeTheoreticalState(double t)
t - time at which the state is required
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||