|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.commons.math3.ode.ParameterizedWrapper
class ParameterizedWrapper
Wrapper class enabling basic simple
ODE instances to be used when processing JacobianMatrices.
| Field Summary | |
|---|---|
private FirstOrderDifferentialEquations |
fode
Basic FODE without parameter. |
| Constructor Summary | |
|---|---|
ParameterizedWrapper(FirstOrderDifferentialEquations ode)
Simple constructor. |
|
| Method Summary | |
|---|---|
void |
computeDerivatives(double t,
double[] y,
double[] yDot)
Get the current time derivative of the state vector of the underlying FODE. |
int |
getDimension()
Get the dimension of the underlying FODE. |
double |
getParameter(String name)
Get parameter value from its name. |
Collection<String> |
getParametersNames()
Get the names of the supported parameters. |
boolean |
isSupported(String name)
Check if a parameter is supported. |
void |
setParameter(String name,
double value)
Set the value for a given parameter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final FirstOrderDifferentialEquations fode
| Constructor Detail |
|---|
public ParameterizedWrapper(FirstOrderDifferentialEquations ode)
ode - original first order differential equations| Method Detail |
|---|
public int getDimension()
public void computeDerivatives(double t,
double[] y,
double[] yDot)
throws MaxCountExceededException,
DimensionMismatchException
t - current value of the independent time variabley - array containing the current value of the state vectoryDot - placeholder array where to put the time derivative of the state vector
MaxCountExceededException - if the number of functions evaluations is exceeded
DimensionMismatchException - if arrays dimensions do not match equations settingspublic Collection<String> getParametersNames()
getParametersNames in interface ParameterizableParameterizable.isSupported(String)public boolean isSupported(String name)
Supported parameters are those listed by Parameterizable.getParametersNames().
isSupported in interface Parameterizablename - parameter name to check
Parameterizable.getParametersNames()
public double getParameter(String name)
throws UnknownParameterException
getParameter in interface ParameterizedODEname - parameter name
UnknownParameterException - if parameter is not supported
public void setParameter(String name,
double value)
setParameter in interface ParameterizedODEname - parameter namevalue - parameter value
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||