1 | package de.uka.ipd.sdq.pcmsolver.handler; |
2 | |
3 | import org.eclipse.emf.common.util.EList; |
4 | |
5 | import de.uka.ipd.sdq.pcm.parameter.VariableUsage; |
6 | import de.uka.ipd.sdq.pcm.seff.SetVariableAction; |
7 | import de.uka.ipd.sdq.pcmsolver.visitors.SeffVisitor; |
8 | import de.uka.ipd.sdq.pcmsolver.visitors.VariableUsageHelper; |
9 | |
10 | public class SetVariableActionHandler { |
11 | |
12 | private SeffVisitor visitor; |
13 | |
14 | public SetVariableActionHandler(SeffVisitor seffVisitor) { |
15 | visitor = seffVisitor; |
16 | } |
17 | |
18 | public void handle(SetVariableAction sva) { |
19 | EList<VariableUsage> vuList = sva |
20 | .getLocalVariableUsages_SetVariableAction(); |
21 | for (VariableUsage vu : vuList) { |
22 | VariableUsageHelper.copySolvedVariableUsageToOutput(visitor |
23 | .getContextWrapper(), vu); |
24 | } |
25 | } |
26 | |
27 | } |