diff options
Diffstat (limited to 'Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/impl/FtPackageImpl.java')
-rw-r--r-- | Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/impl/FtPackageImpl.java | 586 |
1 files changed, 0 insertions, 586 deletions
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/impl/FtPackageImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/impl/FtPackageImpl.java deleted file mode 100644 index cc2c0617..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/impl/FtPackageImpl.java +++ /dev/null | |||
@@ -1,586 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.AndGate; | ||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.BasicEvent; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.ConstantDistribution; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.ConstantEvent; | ||
9 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.ConstantModel; | ||
10 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.Distribution; | ||
11 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.Event; | ||
12 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.ExponentialDistribution; | ||
13 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FaultTree; | ||
14 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FtFactory; | ||
15 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FtPackage; | ||
16 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.Gate; | ||
17 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.KOfMGate; | ||
18 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.OrGate; | ||
19 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.RandomEvent; | ||
20 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.ReliabilityModel; | ||
21 | |||
22 | import org.eclipse.emf.ecore.EAttribute; | ||
23 | import org.eclipse.emf.ecore.EClass; | ||
24 | import org.eclipse.emf.ecore.EPackage; | ||
25 | import org.eclipse.emf.ecore.EReference; | ||
26 | |||
27 | import org.eclipse.emf.ecore.impl.EPackageImpl; | ||
28 | |||
29 | /** | ||
30 | * <!-- begin-user-doc --> | ||
31 | * An implementation of the model <b>Package</b>. | ||
32 | * <!-- end-user-doc --> | ||
33 | * @generated | ||
34 | */ | ||
35 | public class FtPackageImpl extends EPackageImpl implements FtPackage { | ||
36 | /** | ||
37 | * <!-- begin-user-doc --> | ||
38 | * <!-- end-user-doc --> | ||
39 | * @generated | ||
40 | */ | ||
41 | private EClass faultTreeEClass = null; | ||
42 | |||
43 | /** | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @generated | ||
47 | */ | ||
48 | private EClass randomEventEClass = null; | ||
49 | |||
50 | /** | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @generated | ||
54 | */ | ||
55 | private EClass basicEventEClass = null; | ||
56 | |||
57 | /** | ||
58 | * <!-- begin-user-doc --> | ||
59 | * <!-- end-user-doc --> | ||
60 | * @generated | ||
61 | */ | ||
62 | private EClass gateEClass = null; | ||
63 | |||
64 | /** | ||
65 | * <!-- begin-user-doc --> | ||
66 | * <!-- end-user-doc --> | ||
67 | * @generated | ||
68 | */ | ||
69 | private EClass distributionEClass = null; | ||
70 | |||
71 | /** | ||
72 | * <!-- begin-user-doc --> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @generated | ||
75 | */ | ||
76 | private EClass constantDistributionEClass = null; | ||
77 | |||
78 | /** | ||
79 | * <!-- begin-user-doc --> | ||
80 | * <!-- end-user-doc --> | ||
81 | * @generated | ||
82 | */ | ||
83 | private EClass exponentialDistributionEClass = null; | ||
84 | |||
85 | /** | ||
86 | * <!-- begin-user-doc --> | ||
87 | * <!-- end-user-doc --> | ||
88 | * @generated | ||
89 | */ | ||
90 | private EClass andGateEClass = null; | ||
91 | |||
92 | /** | ||
93 | * <!-- begin-user-doc --> | ||
94 | * <!-- end-user-doc --> | ||
95 | * @generated | ||
96 | */ | ||
97 | private EClass orGateEClass = null; | ||
98 | |||
99 | /** | ||
100 | * <!-- begin-user-doc --> | ||
101 | * <!-- end-user-doc --> | ||
102 | * @generated | ||
103 | */ | ||
104 | private EClass kOfMGateEClass = null; | ||
105 | |||
106 | /** | ||
107 | * <!-- begin-user-doc --> | ||
108 | * <!-- end-user-doc --> | ||
109 | * @generated | ||
110 | */ | ||
111 | private EClass reliabilityModelEClass = null; | ||
112 | |||
113 | /** | ||
114 | * <!-- begin-user-doc --> | ||
115 | * <!-- end-user-doc --> | ||
116 | * @generated | ||
117 | */ | ||
118 | private EClass constantModelEClass = null; | ||
119 | |||
120 | /** | ||
121 | * <!-- begin-user-doc --> | ||
122 | * <!-- end-user-doc --> | ||
123 | * @generated | ||
124 | */ | ||
125 | private EClass eventEClass = null; | ||
126 | |||
127 | /** | ||
128 | * <!-- begin-user-doc --> | ||
129 | * <!-- end-user-doc --> | ||
130 | * @generated | ||
131 | */ | ||
132 | private EClass constantEventEClass = null; | ||
133 | |||
134 | /** | ||
135 | * Creates an instance of the model <b>Package</b>, registered with | ||
136 | * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package | ||
137 | * package URI value. | ||
138 | * <p>Note: the correct way to create the package is via the static | ||
139 | * factory method {@link #init init()}, which also performs | ||
140 | * initialization of the package, or returns the registered package, | ||
141 | * if one already exists. | ||
142 | * <!-- begin-user-doc --> | ||
143 | * <!-- end-user-doc --> | ||
144 | * @see org.eclipse.emf.ecore.EPackage.Registry | ||
145 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FtPackage#eNS_URI | ||
146 | * @see #init() | ||
147 | * @generated | ||
148 | */ | ||
149 | private FtPackageImpl() { | ||
150 | super(eNS_URI, FtFactory.eINSTANCE); | ||
151 | } | ||
152 | |||
153 | /** | ||
154 | * <!-- begin-user-doc --> | ||
155 | * <!-- end-user-doc --> | ||
156 | * @generated | ||
157 | */ | ||
158 | private static boolean isInited = false; | ||
159 | |||
160 | /** | ||
161 | * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. | ||
162 | * | ||
163 | * <p>This method is used to initialize {@link FtPackage#eINSTANCE} when that field is accessed. | ||
164 | * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. | ||
165 | * <!-- begin-user-doc --> | ||
166 | * <!-- end-user-doc --> | ||
167 | * @see #eNS_URI | ||
168 | * @see #createPackageContents() | ||
169 | * @see #initializePackageContents() | ||
170 | * @generated | ||
171 | */ | ||
172 | public static FtPackage init() { | ||
173 | if (isInited) return (FtPackage)EPackage.Registry.INSTANCE.getEPackage(FtPackage.eNS_URI); | ||
174 | |||
175 | // Obtain or create and register package | ||
176 | Object registeredFtPackage = EPackage.Registry.INSTANCE.get(eNS_URI); | ||
177 | FtPackageImpl theFtPackage = registeredFtPackage instanceof FtPackageImpl ? (FtPackageImpl)registeredFtPackage : new FtPackageImpl(); | ||
178 | |||
179 | isInited = true; | ||
180 | |||
181 | // Create package meta-data objects | ||
182 | theFtPackage.createPackageContents(); | ||
183 | |||
184 | // Initialize created meta-data | ||
185 | theFtPackage.initializePackageContents(); | ||
186 | |||
187 | // Mark meta-data to indicate it can't be changed | ||
188 | theFtPackage.freeze(); | ||
189 | |||
190 | // Update the registry and return the package | ||
191 | EPackage.Registry.INSTANCE.put(FtPackage.eNS_URI, theFtPackage); | ||
192 | return theFtPackage; | ||
193 | } | ||
194 | |||
195 | /** | ||
196 | * <!-- begin-user-doc --> | ||
197 | * <!-- end-user-doc --> | ||
198 | * @generated | ||
199 | */ | ||
200 | @Override | ||
201 | public EClass getFaultTree() { | ||
202 | return faultTreeEClass; | ||
203 | } | ||
204 | |||
205 | /** | ||
206 | * <!-- begin-user-doc --> | ||
207 | * <!-- end-user-doc --> | ||
208 | * @generated | ||
209 | */ | ||
210 | @Override | ||
211 | public EReference getFaultTree_Events() { | ||
212 | return (EReference)faultTreeEClass.getEStructuralFeatures().get(0); | ||
213 | } | ||
214 | |||
215 | /** | ||
216 | * <!-- begin-user-doc --> | ||
217 | * <!-- end-user-doc --> | ||
218 | * @generated | ||
219 | */ | ||
220 | @Override | ||
221 | public EReference getFaultTree_TopEvent() { | ||
222 | return (EReference)faultTreeEClass.getEStructuralFeatures().get(1); | ||
223 | } | ||
224 | |||
225 | /** | ||
226 | * <!-- begin-user-doc --> | ||
227 | * <!-- end-user-doc --> | ||
228 | * @generated | ||
229 | */ | ||
230 | @Override | ||
231 | public EClass getRandomEvent() { | ||
232 | return randomEventEClass; | ||
233 | } | ||
234 | |||
235 | /** | ||
236 | * <!-- begin-user-doc --> | ||
237 | * <!-- end-user-doc --> | ||
238 | * @generated | ||
239 | */ | ||
240 | @Override | ||
241 | public EAttribute getRandomEvent_Name() { | ||
242 | return (EAttribute)randomEventEClass.getEStructuralFeatures().get(0); | ||
243 | } | ||
244 | |||
245 | /** | ||
246 | * <!-- begin-user-doc --> | ||
247 | * <!-- end-user-doc --> | ||
248 | * @generated | ||
249 | */ | ||
250 | @Override | ||
251 | public EClass getBasicEvent() { | ||
252 | return basicEventEClass; | ||
253 | } | ||
254 | |||
255 | /** | ||
256 | * <!-- begin-user-doc --> | ||
257 | * <!-- end-user-doc --> | ||
258 | * @generated | ||
259 | */ | ||
260 | @Override | ||
261 | public EReference getBasicEvent_Distribution() { | ||
262 | return (EReference)basicEventEClass.getEStructuralFeatures().get(0); | ||
263 | } | ||
264 | |||
265 | /** | ||
266 | * <!-- begin-user-doc --> | ||
267 | * <!-- end-user-doc --> | ||
268 | * @generated | ||
269 | */ | ||
270 | @Override | ||
271 | public EClass getGate() { | ||
272 | return gateEClass; | ||
273 | } | ||
274 | |||
275 | /** | ||
276 | * <!-- begin-user-doc --> | ||
277 | * <!-- end-user-doc --> | ||
278 | * @generated | ||
279 | */ | ||
280 | @Override | ||
281 | public EReference getGate_InputEvents() { | ||
282 | return (EReference)gateEClass.getEStructuralFeatures().get(0); | ||
283 | } | ||
284 | |||
285 | /** | ||
286 | * <!-- begin-user-doc --> | ||
287 | * <!-- end-user-doc --> | ||
288 | * @generated | ||
289 | */ | ||
290 | @Override | ||
291 | public EClass getDistribution() { | ||
292 | return distributionEClass; | ||
293 | } | ||
294 | |||
295 | /** | ||
296 | * <!-- begin-user-doc --> | ||
297 | * <!-- end-user-doc --> | ||
298 | * @generated | ||
299 | */ | ||
300 | @Override | ||
301 | public EClass getConstantDistribution() { | ||
302 | return constantDistributionEClass; | ||
303 | } | ||
304 | |||
305 | /** | ||
306 | * <!-- begin-user-doc --> | ||
307 | * <!-- end-user-doc --> | ||
308 | * @generated | ||
309 | */ | ||
310 | @Override | ||
311 | public EAttribute getConstantDistribution_P() { | ||
312 | return (EAttribute)constantDistributionEClass.getEStructuralFeatures().get(0); | ||
313 | } | ||
314 | |||
315 | /** | ||
316 | * <!-- begin-user-doc --> | ||
317 | * <!-- end-user-doc --> | ||
318 | * @generated | ||
319 | */ | ||
320 | @Override | ||
321 | public EClass getExponentialDistribution() { | ||
322 | return exponentialDistributionEClass; | ||
323 | } | ||
324 | |||
325 | /** | ||
326 | * <!-- begin-user-doc --> | ||
327 | * <!-- end-user-doc --> | ||
328 | * @generated | ||
329 | */ | ||
330 | @Override | ||
331 | public EAttribute getExponentialDistribution_Lambda() { | ||
332 | return (EAttribute)exponentialDistributionEClass.getEStructuralFeatures().get(0); | ||
333 | } | ||
334 | |||
335 | /** | ||
336 | * <!-- begin-user-doc --> | ||
337 | * <!-- end-user-doc --> | ||
338 | * @generated | ||
339 | */ | ||
340 | @Override | ||
341 | public EClass getAndGate() { | ||
342 | return andGateEClass; | ||
343 | } | ||
344 | |||
345 | /** | ||
346 | * <!-- begin-user-doc --> | ||
347 | * <!-- end-user-doc --> | ||
348 | * @generated | ||
349 | */ | ||
350 | @Override | ||
351 | public EClass getOrGate() { | ||
352 | return orGateEClass; | ||
353 | } | ||
354 | |||
355 | /** | ||
356 | * <!-- begin-user-doc --> | ||
357 | * <!-- end-user-doc --> | ||
358 | * @generated | ||
359 | */ | ||
360 | @Override | ||
361 | public EClass getKOfMGate() { | ||
362 | return kOfMGateEClass; | ||
363 | } | ||
364 | |||
365 | /** | ||
366 | * <!-- begin-user-doc --> | ||
367 | * <!-- end-user-doc --> | ||
368 | * @generated | ||
369 | */ | ||
370 | @Override | ||
371 | public EAttribute getKOfMGate_K() { | ||
372 | return (EAttribute)kOfMGateEClass.getEStructuralFeatures().get(0); | ||
373 | } | ||
374 | |||
375 | /** | ||
376 | * <!-- begin-user-doc --> | ||
377 | * <!-- end-user-doc --> | ||
378 | * @generated | ||
379 | */ | ||
380 | @Override | ||
381 | public EClass getReliabilityModel() { | ||
382 | return reliabilityModelEClass; | ||
383 | } | ||
384 | |||
385 | /** | ||
386 | * <!-- begin-user-doc --> | ||
387 | * <!-- end-user-doc --> | ||
388 | * @generated | ||
389 | */ | ||
390 | @Override | ||
391 | public EClass getConstantModel() { | ||
392 | return constantModelEClass; | ||
393 | } | ||
394 | |||
395 | /** | ||
396 | * <!-- begin-user-doc --> | ||
397 | * <!-- end-user-doc --> | ||
398 | * @generated | ||
399 | */ | ||
400 | @Override | ||
401 | public EAttribute getConstantModel_Failed() { | ||
402 | return (EAttribute)constantModelEClass.getEStructuralFeatures().get(0); | ||
403 | } | ||
404 | |||
405 | /** | ||
406 | * <!-- begin-user-doc --> | ||
407 | * <!-- end-user-doc --> | ||
408 | * @generated | ||
409 | */ | ||
410 | @Override | ||
411 | public EClass getEvent() { | ||
412 | return eventEClass; | ||
413 | } | ||
414 | |||
415 | /** | ||
416 | * <!-- begin-user-doc --> | ||
417 | * <!-- end-user-doc --> | ||
418 | * @generated | ||
419 | */ | ||
420 | @Override | ||
421 | public EClass getConstantEvent() { | ||
422 | return constantEventEClass; | ||
423 | } | ||
424 | |||
425 | /** | ||
426 | * <!-- begin-user-doc --> | ||
427 | * <!-- end-user-doc --> | ||
428 | * @generated | ||
429 | */ | ||
430 | @Override | ||
431 | public EAttribute getConstantEvent_Failed() { | ||
432 | return (EAttribute)constantEventEClass.getEStructuralFeatures().get(0); | ||
433 | } | ||
434 | |||
435 | /** | ||
436 | * <!-- begin-user-doc --> | ||
437 | * <!-- end-user-doc --> | ||
438 | * @generated | ||
439 | */ | ||
440 | @Override | ||
441 | public FtFactory getFtFactory() { | ||
442 | return (FtFactory)getEFactoryInstance(); | ||
443 | } | ||
444 | |||
445 | /** | ||
446 | * <!-- begin-user-doc --> | ||
447 | * <!-- end-user-doc --> | ||
448 | * @generated | ||
449 | */ | ||
450 | private boolean isCreated = false; | ||
451 | |||
452 | /** | ||
453 | * Creates the meta-model objects for the package. This method is | ||
454 | * guarded to have no affect on any invocation but its first. | ||
455 | * <!-- begin-user-doc --> | ||
456 | * <!-- end-user-doc --> | ||
457 | * @generated | ||
458 | */ | ||
459 | public void createPackageContents() { | ||
460 | if (isCreated) return; | ||
461 | isCreated = true; | ||
462 | |||
463 | // Create classes and their features | ||
464 | faultTreeEClass = createEClass(FAULT_TREE); | ||
465 | createEReference(faultTreeEClass, FAULT_TREE__EVENTS); | ||
466 | createEReference(faultTreeEClass, FAULT_TREE__TOP_EVENT); | ||
467 | |||
468 | randomEventEClass = createEClass(RANDOM_EVENT); | ||
469 | createEAttribute(randomEventEClass, RANDOM_EVENT__NAME); | ||
470 | |||
471 | basicEventEClass = createEClass(BASIC_EVENT); | ||
472 | createEReference(basicEventEClass, BASIC_EVENT__DISTRIBUTION); | ||
473 | |||
474 | gateEClass = createEClass(GATE); | ||
475 | createEReference(gateEClass, GATE__INPUT_EVENTS); | ||
476 | |||
477 | distributionEClass = createEClass(DISTRIBUTION); | ||
478 | |||
479 | constantDistributionEClass = createEClass(CONSTANT_DISTRIBUTION); | ||
480 | createEAttribute(constantDistributionEClass, CONSTANT_DISTRIBUTION__P); | ||
481 | |||
482 | exponentialDistributionEClass = createEClass(EXPONENTIAL_DISTRIBUTION); | ||
483 | createEAttribute(exponentialDistributionEClass, EXPONENTIAL_DISTRIBUTION__LAMBDA); | ||
484 | |||
485 | andGateEClass = createEClass(AND_GATE); | ||
486 | |||
487 | orGateEClass = createEClass(OR_GATE); | ||
488 | |||
489 | kOfMGateEClass = createEClass(KOF_MGATE); | ||
490 | createEAttribute(kOfMGateEClass, KOF_MGATE__K); | ||
491 | |||
492 | reliabilityModelEClass = createEClass(RELIABILITY_MODEL); | ||
493 | |||
494 | constantModelEClass = createEClass(CONSTANT_MODEL); | ||
495 | createEAttribute(constantModelEClass, CONSTANT_MODEL__FAILED); | ||
496 | |||
497 | eventEClass = createEClass(EVENT); | ||
498 | |||
499 | constantEventEClass = createEClass(CONSTANT_EVENT); | ||
500 | createEAttribute(constantEventEClass, CONSTANT_EVENT__FAILED); | ||
501 | } | ||
502 | |||
503 | /** | ||
504 | * <!-- begin-user-doc --> | ||
505 | * <!-- end-user-doc --> | ||
506 | * @generated | ||
507 | */ | ||
508 | private boolean isInitialized = false; | ||
509 | |||
510 | /** | ||
511 | * Complete the initialization of the package and its meta-model. This | ||
512 | * method is guarded to have no affect on any invocation but its first. | ||
513 | * <!-- begin-user-doc --> | ||
514 | * <!-- end-user-doc --> | ||
515 | * @generated | ||
516 | */ | ||
517 | public void initializePackageContents() { | ||
518 | if (isInitialized) return; | ||
519 | isInitialized = true; | ||
520 | |||
521 | // Initialize package | ||
522 | setName(eNAME); | ||
523 | setNsPrefix(eNS_PREFIX); | ||
524 | setNsURI(eNS_URI); | ||
525 | |||
526 | // Create type parameters | ||
527 | |||
528 | // Set bounds for type parameters | ||
529 | |||
530 | // Add supertypes to classes | ||
531 | faultTreeEClass.getESuperTypes().add(this.getReliabilityModel()); | ||
532 | randomEventEClass.getESuperTypes().add(this.getEvent()); | ||
533 | basicEventEClass.getESuperTypes().add(this.getRandomEvent()); | ||
534 | gateEClass.getESuperTypes().add(this.getRandomEvent()); | ||
535 | constantDistributionEClass.getESuperTypes().add(this.getDistribution()); | ||
536 | exponentialDistributionEClass.getESuperTypes().add(this.getDistribution()); | ||
537 | andGateEClass.getESuperTypes().add(this.getGate()); | ||
538 | orGateEClass.getESuperTypes().add(this.getGate()); | ||
539 | kOfMGateEClass.getESuperTypes().add(this.getGate()); | ||
540 | constantModelEClass.getESuperTypes().add(this.getReliabilityModel()); | ||
541 | constantEventEClass.getESuperTypes().add(this.getEvent()); | ||
542 | |||
543 | // Initialize classes, features, and operations; add parameters | ||
544 | initEClass(faultTreeEClass, FaultTree.class, "FaultTree", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
545 | initEReference(getFaultTree_Events(), this.getRandomEvent(), null, "events", null, 0, -1, FaultTree.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
546 | initEReference(getFaultTree_TopEvent(), this.getRandomEvent(), null, "topEvent", null, 1, 1, FaultTree.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
547 | |||
548 | initEClass(randomEventEClass, RandomEvent.class, "RandomEvent", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
549 | initEAttribute(getRandomEvent_Name(), ecorePackage.getEString(), "name", null, 0, 1, RandomEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
550 | |||
551 | initEClass(basicEventEClass, BasicEvent.class, "BasicEvent", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
552 | initEReference(getBasicEvent_Distribution(), this.getDistribution(), null, "distribution", null, 1, 1, BasicEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
553 | |||
554 | initEClass(gateEClass, Gate.class, "Gate", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
555 | initEReference(getGate_InputEvents(), this.getRandomEvent(), null, "inputEvents", null, 2, -1, Gate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
556 | |||
557 | initEClass(distributionEClass, Distribution.class, "Distribution", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
558 | |||
559 | initEClass(constantDistributionEClass, ConstantDistribution.class, "ConstantDistribution", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
560 | initEAttribute(getConstantDistribution_P(), ecorePackage.getEDouble(), "p", null, 0, 1, ConstantDistribution.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
561 | |||
562 | initEClass(exponentialDistributionEClass, ExponentialDistribution.class, "ExponentialDistribution", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
563 | initEAttribute(getExponentialDistribution_Lambda(), ecorePackage.getEDouble(), "lambda", null, 0, 1, ExponentialDistribution.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
564 | |||
565 | initEClass(andGateEClass, AndGate.class, "AndGate", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
566 | |||
567 | initEClass(orGateEClass, OrGate.class, "OrGate", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
568 | |||
569 | initEClass(kOfMGateEClass, KOfMGate.class, "KOfMGate", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
570 | initEAttribute(getKOfMGate_K(), ecorePackage.getEInt(), "k", null, 0, 1, KOfMGate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
571 | |||
572 | initEClass(reliabilityModelEClass, ReliabilityModel.class, "ReliabilityModel", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
573 | |||
574 | initEClass(constantModelEClass, ConstantModel.class, "ConstantModel", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
575 | initEAttribute(getConstantModel_Failed(), ecorePackage.getEBoolean(), "failed", null, 0, 1, ConstantModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
576 | |||
577 | initEClass(eventEClass, Event.class, "Event", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
578 | |||
579 | initEClass(constantEventEClass, ConstantEvent.class, "ConstantEvent", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
580 | initEAttribute(getConstantEvent_Failed(), ecorePackage.getEBoolean(), "failed", null, 0, 1, ConstantEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
581 | |||
582 | // Create resource | ||
583 | createResource(eNS_URI); | ||
584 | } | ||
585 | |||
586 | } //FtPackageImpl | ||