1 | /** |
2 | * Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany |
3 | * |
4 | * $Id$ |
5 | */ |
6 | package de.uka.ipd.sdq.pcm.core.impl; |
7 | |
8 | import org.eclipse.emf.ecore.EClass; |
9 | import org.eclipse.emf.ecore.EGenericType; |
10 | import org.eclipse.emf.ecore.EOperation; |
11 | import org.eclipse.emf.ecore.EPackage; |
12 | import org.eclipse.emf.ecore.EReference; |
13 | import org.eclipse.emf.ecore.EValidator; |
14 | import org.eclipse.emf.ecore.impl.EPackageImpl; |
15 | |
16 | import de.uka.ipd.sdq.identifier.IdentifierPackage; |
17 | import de.uka.ipd.sdq.pcm.PcmPackage; |
18 | import de.uka.ipd.sdq.pcm.allocation.AllocationPackage; |
19 | import de.uka.ipd.sdq.pcm.allocation.impl.AllocationPackageImpl; |
20 | import de.uka.ipd.sdq.pcm.core.CoreFactory; |
21 | import de.uka.ipd.sdq.pcm.core.CorePackage; |
22 | import de.uka.ipd.sdq.pcm.core.PCMRandomVariable; |
23 | import de.uka.ipd.sdq.pcm.core.composition.CompositionPackage; |
24 | import de.uka.ipd.sdq.pcm.core.composition.impl.CompositionPackageImpl; |
25 | import de.uka.ipd.sdq.pcm.core.entity.EntityPackage; |
26 | import de.uka.ipd.sdq.pcm.core.entity.impl.EntityPackageImpl; |
27 | import de.uka.ipd.sdq.pcm.core.util.CoreValidator; |
28 | import de.uka.ipd.sdq.pcm.impl.PcmPackageImpl; |
29 | import de.uka.ipd.sdq.pcm.parameter.ParameterPackage; |
30 | import de.uka.ipd.sdq.pcm.parameter.impl.ParameterPackageImpl; |
31 | import de.uka.ipd.sdq.pcm.protocol.ProtocolPackage; |
32 | import de.uka.ipd.sdq.pcm.protocol.impl.ProtocolPackageImpl; |
33 | import de.uka.ipd.sdq.pcm.qosannotations.QosannotationsPackage; |
34 | import de.uka.ipd.sdq.pcm.qosannotations.impl.QosannotationsPackageImpl; |
35 | import de.uka.ipd.sdq.pcm.qosannotations.qos_performance.Qos_performancePackage; |
36 | import de.uka.ipd.sdq.pcm.qosannotations.qos_performance.impl.Qos_performancePackageImpl; |
37 | import de.uka.ipd.sdq.pcm.qosannotations.qos_reliability.Qos_reliabilityPackage; |
38 | import de.uka.ipd.sdq.pcm.qosannotations.qos_reliability.impl.Qos_reliabilityPackageImpl; |
39 | import de.uka.ipd.sdq.pcm.reliability.ReliabilityPackage; |
40 | import de.uka.ipd.sdq.pcm.reliability.impl.ReliabilityPackageImpl; |
41 | import de.uka.ipd.sdq.pcm.repository.RepositoryPackage; |
42 | import de.uka.ipd.sdq.pcm.repository.impl.RepositoryPackageImpl; |
43 | import de.uka.ipd.sdq.pcm.resourceenvironment.ResourceenvironmentPackage; |
44 | import de.uka.ipd.sdq.pcm.resourceenvironment.impl.ResourceenvironmentPackageImpl; |
45 | import de.uka.ipd.sdq.pcm.resourcetype.ResourcetypePackage; |
46 | import de.uka.ipd.sdq.pcm.resourcetype.impl.ResourcetypePackageImpl; |
47 | import de.uka.ipd.sdq.pcm.seff.SeffPackage; |
48 | import de.uka.ipd.sdq.pcm.seff.impl.SeffPackageImpl; |
49 | import de.uka.ipd.sdq.pcm.seff.seff_performance.Seff_performancePackage; |
50 | import de.uka.ipd.sdq.pcm.seff.seff_performance.impl.Seff_performancePackageImpl; |
51 | import de.uka.ipd.sdq.pcm.seff.seff_reliability.Seff_reliabilityPackage; |
52 | import de.uka.ipd.sdq.pcm.seff.seff_reliability.impl.Seff_reliabilityPackageImpl; |
53 | import de.uka.ipd.sdq.pcm.subsystem.SubsystemPackage; |
54 | import de.uka.ipd.sdq.pcm.subsystem.impl.SubsystemPackageImpl; |
55 | import de.uka.ipd.sdq.pcm.system.SystemPackage; |
56 | import de.uka.ipd.sdq.pcm.system.impl.SystemPackageImpl; |
57 | import de.uka.ipd.sdq.pcm.usagemodel.UsagemodelPackage; |
58 | import de.uka.ipd.sdq.pcm.usagemodel.impl.UsagemodelPackageImpl; |
59 | import de.uka.ipd.sdq.stoex.StoexPackage; |
60 | |
61 | /** |
62 | * <!-- begin-user-doc --> |
63 | * An implementation of the model <b>Package</b>. |
64 | * <!-- end-user-doc --> |
65 | * @generated |
66 | */ |
67 | public class CorePackageImpl extends EPackageImpl implements CorePackage { |
68 | /** |
69 | * <!-- begin-user-doc --> |
70 | * <!-- end-user-doc --> |
71 | * @generated |
72 | */ |
73 | public static final String copyright = "Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany"; |
74 | |
75 | /** |
76 | * <!-- begin-user-doc --> |
77 | * <!-- end-user-doc --> |
78 | * @generated |
79 | */ |
80 | private EClass pcmRandomVariableEClass = null; |
81 | |
82 | /** |
83 | * Creates an instance of the model <b>Package</b>, registered with |
84 | * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package |
85 | * package URI value. |
86 | * <p>Note: the correct way to create the package is via the static |
87 | * factory method {@link #init init()}, which also performs |
88 | * initialization of the package, or returns the registered package, |
89 | * if one already exists. |
90 | * <!-- begin-user-doc --> |
91 | * <!-- end-user-doc --> |
92 | * @see org.eclipse.emf.ecore.EPackage.Registry |
93 | * @see de.uka.ipd.sdq.pcm.core.CorePackage#eNS_URI |
94 | * @see #init() |
95 | * @generated |
96 | */ |
97 | private CorePackageImpl() { |
98 | super(eNS_URI, CoreFactory.eINSTANCE); |
99 | } |
100 | |
101 | /** |
102 | * <!-- begin-user-doc --> |
103 | * <!-- end-user-doc --> |
104 | * @generated |
105 | */ |
106 | private static boolean isInited = false; |
107 | |
108 | /** |
109 | * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. |
110 | * |
111 | * <p>This method is used to initialize {@link CorePackage#eINSTANCE} when that field is accessed. |
112 | * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. |
113 | * <!-- begin-user-doc --> |
114 | * <!-- end-user-doc --> |
115 | * @see #eNS_URI |
116 | * @see #createPackageContents() |
117 | * @see #initializePackageContents() |
118 | * @generated |
119 | */ |
120 | public static CorePackage init() { |
121 | if (isInited) return (CorePackage)EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI); |
122 | |
123 | // Obtain or create and register package |
124 | CorePackageImpl theCorePackage = (CorePackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof CorePackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new CorePackageImpl()); |
125 | |
126 | isInited = true; |
127 | |
128 | // Initialize simple dependencies |
129 | IdentifierPackage.eINSTANCE.eClass(); |
130 | StoexPackage.eINSTANCE.eClass(); |
131 | |
132 | // Obtain or create and register interdependencies |
133 | PcmPackageImpl thePcmPackage = (PcmPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(PcmPackage.eNS_URI) instanceof PcmPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(PcmPackage.eNS_URI) : PcmPackage.eINSTANCE); |
134 | EntityPackageImpl theEntityPackage = (EntityPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(EntityPackage.eNS_URI) instanceof EntityPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(EntityPackage.eNS_URI) : EntityPackage.eINSTANCE); |
135 | CompositionPackageImpl theCompositionPackage = (CompositionPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CompositionPackage.eNS_URI) instanceof CompositionPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CompositionPackage.eNS_URI) : CompositionPackage.eINSTANCE); |
136 | UsagemodelPackageImpl theUsagemodelPackage = (UsagemodelPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(UsagemodelPackage.eNS_URI) instanceof UsagemodelPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(UsagemodelPackage.eNS_URI) : UsagemodelPackage.eINSTANCE); |
137 | RepositoryPackageImpl theRepositoryPackage = (RepositoryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(RepositoryPackage.eNS_URI) instanceof RepositoryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(RepositoryPackage.eNS_URI) : RepositoryPackage.eINSTANCE); |
138 | ResourcetypePackageImpl theResourcetypePackage = (ResourcetypePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ResourcetypePackage.eNS_URI) instanceof ResourcetypePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ResourcetypePackage.eNS_URI) : ResourcetypePackage.eINSTANCE); |
139 | ProtocolPackageImpl theProtocolPackage = (ProtocolPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ProtocolPackage.eNS_URI) instanceof ProtocolPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ProtocolPackage.eNS_URI) : ProtocolPackage.eINSTANCE); |
140 | ParameterPackageImpl theParameterPackage = (ParameterPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ParameterPackage.eNS_URI) instanceof ParameterPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ParameterPackage.eNS_URI) : ParameterPackage.eINSTANCE); |
141 | ReliabilityPackageImpl theReliabilityPackage = (ReliabilityPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ReliabilityPackage.eNS_URI) instanceof ReliabilityPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ReliabilityPackage.eNS_URI) : ReliabilityPackage.eINSTANCE); |
142 | SeffPackageImpl theSeffPackage = (SeffPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SeffPackage.eNS_URI) instanceof SeffPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SeffPackage.eNS_URI) : SeffPackage.eINSTANCE); |
143 | Seff_performancePackageImpl theSeff_performancePackage = (Seff_performancePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Seff_performancePackage.eNS_URI) instanceof Seff_performancePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(Seff_performancePackage.eNS_URI) : Seff_performancePackage.eINSTANCE); |
144 | Seff_reliabilityPackageImpl theSeff_reliabilityPackage = (Seff_reliabilityPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Seff_reliabilityPackage.eNS_URI) instanceof Seff_reliabilityPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(Seff_reliabilityPackage.eNS_URI) : Seff_reliabilityPackage.eINSTANCE); |
145 | QosannotationsPackageImpl theQosannotationsPackage = (QosannotationsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(QosannotationsPackage.eNS_URI) instanceof QosannotationsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(QosannotationsPackage.eNS_URI) : QosannotationsPackage.eINSTANCE); |
146 | Qos_performancePackageImpl theQos_performancePackage = (Qos_performancePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Qos_performancePackage.eNS_URI) instanceof Qos_performancePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(Qos_performancePackage.eNS_URI) : Qos_performancePackage.eINSTANCE); |
147 | Qos_reliabilityPackageImpl theQos_reliabilityPackage = (Qos_reliabilityPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Qos_reliabilityPackage.eNS_URI) instanceof Qos_reliabilityPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(Qos_reliabilityPackage.eNS_URI) : Qos_reliabilityPackage.eINSTANCE); |
148 | SystemPackageImpl theSystemPackage = (SystemPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SystemPackage.eNS_URI) instanceof SystemPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SystemPackage.eNS_URI) : SystemPackage.eINSTANCE); |
149 | ResourceenvironmentPackageImpl theResourceenvironmentPackage = (ResourceenvironmentPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ResourceenvironmentPackage.eNS_URI) instanceof ResourceenvironmentPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ResourceenvironmentPackage.eNS_URI) : ResourceenvironmentPackage.eINSTANCE); |
150 | AllocationPackageImpl theAllocationPackage = (AllocationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(AllocationPackage.eNS_URI) instanceof AllocationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(AllocationPackage.eNS_URI) : AllocationPackage.eINSTANCE); |
151 | SubsystemPackageImpl theSubsystemPackage = (SubsystemPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SubsystemPackage.eNS_URI) instanceof SubsystemPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SubsystemPackage.eNS_URI) : SubsystemPackage.eINSTANCE); |
152 | |
153 | // Create package meta-data objects |
154 | theCorePackage.createPackageContents(); |
155 | thePcmPackage.createPackageContents(); |
156 | theEntityPackage.createPackageContents(); |
157 | theCompositionPackage.createPackageContents(); |
158 | theUsagemodelPackage.createPackageContents(); |
159 | theRepositoryPackage.createPackageContents(); |
160 | theResourcetypePackage.createPackageContents(); |
161 | theProtocolPackage.createPackageContents(); |
162 | theParameterPackage.createPackageContents(); |
163 | theReliabilityPackage.createPackageContents(); |
164 | theSeffPackage.createPackageContents(); |
165 | theSeff_performancePackage.createPackageContents(); |
166 | theSeff_reliabilityPackage.createPackageContents(); |
167 | theQosannotationsPackage.createPackageContents(); |
168 | theQos_performancePackage.createPackageContents(); |
169 | theQos_reliabilityPackage.createPackageContents(); |
170 | theSystemPackage.createPackageContents(); |
171 | theResourceenvironmentPackage.createPackageContents(); |
172 | theAllocationPackage.createPackageContents(); |
173 | theSubsystemPackage.createPackageContents(); |
174 | |
175 | // Initialize created meta-data |
176 | theCorePackage.initializePackageContents(); |
177 | thePcmPackage.initializePackageContents(); |
178 | theEntityPackage.initializePackageContents(); |
179 | theCompositionPackage.initializePackageContents(); |
180 | theUsagemodelPackage.initializePackageContents(); |
181 | theRepositoryPackage.initializePackageContents(); |
182 | theResourcetypePackage.initializePackageContents(); |
183 | theProtocolPackage.initializePackageContents(); |
184 | theParameterPackage.initializePackageContents(); |
185 | theReliabilityPackage.initializePackageContents(); |
186 | theSeffPackage.initializePackageContents(); |
187 | theSeff_performancePackage.initializePackageContents(); |
188 | theSeff_reliabilityPackage.initializePackageContents(); |
189 | theQosannotationsPackage.initializePackageContents(); |
190 | theQos_performancePackage.initializePackageContents(); |
191 | theQos_reliabilityPackage.initializePackageContents(); |
192 | theSystemPackage.initializePackageContents(); |
193 | theResourceenvironmentPackage.initializePackageContents(); |
194 | theAllocationPackage.initializePackageContents(); |
195 | theSubsystemPackage.initializePackageContents(); |
196 | |
197 | // Register package validator |
198 | EValidator.Registry.INSTANCE.put |
199 | (theCorePackage, |
200 | new EValidator.Descriptor() { |
201 | public EValidator getEValidator() { |
202 | return CoreValidator.INSTANCE; |
203 | } |
204 | }); |
205 | |
206 | // Mark meta-data to indicate it can't be changed |
207 | theCorePackage.freeze(); |
208 | |
209 | |
210 | // Update the registry and return the package |
211 | EPackage.Registry.INSTANCE.put(CorePackage.eNS_URI, theCorePackage); |
212 | return theCorePackage; |
213 | } |
214 | |
215 | /** |
216 | * <!-- begin-user-doc --> |
217 | * <!-- end-user-doc --> |
218 | * @generated |
219 | */ |
220 | public EClass getPCMRandomVariable() { |
221 | return pcmRandomVariableEClass; |
222 | } |
223 | |
224 | /** |
225 | * <!-- begin-user-doc --> |
226 | * <!-- end-user-doc --> |
227 | * @generated |
228 | */ |
229 | public EReference getPCMRandomVariable_ClosedWorkload_PCMRandomVariable() { |
230 | return (EReference)pcmRandomVariableEClass.getEStructuralFeatures().get(0); |
231 | } |
232 | |
233 | /** |
234 | * <!-- begin-user-doc --> |
235 | * <!-- end-user-doc --> |
236 | * @generated |
237 | */ |
238 | public EReference getPCMRandomVariable_PassiveResource_capacity_PCMRandomVariable() { |
239 | return (EReference)pcmRandomVariableEClass.getEStructuralFeatures().get(1); |
240 | } |
241 | |
242 | /** |
243 | * <!-- begin-user-doc --> |
244 | * <!-- end-user-doc --> |
245 | * @generated |
246 | */ |
247 | public EReference getPCMRandomVariable_VariableCharacterisation_Specification() { |
248 | return (EReference)pcmRandomVariableEClass.getEStructuralFeatures().get(2); |
249 | } |
250 | |
251 | /** |
252 | * <!-- begin-user-doc --> |
253 | * <!-- end-user-doc --> |
254 | * @generated |
255 | */ |
256 | public EReference getPCMRandomVariable_InfrastructureCall__PCMRandomVariable() { |
257 | return (EReference)pcmRandomVariableEClass.getEStructuralFeatures().get(3); |
258 | } |
259 | |
260 | /** |
261 | * <!-- begin-user-doc --> |
262 | * <!-- end-user-doc --> |
263 | * @generated |
264 | */ |
265 | public EReference getPCMRandomVariable_ResourceCall__PCMRandomVariable() { |
266 | return (EReference)pcmRandomVariableEClass.getEStructuralFeatures().get(4); |
267 | } |
268 | |
269 | /** |
270 | * <!-- begin-user-doc --> |
271 | * <!-- end-user-doc --> |
272 | * @generated |
273 | */ |
274 | public EReference getPCMRandomVariable_ParametricResourceDemand_PCMRandomVariable() { |
275 | return (EReference)pcmRandomVariableEClass.getEStructuralFeatures().get(5); |
276 | } |
277 | |
278 | /** |
279 | * <!-- begin-user-doc --> |
280 | * <!-- end-user-doc --> |
281 | * @generated |
282 | */ |
283 | public EReference getPCMRandomVariable_LoopAction_PCMRandomVariable() { |
284 | return (EReference)pcmRandomVariableEClass.getEStructuralFeatures().get(6); |
285 | } |
286 | |
287 | /** |
288 | * <!-- begin-user-doc --> |
289 | * <!-- end-user-doc --> |
290 | * @generated |
291 | */ |
292 | public EReference getPCMRandomVariable_GuardedBranchTransition_PCMRandomVariable() { |
293 | return (EReference)pcmRandomVariableEClass.getEStructuralFeatures().get(7); |
294 | } |
295 | |
296 | /** |
297 | * <!-- begin-user-doc --> |
298 | * <!-- end-user-doc --> |
299 | * @generated |
300 | */ |
301 | public EReference getPCMRandomVariable_SpecifiedExecutionTime_PCMRandomVariable() { |
302 | return (EReference)pcmRandomVariableEClass.getEStructuralFeatures().get(8); |
303 | } |
304 | |
305 | /** |
306 | * <!-- begin-user-doc --> |
307 | * <!-- end-user-doc --> |
308 | * @generated |
309 | */ |
310 | public EReference getPCMRandomVariable_AssemblyEventConnector__FilterCondition() { |
311 | return (EReference)pcmRandomVariableEClass.getEStructuralFeatures().get(10); |
312 | } |
313 | |
314 | /** |
315 | * <!-- begin-user-doc --> |
316 | * <!-- end-user-doc --> |
317 | * @generated |
318 | */ |
319 | public EReference getPCMRandomVariable_EventChannelSinkConnector__FilterCondition() { |
320 | return (EReference)pcmRandomVariableEClass.getEStructuralFeatures().get(9); |
321 | } |
322 | |
323 | /** |
324 | * <!-- begin-user-doc --> |
325 | * <!-- end-user-doc --> |
326 | * @generated |
327 | */ |
328 | public EReference getPCMRandomVariable_Loop_LoopIteration() { |
329 | return (EReference)pcmRandomVariableEClass.getEStructuralFeatures().get(11); |
330 | } |
331 | |
332 | /** |
333 | * <!-- begin-user-doc --> |
334 | * <!-- end-user-doc --> |
335 | * @generated |
336 | */ |
337 | public EReference getPCMRandomVariable_OpenWorkload_PCMRandomVariable() { |
338 | return (EReference)pcmRandomVariableEClass.getEStructuralFeatures().get(12); |
339 | } |
340 | |
341 | /** |
342 | * <!-- begin-user-doc --> |
343 | * <!-- end-user-doc --> |
344 | * @generated |
345 | */ |
346 | public EReference getPCMRandomVariable_Delay_TimeSpecification() { |
347 | return (EReference)pcmRandomVariableEClass.getEStructuralFeatures().get(13); |
348 | } |
349 | |
350 | /** |
351 | * <!-- begin-user-doc --> |
352 | * <!-- end-user-doc --> |
353 | * @generated |
354 | */ |
355 | public EReference getPCMRandomVariable_CommunicationLinkResourceSpecifcation_throughput_PCMRandomVariable() { |
356 | return (EReference)pcmRandomVariableEClass.getEStructuralFeatures().get(14); |
357 | } |
358 | |
359 | /** |
360 | * <!-- begin-user-doc --> |
361 | * <!-- end-user-doc --> |
362 | * @generated |
363 | */ |
364 | public EReference getPCMRandomVariable_ProcessingResourceSpecification_processingRate_PCMRandomVariable() { |
365 | return (EReference)pcmRandomVariableEClass.getEStructuralFeatures().get(15); |
366 | } |
367 | |
368 | /** |
369 | * <!-- begin-user-doc --> |
370 | * <!-- end-user-doc --> |
371 | * @generated |
372 | */ |
373 | public EReference getPCMRandomVariable_CommunicationLinkResourceSpecification_latency_PCMRandomVariable() { |
374 | return (EReference)pcmRandomVariableEClass.getEStructuralFeatures().get(16); |
375 | } |
376 | |
377 | /** |
378 | * <!-- begin-user-doc --> |
379 | * <!-- end-user-doc --> |
380 | * @generated |
381 | */ |
382 | public CoreFactory getCoreFactory() { |
383 | return (CoreFactory)getEFactoryInstance(); |
384 | } |
385 | |
386 | /** |
387 | * <!-- begin-user-doc --> |
388 | * <!-- end-user-doc --> |
389 | * @generated |
390 | */ |
391 | private boolean isCreated = false; |
392 | |
393 | /** |
394 | * Creates the meta-model objects for the package. This method is |
395 | * guarded to have no affect on any invocation but its first. |
396 | * <!-- begin-user-doc --> |
397 | * <!-- end-user-doc --> |
398 | * @generated |
399 | */ |
400 | public void createPackageContents() { |
401 | if (isCreated) return; |
402 | isCreated = true; |
403 | |
404 | // Create classes and their features |
405 | pcmRandomVariableEClass = createEClass(PCM_RANDOM_VARIABLE); |
406 | createEReference(pcmRandomVariableEClass, PCM_RANDOM_VARIABLE__CLOSED_WORKLOAD_PCM_RANDOM_VARIABLE); |
407 | createEReference(pcmRandomVariableEClass, PCM_RANDOM_VARIABLE__PASSIVE_RESOURCE_CAPACITY_PCM_RANDOM_VARIABLE); |
408 | createEReference(pcmRandomVariableEClass, PCM_RANDOM_VARIABLE__VARIABLE_CHARACTERISATION_SPECIFICATION); |
409 | createEReference(pcmRandomVariableEClass, PCM_RANDOM_VARIABLE__INFRASTRUCTURE_CALL_PCM_RANDOM_VARIABLE); |
410 | createEReference(pcmRandomVariableEClass, PCM_RANDOM_VARIABLE__RESOURCE_CALL_PCM_RANDOM_VARIABLE); |
411 | createEReference(pcmRandomVariableEClass, PCM_RANDOM_VARIABLE__PARAMETRIC_RESOURCE_DEMAND_PCM_RANDOM_VARIABLE); |
412 | createEReference(pcmRandomVariableEClass, PCM_RANDOM_VARIABLE__LOOP_ACTION_PCM_RANDOM_VARIABLE); |
413 | createEReference(pcmRandomVariableEClass, PCM_RANDOM_VARIABLE__GUARDED_BRANCH_TRANSITION_PCM_RANDOM_VARIABLE); |
414 | createEReference(pcmRandomVariableEClass, PCM_RANDOM_VARIABLE__SPECIFIED_EXECUTION_TIME_PCM_RANDOM_VARIABLE); |
415 | createEReference(pcmRandomVariableEClass, PCM_RANDOM_VARIABLE__EVENT_CHANNEL_SINK_CONNECTOR_FILTER_CONDITION); |
416 | createEReference(pcmRandomVariableEClass, PCM_RANDOM_VARIABLE__ASSEMBLY_EVENT_CONNECTOR_FILTER_CONDITION); |
417 | createEReference(pcmRandomVariableEClass, PCM_RANDOM_VARIABLE__LOOP_LOOP_ITERATION); |
418 | createEReference(pcmRandomVariableEClass, PCM_RANDOM_VARIABLE__OPEN_WORKLOAD_PCM_RANDOM_VARIABLE); |
419 | createEReference(pcmRandomVariableEClass, PCM_RANDOM_VARIABLE__DELAY_TIME_SPECIFICATION); |
420 | createEReference(pcmRandomVariableEClass, PCM_RANDOM_VARIABLE__COMMUNICATION_LINK_RESOURCE_SPECIFCATION_THROUGHPUT_PCM_RANDOM_VARIABLE); |
421 | createEReference(pcmRandomVariableEClass, PCM_RANDOM_VARIABLE__PROCESSING_RESOURCE_SPECIFICATION_PROCESSING_RATE_PCM_RANDOM_VARIABLE); |
422 | createEReference(pcmRandomVariableEClass, PCM_RANDOM_VARIABLE__COMMUNICATION_LINK_RESOURCE_SPECIFICATION_LATENCY_PCM_RANDOM_VARIABLE); |
423 | } |
424 | |
425 | /** |
426 | * <!-- begin-user-doc --> |
427 | * <!-- end-user-doc --> |
428 | * @generated |
429 | */ |
430 | private boolean isInitialized = false; |
431 | |
432 | /** |
433 | * Complete the initialization of the package and its meta-model. This |
434 | * method is guarded to have no affect on any invocation but its first. |
435 | * <!-- begin-user-doc --> |
436 | * <!-- end-user-doc --> |
437 | * @generated |
438 | */ |
439 | public void initializePackageContents() { |
440 | if (isInitialized) return; |
441 | isInitialized = true; |
442 | |
443 | // Initialize package |
444 | setName(eNAME); |
445 | setNsPrefix(eNS_PREFIX); |
446 | setNsURI(eNS_URI); |
447 | |
448 | // Obtain other dependent packages |
449 | EntityPackage theEntityPackage = (EntityPackage)EPackage.Registry.INSTANCE.getEPackage(EntityPackage.eNS_URI); |
450 | CompositionPackage theCompositionPackage = (CompositionPackage)EPackage.Registry.INSTANCE.getEPackage(CompositionPackage.eNS_URI); |
451 | StoexPackage theStoexPackage = (StoexPackage)EPackage.Registry.INSTANCE.getEPackage(StoexPackage.eNS_URI); |
452 | UsagemodelPackage theUsagemodelPackage = (UsagemodelPackage)EPackage.Registry.INSTANCE.getEPackage(UsagemodelPackage.eNS_URI); |
453 | RepositoryPackage theRepositoryPackage = (RepositoryPackage)EPackage.Registry.INSTANCE.getEPackage(RepositoryPackage.eNS_URI); |
454 | ParameterPackage theParameterPackage = (ParameterPackage)EPackage.Registry.INSTANCE.getEPackage(ParameterPackage.eNS_URI); |
455 | Seff_performancePackage theSeff_performancePackage = (Seff_performancePackage)EPackage.Registry.INSTANCE.getEPackage(Seff_performancePackage.eNS_URI); |
456 | SeffPackage theSeffPackage = (SeffPackage)EPackage.Registry.INSTANCE.getEPackage(SeffPackage.eNS_URI); |
457 | Qos_performancePackage theQos_performancePackage = (Qos_performancePackage)EPackage.Registry.INSTANCE.getEPackage(Qos_performancePackage.eNS_URI); |
458 | ResourceenvironmentPackage theResourceenvironmentPackage = (ResourceenvironmentPackage)EPackage.Registry.INSTANCE.getEPackage(ResourceenvironmentPackage.eNS_URI); |
459 | |
460 | // Add subpackages |
461 | getESubpackages().add(theEntityPackage); |
462 | getESubpackages().add(theCompositionPackage); |
463 | |
464 | // Create type parameters |
465 | |
466 | // Set bounds for type parameters |
467 | |
468 | // Add supertypes to classes |
469 | pcmRandomVariableEClass.getESuperTypes().add(theStoexPackage.getRandomVariable()); |
470 | |
471 | // Initialize classes and features; add operations and parameters |
472 | initEClass(pcmRandomVariableEClass, PCMRandomVariable.class, "PCMRandomVariable", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
473 | initEReference(getPCMRandomVariable_ClosedWorkload_PCMRandomVariable(), theUsagemodelPackage.getClosedWorkload(), theUsagemodelPackage.getClosedWorkload_ThinkTime_ClosedWorkload(), "closedWorkload_PCMRandomVariable", null, 0, 1, PCMRandomVariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
474 | initEReference(getPCMRandomVariable_PassiveResource_capacity_PCMRandomVariable(), theRepositoryPackage.getPassiveResource(), theRepositoryPackage.getPassiveResource_Capacity_PassiveResource(), "passiveResource_capacity_PCMRandomVariable", null, 0, 1, PCMRandomVariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
475 | initEReference(getPCMRandomVariable_VariableCharacterisation_Specification(), theParameterPackage.getVariableCharacterisation(), theParameterPackage.getVariableCharacterisation_Specification_VariableCharacterisation(), "variableCharacterisation_Specification", null, 0, 1, PCMRandomVariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
476 | initEReference(getPCMRandomVariable_InfrastructureCall__PCMRandomVariable(), theSeff_performancePackage.getInfrastructureCall(), theSeff_performancePackage.getInfrastructureCall_NumberOfCalls__InfrastructureCall(), "infrastructureCall__PCMRandomVariable", null, 0, 1, PCMRandomVariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
477 | initEReference(getPCMRandomVariable_ResourceCall__PCMRandomVariable(), theSeff_performancePackage.getResourceCall(), theSeff_performancePackage.getResourceCall_NumberOfCalls__ResourceCall(), "resourceCall__PCMRandomVariable", null, 0, 1, PCMRandomVariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
478 | initEReference(getPCMRandomVariable_ParametricResourceDemand_PCMRandomVariable(), theSeff_performancePackage.getParametricResourceDemand(), theSeff_performancePackage.getParametricResourceDemand_Specification_ParametericResourceDemand(), "parametricResourceDemand_PCMRandomVariable", null, 0, 1, PCMRandomVariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
479 | initEReference(getPCMRandomVariable_LoopAction_PCMRandomVariable(), theSeffPackage.getLoopAction(), theSeffPackage.getLoopAction_IterationCount_LoopAction(), "loopAction_PCMRandomVariable", null, 0, 1, PCMRandomVariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
480 | initEReference(getPCMRandomVariable_GuardedBranchTransition_PCMRandomVariable(), theSeffPackage.getGuardedBranchTransition(), theSeffPackage.getGuardedBranchTransition_BranchCondition_GuardedBranchTransition(), "guardedBranchTransition_PCMRandomVariable", null, 0, 1, PCMRandomVariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
481 | initEReference(getPCMRandomVariable_SpecifiedExecutionTime_PCMRandomVariable(), theQos_performancePackage.getSpecifiedExecutionTime(), theQos_performancePackage.getSpecifiedExecutionTime_Specification_SpecifiedExecutionTime(), "specifiedExecutionTime_PCMRandomVariable", null, 0, 1, PCMRandomVariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
482 | initEReference(getPCMRandomVariable_EventChannelSinkConnector__FilterCondition(), theCompositionPackage.getEventChannelSinkConnector(), theCompositionPackage.getEventChannelSinkConnector_FilterCondition__EventChannelSinkConnector(), "eventChannelSinkConnector__FilterCondition", null, 0, 1, PCMRandomVariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
483 | initEReference(getPCMRandomVariable_AssemblyEventConnector__FilterCondition(), theCompositionPackage.getAssemblyEventConnector(), theCompositionPackage.getAssemblyEventConnector_FilterCondition__AssemblyEventConnector(), "assemblyEventConnector__FilterCondition", null, 0, 1, PCMRandomVariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
484 | initEReference(getPCMRandomVariable_Loop_LoopIteration(), theUsagemodelPackage.getLoop(), theUsagemodelPackage.getLoop_LoopIteration_Loop(), "loop_LoopIteration", null, 0, 1, PCMRandomVariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
485 | initEReference(getPCMRandomVariable_OpenWorkload_PCMRandomVariable(), theUsagemodelPackage.getOpenWorkload(), theUsagemodelPackage.getOpenWorkload_InterArrivalTime_OpenWorkload(), "openWorkload_PCMRandomVariable", null, 0, 1, PCMRandomVariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
486 | initEReference(getPCMRandomVariable_Delay_TimeSpecification(), theUsagemodelPackage.getDelay(), theUsagemodelPackage.getDelay_TimeSpecification_Delay(), "delay_TimeSpecification", null, 0, 1, PCMRandomVariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
487 | initEReference(getPCMRandomVariable_CommunicationLinkResourceSpecifcation_throughput_PCMRandomVariable(), theResourceenvironmentPackage.getCommunicationLinkResourceSpecification(), theResourceenvironmentPackage.getCommunicationLinkResourceSpecification_Throughput_CommunicationLinkResourceSpecification(), "communicationLinkResourceSpecifcation_throughput_PCMRandomVariable", null, 0, 1, PCMRandomVariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
488 | initEReference(getPCMRandomVariable_ProcessingResourceSpecification_processingRate_PCMRandomVariable(), theResourceenvironmentPackage.getProcessingResourceSpecification(), theResourceenvironmentPackage.getProcessingResourceSpecification_ProcessingRate_ProcessingResourceSpecification(), "processingResourceSpecification_processingRate_PCMRandomVariable", null, 0, 1, PCMRandomVariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
489 | initEReference(getPCMRandomVariable_CommunicationLinkResourceSpecification_latency_PCMRandomVariable(), theResourceenvironmentPackage.getCommunicationLinkResourceSpecification(), theResourceenvironmentPackage.getCommunicationLinkResourceSpecification_Latency_CommunicationLinkResourceSpecification(), "communicationLinkResourceSpecification_latency_PCMRandomVariable", null, 0, 1, PCMRandomVariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
490 | |
491 | EOperation op = addEOperation(pcmRandomVariableEClass, ecorePackage.getEBoolean(), "SpecificationMustNotBeNULL", 0, 1, IS_UNIQUE, IS_ORDERED); |
492 | addEParameter(op, ecorePackage.getEDiagnosticChain(), "diagnostics", 0, 1, IS_UNIQUE, IS_ORDERED); |
493 | EGenericType g1 = createEGenericType(ecorePackage.getEMap()); |
494 | EGenericType g2 = createEGenericType(ecorePackage.getEJavaObject()); |
495 | g1.getETypeArguments().add(g2); |
496 | g2 = createEGenericType(ecorePackage.getEJavaObject()); |
497 | g1.getETypeArguments().add(g2); |
498 | addEParameter(op, g1, "context", 0, 1, IS_UNIQUE, IS_ORDERED); |
499 | } |
500 | |
501 | } //CorePackageImpl |