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

COVERAGE SUMMARY FOR SOURCE FILE [BasicMiddlewareComponentBuilder.java]

nameclass, %method, %block, %line, %
BasicMiddlewareComponentBuilder.java0%   (0/1)0%   (0/4)0%   (0/34)0%   (0/8)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class BasicMiddlewareComponentBuilder0%   (0/1)0%   (0/4)0%   (0/34)0%   (0/8)
BasicMiddlewareComponentBuilder (PCMAndCompletionModelHolder, OperationInterf... 0%   (0/1)0%   (0/11)0%   (0/3)
build (): void 0%   (0/1)0%   (0/10)0%   (0/3)
getMiddlewareRole (): OperationRequiredRole 0%   (0/1)0%   (0/3)0%   (0/1)
getSeffBuilder (): DelegatorComponentSeffBuilder 0%   (0/1)0%   (0/10)0%   (0/1)

1package de.uka.ipd.sdq.pcm.transformations.builder.infrastructure;
2 
3import de.uka.ipd.sdq.pcm.repository.Interface;
4import de.uka.ipd.sdq.pcm.repository.OperationInterface;
5import de.uka.ipd.sdq.pcm.repository.OperationRequiredRole;
6import de.uka.ipd.sdq.pcm.repository.RequiredRole;
7import de.uka.ipd.sdq.pcm.resourceenvironment.ResourceContainer;
8import de.uka.ipd.sdq.pcm.transformations.builder.abstractbuilder.BasicComponentBuilder;
9import de.uka.ipd.sdq.pcm.transformations.builder.seff.DelegatorComponentSeffBuilder;
10import de.uka.ipd.sdq.pcm.transformations.builder.seff.MiddlewareComponentSeffBuilder;
11import de.uka.ipd.sdq.pcm.transformations.builder.util.PCMAndCompletionModelHolder;
12 
13public class BasicMiddlewareComponentBuilder extends BasicComponentBuilder
14                implements IMiddlewareInteractingComponentBuilder {
15 
16        protected OperationInterface middleware;
17        private OperationRequiredRole myRequiredMiddlewareInterface;
18 
19 
20        public BasicMiddlewareComponentBuilder(PCMAndCompletionModelHolder models,
21                        OperationInterface providedIf, OperationInterface requiredIf, OperationInterface middlewareInterface,
22                        ResourceContainer container, String componentName) {
23                super(models, providedIf, requiredIf, container, componentName);
24                
25                middleware = middlewareInterface;
26        }
27 
28        @Override
29        public void build() {
30                myRequiredMiddlewareInterface = addOperationRequiredRole(middleware,"Middleware");
31                super.build();
32        }
33 
34        @Override
35        protected DelegatorComponentSeffBuilder getSeffBuilder(){
36                return new MiddlewareComponentSeffBuilder(getOperationProvidedRole(),getOperationRequiredRole(),getMiddlewareRole());
37        }
38        
39        public OperationRequiredRole getMiddlewareRole() {
40                return myRequiredMiddlewareInterface;
41        }
42 
43}

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