public class Parameter
extends java.lang.Object
ParameterManager
,
ModelParameterManager
,
ExperimentParameterManager
Modifier and Type | Class and Description |
---|---|
static class |
Parameter.ParameterType
Enum to decide, if a parameter is a model-parameter or an experiment-
parameter
|
Modifier and Type | Method and Description |
---|---|
static Parameter |
createExperimentParameter(java.lang.Class<?> type,
java.lang.String name)
Factory-method to create an experiment-parameter.
|
static Parameter |
createExperimentParameter(java.lang.Class<?> type,
java.lang.String name,
java.lang.Object defaultValue)
Factory-method to create an experiment-parameter.
|
static Parameter |
createModelParameter(java.lang.Class<?> type,
java.lang.String name)
Factory-method to create a model-parameter.
|
static Parameter |
createModelParameter(java.lang.Class<?> type,
java.lang.String name,
java.lang.Object value)
Factory-method to create a model-parameter.
|
java.lang.String |
getName()
Returns the parameter's name
|
Parameter.ParameterType |
getParameterType()
Is this parameter a model-parameter or an experiment-parameter?
|
java.lang.Class<?> |
getType()
Returns the parameter's type.
|
java.lang.Object |
getValue()
returns the parameter's value
|
boolean |
hasDefaultValue()
Checks, if this parameter has a default value.
|
boolean |
hasValue()
Checks, if this parameter has a value.
|
void |
setValue(java.lang.Object value)
sets the parameter's value.
|
java.lang.String |
toString()
Returns the parameter as a String
|
public java.lang.Class<?> getType()
public java.lang.String getName()
public void setValue(java.lang.Object value)
value
- the parameter's new valuepublic java.lang.Object getValue()
public boolean hasValue()
public boolean hasDefaultValue()
public Parameter.ParameterType getParameterType()
public java.lang.String toString()
toString
in class java.lang.Object
public static Parameter createExperimentParameter(java.lang.Class<?> type, java.lang.String name, java.lang.Object defaultValue)
type
- the parameter's typename
- the parameter's namedefaultValue
- the parameter's default valuepublic static Parameter createExperimentParameter(java.lang.Class<?> type, java.lang.String name)
type
- the parameter's typename
- the parameter's namepublic static Parameter createModelParameter(java.lang.Class<?> type, java.lang.String name, java.lang.Object value)
type
- the parameter's typename
- the parameter's namevalue
- the parameter's valuepublic static Parameter createModelParameter(java.lang.Class<?> type, java.lang.String name)
type
- the parameter's typename
- the parameter's name