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 [InnerConnectorCompletionBuilder.java]

nameclass, %method, %block, %line, %
InnerConnectorCompletionBuilder.java0%   (0/1)0%   (0/3)0%   (0/47)0%   (0/16)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class InnerConnectorCompletionBuilder0%   (0/1)0%   (0/3)0%   (0/47)0%   (0/16)
InnerConnectorCompletionBuilder (PCMAndCompletionModelHolder, AssemblyConnect... 0%   (0/1)0%   (0/9)0%   (0/2)
createClientSideBuilder (): IMiddlewareInteractingComponentBuilder 0%   (0/1)0%   (0/19)0%   (0/7)
createServerSideBuilder (): IMiddlewareInteractingComponentBuilder 0%   (0/1)0%   (0/19)0%   (0/7)

1package de.uka.ipd.sdq.pcm.transformations.builder.connectors;
2 
3import de.uka.ipd.sdq.pcm.core.composition.AssemblyConnector;
4import de.uka.ipd.sdq.pcm.resourceenvironment.ResourceContainer;
5import de.uka.ipd.sdq.pcm.transformations.builder.IComponentBuilder;
6import de.uka.ipd.sdq.pcm.transformations.builder.infrastructure.BasicMiddlewareComponentBuilder;
7import de.uka.ipd.sdq.pcm.transformations.builder.infrastructure.IMiddlewareInteractingComponentBuilder;
8import de.uka.ipd.sdq.pcm.transformations.builder.util.PCMAndCompletionModelHolder;
9 
10/**
11 * Implementation of an InnerConnectorCompletionBuilder which adds dummy components on both sides doing nothing else than delegating the
12 * call to the next component in the chain
13 * @author Snowball
14 *
15 */
16public class InnerConnectorCompletionBuilder
17extends AbstractClientServerConnectorCompletionBuilder {
18 
19        public InnerConnectorCompletionBuilder(
20                        PCMAndCompletionModelHolder models,
21                        AssemblyConnector connector,
22                        ResourceContainer fromResourceContainer,
23                        ResourceContainer toResourceContainer,
24                        IComponentBuilder innerBuilder) {
25                super(models, connector, fromResourceContainer, toResourceContainer, innerBuilder, "InnerConnectorCompletion");
26        }
27 
28        /**
29         * By default, a dummy component is created which does nothing besides delegating the call.
30         * Override if more actions are needed
31         * @return
32         */
33        @Override
34        protected IMiddlewareInteractingComponentBuilder createClientSideBuilder() {
35                return         new BasicMiddlewareComponentBuilder(
36                                myModels, 
37                                this.connectorToReplace.getRequiredRole_AssemblyConnector().getRequiredInterface__OperationRequiredRole(),
38                                this.connectorToReplace.getRequiredRole_AssemblyConnector().getRequiredInterface__OperationRequiredRole(),
39                                this.middlewareInterface,
40                                this.fromResourceContainer, 
41                                "BasicMiddlewareComponent_ClientSide");
42        }
43        
44        /**
45         * By default, a dummy component is created which does nothing besides delegating the call.
46         * Override if more actions are needed
47         * @return
48         */
49        @Override
50        protected IMiddlewareInteractingComponentBuilder createServerSideBuilder() {
51                return new BasicMiddlewareComponentBuilder(
52                                myModels, 
53                                this.connectorToReplace.getRequiredRole_AssemblyConnector().getRequiredInterface__OperationRequiredRole(),
54                                this.connectorToReplace.getRequiredRole_AssemblyConnector().getRequiredInterface__OperationRequiredRole(),
55                                this.middlewareInterface,
56                                this.toResourceContainer,
57                                "BasicMiddlewareComponent_ServerSide");
58        }
59}

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