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

COVERAGE SUMMARY FOR SOURCE FILE [AbstractConnectorCompletionBuilder.java]

nameclass, %method, %block, %line, %
AbstractConnectorCompletionBuilder.java0%   (0/1)0%   (0/4)0%   (0/72)0%   (0/16)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class AbstractConnectorCompletionBuilder0%   (0/1)0%   (0/4)0%   (0/72)0%   (0/16)
<static initializer> 0%   (0/1)0%   (0/3)0%   (0/2)
AbstractConnectorCompletionBuilder (PCMAndCompletionModelHolder, AssemblyConn... 0%   (0/1)0%   (0/8)0%   (0/3)
build (): void 0%   (0/1)0%   (0/44)0%   (0/8)
createComponent (String): RepositoryComponent 0%   (0/1)0%   (0/17)0%   (0/3)

1package de.uka.ipd.sdq.pcm.transformations.builder.connectors;
2 
3import de.uka.ipd.sdq.completions.Completion;
4import de.uka.ipd.sdq.completions.CompletionsFactory;
5import de.uka.ipd.sdq.pcm.core.composition.AssemblyConnector;
6import de.uka.ipd.sdq.pcm.core.composition.CompositionFactory;
7import de.uka.ipd.sdq.pcm.repository.RepositoryComponent;
8import de.uka.ipd.sdq.pcm.transformations.builder.abstractbuilder.AbstractCompositeStructureBuilder;
9import de.uka.ipd.sdq.pcm.transformations.builder.util.PCMAndCompletionModelHolder;
10 
11public abstract class AbstractConnectorCompletionBuilder 
12extends AbstractCompositeStructureBuilder {
13 
14        protected AssemblyConnector connectorToReplace;
15        private static long contextID = 0;
16 
17        public AbstractConnectorCompletionBuilder(PCMAndCompletionModelHolder models, AssemblyConnector con, String componentName){
18                super(models, componentName);
19                this.connectorToReplace = con;
20        }
21        
22        @Override
23        protected RepositoryComponent createComponent(String componentName) {
24                Completion completion = CompletionsFactory.eINSTANCE.createCompletion();
25                completion.setEntityName("ConnectorCompletion_"+componentName+getNextCounter() );
26                
27                return completion;
28        }
29 
30        @Override
31        public void build() {
32                super.build();
33                myOperationProvidedRole = addOperationProvidedRole(connectorToReplace.getRequiredRole_AssemblyConnector().getRequiredInterface__OperationRequiredRole(),"ProvidedRole");
34                myOperationRequiredRole = addOperationRequiredRole(connectorToReplace.getRequiredRole_AssemblyConnector().getRequiredInterface__OperationRequiredRole(),"RequiredRole");
35 
36                myAssemblyContext = CompositionFactory.eINSTANCE.createAssemblyContext(); 
37                myAssemblyContext.setEntityName("CompletionComponentContext"+contextID);
38                contextID++;
39                myAssemblyContext.setEncapsulatedComponent__AssemblyContext(myComponent);
40        }
41        
42}

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