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

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

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class OpenLatencyDialog0%   (0/1)0%   (0/3)0%   (0/30)0%   (0/9)
OpenLatencyDialog (): 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 de.uka.ipd.sdq.pcm.dialogs.OpenStoExDialog;
4import de.uka.ipd.sdq.pcm.resourceenvironment.CommunicationLinkResourceSpecification;
5import de.uka.ipd.sdq.stoex.RandomVariable;
6import de.uka.ipd.sdq.stoex.analyser.visitors.TypeEnum;
7 
8import org.eclipse.emf.ecore.EObject;
9 
10 
11// Manually written open policy to open the StoEx Dialog. It's
12// called via a CustomBehaviour in the genmap
13public class OpenLatencyDialog 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                                        .getLatency_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