EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012)
[all classes][de.uka.ipd.sdq.dsexplore.opt4j.representation]

COVERAGE SUMMARY FOR SOURCE FILE [DSEEvolutionaryAlgorithmModule.java]

nameclass, %method, %block, %line, %
DSEEvolutionaryAlgorithmModule.java0%   (0/1)0%   (0/2)0%   (0/42)0%   (0/10)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class DSEEvolutionaryAlgorithmModule0%   (0/1)0%   (0/2)0%   (0/42)0%   (0/10)
DSEEvolutionaryAlgorithmModule (): void 0%   (0/1)0%   (0/3)0%   (0/1)
config (): void 0%   (0/1)0%   (0/39)0%   (0/9)

1package de.uka.ipd.sdq.dsexplore.opt4j.representation;
2 
3import org.opt4j.core.IndividualBuilder;
4import org.opt4j.operator.copy.CopyModule;
5import org.opt4j.operator.crossover.CrossoverModule;
6import org.opt4j.operator.mutate.MutateModule;
7import org.opt4j.optimizer.ea.ConstantCrossoverRate;
8import org.opt4j.optimizer.ea.CrossoverRate;
9import org.opt4j.optimizer.ea.EvolutionaryAlgorithmModule;
10import org.opt4j.optimizer.ea.Mating;
11 
12import de.uka.ipd.sdq.dsexplore.opt4j.operator.CopyDesignDecisionGenotype;
13import de.uka.ipd.sdq.dsexplore.opt4j.operator.MutateDesignDecisionGenotype;
14import de.uka.ipd.sdq.dsexplore.opt4j.operator.UniformDesignDecisionGenotypeCrossover;
15import de.uka.ipd.sdq.dsexplore.opt4j.optimizer.MatingWithHeuristics;
16import de.uka.ipd.sdq.dsexplore.opt4j.optimizer.NoDuplicatesEvolutionaryAlgorithm;
17import de.uka.ipd.sdq.tcfmoop.tcmanager.TerminationCriteriaManager;
18 
19public class DSEEvolutionaryAlgorithmModule extends EvolutionaryAlgorithmModule {
20        
21 
22        /*
23         * (non-Javadoc)
24         * 
25         * @see org.opt4j.start.Opt4JModule#config()
26         */
27        @Override
28        public void config() {
29 
30                bindOptimizer(NoDuplicatesEvolutionaryAlgorithm.class);
31                bind(Mating.class).to(MatingWithHeuristics.class).in(SINGLETON);
32 
33                bind(CrossoverRate.class).to(ConstantCrossoverRate.class).in(SINGLETON);
34                
35                bind(IndividualBuilder.class).to(DSEIndividualBuilder.class);
36                
37                CrossoverModule.addCrossover(binder(),UniformDesignDecisionGenotypeCrossover.class);
38                //CrossoverModule.addCrossover(binder(),DesignDecisionCrossover.class);
39                MutateModule.addMutate(binder(),MutateDesignDecisionGenotype.class);
40                
41                CopyModule.addCopy(binder(), CopyDesignDecisionGenotype.class);
42 
43                addOptimizerIterationListener(TerminationCriteriaManager.class);
44 
45                // To exchange the selector, we cannot do the following because then the binding will be attempted twice and an exception is thrown. Thus, reimplement the selector module. 
46                //bind(Selector.class).to(Nsga2.class).in(SINGLETON);
47                //bind(Selector.class).to(Spea2.class).in(SINGLETON);
48        }
49        
50}

[all classes][de.uka.ipd.sdq.dsexplore.opt4j.representation]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov