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

COVERAGE SUMMARY FOR SOURCE FILE [CompletionConfiguration.java]

nameclass, %method, %block, %line, %
CompletionConfiguration.java0%   (0/1)0%   (0/7)0%   (0/65)0%   (0/18)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class CompletionConfiguration0%   (0/1)0%   (0/7)0%   (0/65)0%   (0/18)
CompletionConfiguration (Map): void 0%   (0/1)0%   (0/45)0%   (0/10)
getDebug (): boolean 0%   (0/1)0%   (0/3)0%   (0/1)
getInputPartitionName (): String 0%   (0/1)0%   (0/3)0%   (0/1)
getProjectID (): String 0%   (0/1)0%   (0/3)0%   (0/1)
getTransformations (): List 0%   (0/1)0%   (0/3)0%   (0/1)
setInputPartitionName (String): void 0%   (0/1)0%   (0/4)0%   (0/2)
setProjectID (String): void 0%   (0/1)0%   (0/4)0%   (0/2)

1package de.uka.ipd.sdq.cip.configuration;
2 
3import java.util.ArrayList;
4import java.util.Collection;
5import java.util.List;
6import java.util.Map;
7 
8import de.uka.ipd.sdq.cip.ConstantsContainer;
9 
10public class CompletionConfiguration {
11        protected List<Transformation> transformations;
12        protected String inputPartitionName;
13        protected String projectID;
14        protected boolean isDebug;
15        
16        @SuppressWarnings("unchecked")
17        public CompletionConfiguration(Map<String, Object> configuration) {
18                try {
19                        isDebug = (Boolean) configuration.get(ConstantsContainer.COMPLETION_QVT_VERBOSE_LOGGING);
20                        Collection<String> transformationStrings = (Collection<String>) configuration.get(ConstantsContainer.COMPLETION_CONFIG);
21                        transformations = new ArrayList<Transformation>();
22                        for(String configString:transformationStrings)
23                        {
24                                Transformation transformation = Transformation.fromDataString(configString);
25                                if(transformation.isEnabled())
26                                        transformations.add(transformation);
27                        }
28                } catch (Exception e) {
29                        //throw new RuntimeException("Setting up properties failed, please check launch config (check all tabs).", e);
30                }
31        }
32 
33        public List<Transformation> getTransformations() {
34                return transformations;
35        }
36        
37        public String getInputPartitionName(){
38                return inputPartitionName;
39        }
40        
41        public void setInputPartitionName(
42                        String inputPartitionName) {
43                this.inputPartitionName = inputPartitionName;
44                
45        }
46        
47        public boolean getDebug() {
48                return isDebug;
49        }
50        
51        public String getProjectID() {
52                return projectID;
53        }
54        
55        public void setProjectID(String projectID) {
56                this.projectID = projectID;
57        }
58}

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