Enum GlobalParameters
- java.lang.Object
-
- java.lang.Enum<GlobalParameters>
-
- de.uni_trier.wi2.procake.adaptation.manager.GlobalParameters
-
- All Implemented Interfaces:
AlgorithmParameters,Serializable,Comparable<GlobalParameters>
public enum GlobalParameters extends Enum<GlobalParameters> implements AlgorithmParameters
GlobalParameters class.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADAPTATION_KNOWLEDGE_PATHdefines a path where adaptation algorithms can store and load generated adaptation knowledge.ADAPTATION_SESSION_PATHdefines a path where an adaptation session pool can be stored and loaded.ALGORITHM_INIT_ORDERdefines the order in which the init methods of the defined algorithms are executed.ALWAYS_EXECUTE_ALGORITHMSdefines which algorithms should always be executed even if the initial similarity between a case workflow and the query is 1.0.INTERNAL_SIMILARITY_MEASUREinternal similarity measure that is used to determine appropriate adaptation stepsLOAD_ADAPTATION_KNOWLEDGEdefines if stored adaptation knowledge can be read and reused by the adaptation algorithms.MAC_FAC_RETRIEVAL_FACTORdetermines if MACFAC retrieval should be used or not and which factor for the reduction should be usedREMOVE_EQUAL_ADAPTATION_KNOWLEDGEdefines whether equal adaptation knowledge should be removed by the adaptation algorithms during the initialization process.STORE_ADAPTATION_KNOWLEDGEdefines whether the generated adaptation knowledge can be stored in the given path.STORE_ADAPTATION_SESSIONdefines whether the generated adaptation sessions should be stored in a session pool.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<?>getDataType()getDataType.ObjectgetDefaultValue()getDefaultValue.StringgetName()getName.static GlobalParametersvalueOf(String name)Returns the enum constant of this type with the specified name.static GlobalParameters[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ADAPTATION_KNOWLEDGE_PATH
public static final GlobalParameters ADAPTATION_KNOWLEDGE_PATH
defines a path where adaptation algorithms can store and load generated adaptation knowledge.
-
ADAPTATION_SESSION_PATH
public static final GlobalParameters ADAPTATION_SESSION_PATH
defines a path where an adaptation session pool can be stored and loaded.
-
STORE_ADAPTATION_SESSION
public static final GlobalParameters STORE_ADAPTATION_SESSION
defines whether the generated adaptation sessions should be stored in a session pool. If false the pool won't be written to the given adaptation session path.
-
LOAD_ADAPTATION_KNOWLEDGE
public static final GlobalParameters LOAD_ADAPTATION_KNOWLEDGE
defines if stored adaptation knowledge can be read and reused by the adaptation algorithms. The file names have to contain the identical algorithm id.
-
STORE_ADAPTATION_KNOWLEDGE
public static final GlobalParameters STORE_ADAPTATION_KNOWLEDGE
defines whether the generated adaptation knowledge can be stored in the given path. If enabled, the file names will be named after the algorithms name and id
-
ALWAYS_EXECUTE_ALGORITHMS
public static final GlobalParameters ALWAYS_EXECUTE_ALGORITHMS
defines which algorithms should always be executed even if the initial similarity between a case workflow and the query is 1.0. Possible value is a comma-separated list of algorithm names defined in the config. The list has to be terminated with;
-
ALGORITHM_INIT_ORDER
public static final GlobalParameters ALGORITHM_INIT_ORDER
defines the order in which the init methods of the defined algorithms are executed. Possible value is a comma-separated list of algorithm names and ids in the formalgorithmName#algorithmIDdefined in the config. The list has to be terminated with;
-
REMOVE_EQUAL_ADAPTATION_KNOWLEDGE
public static final GlobalParameters REMOVE_EQUAL_ADAPTATION_KNOWLEDGE
defines whether equal adaptation knowledge should be removed by the adaptation algorithms during the initialization process. Possible values are:false, semantic, syntactic
-
INTERNAL_SIMILARITY_MEASURE
public static final GlobalParameters INTERNAL_SIMILARITY_MEASURE
internal similarity measure that is used to determine appropriate adaptation steps
-
MAC_FAC_RETRIEVAL_FACTOR
public static final GlobalParameters MAC_FAC_RETRIEVAL_FACTOR
determines if MACFAC retrieval should be used or not and which factor for the reduction should be used
-
-
Method Detail
-
values
public static GlobalParameters[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (GlobalParameters c : GlobalParameters.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GlobalParameters valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getName
public String getName()
getName.
- Specified by:
getNamein interfaceAlgorithmParameters- Returns:
- name of the parameter
-
getDataType
public Class<?> getDataType()
getDataType.
- Specified by:
getDataTypein interfaceAlgorithmParameters- Returns:
- the class type of the parameter
-
getDefaultValue
public Object getDefaultValue()
getDefaultValue.
- Specified by:
getDefaultValuein interfaceAlgorithmParameters- Returns:
- default value for the parameter
-
-