1 | package de.uka.ipd.sdq.pcmsolver.models; |
2 | |
3 | import java.util.ArrayList; |
4 | |
5 | import de.uka.ipd.sdq.context.computed_allocation.ComputedAllocationContext; |
6 | import de.uka.ipd.sdq.context.computed_usage.ComputedUsageContext; |
7 | import de.uka.ipd.sdq.pcm.allocation.Allocation; |
8 | import de.uka.ipd.sdq.pcm.core.composition.AssemblyContext; |
9 | |
10 | /** |
11 | * @author Koziolek |
12 | * |
13 | */ |
14 | public class Context { |
15 | private de.uka.ipd.sdq.pcm.system.System mySystem; |
16 | private AssemblyContext myAssemblyContext; |
17 | private Allocation myAllocation; |
18 | |
19 | private ComputedUsageContext usageContext; |
20 | private ComputedAllocationContext actualAllocationContext; |
21 | |
22 | private ArrayList currentLoopIterationNumber; |
23 | private ArrayList currentEvaluatedBranchConditions; |
24 | |
25 | public Context(){ |
26 | this.currentEvaluatedBranchConditions = new ArrayList(); |
27 | this.currentLoopIterationNumber = new ArrayList(); |
28 | } |
29 | |
30 | /** |
31 | * @return the myAssemblyContext |
32 | */ |
33 | public AssemblyContext getDerivedAssemblyContext() { |
34 | return myAssemblyContext; |
35 | } |
36 | /** |
37 | * @param myAssemblyContext the myAssemblyContext to set |
38 | */ |
39 | public void setDerivedAssemblyContext(AssemblyContext myAssemblyContext) { |
40 | this.myAssemblyContext = myAssemblyContext; |
41 | } |
42 | /** |
43 | * @return the mySystem |
44 | */ |
45 | public de.uka.ipd.sdq.pcm.system.System getSystem() { |
46 | return mySystem; |
47 | } |
48 | /** |
49 | * @param mySystem the mySystem to set |
50 | */ |
51 | public void setSystem(de.uka.ipd.sdq.pcm.system.System mySystem) { |
52 | this.mySystem = mySystem; |
53 | } |
54 | public ComputedAllocationContext getActualAllocationContext() { |
55 | return actualAllocationContext; |
56 | } |
57 | public void setActualAllocationContext( |
58 | ComputedAllocationContext actualAllocationContext) { |
59 | this.actualAllocationContext = actualAllocationContext; |
60 | } |
61 | public ComputedUsageContext getUsageContext() { |
62 | return usageContext; |
63 | } |
64 | public void setUsageContext(ComputedUsageContext usageContext) { |
65 | this.usageContext = usageContext; |
66 | } |
67 | public ArrayList getCurrentEvaluatedBranchConditions() { |
68 | return currentEvaluatedBranchConditions; |
69 | } |
70 | public void setCurrentEvaluatedBranchConditions( |
71 | ArrayList currentEvaluatedBranchConditions) { |
72 | this.currentEvaluatedBranchConditions = currentEvaluatedBranchConditions; |
73 | } |
74 | public ArrayList getCurrentLoopIterationNumber() { |
75 | return currentLoopIterationNumber; |
76 | } |
77 | public void setCurrentLoopIterationNumber(ArrayList currentLoopIterationNumber) { |
78 | this.currentLoopIterationNumber = currentLoopIterationNumber; |
79 | } |
80 | |
81 | public Allocation getAllocation() { |
82 | return myAllocation; |
83 | } |
84 | |
85 | public void setAllocation(Allocation myAllocation) { |
86 | this.myAllocation = myAllocation; |
87 | } |
88 | |
89 | } |