1 | package de.uka.ipd.sdq.dsexplore.opt4j.representation; |
2 | |
3 | import org.opt4j.operator.mutate.MutateModule; |
4 | import org.opt4j.operator.mutate.MutationRate; |
5 | import org.opt4j.start.Constant; |
6 | |
7 | public class DSEMutateModule extends MutateModule { |
8 | |
9 | @Constant(value = "intensity", namespace = ConfigurableAdaptiveMutationRate.class) |
10 | protected double mutationIntensity = 1; |
11 | |
12 | public double getMutationIntensity() { |
13 | return mutationIntensity; |
14 | } |
15 | |
16 | public void setMutationIntensity(double mutationIntensity) { |
17 | this.mutationIntensity = mutationIntensity; |
18 | } |
19 | |
20 | @Override |
21 | protected void config() { |
22 | bind(MutationRate.class).to(ConfigurableAdaptiveMutationRate.class).in( |
23 | SINGLETON); |
24 | |
25 | |
26 | |
27 | } |
28 | |
29 | } |