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.Loop; |
6 | import de.uka.ipd.sdq.stoex.RandomVariable; |
7 | import de.uka.ipd.sdq.stoex.analyser.visitors.TypeEnum; |
8 | |
9 | // Manually written open policy to open the StoEx Dialog. It's |
10 | // called via a CustomBehaviour in the genmap |
11 | public class OpenLoopIterationsDialog extends OpenStoExDialog { |
12 | |
13 | |
14 | @Override |
15 | protected RandomVariable getRandomVariable(EObject parent) { |
16 | Loop loop = (Loop) parent; |
17 | RandomVariable rv = loop.getLoopIteration_Loop(); |
18 | return rv; |
19 | } |
20 | |
21 | @Override |
22 | protected TypeEnum getExpectedType(RandomVariable rv) { |
23 | return TypeEnum.INT; |
24 | } |
25 | |
26 | } |