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

COVERAGE SUMMARY FOR SOURCE FILE [PCMSolverLaunchConfigurationDelegate.java]

nameclass, %method, %block, %line, %
PCMSolverLaunchConfigurationDelegate.java0%   (0/1)0%   (0/4)0%   (0/57)0%   (0/16)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class PCMSolverLaunchConfigurationDelegate0%   (0/1)0%   (0/4)0%   (0/57)0%   (0/16)
PCMSolverLaunchConfigurationDelegate (): void 0%   (0/1)0%   (0/3)0%   (0/1)
createWorkflowJob (PCMSolverWorkflowRunConfiguration, ILaunch): IJob 0%   (0/1)0%   (0/11)0%   (0/2)
deriveConfiguration (ILaunchConfiguration, String): PCMSolverWorkflowRunConfi... 0%   (0/1)0%   (0/24)0%   (0/7)
setupLogging (Level): ArrayList 0%   (0/1)0%   (0/19)0%   (0/6)

1package de.uka.ipd.sdq.pcmsolver.runconfig;
2 
3import java.util.ArrayList;
4 
5import org.apache.log4j.Level;
6import org.eclipse.core.runtime.CoreException;
7import org.eclipse.debug.core.ILaunch;
8import org.eclipse.debug.core.ILaunchConfiguration;
9 
10import de.fzi.se.accuracy.jobs.AccuracyInfluenceAnalysisJob;
11import de.uka.ipd.sdq.workflow.IJob;
12import de.uka.ipd.sdq.workflow.launchconfig.AbstractWorkflowConfigurationBuilder;
13import de.uka.ipd.sdq.workflow.launchconfig.LoggerAppenderStruct;
14import de.uka.ipd.sdq.workflow.pcm.configurations.AbstractPCMLaunchConfigurationDelegate;
15import de.uka.ipd.sdq.workflow.pcm.configurations.PCMWorkflowConfigurationBuilder;
16 
17public class PCMSolverLaunchConfigurationDelegate
18                extends
19                AbstractPCMLaunchConfigurationDelegate<PCMSolverWorkflowRunConfiguration> {
20 
21        @Override
22        protected IJob createWorkflowJob(PCMSolverWorkflowRunConfiguration config,
23                        ILaunch launch) throws CoreException {
24 
25                // To enable accuracy analysis, the former top-level job (PCMSolverReliabilityJob)
26                // is replaced through a new AccuracyInfluenceAnalysisJob:
27                PCMSolverWorkflowJobBuilder jobBuilder = new PCMSolverWorkflowJobBuilder(launch);
28                return new AccuracyInfluenceAnalysisJob(config, jobBuilder);
29        }
30 
31        @Override
32        protected PCMSolverWorkflowRunConfiguration deriveConfiguration(
33                        ILaunchConfiguration configuration, String mode)
34                        throws CoreException {
35                PCMSolverWorkflowRunConfiguration solverConfiguration = new PCMSolverWorkflowRunConfiguration();
36 
37                AbstractWorkflowConfigurationBuilder builder;
38 
39                builder = new PCMWorkflowConfigurationBuilder(configuration, mode);
40                builder.fillConfiguration(solverConfiguration);
41 
42                builder = new PCMSolverConfigurationBasedConfigBuilder(configuration,
43                                mode);
44                builder.fillConfiguration(solverConfiguration);
45 
46                return solverConfiguration;
47        }
48 
49        @Override
50        protected ArrayList<LoggerAppenderStruct> setupLogging(Level logLevel)
51                        throws CoreException {
52                ArrayList<LoggerAppenderStruct> loggerList = super
53                                .setupLogging(logLevel);
54                loggerList.add(setupLogger("de.uka.ipd.sdq.pcmsolver", logLevel,
55                                Level.DEBUG == logLevel ? DETAILED_LOG_PATTERN
56                                                : SHORT_LOG_PATTERN));
57 
58                return loggerList;
59        }
60 
61}

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