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