Class AlgorithmConfiguration
- java.lang.Object
-
- de.uni_trier.wi2.procake.adaptation.AlgorithmConfiguration
-
public class AlgorithmConfiguration extends Object
Implementation of the Adaptation Algorithm Configuration.
-
-
Constructor Summary
Constructors Constructor Description AlgorithmConfiguration()Constructor for AlgorithmConfiguration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappend(AlgorithmConfiguration configuration)Appends a given configuration to this oneObjectcopy()copy.Set<AlgorithmParameter<?>>getAllParameters()getAllParameters.<T> TgetParameterOrDefault(AlgorithmParameters param)getParameterOrDefault.voidsetParameter(AlgorithmParameters param, Object value)Sets a specified parameter overwriting existing parameters with the same name<t> AlgorithmParameter<?>setParameter(String name, t value)Sets a specified parameter overwriting existing parameters with the same namevoidsetParameterDefaultValue(AlgorithmParameters param)Sets a specified parameter with its default valueStringtoString()
-
-
-
Method Detail
-
getParameterOrDefault
public <T> T getParameterOrDefault(AlgorithmParameters param)
getParameterOrDefault.
- Type Parameters:
T- Parameter type- Parameters:
param- from enum- Returns:
- value of specified parameter, or default value if there is no parameter set with the given name
-
getAllParameters
public Set<AlgorithmParameter<?>> getAllParameters()
getAllParameters.
- Returns:
- all available parameters
-
setParameter
public <t> AlgorithmParameter<?> setParameter(String name, t value)
Sets a specified parameter overwriting existing parameters with the same name- Type Parameters:
t- Parameter type- Parameters:
name- of parametervalue- of parameter- Returns:
- parameter
-
setParameter
public void setParameter(AlgorithmParameters param, Object value)
Sets a specified parameter overwriting existing parameters with the same name- Parameters:
param- from enumvalue- of parameter
-
setParameterDefaultValue
public void setParameterDefaultValue(AlgorithmParameters param)
Sets a specified parameter with its default value- Parameters:
param- from enum
-
append
public void append(AlgorithmConfiguration configuration)
Appends a given configuration to this one- Parameters:
configuration- Algorithm configuration
-
-