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