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

COVERAGE SUMMARY FOR SOURCE FILE [AbstractCompositeStructureBuilder.java]

nameclass, %method, %block, %line, %
AbstractCompositeStructureBuilder.java0%   (0/1)0%   (0/5)0%   (0/89)0%   (0/26)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class AbstractCompositeStructureBuilder0%   (0/1)0%   (0/5)0%   (0/89)0%   (0/26)
AbstractCompositeStructureBuilder (PCMAndCompletionModelHolder, String): void 0%   (0/1)0%   (0/5)0%   (0/2)
addAssemblyConnector (OperationRequiredRole, AssemblyContext, OperationProvid... 0%   (0/1)0%   (0/20)0%   (0/7)
addProvidedDelegationConnector (OperationProvidedRole, AssemblyContext, Opera... 0%   (0/1)0%   (0/30)0%   (0/8)
addRequiredDelegationConnector (OperationRequiredRole, AssemblyContext, Opera... 0%   (0/1)0%   (0/30)0%   (0/8)
getComposedStructure (): ComposedStructure 0%   (0/1)0%   (0/4)0%   (0/1)

1package de.uka.ipd.sdq.pcm.transformations.builder.abstractbuilder;
2 
3import de.uka.ipd.sdq.pcm.core.composition.AssemblyConnector;
4import de.uka.ipd.sdq.pcm.core.composition.AssemblyContext;
5import de.uka.ipd.sdq.pcm.core.composition.ComposedStructure;
6import de.uka.ipd.sdq.pcm.core.composition.CompositionFactory;
7import de.uka.ipd.sdq.pcm.core.composition.ProvidedDelegationConnector;
8import de.uka.ipd.sdq.pcm.core.composition.RequiredDelegationConnector;
9import de.uka.ipd.sdq.pcm.repository.OperationProvidedRole;
10import de.uka.ipd.sdq.pcm.repository.OperationRequiredRole;
11import de.uka.ipd.sdq.pcm.transformations.builder.util.PCMAndCompletionModelHolder;
12 
13public abstract class AbstractCompositeStructureBuilder 
14extends AbstractComponentBuilder {
15 
16        
17        public AbstractCompositeStructureBuilder(PCMAndCompletionModelHolder models, String componentName) {
18                super(models, componentName);
19        }
20 
21        protected void addRequiredDelegationConnector(OperationRequiredRole innerRole, AssemblyContext innerContext, OperationRequiredRole outerRole) {
22                if (innerRole == null || innerContext == null || outerRole == null)
23                        throw new IllegalArgumentException("At least on argument is null in delegation connector creation.");
24                RequiredDelegationConnector reqDelCon = CompositionFactory.eINSTANCE.createRequiredDelegationConnector();
25                reqDelCon.setAssemblyContext_RequiredDelegationConnector(innerContext);
26                reqDelCon.setInnerRequiredRole_RequiredDelegationConnector(innerRole);
27                reqDelCon.setOuterRequiredRole_RequiredDelegationConnector(outerRole);
28                
29                getComposedStructure().getConnectors__ComposedStructure().add(reqDelCon);
30        }
31 
32        protected void addProvidedDelegationConnector(OperationProvidedRole innerRole, AssemblyContext innerContext, OperationProvidedRole outerRole) {
33                if (innerRole == null || innerContext == null || outerRole == null)
34                        throw new IllegalArgumentException("At least on argument is null in delegation connector creation.");
35                ProvidedDelegationConnector delCon = CompositionFactory.eINSTANCE.createProvidedDelegationConnector();
36                delCon.setAssemblyContext_ProvidedDelegationConnector(innerContext);
37                delCon.setInnerProvidedRole_ProvidedDelegationConnector(innerRole);
38                delCon.setOuterProvidedRole_ProvidedDelegationConnector(outerRole);
39                
40                getComposedStructure().getConnectors__ComposedStructure().add(delCon);
41        }
42 
43        protected void addAssemblyConnector(OperationRequiredRole from, AssemblyContext fromContext, OperationProvidedRole to, AssemblyContext toContext){
44                AssemblyConnector acon = CompositionFactory.eINSTANCE.createAssemblyConnector();
45                acon.setParentStructure__Connector(getComposedStructure());
46                acon.setRequiredRole_AssemblyConnector(from);
47                acon.setRequiringAssemblyContext_AssemblyConnector(fromContext);
48                acon.setProvidedRole_AssemblyConnector(to);
49                acon.setProvidingAssemblyContext_AssemblyConnector(toContext);
50        }
51        
52        
53        protected ComposedStructure getComposedStructure(){
54                return (ComposedStructure) myComponent;
55        }
56 
57}

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