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

COVERAGE SUMMARY FOR SOURCE FILE [QVTOCompletionBuilder.java]

nameclass, %method, %block, %line, %
QVTOCompletionBuilder.java0%   (0/1)0%   (0/2)0%   (0/54)0%   (0/11)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class QVTOCompletionBuilder0%   (0/1)0%   (0/2)0%   (0/54)0%   (0/11)
QVTOCompletionBuilder (CompletionConfiguration, Transformation): void 0%   (0/1)0%   (0/9)0%   (0/4)
buildJobs (): Collection 0%   (0/1)0%   (0/45)0%   (0/7)

1package de.uka.ipd.sdq.cip.workflow.jobs.builder;
2 
3import java.util.ArrayList;
4import java.util.Collection;
5 
6import de.uka.ipd.sdq.cip.configuration.CompletionConfiguration;
7import de.uka.ipd.sdq.cip.configuration.Transformation;
8import de.uka.ipd.sdq.cip.workflow.jobs.CreateCopyOfModelsJob;
9import de.uka.ipd.sdq.cip.workflow.jobs.CreateWorkingCopyOfModelsJob;
10import de.uka.ipd.sdq.cip.workflow.jobs.QVTOConfigurationJob;
11import de.uka.ipd.sdq.workflow.IJob;
12import de.uka.ipd.sdq.workflow.mdsd.blackboard.SavePartitionToDiskJob;
13import de.uka.ipd.sdq.workflow.mdsd.emf.qvto.QVTOTransformationJob;
14import de.uka.ipd.sdq.workflow.mdsd.emf.qvto.QVTOTransformationJobConfiguration;
15import de.uka.ipd.sdq.workflow.pcm.jobs.LoadPCMModelsIntoBlackboardJob;
16 
17/**
18 * Job Builder for a plain QVTO transformation completion.
19 *  
20 * 
21 * 
22 * @author Benjamin Klatt
23 *
24 */
25public class QVTOCompletionBuilder implements CompletionBuilder {
26 
27        private CompletionConfiguration completionConfiguration;
28        private Transformation transformation;
29 
30        /**
31         * Constructor to hand over the required configurations to the super type.
32         * 
33         * @param completionConfiguration         The configuration for the completion
34         * @param transformation                        The transformation to execute
35         */
36        public QVTOCompletionBuilder(        CompletionConfiguration completionConfiguration, 
37                                                                                Transformation transformation) {
38                this.completionConfiguration = completionConfiguration;
39                this.transformation = transformation;
40        }
41 
42        /**
43         * Build the transformation job itself.
44         * @return The prepared jobs created by this builder.
45         */
46        public Collection<IJob> buildJobs() {
47                
48                Collection<IJob> jobs = new ArrayList<IJob>();
49                
50                // The configuration for a QVTO completion
51                QVTOTransformationJobConfiguration qvtoConfig = new QVTOTransformationJobConfiguration();
52                
53                // copy models for in-place transformation
54                jobs.add(new CreateWorkingCopyOfModelsJob(completionConfiguration, transformation));
55                
56                // configure the QVTO Job
57                jobs.add(new QVTOConfigurationJob(qvtoConfig, completionConfiguration, transformation));
58                
59                // create and add the qvto job
60                jobs.add(new QVTOTransformationJob(qvtoConfig));
61                
62                // dump the partition to disk
63                jobs.add(new SavePartitionToDiskJob(LoadPCMModelsIntoBlackboardJob.PCM_MODELS_PARTITION_ID));
64                
65                return jobs;
66        }
67 
68        
69 
70}

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