|
|||||||||
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 equationsMethod Detail |
---|
public int getDimension()
public void computeDerivatives(double t, double[] y, double[] yDot)
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 vectorpublic Collection<String> getParametersNames()
getParametersNames
in interface Parameterizable
Parameterizable.isSupported(String)
public boolean isSupported(String name)
Supported parameters are those listed by Parameterizable.getParametersNames()
.
isSupported
in interface Parameterizable
name
- parameter name to check
Parameterizable.getParametersNames()
public double getParameter(String name) throws MathIllegalArgumentException
getParameter
in interface ParameterizedODE
name
- parameter name
MathIllegalArgumentException
public void setParameter(String name, double value)
setParameter
in interface ParameterizedODE
name
- parameter namevalue
- parameter value
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |