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

COVERAGE SUMMARY FOR SOURCE FILE [SimuComWorkflowLauncher.java]

nameclass, %method, %block, %line, %
SimuComWorkflowLauncher.java0%   (0/1)0%   (0/4)0%   (0/160)0%   (0/23)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class SimuComWorkflowLauncher0%   (0/1)0%   (0/4)0%   (0/160)0%   (0/23)
SimuComWorkflowLauncher (): void 0%   (0/1)0%   (0/3)0%   (0/1)
createWorkflowJob (SimuComWorkflowConfiguration, ILaunch): IJob 0%   (0/1)0%   (0/21)0%   (0/5)
deriveConfiguration (ILaunchConfiguration, String): SimuComWorkflowConfiguration 0%   (0/1)0%   (0/26)0%   (0/7)
setupLogging (Level): ArrayList 0%   (0/1)0%   (0/110)0%   (0/10)

1package de.uka.ipd.sdq.codegen.simucontroller.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.codegen.simucontroller.debug.IDebugListener;
12import de.uka.ipd.sdq.codegen.simucontroller.debug.SimulationDebugListener;
13import de.uka.ipd.sdq.workflow.IJob;
14import de.uka.ipd.sdq.workflow.launchconfig.AbstractWorkflowConfigurationBuilder;
15import de.uka.ipd.sdq.workflow.launchconfig.LoggerAppenderStruct;
16import de.uka.ipd.sdq.workflow.pcm.configurations.AbstractPCMLaunchConfigurationDelegate;
17import de.uka.ipd.sdq.workflow.pcm.configurations.PCMWorkflowConfigurationBuilder;
18 
19/**
20 * The class adapts defined functionality in the AbstractMDSDLaunchConfigurationDelegate for
21 * SimuCom Framework.
22 *
23 */
24public class SimuComWorkflowLauncher extends
25                AbstractPCMLaunchConfigurationDelegate<SimuComWorkflowConfiguration> {
26 
27        /*
28         * (non-Javadoc)
29         *
30         * @seede.uka.ipd.sdq.codegen.runconfig.LaunchConfigurationDelegate#
31         * creataAttributesGetMethods(org.eclipse.debug.core.ILaunchConfiguration)
32         */
33        @Override
34        protected SimuComWorkflowConfiguration deriveConfiguration(
35                        ILaunchConfiguration configuration, String mode)
36                        throws CoreException {
37                SimuComWorkflowConfiguration config = new SimuComWorkflowConfiguration(configuration.getAttributes());
38 
39                AbstractWorkflowConfigurationBuilder builder;
40                builder = new PCMWorkflowConfigurationBuilder(configuration, mode);
41                builder.fillConfiguration(config);
42 
43                builder = new SimuComLaunchConfigurationBasedConfigBuilder(
44                                configuration, mode);
45                builder.fillConfiguration(config);
46 
47                return config;
48        }
49 
50        /* (non-Javadoc)
51         * @see de.uka.ipd.sdq.codegen.simucontroller.runconfig.AbstractMDSDLaunchConfigurationDelegate#setupLogging(org.apache.log4j.Level)
52         */
53        @Override
54        protected ArrayList<LoggerAppenderStruct> setupLogging(Level logLevel) throws CoreException {
55                ArrayList<LoggerAppenderStruct> loggerList = super.setupLogging(logLevel);
56                loggerList.add(setupLogger("de.uka.ipd.sdq.codegen", logLevel, Level.DEBUG == logLevel ? DETAILED_LOG_PATTERN : SHORT_LOG_PATTERN));
57                loggerList.add(setupLogger("de.uka.ipd.sdq.simucomframework", logLevel, Level.DEBUG == logLevel ? DETAILED_LOG_PATTERN : SHORT_LOG_PATTERN));
58                loggerList.add(setupLogger("de.uka.ipd.sdq.workflow.mdsd.emf.qvtr", logLevel, Level.DEBUG == logLevel ? DETAILED_LOG_PATTERN : SHORT_LOG_PATTERN));
59                loggerList.add(setupLogger("de.uka.ipd.sdq.statistics", logLevel, Level.DEBUG == logLevel ? DETAILED_LOG_PATTERN : SHORT_LOG_PATTERN));
60                loggerList.add(setupLogger("de.uka.ipd.sdq.probespec.framework", logLevel, Level.DEBUG == logLevel ? DETAILED_LOG_PATTERN : SHORT_LOG_PATTERN));
61                loggerList.add(setupLogger("de.uka.ipd.sdq.pipesandfilters.framework", logLevel, Level.DEBUG == logLevel ? DETAILED_LOG_PATTERN : SHORT_LOG_PATTERN));
62                loggerList.add(setupLogger("de.uka.ipd.sdq.pcm.transformations", logLevel, Level.DEBUG == logLevel ? DETAILED_LOG_PATTERN : SHORT_LOG_PATTERN));
63                loggerList.add(setupLogger("de.uka.ipd.sdq.simulation", logLevel, Level.DEBUG == logLevel ? DETAILED_LOG_PATTERN : SHORT_LOG_PATTERN));
64 
65                return loggerList;
66        }
67 
68        /*
69         * (non-Javadoc)
70         *
71         * @seede.uka.ipd.sdq.codegen.runconfig.LaunchConfigurationDelegate#
72         * createRunCompositeJob
73         * (de.uka.ipd.sdq.codegen.runconfig.AttributesGetMethods)
74         */
75        @Override
76        protected IJob createWorkflowJob(SimuComWorkflowConfiguration config,
77                        final ILaunch launch) throws CoreException {
78                IDebugListener listener = null;
79 
80                if (config.isDebug()) {
81                        listener = new SimulationDebugListener(launch);
82                }
83 
84                SimuComWorkflowJobBuilder jobBuilder = new SimuComWorkflowJobBuilder(listener);
85                return new AccuracyInfluenceAnalysisJob(config, jobBuilder);
86        }
87}

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