|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.math.ode.AbstractParameterizable
public abstract class AbstractParameterizable
This abstract class provides boilerplate parameters list.
| Constructor Summary | |
|---|---|
protected |
AbstractParameterizable(java.util.Collection<java.lang.String> names)
Simple constructor. |
protected |
AbstractParameterizable(java.lang.String... names)
Simple constructor. |
| Method Summary | |
|---|---|
void |
complainIfNotSupported(java.lang.String name)
Check if a parameter is supported and throw an IllegalArgumentException if not. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractParameterizable(java.lang.String... names)
names - names of the supported parametersprotected AbstractParameterizable(java.util.Collection<java.lang.String> names)
names - names of the supported parameters| Method Detail |
|---|
public 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 check
Parameterizable.getParametersNames()
public void complainIfNotSupported(java.lang.String name)
throws MathIllegalArgumentException
name - name of the parameter to check
MathIllegalArgumentException - if the parameter is not supportedisSupported(String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||