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

COVERAGE SUMMARY FOR SOURCE FILE [SetVariableActionDescriptor.java]

nameclass, %method, %block, %line, %
SetVariableActionDescriptor.java0%   (0/1)0%   (0/4)0%   (0/36)0%   (0/12)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class SetVariableActionDescriptor0%   (0/1)0%   (0/4)0%   (0/36)0%   (0/12)
SetVariableActionDescriptor (Collection): void 0%   (0/1)0%   (0/6)0%   (0/3)
SetVariableActionDescriptor (VariableUsage): void 0%   (0/1)0%   (0/13)0%   (0/4)
createAction (): AbstractAction 0%   (0/1)0%   (0/14)0%   (0/4)
getVariableUsages (): Collection 0%   (0/1)0%   (0/3)0%   (0/1)

1package de.uka.ipd.sdq.pcm.transformations.builder.seff;
2 
3import java.util.ArrayList;
4import java.util.Collection;
5 
6import de.uka.ipd.sdq.pcm.parameter.VariableUsage;
7import de.uka.ipd.sdq.pcm.seff.AbstractAction;
8import de.uka.ipd.sdq.pcm.seff.SeffFactory;
9import de.uka.ipd.sdq.pcm.seff.SetVariableAction;
10 
11public class SetVariableActionDescriptor extends AbstractActionDescriptor {
12        private Collection<VariableUsage> vus;
13        
14        public SetVariableActionDescriptor(Collection<VariableUsage> vus) {
15                super();
16                this.vus = vus;
17        }
18 
19        public SetVariableActionDescriptor(VariableUsage vu) {
20                vus = new ArrayList<VariableUsage>();
21                vus.add(vu);
22        }
23 
24        @Override
25        public AbstractAction createAction() {
26                SetVariableAction action = SeffFactory.eINSTANCE.createSetVariableAction();
27                action.setEntityName("ResultSetter");
28                action.getLocalVariableUsages_SetVariableAction().addAll(this.getVariableUsages());
29                return action;
30        }
31 
32        protected Collection<? extends VariableUsage> getVariableUsages() {
33                return this.vus;
34        }
35}

[all classes][de.uka.ipd.sdq.pcm.transformations.builder.seff]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov