1 | package de.uka.ipd.sdq.pcm.transformations.builder.util; |
2 | |
3 | import de.uka.ipd.sdq.pcm.allocation.Allocation; |
4 | import de.uka.ipd.sdq.pcm.repository.Repository; |
5 | import de.uka.ipd.sdq.pcm.resourceenvironment.ResourceEnvironment; |
6 | import de.uka.ipd.sdq.pcm.resourcetype.ResourceRepository; |
7 | import de.uka.ipd.sdq.pcm.system.System; |
8 | import de.uka.ipd.sdq.pcm.usagemodel.UsageModel; |
9 | |
10 | public class PCMModelHolder { |
11 | private Repository repository; |
12 | private System system; |
13 | private Allocation allocation; |
14 | private ResourceEnvironment resourceEnvironment; |
15 | private UsageModel usageModel; |
16 | private ResourceRepository resourceRepository; |
17 | |
18 | public Repository getRepository() { |
19 | return repository; |
20 | } |
21 | public System getSystem() { |
22 | return system; |
23 | } |
24 | public Allocation getAllocation() { |
25 | return allocation; |
26 | } |
27 | public ResourceEnvironment getResourceEnvironment() { |
28 | return resourceEnvironment; |
29 | } |
30 | public UsageModel getUsageModel() { |
31 | return usageModel; |
32 | } |
33 | public PCMModelHolder(ResourceRepository resourceRepository, Repository repository, System system, |
34 | Allocation allocation, |
35 | UsageModel usageModel) { |
36 | super(); |
37 | this.resourceRepository = resourceRepository; |
38 | this.repository = repository; |
39 | this.system = system; |
40 | this.allocation = allocation; |
41 | this.resourceEnvironment = allocation.getTargetResourceEnvironment_Allocation(); |
42 | this.usageModel = usageModel; |
43 | } |
44 | public ResourceRepository getResourceRepository() { |
45 | return resourceRepository; |
46 | } |
47 | } |