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

COVERAGE SUMMARY FOR SOURCE FILE [OpenThroughputDialog.java]

nameclass, %method, %block, %line, %
OpenThroughputDialog.java0%   (0/1)0%   (0/3)0%   (0/30)0%   (0/9)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class OpenThroughputDialog0%   (0/1)0%   (0/3)0%   (0/30)0%   (0/9)
OpenThroughputDialog (): void 0%   (0/1)0%   (0/3)0%   (0/1)
getExpectedType (RandomVariable): TypeEnum 0%   (0/1)0%   (0/2)0%   (0/1)
getRandomVariable (EObject): RandomVariable 0%   (0/1)0%   (0/25)0%   (0/7)

1package de.uka.ipd.sdq.pcm.dialogs.resource;
2 
3import org.eclipse.emf.ecore.EObject;
4 
5import de.uka.ipd.sdq.pcm.dialogs.OpenStoExDialog;
6import de.uka.ipd.sdq.pcm.resourceenvironment.CommunicationLinkResourceSpecification;
7import de.uka.ipd.sdq.stoex.RandomVariable;
8import de.uka.ipd.sdq.stoex.analyser.visitors.TypeEnum;
9 
10 
11// Manually written open policy to open the StoEx Dialog. It's
12// called via a CustomBehaviour in the genmap
13public class OpenThroughputDialog extends OpenStoExDialog {
14 
15        
16        @Override
17        protected RandomVariable getRandomVariable(EObject parent) {
18                // Default Implementation. Override as necessary
19                if (randomVariableFeature == null && parent instanceof RandomVariable) {
20                        return (RandomVariable) parent;
21                } else if (randomVariableFeature == null
22                                && parent instanceof CommunicationLinkResourceSpecification) {
23                        return ((CommunicationLinkResourceSpecification) parent)
24                                        .getThroughput_CommunicationLinkResourceSpecification();
25                } else {
26                        return (RandomVariable) parent.eGet(randomVariableFeature);
27                }
28        }
29 
30        @Override
31        protected TypeEnum getExpectedType(RandomVariable rv) {
32                return TypeEnum.DOUBLE;
33        }
34        
35}

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