1 | package de.uka.ipd.sdq.pcm.dialogs.usage; |
2 | |
3 | import org.eclipse.emf.ecore.EObject; |
4 | |
5 | import de.uka.ipd.sdq.pcm.usagemodel.Delay; |
6 | import de.uka.ipd.sdq.stoex.RandomVariable; |
7 | import de.uka.ipd.sdq.stoex.analyser.visitors.TypeEnum; |
8 | |
9 | |
10 | //Manually written open policy to open the StoEx Dialog. It's |
11 | //called via a CustomBehaviour in the genmap |
12 | public class DelaySpecificationDialog extends OpenStoExDialog { |
13 | |
14 | |
15 | |
16 | @Override |
17 | protected RandomVariable getRandomVariable(EObject parent) { |
18 | Delay d = (Delay) parent; |
19 | RandomVariable rv = d.getTimeSpecification_Delay(); |
20 | return rv; |
21 | } |
22 | |
23 | @Override |
24 | protected TypeEnum getExpectedType(RandomVariable rv) { |
25 | return TypeEnum.DOUBLE; |
26 | } |
27 | |
28 | } |