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

COVERAGE SUMMARY FOR SOURCE FILE [AbstractPerformanceAnalysisResult.java]

nameclass, %method, %block, %line, %
AbstractPerformanceAnalysisResult.java0%   (0/1)0%   (0/3)0%   (0/31)0%   (0/12)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class AbstractPerformanceAnalysisResult0%   (0/1)0%   (0/3)0%   (0/31)0%   (0/12)
AbstractPerformanceAnalysisResult (PCMInstance): void 0%   (0/1)0%   (0/15)0%   (0/6)
getComputedAggregatedUsage (): ComputedAggregatedUsage 0%   (0/1)0%   (0/3)0%   (0/1)
solveDependencies (PCMInstance): void 0%   (0/1)0%   (0/13)0%   (0/5)

1package de.uka.ipd.sdq.dsexplore.analysis;
2 
3import de.uka.ipd.sdq.context.aggregatedUsageContext.ComputedAggregatedUsage;
4import de.uka.ipd.sdq.context.computed_usage.ComputedUsageContext;
5import de.uka.ipd.sdq.dsexplore.opt4j.start.Opt4JStarter;
6import de.uka.ipd.sdq.pcmsolver.models.PCMInstance;
7import de.uka.ipd.sdq.pcmsolver.visitors.AggregatedContextUsageModelVisitor;
8import de.uka.ipd.sdq.pcmsolver.visitors.UsageModelVisitor;
9 
10public abstract class AbstractPerformanceAnalysisResult implements
11                IPerformanceAnalysisResult {
12 
13        private ComputedAggregatedUsage computedAggregatedUsage = null;
14 
15        public AbstractPerformanceAnalysisResult(PCMInstance model) {
16                
17                if (Opt4JStarter.getDSEWorkflowConfig().isUseHeuristics()) {
18 
19                        solveDependencies(model);
20 
21                        this.computedAggregatedUsage = model.getComputedAggregatedUsage();
22                }
23                
24        }
25 
26        /**
27         * Careful: Must only be called per {@link PCMInstance} once, because otherwise it will 
28         * reuse {@link ComputedUsageContext} from old candidates.  
29         * @param model
30         */
31        public static void solveDependencies(PCMInstance model) {
32                // XXX: Dependency solver replaces IntPMFs and DoublePMFs by
33                // DoublePDFs.
34                
35                model.resetComputedContexts();
36                
37                UsageModelVisitor visitor = new AggregatedContextUsageModelVisitor(
38                                model);
39                visitor.doSwitch(model.getUsageModel());
40                
41        }
42 
43        /**
44         * @return the computedAggregatedUsage
45         */
46        public ComputedAggregatedUsage getComputedAggregatedUsage() {
47                return computedAggregatedUsage;
48        }
49 
50 
51        
52 
53}

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