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

COVERAGE SUMMARY FOR SOURCE FILE [OpenCapacityDialog.java]

nameclass, %method, %block, %line, %
OpenCapacityDialog.java0%   (0/1)0%   (0/4)0%   (0/15)0%   (0/6)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class OpenCapacityDialog0%   (0/1)0%   (0/4)0%   (0/15)0%   (0/6)
OpenCapacityDialog (): void 0%   (0/1)0%   (0/3)0%   (0/1)
getDialogMessage (): String 0%   (0/1)0%   (0/2)0%   (0/1)
getExpectedType (RandomVariable): TypeEnum 0%   (0/1)0%   (0/2)0%   (0/1)
getRandomVariable (EObject): RandomVariable 0%   (0/1)0%   (0/8)0%   (0/3)

1package de.uka.ipd.sdq.pcm.dialogs.repository;
2 
3import org.eclipse.emf.ecore.EObject;
4 
5import de.uka.ipd.sdq.pcm.dialogs.OpenStoExDialog;
6import de.uka.ipd.sdq.pcm.repository.PassiveResource;
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 OpenCapacityDialog extends OpenStoExDialog {
13 
14        
15        @Override
16        protected RandomVariable getRandomVariable(EObject parent) {
17                PassiveResource pr = (PassiveResource) parent;
18                RandomVariable rv = pr.getCapacity_PassiveResource();
19                return rv;
20        }
21 
22        @Override
23        protected TypeEnum getExpectedType(RandomVariable rv) {
24                return TypeEnum.INT;
25        }
26 
27        @Override
28        protected String getDialogMessage() {
29                return "Please enter the new capacity of the Passive Resource";
30        }
31        
32}

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