Class AlgorithmConfiguration
java.lang.Object
de.uni_trier.wi2.procake.adaptation.AlgorithmConfiguration
Implementation of the Adaptation Algorithm Configuration.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
append
(AlgorithmConfiguration configuration) Appends a given configuration to this onecopy()
copy.getAllParameters.<T> T
getParameterOrDefault.void
setParameter
(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 namevoid
Sets a specified parameter with its default valuetoString()
-
Constructor Details
-
AlgorithmConfiguration
public AlgorithmConfiguration()Constructor for AlgorithmConfiguration.
-
-
Method Details
-
getParameterOrDefault
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
getAllParameters.
- Returns:
- all available parameters
-
setParameter
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
Sets a specified parameter overwriting existing parameters with the same name- Parameters:
param
- from enumvalue
- of parameter
-
setParameterDefaultValue
Sets a specified parameter with its default value- Parameters:
param
- from enum
-
append
Appends a given configuration to this one- Parameters:
configuration
- Algorithm configuration
-
toString
-
copy
copy.
- Returns:
- a
Object
object
-