class ParameterizedWrapper extends java.lang.Object implements ParameterizedODE
basic simple
ODE instances to be used when processing JacobianMatrices.| Modifier and Type | Field and Description |
|---|---|
private FirstOrderDifferentialEquations |
fode
Basic FODE without parameter.
|
| Constructor and Description |
|---|
ParameterizedWrapper(FirstOrderDifferentialEquations ode)
Simple constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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(java.lang.String name)
Get parameter value from its name.
|
java.util.Collection<java.lang.String> |
getParametersNames()
Get the names of the supported parameters.
|
boolean |
isSupported(java.lang.String name)
Check if a parameter is supported.
|
void |
setParameter(java.lang.String name,
double value)
Set the value for a given parameter.
|
private final FirstOrderDifferentialEquations fode
public ParameterizedWrapper(FirstOrderDifferentialEquations ode)
ode - original first order differential equationspublic 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 vectorMaxCountExceededException - if the number of functions evaluations is exceededDimensionMismatchException - if arrays dimensions do not match equations settingspublic java.util.Collection<java.lang.String> getParametersNames()
getParametersNames in interface ParameterizableParameterizable.isSupported(String)public boolean isSupported(java.lang.String name)
Supported parameters are those listed by Parameterizable.getParametersNames().
isSupported in interface Parameterizablename - parameter name to checkParameterizable.getParametersNames()public double getParameter(java.lang.String name)
throws UnknownParameterException
getParameter in interface ParameterizedODEname - parameter nameUnknownParameterException - if parameter is not supportedpublic void setParameter(java.lang.String name,
double value)
setParameter in interface ParameterizedODEname - parameter namevalue - parameter valueCopyright (c) 2003-2015 Apache Software Foundation