diff options
Diffstat (limited to 'Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/CftPackageImpl.java')
-rw-r--r-- | Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/CftPackageImpl.java | 746 |
1 files changed, 746 insertions, 0 deletions
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/CftPackageImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/CftPackageImpl.java new file mode 100644 index 00000000..f03fa0ba --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/CftPackageImpl.java | |||
@@ -0,0 +1,746 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.AndGateDefinition; | ||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.BasicEventDefinition; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftFactory; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage; | ||
9 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Component; | ||
10 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentDefinition; | ||
11 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentFaultTree; | ||
12 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Connection; | ||
13 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.EventDeclaration; | ||
14 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.EventDefinition; | ||
15 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.GateDefinition; | ||
16 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input; | ||
17 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.IntputEvent; | ||
18 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.KOfMGateDefinition; | ||
19 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.OrGateDefinition; | ||
20 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Output; | ||
21 | |||
22 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FtPackage; | ||
23 | |||
24 | import org.eclipse.emf.ecore.EAttribute; | ||
25 | import org.eclipse.emf.ecore.EClass; | ||
26 | import org.eclipse.emf.ecore.EPackage; | ||
27 | import org.eclipse.emf.ecore.EReference; | ||
28 | |||
29 | import org.eclipse.emf.ecore.impl.EPackageImpl; | ||
30 | |||
31 | /** | ||
32 | * <!-- begin-user-doc --> | ||
33 | * An implementation of the model <b>Package</b>. | ||
34 | * <!-- end-user-doc --> | ||
35 | * @generated | ||
36 | */ | ||
37 | public class CftPackageImpl extends EPackageImpl implements CftPackage { | ||
38 | /** | ||
39 | * <!-- begin-user-doc --> | ||
40 | * <!-- end-user-doc --> | ||
41 | * @generated | ||
42 | */ | ||
43 | private EClass componentDefinitionEClass = null; | ||
44 | |||
45 | /** | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @generated | ||
49 | */ | ||
50 | private EClass eventDefinitionEClass = null; | ||
51 | |||
52 | /** | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @generated | ||
56 | */ | ||
57 | private EClass gateDefinitionEClass = null; | ||
58 | |||
59 | /** | ||
60 | * <!-- begin-user-doc --> | ||
61 | * <!-- end-user-doc --> | ||
62 | * @generated | ||
63 | */ | ||
64 | private EClass basicEventDefinitionEClass = null; | ||
65 | |||
66 | /** | ||
67 | * <!-- begin-user-doc --> | ||
68 | * <!-- end-user-doc --> | ||
69 | * @generated | ||
70 | */ | ||
71 | private EClass intputEventEClass = null; | ||
72 | |||
73 | /** | ||
74 | * <!-- begin-user-doc --> | ||
75 | * <!-- end-user-doc --> | ||
76 | * @generated | ||
77 | */ | ||
78 | private EClass eventDeclarationEClass = null; | ||
79 | |||
80 | /** | ||
81 | * <!-- begin-user-doc --> | ||
82 | * <!-- end-user-doc --> | ||
83 | * @generated | ||
84 | */ | ||
85 | private EClass andGateDefinitionEClass = null; | ||
86 | |||
87 | /** | ||
88 | * <!-- begin-user-doc --> | ||
89 | * <!-- end-user-doc --> | ||
90 | * @generated | ||
91 | */ | ||
92 | private EClass orGateDefinitionEClass = null; | ||
93 | |||
94 | /** | ||
95 | * <!-- begin-user-doc --> | ||
96 | * <!-- end-user-doc --> | ||
97 | * @generated | ||
98 | */ | ||
99 | private EClass kOfMGateDefinitionEClass = null; | ||
100 | |||
101 | /** | ||
102 | * <!-- begin-user-doc --> | ||
103 | * <!-- end-user-doc --> | ||
104 | * @generated | ||
105 | */ | ||
106 | private EClass componentFaultTreeEClass = null; | ||
107 | |||
108 | /** | ||
109 | * <!-- begin-user-doc --> | ||
110 | * <!-- end-user-doc --> | ||
111 | * @generated | ||
112 | */ | ||
113 | private EClass componentEClass = null; | ||
114 | |||
115 | /** | ||
116 | * <!-- begin-user-doc --> | ||
117 | * <!-- end-user-doc --> | ||
118 | * @generated | ||
119 | */ | ||
120 | private EClass inputEClass = null; | ||
121 | |||
122 | /** | ||
123 | * <!-- begin-user-doc --> | ||
124 | * <!-- end-user-doc --> | ||
125 | * @generated | ||
126 | */ | ||
127 | private EClass outputEClass = null; | ||
128 | |||
129 | /** | ||
130 | * <!-- begin-user-doc --> | ||
131 | * <!-- end-user-doc --> | ||
132 | * @generated | ||
133 | */ | ||
134 | private EClass connectionEClass = null; | ||
135 | |||
136 | /** | ||
137 | * Creates an instance of the model <b>Package</b>, registered with | ||
138 | * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package | ||
139 | * package URI value. | ||
140 | * <p>Note: the correct way to create the package is via the static | ||
141 | * factory method {@link #init init()}, which also performs | ||
142 | * initialization of the package, or returns the registered package, | ||
143 | * if one already exists. | ||
144 | * <!-- begin-user-doc --> | ||
145 | * <!-- end-user-doc --> | ||
146 | * @see org.eclipse.emf.ecore.EPackage.Registry | ||
147 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage#eNS_URI | ||
148 | * @see #init() | ||
149 | * @generated | ||
150 | */ | ||
151 | private CftPackageImpl() { | ||
152 | super(eNS_URI, CftFactory.eINSTANCE); | ||
153 | } | ||
154 | |||
155 | /** | ||
156 | * <!-- begin-user-doc --> | ||
157 | * <!-- end-user-doc --> | ||
158 | * @generated | ||
159 | */ | ||
160 | private static boolean isInited = false; | ||
161 | |||
162 | /** | ||
163 | * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. | ||
164 | * | ||
165 | * <p>This method is used to initialize {@link CftPackage#eINSTANCE} when that field is accessed. | ||
166 | * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. | ||
167 | * <!-- begin-user-doc --> | ||
168 | * <!-- end-user-doc --> | ||
169 | * @see #eNS_URI | ||
170 | * @see #createPackageContents() | ||
171 | * @see #initializePackageContents() | ||
172 | * @generated | ||
173 | */ | ||
174 | public static CftPackage init() { | ||
175 | if (isInited) return (CftPackage)EPackage.Registry.INSTANCE.getEPackage(CftPackage.eNS_URI); | ||
176 | |||
177 | // Obtain or create and register package | ||
178 | Object registeredCftPackage = EPackage.Registry.INSTANCE.get(eNS_URI); | ||
179 | CftPackageImpl theCftPackage = registeredCftPackage instanceof CftPackageImpl ? (CftPackageImpl)registeredCftPackage : new CftPackageImpl(); | ||
180 | |||
181 | isInited = true; | ||
182 | |||
183 | // Initialize simple dependencies | ||
184 | FtPackage.eINSTANCE.eClass(); | ||
185 | |||
186 | // Create package meta-data objects | ||
187 | theCftPackage.createPackageContents(); | ||
188 | |||
189 | // Initialize created meta-data | ||
190 | theCftPackage.initializePackageContents(); | ||
191 | |||
192 | // Mark meta-data to indicate it can't be changed | ||
193 | theCftPackage.freeze(); | ||
194 | |||
195 | // Update the registry and return the package | ||
196 | EPackage.Registry.INSTANCE.put(CftPackage.eNS_URI, theCftPackage); | ||
197 | return theCftPackage; | ||
198 | } | ||
199 | |||
200 | /** | ||
201 | * <!-- begin-user-doc --> | ||
202 | * <!-- end-user-doc --> | ||
203 | * @generated | ||
204 | */ | ||
205 | @Override | ||
206 | public EClass getComponentDefinition() { | ||
207 | return componentDefinitionEClass; | ||
208 | } | ||
209 | |||
210 | /** | ||
211 | * <!-- begin-user-doc --> | ||
212 | * <!-- end-user-doc --> | ||
213 | * @generated | ||
214 | */ | ||
215 | @Override | ||
216 | public EReference getComponentDefinition_InputEvents() { | ||
217 | return (EReference)componentDefinitionEClass.getEStructuralFeatures().get(0); | ||
218 | } | ||
219 | |||
220 | /** | ||
221 | * <!-- begin-user-doc --> | ||
222 | * <!-- end-user-doc --> | ||
223 | * @generated | ||
224 | */ | ||
225 | @Override | ||
226 | public EReference getComponentDefinition_EventDefinitions() { | ||
227 | return (EReference)componentDefinitionEClass.getEStructuralFeatures().get(1); | ||
228 | } | ||
229 | |||
230 | /** | ||
231 | * <!-- begin-user-doc --> | ||
232 | * <!-- end-user-doc --> | ||
233 | * @generated | ||
234 | */ | ||
235 | @Override | ||
236 | public EReference getComponentDefinition_OutputEvents() { | ||
237 | return (EReference)componentDefinitionEClass.getEStructuralFeatures().get(2); | ||
238 | } | ||
239 | |||
240 | /** | ||
241 | * <!-- begin-user-doc --> | ||
242 | * <!-- end-user-doc --> | ||
243 | * @generated | ||
244 | */ | ||
245 | @Override | ||
246 | public EAttribute getComponentDefinition_Name() { | ||
247 | return (EAttribute)componentDefinitionEClass.getEStructuralFeatures().get(3); | ||
248 | } | ||
249 | |||
250 | /** | ||
251 | * <!-- begin-user-doc --> | ||
252 | * <!-- end-user-doc --> | ||
253 | * @generated | ||
254 | */ | ||
255 | @Override | ||
256 | public EClass getEventDefinition() { | ||
257 | return eventDefinitionEClass; | ||
258 | } | ||
259 | |||
260 | /** | ||
261 | * <!-- begin-user-doc --> | ||
262 | * <!-- end-user-doc --> | ||
263 | * @generated | ||
264 | */ | ||
265 | @Override | ||
266 | public EClass getGateDefinition() { | ||
267 | return gateDefinitionEClass; | ||
268 | } | ||
269 | |||
270 | /** | ||
271 | * <!-- begin-user-doc --> | ||
272 | * <!-- end-user-doc --> | ||
273 | * @generated | ||
274 | */ | ||
275 | @Override | ||
276 | public EReference getGateDefinition_InputEvents() { | ||
277 | return (EReference)gateDefinitionEClass.getEStructuralFeatures().get(0); | ||
278 | } | ||
279 | |||
280 | /** | ||
281 | * <!-- begin-user-doc --> | ||
282 | * <!-- end-user-doc --> | ||
283 | * @generated | ||
284 | */ | ||
285 | @Override | ||
286 | public EClass getBasicEventDefinition() { | ||
287 | return basicEventDefinitionEClass; | ||
288 | } | ||
289 | |||
290 | /** | ||
291 | * <!-- begin-user-doc --> | ||
292 | * <!-- end-user-doc --> | ||
293 | * @generated | ||
294 | */ | ||
295 | @Override | ||
296 | public EReference getBasicEventDefinition_Distribution() { | ||
297 | return (EReference)basicEventDefinitionEClass.getEStructuralFeatures().get(0); | ||
298 | } | ||
299 | |||
300 | /** | ||
301 | * <!-- begin-user-doc --> | ||
302 | * <!-- end-user-doc --> | ||
303 | * @generated | ||
304 | */ | ||
305 | @Override | ||
306 | public EClass getIntputEvent() { | ||
307 | return intputEventEClass; | ||
308 | } | ||
309 | |||
310 | /** | ||
311 | * <!-- begin-user-doc --> | ||
312 | * <!-- end-user-doc --> | ||
313 | * @generated | ||
314 | */ | ||
315 | @Override | ||
316 | public EAttribute getIntputEvent_Multiple() { | ||
317 | return (EAttribute)intputEventEClass.getEStructuralFeatures().get(0); | ||
318 | } | ||
319 | |||
320 | /** | ||
321 | * <!-- begin-user-doc --> | ||
322 | * <!-- end-user-doc --> | ||
323 | * @generated | ||
324 | */ | ||
325 | @Override | ||
326 | public EClass getEventDeclaration() { | ||
327 | return eventDeclarationEClass; | ||
328 | } | ||
329 | |||
330 | /** | ||
331 | * <!-- begin-user-doc --> | ||
332 | * <!-- end-user-doc --> | ||
333 | * @generated | ||
334 | */ | ||
335 | @Override | ||
336 | public EAttribute getEventDeclaration_Name() { | ||
337 | return (EAttribute)eventDeclarationEClass.getEStructuralFeatures().get(0); | ||
338 | } | ||
339 | |||
340 | /** | ||
341 | * <!-- begin-user-doc --> | ||
342 | * <!-- end-user-doc --> | ||
343 | * @generated | ||
344 | */ | ||
345 | @Override | ||
346 | public EClass getAndGateDefinition() { | ||
347 | return andGateDefinitionEClass; | ||
348 | } | ||
349 | |||
350 | /** | ||
351 | * <!-- begin-user-doc --> | ||
352 | * <!-- end-user-doc --> | ||
353 | * @generated | ||
354 | */ | ||
355 | @Override | ||
356 | public EClass getOrGateDefinition() { | ||
357 | return orGateDefinitionEClass; | ||
358 | } | ||
359 | |||
360 | /** | ||
361 | * <!-- begin-user-doc --> | ||
362 | * <!-- end-user-doc --> | ||
363 | * @generated | ||
364 | */ | ||
365 | @Override | ||
366 | public EClass getKOfMGateDefinition() { | ||
367 | return kOfMGateDefinitionEClass; | ||
368 | } | ||
369 | |||
370 | /** | ||
371 | * <!-- begin-user-doc --> | ||
372 | * <!-- end-user-doc --> | ||
373 | * @generated | ||
374 | */ | ||
375 | @Override | ||
376 | public EAttribute getKOfMGateDefinition_K() { | ||
377 | return (EAttribute)kOfMGateDefinitionEClass.getEStructuralFeatures().get(0); | ||
378 | } | ||
379 | |||
380 | /** | ||
381 | * <!-- begin-user-doc --> | ||
382 | * <!-- end-user-doc --> | ||
383 | * @generated | ||
384 | */ | ||
385 | @Override | ||
386 | public EAttribute getKOfMGateDefinition_M() { | ||
387 | return (EAttribute)kOfMGateDefinitionEClass.getEStructuralFeatures().get(1); | ||
388 | } | ||
389 | |||
390 | /** | ||
391 | * <!-- begin-user-doc --> | ||
392 | * <!-- end-user-doc --> | ||
393 | * @generated | ||
394 | */ | ||
395 | @Override | ||
396 | public EClass getComponentFaultTree() { | ||
397 | return componentFaultTreeEClass; | ||
398 | } | ||
399 | |||
400 | /** | ||
401 | * <!-- begin-user-doc --> | ||
402 | * <!-- end-user-doc --> | ||
403 | * @generated | ||
404 | */ | ||
405 | @Override | ||
406 | public EReference getComponentFaultTree_Components() { | ||
407 | return (EReference)componentFaultTreeEClass.getEStructuralFeatures().get(0); | ||
408 | } | ||
409 | |||
410 | /** | ||
411 | * <!-- begin-user-doc --> | ||
412 | * <!-- end-user-doc --> | ||
413 | * @generated | ||
414 | */ | ||
415 | @Override | ||
416 | public EReference getComponentFaultTree_TopEvent() { | ||
417 | return (EReference)componentFaultTreeEClass.getEStructuralFeatures().get(1); | ||
418 | } | ||
419 | |||
420 | /** | ||
421 | * <!-- begin-user-doc --> | ||
422 | * <!-- end-user-doc --> | ||
423 | * @generated | ||
424 | */ | ||
425 | @Override | ||
426 | public EClass getComponent() { | ||
427 | return componentEClass; | ||
428 | } | ||
429 | |||
430 | /** | ||
431 | * <!-- begin-user-doc --> | ||
432 | * <!-- end-user-doc --> | ||
433 | * @generated | ||
434 | */ | ||
435 | @Override | ||
436 | public EReference getComponent_Inputs() { | ||
437 | return (EReference)componentEClass.getEStructuralFeatures().get(0); | ||
438 | } | ||
439 | |||
440 | /** | ||
441 | * <!-- begin-user-doc --> | ||
442 | * <!-- end-user-doc --> | ||
443 | * @generated | ||
444 | */ | ||
445 | @Override | ||
446 | public EReference getComponent_Outputs() { | ||
447 | return (EReference)componentEClass.getEStructuralFeatures().get(1); | ||
448 | } | ||
449 | |||
450 | /** | ||
451 | * <!-- begin-user-doc --> | ||
452 | * <!-- end-user-doc --> | ||
453 | * @generated | ||
454 | */ | ||
455 | @Override | ||
456 | public EReference getComponent_ComponentDefinition() { | ||
457 | return (EReference)componentEClass.getEStructuralFeatures().get(2); | ||
458 | } | ||
459 | |||
460 | /** | ||
461 | * <!-- begin-user-doc --> | ||
462 | * <!-- end-user-doc --> | ||
463 | * @generated | ||
464 | */ | ||
465 | @Override | ||
466 | public EClass getInput() { | ||
467 | return inputEClass; | ||
468 | } | ||
469 | |||
470 | /** | ||
471 | * <!-- begin-user-doc --> | ||
472 | * <!-- end-user-doc --> | ||
473 | * @generated | ||
474 | */ | ||
475 | @Override | ||
476 | public EReference getInput_IntputEvent() { | ||
477 | return (EReference)inputEClass.getEStructuralFeatures().get(0); | ||
478 | } | ||
479 | |||
480 | /** | ||
481 | * <!-- begin-user-doc --> | ||
482 | * <!-- end-user-doc --> | ||
483 | * @generated | ||
484 | */ | ||
485 | @Override | ||
486 | public EReference getInput_Component() { | ||
487 | return (EReference)inputEClass.getEStructuralFeatures().get(1); | ||
488 | } | ||
489 | |||
490 | /** | ||
491 | * <!-- begin-user-doc --> | ||
492 | * <!-- end-user-doc --> | ||
493 | * @generated | ||
494 | */ | ||
495 | @Override | ||
496 | public EReference getInput_IncomingConnections() { | ||
497 | return (EReference)inputEClass.getEStructuralFeatures().get(2); | ||
498 | } | ||
499 | |||
500 | /** | ||
501 | * <!-- begin-user-doc --> | ||
502 | * <!-- end-user-doc --> | ||
503 | * @generated | ||
504 | */ | ||
505 | @Override | ||
506 | public EClass getOutput() { | ||
507 | return outputEClass; | ||
508 | } | ||
509 | |||
510 | /** | ||
511 | * <!-- begin-user-doc --> | ||
512 | * <!-- end-user-doc --> | ||
513 | * @generated | ||
514 | */ | ||
515 | @Override | ||
516 | public EReference getOutput_EventDeclaration() { | ||
517 | return (EReference)outputEClass.getEStructuralFeatures().get(0); | ||
518 | } | ||
519 | |||
520 | /** | ||
521 | * <!-- begin-user-doc --> | ||
522 | * <!-- end-user-doc --> | ||
523 | * @generated | ||
524 | */ | ||
525 | @Override | ||
526 | public EReference getOutput_OutgoingConnections() { | ||
527 | return (EReference)outputEClass.getEStructuralFeatures().get(1); | ||
528 | } | ||
529 | |||
530 | /** | ||
531 | * <!-- begin-user-doc --> | ||
532 | * <!-- end-user-doc --> | ||
533 | * @generated | ||
534 | */ | ||
535 | @Override | ||
536 | public EReference getOutput_Component() { | ||
537 | return (EReference)outputEClass.getEStructuralFeatures().get(2); | ||
538 | } | ||
539 | |||
540 | /** | ||
541 | * <!-- begin-user-doc --> | ||
542 | * <!-- end-user-doc --> | ||
543 | * @generated | ||
544 | */ | ||
545 | @Override | ||
546 | public EClass getConnection() { | ||
547 | return connectionEClass; | ||
548 | } | ||
549 | |||
550 | /** | ||
551 | * <!-- begin-user-doc --> | ||
552 | * <!-- end-user-doc --> | ||
553 | * @generated | ||
554 | */ | ||
555 | @Override | ||
556 | public EReference getConnection_Input() { | ||
557 | return (EReference)connectionEClass.getEStructuralFeatures().get(0); | ||
558 | } | ||
559 | |||
560 | /** | ||
561 | * <!-- begin-user-doc --> | ||
562 | * <!-- end-user-doc --> | ||
563 | * @generated | ||
564 | */ | ||
565 | @Override | ||
566 | public EReference getConnection_Output() { | ||
567 | return (EReference)connectionEClass.getEStructuralFeatures().get(1); | ||
568 | } | ||
569 | |||
570 | /** | ||
571 | * <!-- begin-user-doc --> | ||
572 | * <!-- end-user-doc --> | ||
573 | * @generated | ||
574 | */ | ||
575 | @Override | ||
576 | public CftFactory getCftFactory() { | ||
577 | return (CftFactory)getEFactoryInstance(); | ||
578 | } | ||
579 | |||
580 | /** | ||
581 | * <!-- begin-user-doc --> | ||
582 | * <!-- end-user-doc --> | ||
583 | * @generated | ||
584 | */ | ||
585 | private boolean isCreated = false; | ||
586 | |||
587 | /** | ||
588 | * Creates the meta-model objects for the package. This method is | ||
589 | * guarded to have no affect on any invocation but its first. | ||
590 | * <!-- begin-user-doc --> | ||
591 | * <!-- end-user-doc --> | ||
592 | * @generated | ||
593 | */ | ||
594 | public void createPackageContents() { | ||
595 | if (isCreated) return; | ||
596 | isCreated = true; | ||
597 | |||
598 | // Create classes and their features | ||
599 | componentDefinitionEClass = createEClass(COMPONENT_DEFINITION); | ||
600 | createEReference(componentDefinitionEClass, COMPONENT_DEFINITION__INPUT_EVENTS); | ||
601 | createEReference(componentDefinitionEClass, COMPONENT_DEFINITION__EVENT_DEFINITIONS); | ||
602 | createEReference(componentDefinitionEClass, COMPONENT_DEFINITION__OUTPUT_EVENTS); | ||
603 | createEAttribute(componentDefinitionEClass, COMPONENT_DEFINITION__NAME); | ||
604 | |||
605 | eventDefinitionEClass = createEClass(EVENT_DEFINITION); | ||
606 | |||
607 | gateDefinitionEClass = createEClass(GATE_DEFINITION); | ||
608 | createEReference(gateDefinitionEClass, GATE_DEFINITION__INPUT_EVENTS); | ||
609 | |||
610 | basicEventDefinitionEClass = createEClass(BASIC_EVENT_DEFINITION); | ||
611 | createEReference(basicEventDefinitionEClass, BASIC_EVENT_DEFINITION__DISTRIBUTION); | ||
612 | |||
613 | intputEventEClass = createEClass(INTPUT_EVENT); | ||
614 | createEAttribute(intputEventEClass, INTPUT_EVENT__MULTIPLE); | ||
615 | |||
616 | eventDeclarationEClass = createEClass(EVENT_DECLARATION); | ||
617 | createEAttribute(eventDeclarationEClass, EVENT_DECLARATION__NAME); | ||
618 | |||
619 | andGateDefinitionEClass = createEClass(AND_GATE_DEFINITION); | ||
620 | |||
621 | orGateDefinitionEClass = createEClass(OR_GATE_DEFINITION); | ||
622 | |||
623 | kOfMGateDefinitionEClass = createEClass(KOF_MGATE_DEFINITION); | ||
624 | createEAttribute(kOfMGateDefinitionEClass, KOF_MGATE_DEFINITION__K); | ||
625 | createEAttribute(kOfMGateDefinitionEClass, KOF_MGATE_DEFINITION__M); | ||
626 | |||
627 | componentFaultTreeEClass = createEClass(COMPONENT_FAULT_TREE); | ||
628 | createEReference(componentFaultTreeEClass, COMPONENT_FAULT_TREE__COMPONENTS); | ||
629 | createEReference(componentFaultTreeEClass, COMPONENT_FAULT_TREE__TOP_EVENT); | ||
630 | |||
631 | componentEClass = createEClass(COMPONENT); | ||
632 | createEReference(componentEClass, COMPONENT__INPUTS); | ||
633 | createEReference(componentEClass, COMPONENT__OUTPUTS); | ||
634 | createEReference(componentEClass, COMPONENT__COMPONENT_DEFINITION); | ||
635 | |||
636 | inputEClass = createEClass(INPUT); | ||
637 | createEReference(inputEClass, INPUT__INTPUT_EVENT); | ||
638 | createEReference(inputEClass, INPUT__COMPONENT); | ||
639 | createEReference(inputEClass, INPUT__INCOMING_CONNECTIONS); | ||
640 | |||
641 | outputEClass = createEClass(OUTPUT); | ||
642 | createEReference(outputEClass, OUTPUT__EVENT_DECLARATION); | ||
643 | createEReference(outputEClass, OUTPUT__OUTGOING_CONNECTIONS); | ||
644 | createEReference(outputEClass, OUTPUT__COMPONENT); | ||
645 | |||
646 | connectionEClass = createEClass(CONNECTION); | ||
647 | createEReference(connectionEClass, CONNECTION__INPUT); | ||
648 | createEReference(connectionEClass, CONNECTION__OUTPUT); | ||
649 | } | ||
650 | |||
651 | /** | ||
652 | * <!-- begin-user-doc --> | ||
653 | * <!-- end-user-doc --> | ||
654 | * @generated | ||
655 | */ | ||
656 | private boolean isInitialized = false; | ||
657 | |||
658 | /** | ||
659 | * Complete the initialization of the package and its meta-model. This | ||
660 | * method is guarded to have no affect on any invocation but its first. | ||
661 | * <!-- begin-user-doc --> | ||
662 | * <!-- end-user-doc --> | ||
663 | * @generated | ||
664 | */ | ||
665 | public void initializePackageContents() { | ||
666 | if (isInitialized) return; | ||
667 | isInitialized = true; | ||
668 | |||
669 | // Initialize package | ||
670 | setName(eNAME); | ||
671 | setNsPrefix(eNS_PREFIX); | ||
672 | setNsURI(eNS_URI); | ||
673 | |||
674 | // Obtain other dependent packages | ||
675 | FtPackage theFtPackage = (FtPackage)EPackage.Registry.INSTANCE.getEPackage(FtPackage.eNS_URI); | ||
676 | |||
677 | // Create type parameters | ||
678 | |||
679 | // Set bounds for type parameters | ||
680 | |||
681 | // Add supertypes to classes | ||
682 | eventDefinitionEClass.getESuperTypes().add(this.getEventDeclaration()); | ||
683 | gateDefinitionEClass.getESuperTypes().add(this.getEventDefinition()); | ||
684 | basicEventDefinitionEClass.getESuperTypes().add(this.getEventDefinition()); | ||
685 | intputEventEClass.getESuperTypes().add(this.getEventDeclaration()); | ||
686 | andGateDefinitionEClass.getESuperTypes().add(this.getGateDefinition()); | ||
687 | orGateDefinitionEClass.getESuperTypes().add(this.getGateDefinition()); | ||
688 | kOfMGateDefinitionEClass.getESuperTypes().add(this.getGateDefinition()); | ||
689 | |||
690 | // Initialize classes, features, and operations; add parameters | ||
691 | initEClass(componentDefinitionEClass, ComponentDefinition.class, "ComponentDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
692 | initEReference(getComponentDefinition_InputEvents(), this.getIntputEvent(), null, "inputEvents", null, 0, -1, ComponentDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
693 | initEReference(getComponentDefinition_EventDefinitions(), this.getEventDefinition(), null, "eventDefinitions", null, 0, -1, ComponentDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
694 | initEReference(getComponentDefinition_OutputEvents(), this.getEventDeclaration(), null, "outputEvents", null, 0, -1, ComponentDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
695 | initEAttribute(getComponentDefinition_Name(), ecorePackage.getEString(), "name", null, 0, 1, ComponentDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
696 | |||
697 | initEClass(eventDefinitionEClass, EventDefinition.class, "EventDefinition", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
698 | |||
699 | initEClass(gateDefinitionEClass, GateDefinition.class, "GateDefinition", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
700 | initEReference(getGateDefinition_InputEvents(), this.getEventDeclaration(), null, "inputEvents", null, 0, -1, GateDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
701 | |||
702 | initEClass(basicEventDefinitionEClass, BasicEventDefinition.class, "BasicEventDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
703 | initEReference(getBasicEventDefinition_Distribution(), theFtPackage.getDistribution(), null, "distribution", null, 1, 1, BasicEventDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
704 | |||
705 | initEClass(intputEventEClass, IntputEvent.class, "IntputEvent", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
706 | initEAttribute(getIntputEvent_Multiple(), ecorePackage.getEBoolean(), "multiple", null, 0, 1, IntputEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
707 | |||
708 | initEClass(eventDeclarationEClass, EventDeclaration.class, "EventDeclaration", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
709 | initEAttribute(getEventDeclaration_Name(), ecorePackage.getEString(), "name", null, 0, 1, EventDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
710 | |||
711 | initEClass(andGateDefinitionEClass, AndGateDefinition.class, "AndGateDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
712 | |||
713 | initEClass(orGateDefinitionEClass, OrGateDefinition.class, "OrGateDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
714 | |||
715 | initEClass(kOfMGateDefinitionEClass, KOfMGateDefinition.class, "KOfMGateDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
716 | initEAttribute(getKOfMGateDefinition_K(), ecorePackage.getEInt(), "k", null, 0, 1, KOfMGateDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
717 | initEAttribute(getKOfMGateDefinition_M(), ecorePackage.getEInt(), "m", null, 0, 1, KOfMGateDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
718 | |||
719 | initEClass(componentFaultTreeEClass, ComponentFaultTree.class, "ComponentFaultTree", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
720 | initEReference(getComponentFaultTree_Components(), this.getComponent(), null, "components", null, 0, -1, ComponentFaultTree.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
721 | initEReference(getComponentFaultTree_TopEvent(), this.getOutput(), null, "topEvent", null, 1, 1, ComponentFaultTree.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
722 | |||
723 | initEClass(componentEClass, Component.class, "Component", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
724 | initEReference(getComponent_Inputs(), this.getInput(), this.getInput_Component(), "inputs", null, 0, -1, Component.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
725 | initEReference(getComponent_Outputs(), this.getOutput(), this.getOutput_Component(), "outputs", null, 0, -1, Component.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
726 | initEReference(getComponent_ComponentDefinition(), this.getComponentDefinition(), null, "componentDefinition", null, 1, 1, Component.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
727 | |||
728 | initEClass(inputEClass, Input.class, "Input", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
729 | initEReference(getInput_IntputEvent(), this.getIntputEvent(), null, "intputEvent", null, 1, 1, Input.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
730 | initEReference(getInput_Component(), this.getComponent(), this.getComponent_Inputs(), "component", null, 1, 1, Input.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
731 | initEReference(getInput_IncomingConnections(), this.getConnection(), this.getConnection_Input(), "incomingConnections", null, 0, -1, Input.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
732 | |||
733 | initEClass(outputEClass, Output.class, "Output", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
734 | initEReference(getOutput_EventDeclaration(), this.getEventDeclaration(), null, "eventDeclaration", null, 1, 1, Output.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
735 | initEReference(getOutput_OutgoingConnections(), this.getConnection(), this.getConnection_Output(), "outgoingConnections", null, 0, -1, Output.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
736 | initEReference(getOutput_Component(), this.getComponent(), this.getComponent_Outputs(), "component", null, 1, 1, Output.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
737 | |||
738 | initEClass(connectionEClass, Connection.class, "Connection", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
739 | initEReference(getConnection_Input(), this.getInput(), this.getInput_IncomingConnections(), "input", null, 1, 1, Connection.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
740 | initEReference(getConnection_Output(), this.getOutput(), this.getOutput_OutgoingConnections(), "output", null, 1, 1, Connection.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
741 | |||
742 | // Create resource | ||
743 | createResource(eNS_URI); | ||
744 | } | ||
745 | |||
746 | } //CftPackageImpl | ||