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

COVERAGE SUMMARY FOR SOURCE FILE [CipLaunchConfigurationDelegate.java]

nameclass, %method, %block, %line, %
CipLaunchConfigurationDelegate.java0%   (0/1)0%   (0/5)0%   (0/60)0%   (0/11)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class CipLaunchConfigurationDelegate0%   (0/1)0%   (0/5)0%   (0/60)0%   (0/11)
CipLaunchConfigurationDelegate (): void 0%   (0/1)0%   (0/3)0%   (0/1)
createBlackboard (): MDSDBlackboard 0%   (0/1)0%   (0/4)0%   (0/1)
createWorkflowJob (CipConfiguration, ILaunch): IJob 0%   (0/1)0%   (0/6)0%   (0/1)
deriveConfiguration (ILaunchConfiguration, String): CipConfiguration 0%   (0/1)0%   (0/15)0%   (0/4)
setupLogging (Level): ArrayList 0%   (0/1)0%   (0/32)0%   (0/4)

1package de.uka.ipd.sdq.cip.runtime.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.uka.ipd.sdq.cip.runtime.workflow.jobs.CipJob;
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.mdsd.AbstractWorkflowBasedMDSDLaunchConfigurationDelegate;
15import de.uka.ipd.sdq.workflow.mdsd.blackboard.MDSDBlackboard;
16 
17public class CipLaunchConfigurationDelegate
18                extends
19                AbstractWorkflowBasedMDSDLaunchConfigurationDelegate<CipConfiguration>{
20 
21        @Override
22        protected MDSDBlackboard createBlackboard() {
23                return new MDSDBlackboard();
24        }
25 
26        @Override
27        protected IJob createWorkflowJob(CipConfiguration config,
28                        final ILaunch launch) throws CoreException {
29                return new CipJob(config,launch);
30        }
31 
32        @Override
33        protected CipConfiguration deriveConfiguration(
34                        ILaunchConfiguration configuration, String mode)
35                        throws CoreException {
36                CipConfiguration cipConfiguration = new CipConfiguration();
37                
38                AbstractWorkflowConfigurationBuilder builder;
39                builder = new CipLaunchConfigurationBasedConfigBuilder(configuration,mode);
40                builder.fillConfiguration(cipConfiguration);
41                
42                return cipConfiguration;
43        }
44        
45        /* (non-Javadoc)
46         * @see de.uka.ipd.sdq.workflow.launchconfig.AbstractWorkflowBasedLaunchConfigurationDelegate#setupLogging(org.apache.log4j.Level)
47         */
48        @Override
49        protected ArrayList<LoggerAppenderStruct> setupLogging(Level logLevel) throws CoreException {
50                ArrayList<LoggerAppenderStruct> loggerList = super.setupLogging(logLevel);
51                
52                // Setup openArchitectureWare Logging
53                loggerList.add(setupLogger("de.uka.ipd.sdq.cip", logLevel, Level.DEBUG == logLevel ? DETAILED_LOG_PATTERN : SHORT_LOG_PATTERN));
54                loggerList.add(setupLogger("de.uka.ipd.sdq.workflow.mdsd.emf.qvtr", logLevel, Level.DEBUG == logLevel ? DETAILED_LOG_PATTERN : SHORT_LOG_PATTERN));
55                
56                return loggerList;
57        }
58 
59}

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