1 | /** |
2 | * <copyright> |
3 | * </copyright> |
4 | * |
5 | * $Id$ |
6 | */ |
7 | package de.uka.ipd.sdq.probfunction.impl; |
8 | |
9 | import org.eclipse.emf.ecore.EAttribute; |
10 | import org.eclipse.emf.ecore.EClass; |
11 | import org.eclipse.emf.ecore.EGenericType; |
12 | import org.eclipse.emf.ecore.EPackage; |
13 | import org.eclipse.emf.ecore.EReference; |
14 | import org.eclipse.emf.ecore.ETypeParameter; |
15 | import org.eclipse.emf.ecore.impl.EPackageImpl; |
16 | |
17 | import de.uka.ipd.sdq.probfunction.BoxedPDF; |
18 | import de.uka.ipd.sdq.probfunction.Complex; |
19 | import de.uka.ipd.sdq.probfunction.ContinuousPDF; |
20 | import de.uka.ipd.sdq.probfunction.ContinuousSample; |
21 | import de.uka.ipd.sdq.probfunction.ExponentialDistribution; |
22 | import de.uka.ipd.sdq.probfunction.GammaDistribution; |
23 | import de.uka.ipd.sdq.probfunction.LognormalDistribution; |
24 | import de.uka.ipd.sdq.probfunction.NormalDistribution; |
25 | import de.uka.ipd.sdq.probfunction.ProbabilityDensityFunction; |
26 | import de.uka.ipd.sdq.probfunction.ProbabilityFunction; |
27 | import de.uka.ipd.sdq.probfunction.ProbabilityMassFunction; |
28 | import de.uka.ipd.sdq.probfunction.ProbfunctionFactory; |
29 | import de.uka.ipd.sdq.probfunction.ProbfunctionPackage; |
30 | import de.uka.ipd.sdq.probfunction.Sample; |
31 | import de.uka.ipd.sdq.probfunction.SamplePDF; |
32 | import de.uka.ipd.sdq.units.UnitsPackage; |
33 | |
34 | /** |
35 | * <!-- begin-user-doc --> |
36 | * An implementation of the model <b>Package</b>. |
37 | * <!-- end-user-doc --> |
38 | * @generated |
39 | */ |
40 | public class ProbfunctionPackageImpl extends EPackageImpl implements ProbfunctionPackage { |
41 | /** |
42 | * <!-- begin-user-doc --> |
43 | * <!-- end-user-doc --> |
44 | * @generated |
45 | */ |
46 | public static final String copyright = "Copyright 2007-2009, SDQ, IPD, U Karlsruhe"; |
47 | |
48 | /** |
49 | * <!-- begin-user-doc --> |
50 | * <!-- end-user-doc --> |
51 | * @generated |
52 | */ |
53 | private EClass boxedPDFEClass = null; |
54 | |
55 | /** |
56 | * <!-- begin-user-doc --> |
57 | * <!-- end-user-doc --> |
58 | * @generated |
59 | */ |
60 | private EClass probabilityDensityFunctionEClass = null; |
61 | |
62 | /** |
63 | * <!-- begin-user-doc --> |
64 | * <!-- end-user-doc --> |
65 | * @generated |
66 | */ |
67 | private EClass probabilityFunctionEClass = null; |
68 | |
69 | /** |
70 | * <!-- begin-user-doc --> |
71 | * <!-- end-user-doc --> |
72 | * @generated |
73 | */ |
74 | private EClass continuousSampleEClass = null; |
75 | |
76 | /** |
77 | * <!-- begin-user-doc --> |
78 | * <!-- end-user-doc --> |
79 | * @generated |
80 | */ |
81 | private EClass probabilityMassFunctionEClass = null; |
82 | |
83 | /** |
84 | * <!-- begin-user-doc --> |
85 | * <!-- end-user-doc --> |
86 | * @generated |
87 | */ |
88 | private EClass sampleEClass = null; |
89 | |
90 | /** |
91 | * <!-- begin-user-doc --> |
92 | * <!-- end-user-doc --> |
93 | * @generated |
94 | */ |
95 | private EClass samplePDFEClass = null; |
96 | |
97 | /** |
98 | * <!-- begin-user-doc --> |
99 | * <!-- end-user-doc --> |
100 | * @generated |
101 | */ |
102 | private EClass complexEClass = null; |
103 | |
104 | /** |
105 | * <!-- begin-user-doc --> |
106 | * <!-- end-user-doc --> |
107 | * @generated |
108 | */ |
109 | private EClass continuousPDFEClass = null; |
110 | |
111 | /** |
112 | * <!-- begin-user-doc --> |
113 | * <!-- end-user-doc --> |
114 | * @generated |
115 | */ |
116 | private EClass exponentialDistributionEClass = null; |
117 | |
118 | /** |
119 | * <!-- begin-user-doc --> |
120 | * <!-- end-user-doc --> |
121 | * @generated |
122 | */ |
123 | private EClass normalDistributionEClass = null; |
124 | |
125 | /** |
126 | * <!-- begin-user-doc --> |
127 | * <!-- end-user-doc --> |
128 | * @generated |
129 | */ |
130 | private EClass lognormalDistributionEClass = null; |
131 | |
132 | /** |
133 | * <!-- begin-user-doc --> |
134 | * <!-- end-user-doc --> |
135 | * @generated |
136 | */ |
137 | private EClass gammaDistributionEClass = 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.probfunction.ProbfunctionPackage#eNS_URI |
151 | * @see #init() |
152 | * @generated |
153 | */ |
154 | private ProbfunctionPackageImpl() { |
155 | super(eNS_URI, ProbfunctionFactory.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 ProbfunctionPackage#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 ProbfunctionPackage init() { |
178 | if (isInited) return (ProbfunctionPackage)EPackage.Registry.INSTANCE.getEPackage(ProbfunctionPackage.eNS_URI); |
179 | |
180 | // Obtain or create and register package |
181 | ProbfunctionPackageImpl theProbfunctionPackage = (ProbfunctionPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof ProbfunctionPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new ProbfunctionPackageImpl()); |
182 | |
183 | isInited = true; |
184 | |
185 | // Initialize simple dependencies |
186 | UnitsPackage.eINSTANCE.eClass(); |
187 | |
188 | // Create package meta-data objects |
189 | theProbfunctionPackage.createPackageContents(); |
190 | |
191 | // Initialize created meta-data |
192 | theProbfunctionPackage.initializePackageContents(); |
193 | |
194 | // Mark meta-data to indicate it can't be changed |
195 | theProbfunctionPackage.freeze(); |
196 | |
197 | |
198 | // Update the registry and return the package |
199 | EPackage.Registry.INSTANCE.put(ProbfunctionPackage.eNS_URI, theProbfunctionPackage); |
200 | return theProbfunctionPackage; |
201 | } |
202 | |
203 | /** |
204 | * <!-- begin-user-doc --> |
205 | * <!-- end-user-doc --> |
206 | * @generated |
207 | */ |
208 | public EClass getBoxedPDF() { |
209 | return boxedPDFEClass; |
210 | } |
211 | |
212 | /** |
213 | * <!-- begin-user-doc --> |
214 | * <!-- end-user-doc --> |
215 | * @generated |
216 | */ |
217 | public EReference getBoxedPDF_Samples() { |
218 | return (EReference)boxedPDFEClass.getEStructuralFeatures().get(0); |
219 | } |
220 | |
221 | /** |
222 | * <!-- begin-user-doc --> |
223 | * <!-- end-user-doc --> |
224 | * @generated |
225 | */ |
226 | public EClass getProbabilityDensityFunction() { |
227 | return probabilityDensityFunctionEClass; |
228 | } |
229 | |
230 | /** |
231 | * <!-- begin-user-doc --> |
232 | * <!-- end-user-doc --> |
233 | * @generated |
234 | */ |
235 | public EClass getProbabilityFunction() { |
236 | return probabilityFunctionEClass; |
237 | } |
238 | |
239 | /** |
240 | * <!-- begin-user-doc --> |
241 | * <!-- end-user-doc --> |
242 | * @generated |
243 | */ |
244 | public EClass getContinuousSample() { |
245 | return continuousSampleEClass; |
246 | } |
247 | |
248 | /** |
249 | * <!-- begin-user-doc --> |
250 | * <!-- end-user-doc --> |
251 | * @generated |
252 | */ |
253 | public EAttribute getContinuousSample_Value() { |
254 | return (EAttribute)continuousSampleEClass.getEStructuralFeatures().get(0); |
255 | } |
256 | |
257 | /** |
258 | * <!-- begin-user-doc --> |
259 | * <!-- end-user-doc --> |
260 | * @generated |
261 | */ |
262 | public EAttribute getContinuousSample_Probability() { |
263 | return (EAttribute)continuousSampleEClass.getEStructuralFeatures().get(1); |
264 | } |
265 | |
266 | /** |
267 | * <!-- begin-user-doc --> |
268 | * <!-- end-user-doc --> |
269 | * @generated |
270 | */ |
271 | public EClass getProbabilityMassFunction() { |
272 | return probabilityMassFunctionEClass; |
273 | } |
274 | |
275 | /** |
276 | * <!-- begin-user-doc --> |
277 | * <!-- end-user-doc --> |
278 | * @generated |
279 | */ |
280 | public EReference getProbabilityMassFunction_Samples() { |
281 | return (EReference)probabilityMassFunctionEClass.getEStructuralFeatures().get(0); |
282 | } |
283 | |
284 | /** |
285 | * <!-- begin-user-doc --> |
286 | * <!-- end-user-doc --> |
287 | * @generated |
288 | */ |
289 | public EAttribute getProbabilityMassFunction_OrderedDomain() { |
290 | return (EAttribute)probabilityMassFunctionEClass.getEStructuralFeatures().get(1); |
291 | } |
292 | |
293 | /** |
294 | * <!-- begin-user-doc --> |
295 | * <!-- end-user-doc --> |
296 | * @generated |
297 | */ |
298 | public EClass getSample() { |
299 | return sampleEClass; |
300 | } |
301 | |
302 | /** |
303 | * <!-- begin-user-doc --> |
304 | * <!-- end-user-doc --> |
305 | * @generated |
306 | */ |
307 | public EReference getSample_Value() { |
308 | return (EReference)sampleEClass.getEStructuralFeatures().get(0); |
309 | } |
310 | |
311 | /** |
312 | * <!-- begin-user-doc --> |
313 | * <!-- end-user-doc --> |
314 | * @generated |
315 | */ |
316 | public EAttribute getSample_Probability() { |
317 | return (EAttribute)sampleEClass.getEStructuralFeatures().get(1); |
318 | } |
319 | |
320 | /** |
321 | * <!-- begin-user-doc --> |
322 | * <!-- end-user-doc --> |
323 | * @generated |
324 | */ |
325 | public EClass getSamplePDF() { |
326 | return samplePDFEClass; |
327 | } |
328 | |
329 | /** |
330 | * <!-- begin-user-doc --> |
331 | * <!-- end-user-doc --> |
332 | * @generated |
333 | */ |
334 | public EAttribute getSamplePDF_Distance() { |
335 | return (EAttribute)samplePDFEClass.getEStructuralFeatures().get(0); |
336 | } |
337 | |
338 | /** |
339 | * <!-- begin-user-doc --> |
340 | * <!-- end-user-doc --> |
341 | * @generated |
342 | */ |
343 | public EReference getSamplePDF_Values() { |
344 | return (EReference)samplePDFEClass.getEStructuralFeatures().get(1); |
345 | } |
346 | |
347 | /** |
348 | * <!-- begin-user-doc --> |
349 | * <!-- end-user-doc --> |
350 | * @generated |
351 | */ |
352 | public EClass getComplex() { |
353 | return complexEClass; |
354 | } |
355 | |
356 | /** |
357 | * <!-- begin-user-doc --> |
358 | * <!-- end-user-doc --> |
359 | * @generated |
360 | */ |
361 | public EAttribute getComplex_Real() { |
362 | return (EAttribute)complexEClass.getEStructuralFeatures().get(0); |
363 | } |
364 | |
365 | /** |
366 | * <!-- begin-user-doc --> |
367 | * <!-- end-user-doc --> |
368 | * @generated |
369 | */ |
370 | public EAttribute getComplex_Imaginary() { |
371 | return (EAttribute)complexEClass.getEStructuralFeatures().get(1); |
372 | } |
373 | |
374 | /** |
375 | * <!-- begin-user-doc --> |
376 | * <!-- end-user-doc --> |
377 | * @generated |
378 | */ |
379 | public EClass getContinuousPDF() { |
380 | return continuousPDFEClass; |
381 | } |
382 | |
383 | /** |
384 | * <!-- begin-user-doc --> |
385 | * <!-- end-user-doc --> |
386 | * @generated |
387 | */ |
388 | public EClass getExponentialDistribution() { |
389 | return exponentialDistributionEClass; |
390 | } |
391 | |
392 | /** |
393 | * <!-- begin-user-doc --> |
394 | * <!-- end-user-doc --> |
395 | * @generated |
396 | */ |
397 | public EAttribute getExponentialDistribution_Rate() { |
398 | return (EAttribute)exponentialDistributionEClass.getEStructuralFeatures().get(0); |
399 | } |
400 | |
401 | /** |
402 | * <!-- begin-user-doc --> |
403 | * <!-- end-user-doc --> |
404 | * @generated |
405 | */ |
406 | public EClass getNormalDistribution() { |
407 | return normalDistributionEClass; |
408 | } |
409 | |
410 | /** |
411 | * <!-- begin-user-doc --> |
412 | * <!-- end-user-doc --> |
413 | * @generated |
414 | */ |
415 | public EAttribute getNormalDistribution_Mu() { |
416 | return (EAttribute)normalDistributionEClass.getEStructuralFeatures().get(0); |
417 | } |
418 | |
419 | /** |
420 | * <!-- begin-user-doc --> |
421 | * <!-- end-user-doc --> |
422 | * @generated |
423 | */ |
424 | public EAttribute getNormalDistribution_Sigma() { |
425 | return (EAttribute)normalDistributionEClass.getEStructuralFeatures().get(1); |
426 | } |
427 | |
428 | /** |
429 | * <!-- begin-user-doc --> |
430 | * <!-- end-user-doc --> |
431 | * @generated |
432 | */ |
433 | public EClass getLognormalDistribution() { |
434 | return lognormalDistributionEClass; |
435 | } |
436 | |
437 | /** |
438 | * <!-- begin-user-doc --> |
439 | * <!-- end-user-doc --> |
440 | * @generated |
441 | */ |
442 | public EAttribute getLognormalDistribution_Mu() { |
443 | return (EAttribute)lognormalDistributionEClass.getEStructuralFeatures().get(0); |
444 | } |
445 | |
446 | /** |
447 | * <!-- begin-user-doc --> |
448 | * <!-- end-user-doc --> |
449 | * @generated |
450 | */ |
451 | public EAttribute getLognormalDistribution_Sigma() { |
452 | return (EAttribute)lognormalDistributionEClass.getEStructuralFeatures().get(1); |
453 | } |
454 | |
455 | /** |
456 | * <!-- begin-user-doc --> |
457 | * <!-- end-user-doc --> |
458 | * @generated |
459 | */ |
460 | public EClass getGammaDistribution() { |
461 | return gammaDistributionEClass; |
462 | } |
463 | |
464 | /** |
465 | * <!-- begin-user-doc --> |
466 | * <!-- end-user-doc --> |
467 | * @generated |
468 | */ |
469 | public EAttribute getGammaDistribution_Alpha() { |
470 | return (EAttribute)gammaDistributionEClass.getEStructuralFeatures().get(0); |
471 | } |
472 | |
473 | /** |
474 | * <!-- begin-user-doc --> |
475 | * <!-- end-user-doc --> |
476 | * @generated |
477 | */ |
478 | public EAttribute getGammaDistribution_Theta() { |
479 | return (EAttribute)gammaDistributionEClass.getEStructuralFeatures().get(1); |
480 | } |
481 | |
482 | /** |
483 | * <!-- begin-user-doc --> |
484 | * <!-- end-user-doc --> |
485 | * @generated |
486 | */ |
487 | public ProbfunctionFactory getProbfunctionFactory() { |
488 | return (ProbfunctionFactory)getEFactoryInstance(); |
489 | } |
490 | |
491 | /** |
492 | * <!-- begin-user-doc --> |
493 | * <!-- end-user-doc --> |
494 | * @generated |
495 | */ |
496 | private boolean isCreated = false; |
497 | |
498 | /** |
499 | * Creates the meta-model objects for the package. This method is |
500 | * guarded to have no affect on any invocation but its first. |
501 | * <!-- begin-user-doc --> |
502 | * <!-- end-user-doc --> |
503 | * @generated |
504 | */ |
505 | public void createPackageContents() { |
506 | if (isCreated) return; |
507 | isCreated = true; |
508 | |
509 | // Create classes and their features |
510 | boxedPDFEClass = createEClass(BOXED_PDF); |
511 | createEReference(boxedPDFEClass, BOXED_PDF__SAMPLES); |
512 | |
513 | probabilityDensityFunctionEClass = createEClass(PROBABILITY_DENSITY_FUNCTION); |
514 | |
515 | probabilityFunctionEClass = createEClass(PROBABILITY_FUNCTION); |
516 | |
517 | continuousSampleEClass = createEClass(CONTINUOUS_SAMPLE); |
518 | createEAttribute(continuousSampleEClass, CONTINUOUS_SAMPLE__VALUE); |
519 | createEAttribute(continuousSampleEClass, CONTINUOUS_SAMPLE__PROBABILITY); |
520 | |
521 | probabilityMassFunctionEClass = createEClass(PROBABILITY_MASS_FUNCTION); |
522 | createEReference(probabilityMassFunctionEClass, PROBABILITY_MASS_FUNCTION__SAMPLES); |
523 | createEAttribute(probabilityMassFunctionEClass, PROBABILITY_MASS_FUNCTION__ORDERED_DOMAIN); |
524 | |
525 | sampleEClass = createEClass(SAMPLE); |
526 | createEReference(sampleEClass, SAMPLE__VALUE); |
527 | createEAttribute(sampleEClass, SAMPLE__PROBABILITY); |
528 | |
529 | samplePDFEClass = createEClass(SAMPLE_PDF); |
530 | createEAttribute(samplePDFEClass, SAMPLE_PDF__DISTANCE); |
531 | createEReference(samplePDFEClass, SAMPLE_PDF__VALUES); |
532 | |
533 | complexEClass = createEClass(COMPLEX); |
534 | createEAttribute(complexEClass, COMPLEX__REAL); |
535 | createEAttribute(complexEClass, COMPLEX__IMAGINARY); |
536 | |
537 | continuousPDFEClass = createEClass(CONTINUOUS_PDF); |
538 | |
539 | exponentialDistributionEClass = createEClass(EXPONENTIAL_DISTRIBUTION); |
540 | createEAttribute(exponentialDistributionEClass, EXPONENTIAL_DISTRIBUTION__RATE); |
541 | |
542 | normalDistributionEClass = createEClass(NORMAL_DISTRIBUTION); |
543 | createEAttribute(normalDistributionEClass, NORMAL_DISTRIBUTION__MU); |
544 | createEAttribute(normalDistributionEClass, NORMAL_DISTRIBUTION__SIGMA); |
545 | |
546 | lognormalDistributionEClass = createEClass(LOGNORMAL_DISTRIBUTION); |
547 | createEAttribute(lognormalDistributionEClass, LOGNORMAL_DISTRIBUTION__MU); |
548 | createEAttribute(lognormalDistributionEClass, LOGNORMAL_DISTRIBUTION__SIGMA); |
549 | |
550 | gammaDistributionEClass = createEClass(GAMMA_DISTRIBUTION); |
551 | createEAttribute(gammaDistributionEClass, GAMMA_DISTRIBUTION__ALPHA); |
552 | createEAttribute(gammaDistributionEClass, GAMMA_DISTRIBUTION__THETA); |
553 | } |
554 | |
555 | /** |
556 | * <!-- begin-user-doc --> |
557 | * <!-- end-user-doc --> |
558 | * @generated |
559 | */ |
560 | private boolean isInitialized = false; |
561 | |
562 | /** |
563 | * Complete the initialization of the package and its meta-model. This |
564 | * method is guarded to have no affect on any invocation but its first. |
565 | * <!-- begin-user-doc --> |
566 | * <!-- end-user-doc --> |
567 | * @generated |
568 | */ |
569 | public void initializePackageContents() { |
570 | if (isInitialized) return; |
571 | isInitialized = true; |
572 | |
573 | // Initialize package |
574 | setName(eNAME); |
575 | setNsPrefix(eNS_PREFIX); |
576 | setNsURI(eNS_URI); |
577 | |
578 | // Obtain other dependent packages |
579 | UnitsPackage theUnitsPackage = (UnitsPackage)EPackage.Registry.INSTANCE.getEPackage(UnitsPackage.eNS_URI); |
580 | |
581 | // Create type parameters |
582 | ETypeParameter sampleEClass_T = addETypeParameter(sampleEClass, "T"); |
583 | |
584 | // Set bounds for type parameters |
585 | |
586 | // Add supertypes to classes |
587 | boxedPDFEClass.getESuperTypes().add(this.getProbabilityDensityFunction()); |
588 | probabilityDensityFunctionEClass.getESuperTypes().add(this.getProbabilityFunction()); |
589 | probabilityFunctionEClass.getESuperTypes().add(theUnitsPackage.getUnitCarryingElement()); |
590 | probabilityMassFunctionEClass.getESuperTypes().add(this.getProbabilityFunction()); |
591 | samplePDFEClass.getESuperTypes().add(this.getProbabilityDensityFunction()); |
592 | continuousPDFEClass.getESuperTypes().add(this.getProbabilityDensityFunction()); |
593 | exponentialDistributionEClass.getESuperTypes().add(this.getContinuousPDF()); |
594 | normalDistributionEClass.getESuperTypes().add(this.getContinuousPDF()); |
595 | lognormalDistributionEClass.getESuperTypes().add(this.getContinuousPDF()); |
596 | gammaDistributionEClass.getESuperTypes().add(this.getContinuousPDF()); |
597 | |
598 | // Initialize classes and features; add operations and parameters |
599 | initEClass(boxedPDFEClass, BoxedPDF.class, "BoxedPDF", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
600 | initEReference(getBoxedPDF_Samples(), this.getContinuousSample(), null, "samples", null, 0, -1, BoxedPDF.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
601 | |
602 | initEClass(probabilityDensityFunctionEClass, ProbabilityDensityFunction.class, "ProbabilityDensityFunction", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
603 | |
604 | initEClass(probabilityFunctionEClass, ProbabilityFunction.class, "ProbabilityFunction", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
605 | |
606 | initEClass(continuousSampleEClass, ContinuousSample.class, "ContinuousSample", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
607 | initEAttribute(getContinuousSample_Value(), ecorePackage.getEDouble(), "value", null, 0, 1, ContinuousSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
608 | initEAttribute(getContinuousSample_Probability(), ecorePackage.getEDouble(), "probability", null, 0, 1, ContinuousSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
609 | |
610 | initEClass(probabilityMassFunctionEClass, ProbabilityMassFunction.class, "ProbabilityMassFunction", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
611 | initEReference(getProbabilityMassFunction_Samples(), this.getSample(), null, "samples", null, 0, -1, ProbabilityMassFunction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
612 | initEAttribute(getProbabilityMassFunction_OrderedDomain(), ecorePackage.getEBoolean(), "orderedDomain", null, 1, 1, ProbabilityMassFunction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
613 | |
614 | initEClass(sampleEClass, Sample.class, "Sample", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
615 | EGenericType g1 = createEGenericType(sampleEClass_T); |
616 | initEReference(getSample_Value(), g1, null, "value", null, 1, 1, Sample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
617 | initEAttribute(getSample_Probability(), ecorePackage.getEDouble(), "probability", null, 0, 1, Sample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
618 | |
619 | initEClass(samplePDFEClass, SamplePDF.class, "SamplePDF", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
620 | initEAttribute(getSamplePDF_Distance(), ecorePackage.getEDouble(), "distance", null, 0, 1, SamplePDF.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
621 | initEReference(getSamplePDF_Values(), this.getComplex(), null, "values", null, 0, -1, SamplePDF.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
622 | |
623 | initEClass(complexEClass, Complex.class, "Complex", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
624 | initEAttribute(getComplex_Real(), ecorePackage.getEDouble(), "real", null, 1, 1, Complex.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
625 | initEAttribute(getComplex_Imaginary(), ecorePackage.getEDouble(), "imaginary", null, 1, 1, Complex.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
626 | |
627 | initEClass(continuousPDFEClass, ContinuousPDF.class, "ContinuousPDF", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
628 | |
629 | initEClass(exponentialDistributionEClass, ExponentialDistribution.class, "ExponentialDistribution", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
630 | initEAttribute(getExponentialDistribution_Rate(), ecorePackage.getEDouble(), "rate", null, 1, 1, ExponentialDistribution.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
631 | |
632 | initEClass(normalDistributionEClass, NormalDistribution.class, "NormalDistribution", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
633 | initEAttribute(getNormalDistribution_Mu(), ecorePackage.getEDouble(), "mu", null, 1, 1, NormalDistribution.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
634 | initEAttribute(getNormalDistribution_Sigma(), ecorePackage.getEDouble(), "sigma", null, 1, 1, NormalDistribution.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
635 | |
636 | initEClass(lognormalDistributionEClass, LognormalDistribution.class, "LognormalDistribution", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
637 | initEAttribute(getLognormalDistribution_Mu(), ecorePackage.getEDouble(), "mu", null, 1, 1, LognormalDistribution.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
638 | initEAttribute(getLognormalDistribution_Sigma(), ecorePackage.getEDouble(), "sigma", null, 1, 1, LognormalDistribution.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
639 | |
640 | initEClass(gammaDistributionEClass, GammaDistribution.class, "GammaDistribution", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
641 | initEAttribute(getGammaDistribution_Alpha(), ecorePackage.getEDouble(), "alpha", null, 1, 1, GammaDistribution.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
642 | initEAttribute(getGammaDistribution_Theta(), ecorePackage.getEDouble(), "theta", null, 1, 1, GammaDistribution.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
643 | |
644 | // Create resource |
645 | createResource(eNS_URI); |
646 | } |
647 | |
648 | } //ProbfunctionPackageImpl |