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

COVERAGE SUMMARY FOR SOURCE FILE [PredefinedInstanceEvaluator.java]

nameclass, %method, %block, %line, %
PredefinedInstanceEvaluator.java0%   (0/1)0%   (0/2)0%   (0/34)0%   (0/10)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class PredefinedInstanceEvaluator0%   (0/1)0%   (0/2)0%   (0/34)0%   (0/10)
PredefinedInstanceEvaluator (Population, Archive, IndividualBuilder, Complete... 0%   (0/1)0%   (0/8)0%   (0/2)
optimize (): void 0%   (0/1)0%   (0/26)0%   (0/8)

1package de.uka.ipd.sdq.dsexplore.opt4j.optimizer;
2 
3import org.eclipse.core.runtime.CoreException;
4import org.opt4j.core.Archive;
5import org.opt4j.core.Individual;
6import org.opt4j.core.IndividualBuilder;
7import org.opt4j.core.Population;
8import org.opt4j.core.optimizer.AbstractOptimizer;
9import org.opt4j.core.optimizer.Completer;
10import org.opt4j.core.optimizer.Control;
11import org.opt4j.core.optimizer.StopException;
12import org.opt4j.core.optimizer.TerminationException;
13 
14import com.google.inject.Inject;
15 
16import de.uka.ipd.sdq.dsexplore.opt4j.start.Opt4JStarter;
17 
18public class PredefinedInstanceEvaluator extends AbstractOptimizer {
19 
20        @Inject
21        public PredefinedInstanceEvaluator(Population population, Archive archive,
22                        IndividualBuilder individualBuilder, Completer completer,
23                        Control control){
24                
25                super(population, archive, individualBuilder, completer, control);
26                                
27        }
28        
29        @Override
30        public void optimize() throws StopException, TerminationException {
31                
32                try {
33                        int numberOfCandidatesToEvaluate = Opt4JStarter.getDSECreator().getNumberOfNotEvaluatedPredefinedOnes();
34                        
35                        for (int i = 0; i < numberOfCandidatesToEvaluate; i ++){
36                                Individual indiv = individualBuilder.build();
37                                population.add(indiv);
38                        }
39                        
40                        nextIteration();
41                        
42                } catch (CoreException e) {
43                        // TODO Auto-generated catch block
44                        e.printStackTrace();
45                }
46                
47 
48                
49        
50        }
51 
52}

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