Search in sources :

Example 1 with SolverConfigurationFactory

use of ch.hsr.servicecutter.api.SolverConfigurationFactory in project context-mapper-dsl by ContextMapper.

the class ServiceCutterConfigHandler method createInitialServiceCutterConfig.

private ServiceCutterConfig createInitialServiceCutterConfig() {
    ServiceCutterConfig config = new ServiceCutterConfig();
    SolverConfiguration defaultSolverConfig = new SolverConfigurationFactory().createDefaultConfiguration();
    config.setAlgorithm(defaultSolverConfig.getAlgorithm());
    config.setAlgorithmParams(defaultSolverConfig.getAlgorithmParams());
    config.setPriorities(defaultSolverConfig.getPriorities());
    return config;
}
Also used : SolverConfiguration(ch.hsr.servicecutter.solver.SolverConfiguration) SolverConfigurationFactory(ch.hsr.servicecutter.api.SolverConfigurationFactory)

Aggregations

SolverConfigurationFactory (ch.hsr.servicecutter.api.SolverConfigurationFactory)1 SolverConfiguration (ch.hsr.servicecutter.solver.SolverConfiguration)1