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

COVERAGE SUMMARY FOR SOURCE FILE [TacticOperatorsFactory.java]

nameclass, %method, %block, %line, %
TacticOperatorsFactory.java0%   (0/1)0%   (0/2)0%   (0/90)0%   (0/16)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class TacticOperatorsFactory0%   (0/1)0%   (0/2)0%   (0/90)0%   (0/16)
TacticOperatorsFactory (): void 0%   (0/1)0%   (0/3)0%   (0/1)
getActivatedInstances (Copy, DSEIndividualBuilder, DSEWorkflowConfiguration):... 0%   (0/1)0%   (0/87)0%   (0/15)

1package de.uka.ipd.sdq.dsexplore.opt4j.optimizer.heuristic.operators;
2 
3import java.util.ArrayList;
4import java.util.Collection;
5 
6import org.opt4j.core.problem.Genotype;
7import org.opt4j.operator.copy.Copy;
8 
9import de.uka.ipd.sdq.dsexplore.launch.DSEWorkflowConfiguration;
10import de.uka.ipd.sdq.dsexplore.opt4j.optimizer.heuristic.operators.impl.ConcurrentProcessingSystemImplCatia;
11import de.uka.ipd.sdq.dsexplore.opt4j.optimizer.heuristic.operators.impl.DecreaseProcessingRateImpl;
12import de.uka.ipd.sdq.dsexplore.opt4j.optimizer.heuristic.operators.impl.IncreaseProcessingRateImpl;
13import de.uka.ipd.sdq.dsexplore.opt4j.optimizer.heuristic.operators.impl.ReallocateForReduceLinkUsage;
14import de.uka.ipd.sdq.dsexplore.opt4j.optimizer.heuristic.operators.impl.ReallocationImpl;
15import de.uka.ipd.sdq.dsexplore.opt4j.optimizer.heuristic.operators.impl.ServerConsolidationImpl;
16import de.uka.ipd.sdq.dsexplore.opt4j.optimizer.heuristic.operators.impl.ServerExpansionImpl;
17import de.uka.ipd.sdq.dsexplore.opt4j.representation.DSEIndividualBuilder;
18 
19public class TacticOperatorsFactory {
20        
21        /**
22         * Returns a collection of all actived heuristics.
23         */
24        public static Collection<ITactic> getActivatedInstances(Copy<Genotype> copy, DSEIndividualBuilder individualBuilder, DSEWorkflowConfiguration configuration) {
25                
26                Collection<ITactic> activatedHeuristics = new ArrayList<ITactic>();
27                if (configuration.getUseReallocation()) {
28                        activatedHeuristics.add(new ReallocationImpl(copy, individualBuilder, configuration));
29                }
30                if (configuration.getUseProcessingRate()) {
31                        activatedHeuristics.add(new IncreaseProcessingRateImpl(copy, individualBuilder, configuration));
32                        activatedHeuristics.add(new DecreaseProcessingRateImpl(copy, individualBuilder, configuration));
33                }
34                if (configuration.getUseServerConsolidation()) {
35                        activatedHeuristics.add(new ServerConsolidationImpl(copy, individualBuilder, configuration));
36                }
37                if (configuration.getUseServerExpansion()) {
38                        activatedHeuristics.add(new ServerExpansionImpl(copy, individualBuilder, configuration));
39                }
40                
41                if (configuration.getUseLinkReallocationTactic()){
42                        activatedHeuristics.add(new ReallocateForReduceLinkUsage(copy, individualBuilder, configuration));
43                }
44                
45                if (configuration.getUseAntipatternKnowledge()) {
46                        activatedHeuristics.add(new ConcurrentProcessingSystemImplCatia(copy, individualBuilder, configuration));
47                }
48                return activatedHeuristics;
49        }
50 
51}

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