Package org.apache.commons.math3.ode
Class AbstractParameterizable
java.lang.Object
org.apache.commons.math3.ode.AbstractParameterizable
- All Implemented Interfaces:
Parameterizable
This abstract class provides boilerplate parameters list.
- Since:
- 3.0
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractParameterizable(String... names) Simple constructor.protectedAbstractParameterizable(Collection<String> names) Simple constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidcomplainIfNotSupported(String name) Check if a parameter is supported and throw an IllegalArgumentException if not.Get the names of the supported parameters.booleanisSupported(String name) Check if a parameter is supported.
-
Constructor Details
-
AbstractParameterizable
Simple constructor.- Parameters:
names- names of the supported parameters
-
AbstractParameterizable
Simple constructor.- Parameters:
names- names of the supported parameters
-
-
Method Details
-
getParametersNames
Get the names of the supported parameters.- Specified by:
getParametersNamesin interfaceParameterizable- Returns:
- parameters names
- See Also:
-
isSupported
Check if a parameter is supported.Supported parameters are those listed by
Parameterizable.getParametersNames().- Specified by:
isSupportedin interfaceParameterizable- Parameters:
name- parameter name to check- Returns:
- true if the parameter is supported
- See Also:
-
complainIfNotSupported
Check if a parameter is supported and throw an IllegalArgumentException if not.- Parameters:
name- name of the parameter to check- Throws:
UnknownParameterException- if the parameter is not supported- See Also:
-