public class ParameterManager extends java.lang.Object implements ModelParameterManager, ExperimentParameterManager
ModelParameterManager
,
ExperimentParameterManager
Constructor and Description |
---|
ParameterManager()
Constructs a ParameterManager
|
Modifier and Type | Method and Description |
---|---|
void |
assignExperimentParameter(java.lang.String name,
java.lang.Object value)
Method assign a value to an experiment-parameter declared
previously by calling the model's parameter-manager method
to declare an experiment-parameter
|
void |
assignModelParameter(java.lang.String name,
java.lang.Object value)
Method to assign a value to a model-parameter declared previously.
|
void |
declareExperimentParameter(java.lang.Class<?> type,
java.lang.String name)
Method to declare a experiment-parameter.
|
void |
declareExperimentParameter(java.lang.Class<?> type,
java.lang.String name,
java.lang.Object defaultValue)
Method to declare a experiment-parameter.
|
void |
declareModelParameter(java.lang.Class<?> type,
java.lang.String name)
Method to declare a model-parameter.
|
java.util.Collection<Parameter> |
getParameters()
Returns all declared parameters.
|
java.lang.Object |
getParameterValue(java.lang.String name)
Returns the value of an experiment- or model-parameter.
|
void |
initializeModelParameter(java.lang.Class<?> type,
java.lang.String name,
java.lang.Object value)
Method to initialize (declare and assign) a model-parameter.
|
public void declareExperimentParameter(java.lang.Class<?> type, java.lang.String name)
declareExperimentParameter
in interface ModelParameterManager
type
- the experiment-parameter's typename
- the experiment-parameter's namepublic void declareExperimentParameter(java.lang.Class<?> type, java.lang.String name, java.lang.Object defaultValue)
declareExperimentParameter
in interface ModelParameterManager
type
- the experiment-parameter's typename
- the experiment-parameter's namedefaultValue
- the experiment-parameter's default valuepublic void declareModelParameter(java.lang.Class<?> type, java.lang.String name)
declareModelParameter
in interface ModelParameterManager
type
- the model-parameter's typename
- the model-parameter's namepublic void initializeModelParameter(java.lang.Class<?> type, java.lang.String name, java.lang.Object value)
initializeModelParameter
in interface ModelParameterManager
type
- the model-parameter's typename
- the model-parameter's namevalue
- the model-parameter's valuepublic void assignModelParameter(java.lang.String name, java.lang.Object value)
assignModelParameter
in interface ModelParameterManager
name
- the model-parameter's namevalue
- the model-parameter's valuepublic void assignExperimentParameter(java.lang.String name, java.lang.Object value)
assignExperimentParameter
in interface ExperimentParameterManager
name
- the parameter's namevalue
- the parameter's valuepublic java.lang.Object getParameterValue(java.lang.String name)
getParameterValue
in interface ModelParameterManager
name
- the parameter's namepublic java.util.Collection<Parameter> getParameters()
getParameters
in interface ModelParameterManager