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

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

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class OpenProcessingRateDialog0%   (0/1)0%   (0/3)0%   (0/30)0%   (0/9)
OpenProcessingRateDialog (): 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.ProcessingResourceSpecification;
7import de.uka.ipd.sdq.stoex.RandomVariable;
8import de.uka.ipd.sdq.stoex.analyser.visitors.TypeEnum;
9 
10// Manually written open policy to open the StoEx Dialog. It's
11// called via a CustomBehaviour in the genmap
12public class OpenProcessingRateDialog extends OpenStoExDialog {
13 
14        
15        @Override
16        protected RandomVariable getRandomVariable(EObject parent) {                
17                // Default Implementation. Override as necessary
18                if (randomVariableFeature == null && parent instanceof RandomVariable) {
19                        return (RandomVariable) parent;
20                } else if (randomVariableFeature == null
21                                && parent instanceof ProcessingResourceSpecification) {
22                        return ((ProcessingResourceSpecification) parent)
23                                        .getProcessingRate_ProcessingResourceSpecification();
24                } else {
25                        return (RandomVariable) parent.eGet(randomVariableFeature);
26                }
27                
28//                ProcessingResourceSpecification resourceSpecification = (ProcessingResourceSpecification) parent;
29//                RandomVariable rv = resourceSpecification.getProcessingRate_ProcessingResourceSpecification();
30//                return rv;
31        }
32 
33        @Override
34        protected TypeEnum getExpectedType(RandomVariable rv) {
35                return TypeEnum.DOUBLE;
36        }
37        
38}

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