-
Notifications
You must be signed in to change notification settings - Fork 63
Adding a new Configuration Parameter
Tanja edited this page Mar 9, 2016
·
8 revisions
Adding a new Configuration Parameter
For adding a new configuration parameter, you have to do the following steps:
alogorithm_integeration
- Implement a configuration setting in
de.metanome.algorithm_integration.configuration
: A configuration setting contains all values, which are set in the frontend and needed for execution. Your setting should extend eitherConfigurationSettingPrimitive
orConfigurationSettingDataSource
. - Implement a configuration requirement in
de.metanome.algorithm_integration.configuration
: A configuartion requirement contains a list of configuration settings. It should extendConfigurationRequirement
. - Add an interface for your configuration parameter
in de.metanome.algorithm_integration.algorithm_types
: Each algorithm, which uses your configuration parameter, has to implement this interface. You should name the method according to following pattern:set<value_name>ConfigurationValue(String identifier, <value_type>... values) throws AlgorithmConfigurationExecution
- Add the method
ConfigurationValue build(<your-configuration-requirement> requirement) throws AlgorithmConfigurationException
tode.metanome.algorithm_integration.configuration.ConfigurationFactory
.
backend
- Implement a configuration value in
de.metanome.backend.configuration
, which implements the interfaceConfigurationValue
. - Add your configuration value to
de.metanome.backend.configuration.DefaultConfigurationFactory
testing_algorithms
Adapt one testing algorithm so that it uses your configuration requirement.
frontend
In new.controller
update the methods updateParameter
and readParamsIntoBackendFormat
.
Add and update test!!! This list might not be complete, please update it!