|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.vizzini.math.ode.AbstractODE
public abstract class AbstractODE
Provides base functionality for ordinary differential equations in the game framework.
Constructor Summary | |
---|---|
AbstractODE(int numEqns)
Construct this object with the given parameter. |
Method Summary | |
---|---|
protected void |
checkIndex(int index)
Check the given index for range. |
double[] |
getAllQ()
Return the values of all the dependent variables. |
int |
getEquationCount()
Return the equation count. |
double |
getQ(int index)
Return the value of the dependent variable at the given index. |
double |
getS()
Return the value of the independent variable. |
void |
setQ(double value,
int index)
Set the value of the dependent variable at the given index. |
void |
setS(double value)
Set the value of the independent variable. |
void |
updatePostProcess()
Perform update post-processing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.vizzini.math.ode.IODE |
---|
getRightHandSide |
Constructor Detail |
---|
public AbstractODE(int numEqns)
numEqns
- Number of equations.Method Detail |
---|
public double[] getAllQ()
getAllQ
in interface IODE
public int getEquationCount()
getEquationCount
in interface IODE
public double getQ(int index)
getQ
in interface IODE
index
- Index of the dependent variable.public double getS()
getS
in interface IODE
public void setQ(double value, int index)
setQ
in interface IODE
value
- Dependent variable value.index
- Index of the dependent variable.public void setS(double value)
setS
in interface IODE
public void updatePostProcess()
updatePostProcess
in interface IODE
protected void checkIndex(int index)
index
- Index of the dependent variable.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |