1 | /** |
2 | * Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany |
3 | * |
4 | * $Id$ |
5 | */ |
6 | package de.uka.ipd.sdq.pcm.reliability.impl; |
7 | |
8 | import org.eclipse.emf.ecore.EAttribute; |
9 | import org.eclipse.emf.ecore.EClass; |
10 | import org.eclipse.emf.ecore.EGenericType; |
11 | import org.eclipse.emf.ecore.EOperation; |
12 | import org.eclipse.emf.ecore.EPackage; |
13 | import org.eclipse.emf.ecore.EReference; |
14 | import org.eclipse.emf.ecore.EValidator; |
15 | import org.eclipse.emf.ecore.impl.EPackageImpl; |
16 | |
17 | import de.uka.ipd.sdq.identifier.IdentifierPackage; |
18 | import de.uka.ipd.sdq.pcm.PcmPackage; |
19 | import de.uka.ipd.sdq.pcm.allocation.AllocationPackage; |
20 | import de.uka.ipd.sdq.pcm.allocation.impl.AllocationPackageImpl; |
21 | import de.uka.ipd.sdq.pcm.core.CorePackage; |
22 | import de.uka.ipd.sdq.pcm.core.composition.CompositionPackage; |
23 | import de.uka.ipd.sdq.pcm.core.composition.impl.CompositionPackageImpl; |
24 | import de.uka.ipd.sdq.pcm.core.entity.EntityPackage; |
25 | import de.uka.ipd.sdq.pcm.core.entity.impl.EntityPackageImpl; |
26 | import de.uka.ipd.sdq.pcm.core.impl.CorePackageImpl; |
27 | import de.uka.ipd.sdq.pcm.impl.PcmPackageImpl; |
28 | import de.uka.ipd.sdq.pcm.parameter.ParameterPackage; |
29 | import de.uka.ipd.sdq.pcm.parameter.impl.ParameterPackageImpl; |
30 | import de.uka.ipd.sdq.pcm.protocol.ProtocolPackage; |
31 | import de.uka.ipd.sdq.pcm.protocol.impl.ProtocolPackageImpl; |
32 | import de.uka.ipd.sdq.pcm.qosannotations.QosannotationsPackage; |
33 | import de.uka.ipd.sdq.pcm.qosannotations.impl.QosannotationsPackageImpl; |
34 | import de.uka.ipd.sdq.pcm.qosannotations.qos_performance.Qos_performancePackage; |
35 | import de.uka.ipd.sdq.pcm.qosannotations.qos_performance.impl.Qos_performancePackageImpl; |
36 | import de.uka.ipd.sdq.pcm.qosannotations.qos_reliability.Qos_reliabilityPackage; |
37 | import de.uka.ipd.sdq.pcm.qosannotations.qos_reliability.impl.Qos_reliabilityPackageImpl; |
38 | import de.uka.ipd.sdq.pcm.reliability.ExternalFailureOccurrenceDescription; |
39 | import de.uka.ipd.sdq.pcm.reliability.FailureOccurrenceDescription; |
40 | import de.uka.ipd.sdq.pcm.reliability.FailureType; |
41 | import de.uka.ipd.sdq.pcm.reliability.HardwareInducedFailureType; |
42 | import de.uka.ipd.sdq.pcm.reliability.InternalFailureOccurrenceDescription; |
43 | import de.uka.ipd.sdq.pcm.reliability.NetworkInducedFailureType; |
44 | import de.uka.ipd.sdq.pcm.reliability.ReliabilityFactory; |
45 | import de.uka.ipd.sdq.pcm.reliability.ReliabilityPackage; |
46 | import de.uka.ipd.sdq.pcm.reliability.ResourceTimeoutFailureType; |
47 | import de.uka.ipd.sdq.pcm.reliability.SoftwareInducedFailureType; |
48 | import de.uka.ipd.sdq.pcm.reliability.util.ReliabilityValidator; |
49 | import de.uka.ipd.sdq.pcm.repository.RepositoryPackage; |
50 | import de.uka.ipd.sdq.pcm.repository.impl.RepositoryPackageImpl; |
51 | import de.uka.ipd.sdq.pcm.resourceenvironment.ResourceenvironmentPackage; |
52 | import de.uka.ipd.sdq.pcm.resourceenvironment.impl.ResourceenvironmentPackageImpl; |
53 | import de.uka.ipd.sdq.pcm.resourcetype.ResourcetypePackage; |
54 | import de.uka.ipd.sdq.pcm.resourcetype.impl.ResourcetypePackageImpl; |
55 | import de.uka.ipd.sdq.pcm.seff.SeffPackage; |
56 | import de.uka.ipd.sdq.pcm.seff.impl.SeffPackageImpl; |
57 | import de.uka.ipd.sdq.pcm.seff.seff_performance.Seff_performancePackage; |
58 | import de.uka.ipd.sdq.pcm.seff.seff_performance.impl.Seff_performancePackageImpl; |
59 | import de.uka.ipd.sdq.pcm.seff.seff_reliability.Seff_reliabilityPackage; |
60 | import de.uka.ipd.sdq.pcm.seff.seff_reliability.impl.Seff_reliabilityPackageImpl; |
61 | import de.uka.ipd.sdq.pcm.subsystem.SubsystemPackage; |
62 | import de.uka.ipd.sdq.pcm.subsystem.impl.SubsystemPackageImpl; |
63 | import de.uka.ipd.sdq.pcm.system.SystemPackage; |
64 | import de.uka.ipd.sdq.pcm.system.impl.SystemPackageImpl; |
65 | import de.uka.ipd.sdq.pcm.usagemodel.UsagemodelPackage; |
66 | import de.uka.ipd.sdq.pcm.usagemodel.impl.UsagemodelPackageImpl; |
67 | import de.uka.ipd.sdq.stoex.StoexPackage; |
68 | |
69 | /** |
70 | * <!-- begin-user-doc --> |
71 | * An implementation of the model <b>Package</b>. |
72 | * <!-- end-user-doc --> |
73 | * @generated |
74 | */ |
75 | public class ReliabilityPackageImpl extends EPackageImpl implements ReliabilityPackage { |
76 | /** |
77 | * <!-- begin-user-doc --> |
78 | * <!-- end-user-doc --> |
79 | * @generated |
80 | */ |
81 | public static final String copyright = "Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany"; |
82 | |
83 | /** |
84 | * <!-- begin-user-doc --> |
85 | * <!-- end-user-doc --> |
86 | * @generated |
87 | */ |
88 | private EClass failureOccurrenceDescriptionEClass = null; |
89 | |
90 | /** |
91 | * <!-- begin-user-doc --> |
92 | * <!-- end-user-doc --> |
93 | * @generated |
94 | */ |
95 | private EClass hardwareInducedFailureTypeEClass = null; |
96 | |
97 | /** |
98 | * <!-- begin-user-doc --> |
99 | * <!-- end-user-doc --> |
100 | * @generated |
101 | */ |
102 | private EClass softwareInducedFailureTypeEClass = null; |
103 | |
104 | /** |
105 | * <!-- begin-user-doc --> |
106 | * <!-- end-user-doc --> |
107 | * @generated |
108 | */ |
109 | private EClass internalFailureOccurrenceDescriptionEClass = null; |
110 | |
111 | /** |
112 | * <!-- begin-user-doc --> |
113 | * <!-- end-user-doc --> |
114 | * @generated |
115 | */ |
116 | private EClass networkInducedFailureTypeEClass = null; |
117 | |
118 | /** |
119 | * <!-- begin-user-doc --> |
120 | * <!-- end-user-doc --> |
121 | * @generated |
122 | */ |
123 | private EClass externalFailureOccurrenceDescriptionEClass = null; |
124 | |
125 | /** |
126 | * <!-- begin-user-doc --> |
127 | * <!-- end-user-doc --> |
128 | * @generated |
129 | */ |
130 | private EClass resourceTimeoutFailureTypeEClass = null; |
131 | |
132 | /** |
133 | * <!-- begin-user-doc --> |
134 | * <!-- end-user-doc --> |
135 | * @generated |
136 | */ |
137 | private EClass failureTypeEClass = null; |
138 | |
139 | /** |
140 | * Creates an instance of the model <b>Package</b>, registered with |
141 | * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package |
142 | * package URI value. |
143 | * <p>Note: the correct way to create the package is via the static |
144 | * factory method {@link #init init()}, which also performs |
145 | * initialization of the package, or returns the registered package, |
146 | * if one already exists. |
147 | * <!-- begin-user-doc --> |
148 | * <!-- end-user-doc --> |
149 | * @see org.eclipse.emf.ecore.EPackage.Registry |
150 | * @see de.uka.ipd.sdq.pcm.reliability.ReliabilityPackage#eNS_URI |
151 | * @see #init() |
152 | * @generated |
153 | */ |
154 | private ReliabilityPackageImpl() { |
155 | super(eNS_URI, ReliabilityFactory.eINSTANCE); |
156 | } |
157 | |
158 | /** |
159 | * <!-- begin-user-doc --> |
160 | * <!-- end-user-doc --> |
161 | * @generated |
162 | */ |
163 | private static boolean isInited = false; |
164 | |
165 | /** |
166 | * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. |
167 | * |
168 | * <p>This method is used to initialize {@link ReliabilityPackage#eINSTANCE} when that field is accessed. |
169 | * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. |
170 | * <!-- begin-user-doc --> |
171 | * <!-- end-user-doc --> |
172 | * @see #eNS_URI |
173 | * @see #createPackageContents() |
174 | * @see #initializePackageContents() |
175 | * @generated |
176 | */ |
177 | public static ReliabilityPackage init() { |
178 | if (isInited) return (ReliabilityPackage)EPackage.Registry.INSTANCE.getEPackage(ReliabilityPackage.eNS_URI); |
179 | |
180 | // Obtain or create and register package |
181 | ReliabilityPackageImpl theReliabilityPackage = (ReliabilityPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof ReliabilityPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new ReliabilityPackageImpl()); |
182 | |
183 | isInited = true; |
184 | |
185 | // Initialize simple dependencies |
186 | IdentifierPackage.eINSTANCE.eClass(); |
187 | StoexPackage.eINSTANCE.eClass(); |
188 | |
189 | // Obtain or create and register interdependencies |
190 | PcmPackageImpl thePcmPackage = (PcmPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(PcmPackage.eNS_URI) instanceof PcmPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(PcmPackage.eNS_URI) : PcmPackage.eINSTANCE); |
191 | CorePackageImpl theCorePackage = (CorePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI) instanceof CorePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI) : CorePackage.eINSTANCE); |
192 | EntityPackageImpl theEntityPackage = (EntityPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(EntityPackage.eNS_URI) instanceof EntityPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(EntityPackage.eNS_URI) : EntityPackage.eINSTANCE); |
193 | CompositionPackageImpl theCompositionPackage = (CompositionPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CompositionPackage.eNS_URI) instanceof CompositionPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CompositionPackage.eNS_URI) : CompositionPackage.eINSTANCE); |
194 | UsagemodelPackageImpl theUsagemodelPackage = (UsagemodelPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(UsagemodelPackage.eNS_URI) instanceof UsagemodelPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(UsagemodelPackage.eNS_URI) : UsagemodelPackage.eINSTANCE); |
195 | RepositoryPackageImpl theRepositoryPackage = (RepositoryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(RepositoryPackage.eNS_URI) instanceof RepositoryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(RepositoryPackage.eNS_URI) : RepositoryPackage.eINSTANCE); |
196 | ResourcetypePackageImpl theResourcetypePackage = (ResourcetypePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ResourcetypePackage.eNS_URI) instanceof ResourcetypePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ResourcetypePackage.eNS_URI) : ResourcetypePackage.eINSTANCE); |
197 | ProtocolPackageImpl theProtocolPackage = (ProtocolPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ProtocolPackage.eNS_URI) instanceof ProtocolPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ProtocolPackage.eNS_URI) : ProtocolPackage.eINSTANCE); |
198 | ParameterPackageImpl theParameterPackage = (ParameterPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ParameterPackage.eNS_URI) instanceof ParameterPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ParameterPackage.eNS_URI) : ParameterPackage.eINSTANCE); |
199 | SeffPackageImpl theSeffPackage = (SeffPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SeffPackage.eNS_URI) instanceof SeffPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SeffPackage.eNS_URI) : SeffPackage.eINSTANCE); |
200 | 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); |
201 | 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); |
202 | QosannotationsPackageImpl theQosannotationsPackage = (QosannotationsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(QosannotationsPackage.eNS_URI) instanceof QosannotationsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(QosannotationsPackage.eNS_URI) : QosannotationsPackage.eINSTANCE); |
203 | 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); |
204 | 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); |
205 | SystemPackageImpl theSystemPackage = (SystemPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SystemPackage.eNS_URI) instanceof SystemPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SystemPackage.eNS_URI) : SystemPackage.eINSTANCE); |
206 | ResourceenvironmentPackageImpl theResourceenvironmentPackage = (ResourceenvironmentPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ResourceenvironmentPackage.eNS_URI) instanceof ResourceenvironmentPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ResourceenvironmentPackage.eNS_URI) : ResourceenvironmentPackage.eINSTANCE); |
207 | AllocationPackageImpl theAllocationPackage = (AllocationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(AllocationPackage.eNS_URI) instanceof AllocationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(AllocationPackage.eNS_URI) : AllocationPackage.eINSTANCE); |
208 | SubsystemPackageImpl theSubsystemPackage = (SubsystemPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SubsystemPackage.eNS_URI) instanceof SubsystemPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SubsystemPackage.eNS_URI) : SubsystemPackage.eINSTANCE); |
209 | |
210 | // Create package meta-data objects |
211 | theReliabilityPackage.createPackageContents(); |
212 | thePcmPackage.createPackageContents(); |
213 | theCorePackage.createPackageContents(); |
214 | theEntityPackage.createPackageContents(); |
215 | theCompositionPackage.createPackageContents(); |
216 | theUsagemodelPackage.createPackageContents(); |
217 | theRepositoryPackage.createPackageContents(); |
218 | theResourcetypePackage.createPackageContents(); |
219 | theProtocolPackage.createPackageContents(); |
220 | theParameterPackage.createPackageContents(); |
221 | theSeffPackage.createPackageContents(); |
222 | theSeff_performancePackage.createPackageContents(); |
223 | theSeff_reliabilityPackage.createPackageContents(); |
224 | theQosannotationsPackage.createPackageContents(); |
225 | theQos_performancePackage.createPackageContents(); |
226 | theQos_reliabilityPackage.createPackageContents(); |
227 | theSystemPackage.createPackageContents(); |
228 | theResourceenvironmentPackage.createPackageContents(); |
229 | theAllocationPackage.createPackageContents(); |
230 | theSubsystemPackage.createPackageContents(); |
231 | |
232 | // Initialize created meta-data |
233 | theReliabilityPackage.initializePackageContents(); |
234 | thePcmPackage.initializePackageContents(); |
235 | theCorePackage.initializePackageContents(); |
236 | theEntityPackage.initializePackageContents(); |
237 | theCompositionPackage.initializePackageContents(); |
238 | theUsagemodelPackage.initializePackageContents(); |
239 | theRepositoryPackage.initializePackageContents(); |
240 | theResourcetypePackage.initializePackageContents(); |
241 | theProtocolPackage.initializePackageContents(); |
242 | theParameterPackage.initializePackageContents(); |
243 | theSeffPackage.initializePackageContents(); |
244 | theSeff_performancePackage.initializePackageContents(); |
245 | theSeff_reliabilityPackage.initializePackageContents(); |
246 | theQosannotationsPackage.initializePackageContents(); |
247 | theQos_performancePackage.initializePackageContents(); |
248 | theQos_reliabilityPackage.initializePackageContents(); |
249 | theSystemPackage.initializePackageContents(); |
250 | theResourceenvironmentPackage.initializePackageContents(); |
251 | theAllocationPackage.initializePackageContents(); |
252 | theSubsystemPackage.initializePackageContents(); |
253 | |
254 | // Register package validator |
255 | EValidator.Registry.INSTANCE.put |
256 | (theReliabilityPackage, |
257 | new EValidator.Descriptor() { |
258 | public EValidator getEValidator() { |
259 | return ReliabilityValidator.INSTANCE; |
260 | } |
261 | }); |
262 | |
263 | // Mark meta-data to indicate it can't be changed |
264 | theReliabilityPackage.freeze(); |
265 | |
266 | |
267 | // Update the registry and return the package |
268 | EPackage.Registry.INSTANCE.put(ReliabilityPackage.eNS_URI, theReliabilityPackage); |
269 | return theReliabilityPackage; |
270 | } |
271 | |
272 | /** |
273 | * <!-- begin-user-doc --> |
274 | * <!-- end-user-doc --> |
275 | * @generated |
276 | */ |
277 | public EClass getFailureOccurrenceDescription() { |
278 | return failureOccurrenceDescriptionEClass; |
279 | } |
280 | |
281 | /** |
282 | * <!-- begin-user-doc --> |
283 | * <!-- end-user-doc --> |
284 | * @generated |
285 | */ |
286 | public EAttribute getFailureOccurrenceDescription_FailureProbability() { |
287 | return (EAttribute)failureOccurrenceDescriptionEClass.getEStructuralFeatures().get(0); |
288 | } |
289 | |
290 | /** |
291 | * <!-- begin-user-doc --> |
292 | * <!-- end-user-doc --> |
293 | * @generated |
294 | */ |
295 | public EClass getHardwareInducedFailureType() { |
296 | return hardwareInducedFailureTypeEClass; |
297 | } |
298 | |
299 | /** |
300 | * <!-- begin-user-doc --> |
301 | * <!-- end-user-doc --> |
302 | * @generated |
303 | */ |
304 | public EReference getHardwareInducedFailureType_ProcessingResourceType__HardwareInducedFailureType() { |
305 | return (EReference)hardwareInducedFailureTypeEClass.getEStructuralFeatures().get(0); |
306 | } |
307 | |
308 | /** |
309 | * <!-- begin-user-doc --> |
310 | * <!-- end-user-doc --> |
311 | * @generated |
312 | */ |
313 | public EClass getSoftwareInducedFailureType() { |
314 | return softwareInducedFailureTypeEClass; |
315 | } |
316 | |
317 | /** |
318 | * <!-- begin-user-doc --> |
319 | * <!-- end-user-doc --> |
320 | * @generated |
321 | */ |
322 | public EReference getSoftwareInducedFailureType_InternalFailureOccurrenceDescriptions__SoftwareInducedFailureType() { |
323 | return (EReference)softwareInducedFailureTypeEClass.getEStructuralFeatures().get(0); |
324 | } |
325 | |
326 | /** |
327 | * <!-- begin-user-doc --> |
328 | * <!-- end-user-doc --> |
329 | * @generated |
330 | */ |
331 | public EClass getInternalFailureOccurrenceDescription() { |
332 | return internalFailureOccurrenceDescriptionEClass; |
333 | } |
334 | |
335 | /** |
336 | * <!-- begin-user-doc --> |
337 | * <!-- end-user-doc --> |
338 | * @generated |
339 | */ |
340 | public EReference getInternalFailureOccurrenceDescription_InternalAction__InternalFailureOccurrenceDescription() { |
341 | return (EReference)internalFailureOccurrenceDescriptionEClass.getEStructuralFeatures().get(0); |
342 | } |
343 | |
344 | /** |
345 | * <!-- begin-user-doc --> |
346 | * <!-- end-user-doc --> |
347 | * @generated |
348 | */ |
349 | public EReference getInternalFailureOccurrenceDescription_SoftwareInducedFailureType__InternalFailureOccurrenceDescription() { |
350 | return (EReference)internalFailureOccurrenceDescriptionEClass.getEStructuralFeatures().get(1); |
351 | } |
352 | |
353 | /** |
354 | * <!-- begin-user-doc --> |
355 | * <!-- end-user-doc --> |
356 | * @generated |
357 | */ |
358 | public EClass getNetworkInducedFailureType() { |
359 | return networkInducedFailureTypeEClass; |
360 | } |
361 | |
362 | /** |
363 | * <!-- begin-user-doc --> |
364 | * <!-- end-user-doc --> |
365 | * @generated |
366 | */ |
367 | public EReference getNetworkInducedFailureType_CommunicationLinkResourceType__NetworkInducedFailureType() { |
368 | return (EReference)networkInducedFailureTypeEClass.getEStructuralFeatures().get(0); |
369 | } |
370 | |
371 | /** |
372 | * <!-- begin-user-doc --> |
373 | * <!-- end-user-doc --> |
374 | * @generated |
375 | */ |
376 | public EClass getExternalFailureOccurrenceDescription() { |
377 | return externalFailureOccurrenceDescriptionEClass; |
378 | } |
379 | |
380 | /** |
381 | * <!-- begin-user-doc --> |
382 | * <!-- end-user-doc --> |
383 | * @generated |
384 | */ |
385 | public EReference getExternalFailureOccurrenceDescription_SpecifiedReliabilityAnnotation__ExternalFailureOccurrenceDescription() { |
386 | return (EReference)externalFailureOccurrenceDescriptionEClass.getEStructuralFeatures().get(0); |
387 | } |
388 | |
389 | /** |
390 | * <!-- begin-user-doc --> |
391 | * <!-- end-user-doc --> |
392 | * @generated |
393 | */ |
394 | public EReference getExternalFailureOccurrenceDescription_FailureType__ExternalFailureOccurrenceDescription() { |
395 | return (EReference)externalFailureOccurrenceDescriptionEClass.getEStructuralFeatures().get(1); |
396 | } |
397 | |
398 | /** |
399 | * <!-- begin-user-doc --> |
400 | * <!-- end-user-doc --> |
401 | * @generated |
402 | */ |
403 | public EClass getResourceTimeoutFailureType() { |
404 | return resourceTimeoutFailureTypeEClass; |
405 | } |
406 | |
407 | /** |
408 | * <!-- begin-user-doc --> |
409 | * <!-- end-user-doc --> |
410 | * @generated |
411 | */ |
412 | public EReference getResourceTimeoutFailureType_PassiveResource__ResourceTimeoutFailureType() { |
413 | return (EReference)resourceTimeoutFailureTypeEClass.getEStructuralFeatures().get(0); |
414 | } |
415 | |
416 | /** |
417 | * <!-- begin-user-doc --> |
418 | * <!-- end-user-doc --> |
419 | * @generated |
420 | */ |
421 | public EClass getFailureType() { |
422 | return failureTypeEClass; |
423 | } |
424 | |
425 | /** |
426 | * <!-- begin-user-doc --> |
427 | * <!-- end-user-doc --> |
428 | * @generated |
429 | */ |
430 | public EReference getFailureType_Repository__FailureType() { |
431 | return (EReference)failureTypeEClass.getEStructuralFeatures().get(0); |
432 | } |
433 | |
434 | /** |
435 | * <!-- begin-user-doc --> |
436 | * <!-- end-user-doc --> |
437 | * @generated |
438 | */ |
439 | public ReliabilityFactory getReliabilityFactory() { |
440 | return (ReliabilityFactory)getEFactoryInstance(); |
441 | } |
442 | |
443 | /** |
444 | * <!-- begin-user-doc --> |
445 | * <!-- end-user-doc --> |
446 | * @generated |
447 | */ |
448 | private boolean isCreated = false; |
449 | |
450 | /** |
451 | * Creates the meta-model objects for the package. This method is |
452 | * guarded to have no affect on any invocation but its first. |
453 | * <!-- begin-user-doc --> |
454 | * <!-- end-user-doc --> |
455 | * @generated |
456 | */ |
457 | public void createPackageContents() { |
458 | if (isCreated) return; |
459 | isCreated = true; |
460 | |
461 | // Create classes and their features |
462 | failureOccurrenceDescriptionEClass = createEClass(FAILURE_OCCURRENCE_DESCRIPTION); |
463 | createEAttribute(failureOccurrenceDescriptionEClass, FAILURE_OCCURRENCE_DESCRIPTION__FAILURE_PROBABILITY); |
464 | |
465 | hardwareInducedFailureTypeEClass = createEClass(HARDWARE_INDUCED_FAILURE_TYPE); |
466 | createEReference(hardwareInducedFailureTypeEClass, HARDWARE_INDUCED_FAILURE_TYPE__PROCESSING_RESOURCE_TYPE_HARDWARE_INDUCED_FAILURE_TYPE); |
467 | |
468 | softwareInducedFailureTypeEClass = createEClass(SOFTWARE_INDUCED_FAILURE_TYPE); |
469 | createEReference(softwareInducedFailureTypeEClass, SOFTWARE_INDUCED_FAILURE_TYPE__INTERNAL_FAILURE_OCCURRENCE_DESCRIPTIONS_SOFTWARE_INDUCED_FAILURE_TYPE); |
470 | |
471 | internalFailureOccurrenceDescriptionEClass = createEClass(INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION); |
472 | createEReference(internalFailureOccurrenceDescriptionEClass, INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION__INTERNAL_ACTION_INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION); |
473 | createEReference(internalFailureOccurrenceDescriptionEClass, INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION__SOFTWARE_INDUCED_FAILURE_TYPE_INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION); |
474 | |
475 | networkInducedFailureTypeEClass = createEClass(NETWORK_INDUCED_FAILURE_TYPE); |
476 | createEReference(networkInducedFailureTypeEClass, NETWORK_INDUCED_FAILURE_TYPE__COMMUNICATION_LINK_RESOURCE_TYPE_NETWORK_INDUCED_FAILURE_TYPE); |
477 | |
478 | externalFailureOccurrenceDescriptionEClass = createEClass(EXTERNAL_FAILURE_OCCURRENCE_DESCRIPTION); |
479 | createEReference(externalFailureOccurrenceDescriptionEClass, EXTERNAL_FAILURE_OCCURRENCE_DESCRIPTION__SPECIFIED_RELIABILITY_ANNOTATION_EXTERNAL_FAILURE_OCCURRENCE_DESCRIPTION); |
480 | createEReference(externalFailureOccurrenceDescriptionEClass, EXTERNAL_FAILURE_OCCURRENCE_DESCRIPTION__FAILURE_TYPE_EXTERNAL_FAILURE_OCCURRENCE_DESCRIPTION); |
481 | |
482 | resourceTimeoutFailureTypeEClass = createEClass(RESOURCE_TIMEOUT_FAILURE_TYPE); |
483 | createEReference(resourceTimeoutFailureTypeEClass, RESOURCE_TIMEOUT_FAILURE_TYPE__PASSIVE_RESOURCE_RESOURCE_TIMEOUT_FAILURE_TYPE); |
484 | |
485 | failureTypeEClass = createEClass(FAILURE_TYPE); |
486 | createEReference(failureTypeEClass, FAILURE_TYPE__REPOSITORY_FAILURE_TYPE); |
487 | } |
488 | |
489 | /** |
490 | * <!-- begin-user-doc --> |
491 | * <!-- end-user-doc --> |
492 | * @generated |
493 | */ |
494 | private boolean isInitialized = false; |
495 | |
496 | /** |
497 | * Complete the initialization of the package and its meta-model. This |
498 | * method is guarded to have no affect on any invocation but its first. |
499 | * <!-- begin-user-doc --> |
500 | * <!-- end-user-doc --> |
501 | * @generated |
502 | */ |
503 | public void initializePackageContents() { |
504 | if (isInitialized) return; |
505 | isInitialized = true; |
506 | |
507 | // Initialize package |
508 | setName(eNAME); |
509 | setNsPrefix(eNS_PREFIX); |
510 | setNsURI(eNS_URI); |
511 | |
512 | // Obtain other dependent packages |
513 | ResourcetypePackage theResourcetypePackage = (ResourcetypePackage)EPackage.Registry.INSTANCE.getEPackage(ResourcetypePackage.eNS_URI); |
514 | SeffPackage theSeffPackage = (SeffPackage)EPackage.Registry.INSTANCE.getEPackage(SeffPackage.eNS_URI); |
515 | Qos_reliabilityPackage theQos_reliabilityPackage = (Qos_reliabilityPackage)EPackage.Registry.INSTANCE.getEPackage(Qos_reliabilityPackage.eNS_URI); |
516 | RepositoryPackage theRepositoryPackage = (RepositoryPackage)EPackage.Registry.INSTANCE.getEPackage(RepositoryPackage.eNS_URI); |
517 | EntityPackage theEntityPackage = (EntityPackage)EPackage.Registry.INSTANCE.getEPackage(EntityPackage.eNS_URI); |
518 | |
519 | // Create type parameters |
520 | |
521 | // Set bounds for type parameters |
522 | |
523 | // Add supertypes to classes |
524 | hardwareInducedFailureTypeEClass.getESuperTypes().add(this.getFailureType()); |
525 | softwareInducedFailureTypeEClass.getESuperTypes().add(this.getFailureType()); |
526 | internalFailureOccurrenceDescriptionEClass.getESuperTypes().add(this.getFailureOccurrenceDescription()); |
527 | networkInducedFailureTypeEClass.getESuperTypes().add(this.getFailureType()); |
528 | externalFailureOccurrenceDescriptionEClass.getESuperTypes().add(this.getFailureOccurrenceDescription()); |
529 | resourceTimeoutFailureTypeEClass.getESuperTypes().add(this.getSoftwareInducedFailureType()); |
530 | failureTypeEClass.getESuperTypes().add(theEntityPackage.getEntity()); |
531 | |
532 | // Initialize classes and features; add operations and parameters |
533 | initEClass(failureOccurrenceDescriptionEClass, FailureOccurrenceDescription.class, "FailureOccurrenceDescription", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
534 | initEAttribute(getFailureOccurrenceDescription_FailureProbability(), ecorePackage.getEDouble(), "failureProbability", null, 1, 1, FailureOccurrenceDescription.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
535 | |
536 | EOperation op = addEOperation(failureOccurrenceDescriptionEClass, ecorePackage.getEBoolean(), "EnsureValidFailureProbabilityRange", 0, 1, IS_UNIQUE, IS_ORDERED); |
537 | addEParameter(op, ecorePackage.getEDiagnosticChain(), "diagnostics", 0, 1, IS_UNIQUE, IS_ORDERED); |
538 | EGenericType g1 = createEGenericType(ecorePackage.getEMap()); |
539 | EGenericType g2 = createEGenericType(ecorePackage.getEJavaObject()); |
540 | g1.getETypeArguments().add(g2); |
541 | g2 = createEGenericType(ecorePackage.getEJavaObject()); |
542 | g1.getETypeArguments().add(g2); |
543 | addEParameter(op, g1, "context", 0, 1, IS_UNIQUE, IS_ORDERED); |
544 | |
545 | initEClass(hardwareInducedFailureTypeEClass, HardwareInducedFailureType.class, "HardwareInducedFailureType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
546 | initEReference(getHardwareInducedFailureType_ProcessingResourceType__HardwareInducedFailureType(), theResourcetypePackage.getProcessingResourceType(), theResourcetypePackage.getProcessingResourceType_HardwareInducedFailureType__ProcessingResourceType(), "processingResourceType__HardwareInducedFailureType", null, 1, 1, HardwareInducedFailureType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
547 | |
548 | op = addEOperation(hardwareInducedFailureTypeEClass, ecorePackage.getEBoolean(), "HardwareInducedFailureTypeHasProcessingResourceType", 0, 1, IS_UNIQUE, IS_ORDERED); |
549 | addEParameter(op, ecorePackage.getEDiagnosticChain(), "diagnostics", 0, 1, IS_UNIQUE, IS_ORDERED); |
550 | g1 = createEGenericType(ecorePackage.getEMap()); |
551 | g2 = createEGenericType(ecorePackage.getEJavaObject()); |
552 | g1.getETypeArguments().add(g2); |
553 | g2 = createEGenericType(ecorePackage.getEJavaObject()); |
554 | g1.getETypeArguments().add(g2); |
555 | addEParameter(op, g1, "context", 0, 1, IS_UNIQUE, IS_ORDERED); |
556 | |
557 | initEClass(softwareInducedFailureTypeEClass, SoftwareInducedFailureType.class, "SoftwareInducedFailureType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
558 | initEReference(getSoftwareInducedFailureType_InternalFailureOccurrenceDescriptions__SoftwareInducedFailureType(), this.getInternalFailureOccurrenceDescription(), this.getInternalFailureOccurrenceDescription_SoftwareInducedFailureType__InternalFailureOccurrenceDescription(), "internalFailureOccurrenceDescriptions__SoftwareInducedFailureType", null, 0, -1, SoftwareInducedFailureType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
559 | |
560 | initEClass(internalFailureOccurrenceDescriptionEClass, InternalFailureOccurrenceDescription.class, "InternalFailureOccurrenceDescription", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
561 | initEReference(getInternalFailureOccurrenceDescription_InternalAction__InternalFailureOccurrenceDescription(), theSeffPackage.getInternalAction(), theSeffPackage.getInternalAction_InternalFailureOccurrenceDescriptions__InternalAction(), "internalAction__InternalFailureOccurrenceDescription", null, 1, 1, InternalFailureOccurrenceDescription.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
562 | initEReference(getInternalFailureOccurrenceDescription_SoftwareInducedFailureType__InternalFailureOccurrenceDescription(), this.getSoftwareInducedFailureType(), this.getSoftwareInducedFailureType_InternalFailureOccurrenceDescriptions__SoftwareInducedFailureType(), "softwareInducedFailureType__InternalFailureOccurrenceDescription", null, 1, 1, InternalFailureOccurrenceDescription.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
563 | |
564 | op = addEOperation(internalFailureOccurrenceDescriptionEClass, ecorePackage.getEBoolean(), "NoResourceTimeoutFailureAllowedForInternalFailureOccurrenceDescription", 0, 1, IS_UNIQUE, IS_ORDERED); |
565 | addEParameter(op, ecorePackage.getEDiagnosticChain(), "diagnostics", 0, 1, IS_UNIQUE, IS_ORDERED); |
566 | g1 = createEGenericType(ecorePackage.getEMap()); |
567 | g2 = createEGenericType(ecorePackage.getEJavaObject()); |
568 | g1.getETypeArguments().add(g2); |
569 | g2 = createEGenericType(ecorePackage.getEJavaObject()); |
570 | g1.getETypeArguments().add(g2); |
571 | addEParameter(op, g1, "context", 0, 1, IS_UNIQUE, IS_ORDERED); |
572 | |
573 | initEClass(networkInducedFailureTypeEClass, NetworkInducedFailureType.class, "NetworkInducedFailureType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
574 | initEReference(getNetworkInducedFailureType_CommunicationLinkResourceType__NetworkInducedFailureType(), theResourcetypePackage.getCommunicationLinkResourceType(), theResourcetypePackage.getCommunicationLinkResourceType_NetworkInducedFailureType__CommunicationLinkResourceType(), "communicationLinkResourceType__NetworkInducedFailureType", null, 1, 1, NetworkInducedFailureType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
575 | |
576 | op = addEOperation(networkInducedFailureTypeEClass, ecorePackage.getEBoolean(), "NetworkInducedFailureTypeHasCommunicationLinkResourceType", 0, 1, IS_UNIQUE, IS_ORDERED); |
577 | addEParameter(op, ecorePackage.getEDiagnosticChain(), "diagnostics", 0, 1, IS_UNIQUE, IS_ORDERED); |
578 | g1 = createEGenericType(ecorePackage.getEMap()); |
579 | g2 = createEGenericType(ecorePackage.getEJavaObject()); |
580 | g1.getETypeArguments().add(g2); |
581 | g2 = createEGenericType(ecorePackage.getEJavaObject()); |
582 | g1.getETypeArguments().add(g2); |
583 | addEParameter(op, g1, "context", 0, 1, IS_UNIQUE, IS_ORDERED); |
584 | |
585 | initEClass(externalFailureOccurrenceDescriptionEClass, ExternalFailureOccurrenceDescription.class, "ExternalFailureOccurrenceDescription", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
586 | initEReference(getExternalFailureOccurrenceDescription_SpecifiedReliabilityAnnotation__ExternalFailureOccurrenceDescription(), theQos_reliabilityPackage.getSpecifiedReliabilityAnnotation(), theQos_reliabilityPackage.getSpecifiedReliabilityAnnotation_ExternalFailureOccurrenceDescriptions__SpecifiedReliabilityAnnotation(), "specifiedReliabilityAnnotation__ExternalFailureOccurrenceDescription", null, 1, 1, ExternalFailureOccurrenceDescription.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
587 | initEReference(getExternalFailureOccurrenceDescription_FailureType__ExternalFailureOccurrenceDescription(), this.getFailureType(), null, "failureType__ExternalFailureOccurrenceDescription", null, 1, 1, ExternalFailureOccurrenceDescription.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
588 | |
589 | op = addEOperation(externalFailureOccurrenceDescriptionEClass, ecorePackage.getEBoolean(), "NoResourceTimeoutFailureAllowedForExternalFailureOccurrenceDescription", 0, 1, IS_UNIQUE, IS_ORDERED); |
590 | addEParameter(op, ecorePackage.getEDiagnosticChain(), "diagnostics", 0, 1, IS_UNIQUE, IS_ORDERED); |
591 | g1 = createEGenericType(ecorePackage.getEMap()); |
592 | g2 = createEGenericType(ecorePackage.getEJavaObject()); |
593 | g1.getETypeArguments().add(g2); |
594 | g2 = createEGenericType(ecorePackage.getEJavaObject()); |
595 | g1.getETypeArguments().add(g2); |
596 | addEParameter(op, g1, "context", 0, 1, IS_UNIQUE, IS_ORDERED); |
597 | |
598 | initEClass(resourceTimeoutFailureTypeEClass, ResourceTimeoutFailureType.class, "ResourceTimeoutFailureType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
599 | initEReference(getResourceTimeoutFailureType_PassiveResource__ResourceTimeoutFailureType(), theRepositoryPackage.getPassiveResource(), theRepositoryPackage.getPassiveResource_ResourceTimeoutFailureType__PassiveResource(), "passiveResource__ResourceTimeoutFailureType", null, 1, 1, ResourceTimeoutFailureType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
600 | |
601 | initEClass(failureTypeEClass, FailureType.class, "FailureType", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
602 | initEReference(getFailureType_Repository__FailureType(), theRepositoryPackage.getRepository(), theRepositoryPackage.getRepository_FailureTypes__Repository(), "repository__FailureType", null, 1, 1, FailureType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
603 | } |
604 | |
605 | } //ReliabilityPackageImpl |