EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012)
[all classes][LqnCore.impl]

COVERAGE SUMMARY FOR SOURCE FILE [OutputDistributionTypeImpl.java]

nameclass, %method, %block, %line, %
OutputDistributionTypeImpl.java0%   (0/1)0%   (0/40)0%   (0/1070)0%   (0/261)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class OutputDistributionTypeImpl0%   (0/1)0%   (0/40)0%   (0/1070)0%   (0/261)
<static initializer> 0%   (0/1)0%   (0/24)0%   (0/11)
OutputDistributionTypeImpl (): void 0%   (0/1)0%   (0/33)0%   (0/12)
basicSetOverflowBin (HistogramBinType, NotificationChain): NotificationChain 0%   (0/1)0%   (0/29)0%   (0/6)
basicSetUnderflowBin (HistogramBinType, NotificationChain): NotificationChain 0%   (0/1)0%   (0/29)0%   (0/6)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/47)0%   (0/15)
eInverseRemove (InternalEObject, int, NotificationChain): NotificationChain 0%   (0/1)0%   (0/25)0%   (0/5)
eIsSet (int): boolean 0%   (0/1)0%   (0/181)0%   (0/15)
eSet (int, Object): void 0%   (0/1)0%   (0/69)0%   (0/30)
eStaticClass (): EClass 0%   (0/1)0%   (0/2)0%   (0/1)
eUnset (int): void 0%   (0/1)0%   (0/56)0%   (0/29)
getBinSize (): Object 0%   (0/1)0%   (0/3)0%   (0/1)
getHistogramBin (): EList 0%   (0/1)0%   (0/14)0%   (0/3)
getKurtosis (): Object 0%   (0/1)0%   (0/3)0%   (0/1)
getMax (): Object 0%   (0/1)0%   (0/3)0%   (0/1)
getMean (): Object 0%   (0/1)0%   (0/3)0%   (0/1)
getMidPoint (): Object 0%   (0/1)0%   (0/3)0%   (0/1)
getMin (): Object 0%   (0/1)0%   (0/3)0%   (0/1)
getNumberBins (): BigInteger 0%   (0/1)0%   (0/3)0%   (0/1)
getOverflowBin (): HistogramBinType 0%   (0/1)0%   (0/3)0%   (0/1)
getSkew (): Object 0%   (0/1)0%   (0/3)0%   (0/1)
getStdDev (): Object 0%   (0/1)0%   (0/3)0%   (0/1)
getUnderflowBin (): HistogramBinType 0%   (0/1)0%   (0/3)0%   (0/1)
getXSamples (): AxisType 0%   (0/1)0%   (0/3)0%   (0/1)
isSetNumberBins (): boolean 0%   (0/1)0%   (0/3)0%   (0/1)
isSetXSamples (): boolean 0%   (0/1)0%   (0/3)0%   (0/1)
setBinSize (Object): void 0%   (0/1)0%   (0/21)0%   (0/5)
setKurtosis (Object): void 0%   (0/1)0%   (0/21)0%   (0/5)
setMax (Object): void 0%   (0/1)0%   (0/21)0%   (0/5)
setMean (Object): void 0%   (0/1)0%   (0/21)0%   (0/5)
setMidPoint (Object): void 0%   (0/1)0%   (0/21)0%   (0/5)
setMin (Object): void 0%   (0/1)0%   (0/21)0%   (0/5)
setNumberBins (BigInteger): void 0%   (0/1)0%   (0/32)0%   (0/7)
setOverflowBin (HistogramBinType): void 0%   (0/1)0%   (0/52)0%   (0/11)
setSkew (Object): void 0%   (0/1)0%   (0/21)0%   (0/5)
setStdDev (Object): void 0%   (0/1)0%   (0/21)0%   (0/5)
setUnderflowBin (HistogramBinType): void 0%   (0/1)0%   (0/52)0%   (0/11)
setXSamples (AxisType): void 0%   (0/1)0%   (0/36)0%   (0/7)
toString (): String 0%   (0/1)0%   (0/125)0%   (0/24)
unsetNumberBins (): void 0%   (0/1)0%   (0/27)0%   (0/7)
unsetXSamples (): void 0%   (0/1)0%   (0/27)0%   (0/7)

1/**
2 * <copyright>
3 * </copyright>
4 *
5 * $Id$
6 */
7package LqnCore.impl;
8 
9import LqnCore.AxisType;
10import LqnCore.HistogramBinType;
11import LqnCore.LqnCorePackage;
12import LqnCore.OutputDistributionType;
13 
14import java.math.BigInteger;
15 
16import java.util.Collection;
17 
18import org.eclipse.emf.common.notify.Notification;
19import org.eclipse.emf.common.notify.NotificationChain;
20 
21import org.eclipse.emf.common.util.EList;
22 
23import org.eclipse.emf.ecore.EClass;
24import org.eclipse.emf.ecore.InternalEObject;
25 
26import org.eclipse.emf.ecore.impl.ENotificationImpl;
27import org.eclipse.emf.ecore.impl.EObjectImpl;
28 
29import org.eclipse.emf.ecore.util.EObjectContainmentEList;
30import org.eclipse.emf.ecore.util.InternalEList;
31 
32/**
33 * <!-- begin-user-doc -->
34 * An implementation of the model object '<em><b>Output Distribution Type</b></em>'.
35 * <!-- end-user-doc -->
36 * <p>
37 * The following features are implemented:
38 * <ul>
39 *   <li>{@link LqnCore.impl.OutputDistributionTypeImpl#getUnderflowBin <em>Underflow Bin</em>}</li>
40 *   <li>{@link LqnCore.impl.OutputDistributionTypeImpl#getHistogramBin <em>Histogram Bin</em>}</li>
41 *   <li>{@link LqnCore.impl.OutputDistributionTypeImpl#getOverflowBin <em>Overflow Bin</em>}</li>
42 *   <li>{@link LqnCore.impl.OutputDistributionTypeImpl#getBinSize <em>Bin Size</em>}</li>
43 *   <li>{@link LqnCore.impl.OutputDistributionTypeImpl#getKurtosis <em>Kurtosis</em>}</li>
44 *   <li>{@link LqnCore.impl.OutputDistributionTypeImpl#getMax <em>Max</em>}</li>
45 *   <li>{@link LqnCore.impl.OutputDistributionTypeImpl#getMean <em>Mean</em>}</li>
46 *   <li>{@link LqnCore.impl.OutputDistributionTypeImpl#getMidPoint <em>Mid Point</em>}</li>
47 *   <li>{@link LqnCore.impl.OutputDistributionTypeImpl#getMin <em>Min</em>}</li>
48 *   <li>{@link LqnCore.impl.OutputDistributionTypeImpl#getNumberBins <em>Number Bins</em>}</li>
49 *   <li>{@link LqnCore.impl.OutputDistributionTypeImpl#getSkew <em>Skew</em>}</li>
50 *   <li>{@link LqnCore.impl.OutputDistributionTypeImpl#getStdDev <em>Std Dev</em>}</li>
51 *   <li>{@link LqnCore.impl.OutputDistributionTypeImpl#getXSamples <em>XSamples</em>}</li>
52 * </ul>
53 * </p>
54 *
55 * @generated
56 */
57public class OutputDistributionTypeImpl extends EObjectImpl implements OutputDistributionType {
58        /**
59         * The cached value of the '{@link #getUnderflowBin() <em>Underflow Bin</em>}' containment reference.
60         * <!-- begin-user-doc -->
61         * <!-- end-user-doc -->
62         * @see #getUnderflowBin()
63         * @generated
64         * @ordered
65         */
66        protected HistogramBinType underflowBin;
67 
68        /**
69         * The cached value of the '{@link #getHistogramBin() <em>Histogram Bin</em>}' containment reference list.
70         * <!-- begin-user-doc -->
71         * <!-- end-user-doc -->
72         * @see #getHistogramBin()
73         * @generated
74         * @ordered
75         */
76        protected EList<HistogramBinType> histogramBin;
77 
78        /**
79         * The cached value of the '{@link #getOverflowBin() <em>Overflow Bin</em>}' containment reference.
80         * <!-- begin-user-doc -->
81         * <!-- end-user-doc -->
82         * @see #getOverflowBin()
83         * @generated
84         * @ordered
85         */
86        protected HistogramBinType overflowBin;
87 
88        /**
89         * The default value of the '{@link #getBinSize() <em>Bin Size</em>}' attribute.
90         * <!-- begin-user-doc -->
91         * <!-- end-user-doc -->
92         * @see #getBinSize()
93         * @generated
94         * @ordered
95         */
96        protected static final Object BIN_SIZE_EDEFAULT = null;
97 
98        /**
99         * The cached value of the '{@link #getBinSize() <em>Bin Size</em>}' attribute.
100         * <!-- begin-user-doc -->
101         * <!-- end-user-doc -->
102         * @see #getBinSize()
103         * @generated
104         * @ordered
105         */
106        protected Object binSize = BIN_SIZE_EDEFAULT;
107 
108        /**
109         * The default value of the '{@link #getKurtosis() <em>Kurtosis</em>}' attribute.
110         * <!-- begin-user-doc -->
111         * <!-- end-user-doc -->
112         * @see #getKurtosis()
113         * @generated
114         * @ordered
115         */
116        protected static final Object KURTOSIS_EDEFAULT = null;
117 
118        /**
119         * The cached value of the '{@link #getKurtosis() <em>Kurtosis</em>}' attribute.
120         * <!-- begin-user-doc -->
121         * <!-- end-user-doc -->
122         * @see #getKurtosis()
123         * @generated
124         * @ordered
125         */
126        protected Object kurtosis = KURTOSIS_EDEFAULT;
127 
128        /**
129         * The default value of the '{@link #getMax() <em>Max</em>}' attribute.
130         * <!-- begin-user-doc -->
131         * <!-- end-user-doc -->
132         * @see #getMax()
133         * @generated
134         * @ordered
135         */
136        protected static final Object MAX_EDEFAULT = null;
137 
138        /**
139         * The cached value of the '{@link #getMax() <em>Max</em>}' attribute.
140         * <!-- begin-user-doc -->
141         * <!-- end-user-doc -->
142         * @see #getMax()
143         * @generated
144         * @ordered
145         */
146        protected Object max = MAX_EDEFAULT;
147 
148        /**
149         * The default value of the '{@link #getMean() <em>Mean</em>}' attribute.
150         * <!-- begin-user-doc -->
151         * <!-- end-user-doc -->
152         * @see #getMean()
153         * @generated
154         * @ordered
155         */
156        protected static final Object MEAN_EDEFAULT = null;
157 
158        /**
159         * The cached value of the '{@link #getMean() <em>Mean</em>}' attribute.
160         * <!-- begin-user-doc -->
161         * <!-- end-user-doc -->
162         * @see #getMean()
163         * @generated
164         * @ordered
165         */
166        protected Object mean = MEAN_EDEFAULT;
167 
168        /**
169         * The default value of the '{@link #getMidPoint() <em>Mid Point</em>}' attribute.
170         * <!-- begin-user-doc -->
171         * <!-- end-user-doc -->
172         * @see #getMidPoint()
173         * @generated
174         * @ordered
175         */
176        protected static final Object MID_POINT_EDEFAULT = null;
177 
178        /**
179         * The cached value of the '{@link #getMidPoint() <em>Mid Point</em>}' attribute.
180         * <!-- begin-user-doc -->
181         * <!-- end-user-doc -->
182         * @see #getMidPoint()
183         * @generated
184         * @ordered
185         */
186        protected Object midPoint = MID_POINT_EDEFAULT;
187 
188        /**
189         * The default value of the '{@link #getMin() <em>Min</em>}' attribute.
190         * <!-- begin-user-doc -->
191         * <!-- end-user-doc -->
192         * @see #getMin()
193         * @generated
194         * @ordered
195         */
196        protected static final Object MIN_EDEFAULT = null;
197 
198        /**
199         * The cached value of the '{@link #getMin() <em>Min</em>}' attribute.
200         * <!-- begin-user-doc -->
201         * <!-- end-user-doc -->
202         * @see #getMin()
203         * @generated
204         * @ordered
205         */
206        protected Object min = MIN_EDEFAULT;
207 
208        /**
209         * The default value of the '{@link #getNumberBins() <em>Number Bins</em>}' attribute.
210         * <!-- begin-user-doc -->
211         * <!-- end-user-doc -->
212         * @see #getNumberBins()
213         * @generated
214         * @ordered
215         */
216        protected static final BigInteger NUMBER_BINS_EDEFAULT = new BigInteger("20");
217 
218        /**
219         * The cached value of the '{@link #getNumberBins() <em>Number Bins</em>}' attribute.
220         * <!-- begin-user-doc -->
221         * <!-- end-user-doc -->
222         * @see #getNumberBins()
223         * @generated
224         * @ordered
225         */
226        protected BigInteger numberBins = NUMBER_BINS_EDEFAULT;
227 
228        /**
229         * This is true if the Number Bins attribute has been set.
230         * <!-- begin-user-doc -->
231         * <!-- end-user-doc -->
232         * @generated
233         * @ordered
234         */
235        protected boolean numberBinsESet;
236 
237        /**
238         * The default value of the '{@link #getSkew() <em>Skew</em>}' attribute.
239         * <!-- begin-user-doc -->
240         * <!-- end-user-doc -->
241         * @see #getSkew()
242         * @generated
243         * @ordered
244         */
245        protected static final Object SKEW_EDEFAULT = null;
246 
247        /**
248         * The cached value of the '{@link #getSkew() <em>Skew</em>}' attribute.
249         * <!-- begin-user-doc -->
250         * <!-- end-user-doc -->
251         * @see #getSkew()
252         * @generated
253         * @ordered
254         */
255        protected Object skew = SKEW_EDEFAULT;
256 
257        /**
258         * The default value of the '{@link #getStdDev() <em>Std Dev</em>}' attribute.
259         * <!-- begin-user-doc -->
260         * <!-- end-user-doc -->
261         * @see #getStdDev()
262         * @generated
263         * @ordered
264         */
265        protected static final Object STD_DEV_EDEFAULT = null;
266 
267        /**
268         * The cached value of the '{@link #getStdDev() <em>Std Dev</em>}' attribute.
269         * <!-- begin-user-doc -->
270         * <!-- end-user-doc -->
271         * @see #getStdDev()
272         * @generated
273         * @ordered
274         */
275        protected Object stdDev = STD_DEV_EDEFAULT;
276 
277        /**
278         * The default value of the '{@link #getXSamples() <em>XSamples</em>}' attribute.
279         * <!-- begin-user-doc -->
280         * <!-- end-user-doc -->
281         * @see #getXSamples()
282         * @generated
283         * @ordered
284         */
285        protected static final AxisType XSAMPLES_EDEFAULT = AxisType.LINEAR;
286 
287        /**
288         * The cached value of the '{@link #getXSamples() <em>XSamples</em>}' attribute.
289         * <!-- begin-user-doc -->
290         * <!-- end-user-doc -->
291         * @see #getXSamples()
292         * @generated
293         * @ordered
294         */
295        protected AxisType xSamples = XSAMPLES_EDEFAULT;
296 
297        /**
298         * This is true if the XSamples attribute has been set.
299         * <!-- begin-user-doc -->
300         * <!-- end-user-doc -->
301         * @generated
302         * @ordered
303         */
304        protected boolean xSamplesESet;
305 
306        /**
307         * <!-- begin-user-doc -->
308         * <!-- end-user-doc -->
309         * @generated
310         */
311        protected OutputDistributionTypeImpl() {
312                super();
313        }
314 
315        /**
316         * <!-- begin-user-doc -->
317         * <!-- end-user-doc -->
318         * @generated
319         */
320        @Override
321        protected EClass eStaticClass() {
322                return LqnCorePackage.Literals.OUTPUT_DISTRIBUTION_TYPE;
323        }
324 
325        /**
326         * <!-- begin-user-doc -->
327         * <!-- end-user-doc -->
328         * @generated
329         */
330        public HistogramBinType getUnderflowBin() {
331                return underflowBin;
332        }
333 
334        /**
335         * <!-- begin-user-doc -->
336         * <!-- end-user-doc -->
337         * @generated
338         */
339        public NotificationChain basicSetUnderflowBin(HistogramBinType newUnderflowBin, NotificationChain msgs) {
340                HistogramBinType oldUnderflowBin = underflowBin;
341                underflowBin = newUnderflowBin;
342                if (eNotificationRequired()) {
343                        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__UNDERFLOW_BIN, oldUnderflowBin, newUnderflowBin);
344                        if (msgs == null) msgs = notification; else msgs.add(notification);
345                }
346                return msgs;
347        }
348 
349        /**
350         * <!-- begin-user-doc -->
351         * <!-- end-user-doc -->
352         * @generated
353         */
354        public void setUnderflowBin(HistogramBinType newUnderflowBin) {
355                if (newUnderflowBin != underflowBin) {
356                        NotificationChain msgs = null;
357                        if (underflowBin != null)
358                                msgs = ((InternalEObject)underflowBin).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__UNDERFLOW_BIN, null, msgs);
359                        if (newUnderflowBin != null)
360                                msgs = ((InternalEObject)newUnderflowBin).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__UNDERFLOW_BIN, null, msgs);
361                        msgs = basicSetUnderflowBin(newUnderflowBin, msgs);
362                        if (msgs != null) msgs.dispatch();
363                }
364                else if (eNotificationRequired())
365                        eNotify(new ENotificationImpl(this, Notification.SET, LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__UNDERFLOW_BIN, newUnderflowBin, newUnderflowBin));
366        }
367 
368        /**
369         * <!-- begin-user-doc -->
370         * <!-- end-user-doc -->
371         * @generated
372         */
373        public EList<HistogramBinType> getHistogramBin() {
374                if (histogramBin == null) {
375                        histogramBin = new EObjectContainmentEList<HistogramBinType>(HistogramBinType.class, this, LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__HISTOGRAM_BIN);
376                }
377                return histogramBin;
378        }
379 
380        /**
381         * <!-- begin-user-doc -->
382         * <!-- end-user-doc -->
383         * @generated
384         */
385        public HistogramBinType getOverflowBin() {
386                return overflowBin;
387        }
388 
389        /**
390         * <!-- begin-user-doc -->
391         * <!-- end-user-doc -->
392         * @generated
393         */
394        public NotificationChain basicSetOverflowBin(HistogramBinType newOverflowBin, NotificationChain msgs) {
395                HistogramBinType oldOverflowBin = overflowBin;
396                overflowBin = newOverflowBin;
397                if (eNotificationRequired()) {
398                        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__OVERFLOW_BIN, oldOverflowBin, newOverflowBin);
399                        if (msgs == null) msgs = notification; else msgs.add(notification);
400                }
401                return msgs;
402        }
403 
404        /**
405         * <!-- begin-user-doc -->
406         * <!-- end-user-doc -->
407         * @generated
408         */
409        public void setOverflowBin(HistogramBinType newOverflowBin) {
410                if (newOverflowBin != overflowBin) {
411                        NotificationChain msgs = null;
412                        if (overflowBin != null)
413                                msgs = ((InternalEObject)overflowBin).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__OVERFLOW_BIN, null, msgs);
414                        if (newOverflowBin != null)
415                                msgs = ((InternalEObject)newOverflowBin).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__OVERFLOW_BIN, null, msgs);
416                        msgs = basicSetOverflowBin(newOverflowBin, msgs);
417                        if (msgs != null) msgs.dispatch();
418                }
419                else if (eNotificationRequired())
420                        eNotify(new ENotificationImpl(this, Notification.SET, LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__OVERFLOW_BIN, newOverflowBin, newOverflowBin));
421        }
422 
423        /**
424         * <!-- begin-user-doc -->
425         * <!-- end-user-doc -->
426         * @generated
427         */
428        public Object getBinSize() {
429                return binSize;
430        }
431 
432        /**
433         * <!-- begin-user-doc -->
434         * <!-- end-user-doc -->
435         * @generated
436         */
437        public void setBinSize(Object newBinSize) {
438                Object oldBinSize = binSize;
439                binSize = newBinSize;
440                if (eNotificationRequired())
441                        eNotify(new ENotificationImpl(this, Notification.SET, LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__BIN_SIZE, oldBinSize, binSize));
442        }
443 
444        /**
445         * <!-- begin-user-doc -->
446         * <!-- end-user-doc -->
447         * @generated
448         */
449        public Object getKurtosis() {
450                return kurtosis;
451        }
452 
453        /**
454         * <!-- begin-user-doc -->
455         * <!-- end-user-doc -->
456         * @generated
457         */
458        public void setKurtosis(Object newKurtosis) {
459                Object oldKurtosis = kurtosis;
460                kurtosis = newKurtosis;
461                if (eNotificationRequired())
462                        eNotify(new ENotificationImpl(this, Notification.SET, LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__KURTOSIS, oldKurtosis, kurtosis));
463        }
464 
465        /**
466         * <!-- begin-user-doc -->
467         * <!-- end-user-doc -->
468         * @generated
469         */
470        public Object getMax() {
471                return max;
472        }
473 
474        /**
475         * <!-- begin-user-doc -->
476         * <!-- end-user-doc -->
477         * @generated
478         */
479        public void setMax(Object newMax) {
480                Object oldMax = max;
481                max = newMax;
482                if (eNotificationRequired())
483                        eNotify(new ENotificationImpl(this, Notification.SET, LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__MAX, oldMax, max));
484        }
485 
486        /**
487         * <!-- begin-user-doc -->
488         * <!-- end-user-doc -->
489         * @generated
490         */
491        public Object getMean() {
492                return mean;
493        }
494 
495        /**
496         * <!-- begin-user-doc -->
497         * <!-- end-user-doc -->
498         * @generated
499         */
500        public void setMean(Object newMean) {
501                Object oldMean = mean;
502                mean = newMean;
503                if (eNotificationRequired())
504                        eNotify(new ENotificationImpl(this, Notification.SET, LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__MEAN, oldMean, mean));
505        }
506 
507        /**
508         * <!-- begin-user-doc -->
509         * <!-- end-user-doc -->
510         * @generated
511         */
512        public Object getMidPoint() {
513                return midPoint;
514        }
515 
516        /**
517         * <!-- begin-user-doc -->
518         * <!-- end-user-doc -->
519         * @generated
520         */
521        public void setMidPoint(Object newMidPoint) {
522                Object oldMidPoint = midPoint;
523                midPoint = newMidPoint;
524                if (eNotificationRequired())
525                        eNotify(new ENotificationImpl(this, Notification.SET, LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__MID_POINT, oldMidPoint, midPoint));
526        }
527 
528        /**
529         * <!-- begin-user-doc -->
530         * <!-- end-user-doc -->
531         * @generated
532         */
533        public Object getMin() {
534                return min;
535        }
536 
537        /**
538         * <!-- begin-user-doc -->
539         * <!-- end-user-doc -->
540         * @generated
541         */
542        public void setMin(Object newMin) {
543                Object oldMin = min;
544                min = newMin;
545                if (eNotificationRequired())
546                        eNotify(new ENotificationImpl(this, Notification.SET, LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__MIN, oldMin, min));
547        }
548 
549        /**
550         * <!-- begin-user-doc -->
551         * <!-- end-user-doc -->
552         * @generated
553         */
554        public BigInteger getNumberBins() {
555                return numberBins;
556        }
557 
558        /**
559         * <!-- begin-user-doc -->
560         * <!-- end-user-doc -->
561         * @generated
562         */
563        public void setNumberBins(BigInteger newNumberBins) {
564                BigInteger oldNumberBins = numberBins;
565                numberBins = newNumberBins;
566                boolean oldNumberBinsESet = numberBinsESet;
567                numberBinsESet = true;
568                if (eNotificationRequired())
569                        eNotify(new ENotificationImpl(this, Notification.SET, LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__NUMBER_BINS, oldNumberBins, numberBins, !oldNumberBinsESet));
570        }
571 
572        /**
573         * <!-- begin-user-doc -->
574         * <!-- end-user-doc -->
575         * @generated
576         */
577        public void unsetNumberBins() {
578                BigInteger oldNumberBins = numberBins;
579                boolean oldNumberBinsESet = numberBinsESet;
580                numberBins = NUMBER_BINS_EDEFAULT;
581                numberBinsESet = false;
582                if (eNotificationRequired())
583                        eNotify(new ENotificationImpl(this, Notification.UNSET, LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__NUMBER_BINS, oldNumberBins, NUMBER_BINS_EDEFAULT, oldNumberBinsESet));
584        }
585 
586        /**
587         * <!-- begin-user-doc -->
588         * <!-- end-user-doc -->
589         * @generated
590         */
591        public boolean isSetNumberBins() {
592                return numberBinsESet;
593        }
594 
595        /**
596         * <!-- begin-user-doc -->
597         * <!-- end-user-doc -->
598         * @generated
599         */
600        public Object getSkew() {
601                return skew;
602        }
603 
604        /**
605         * <!-- begin-user-doc -->
606         * <!-- end-user-doc -->
607         * @generated
608         */
609        public void setSkew(Object newSkew) {
610                Object oldSkew = skew;
611                skew = newSkew;
612                if (eNotificationRequired())
613                        eNotify(new ENotificationImpl(this, Notification.SET, LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__SKEW, oldSkew, skew));
614        }
615 
616        /**
617         * <!-- begin-user-doc -->
618         * <!-- end-user-doc -->
619         * @generated
620         */
621        public Object getStdDev() {
622                return stdDev;
623        }
624 
625        /**
626         * <!-- begin-user-doc -->
627         * <!-- end-user-doc -->
628         * @generated
629         */
630        public void setStdDev(Object newStdDev) {
631                Object oldStdDev = stdDev;
632                stdDev = newStdDev;
633                if (eNotificationRequired())
634                        eNotify(new ENotificationImpl(this, Notification.SET, LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__STD_DEV, oldStdDev, stdDev));
635        }
636 
637        /**
638         * <!-- begin-user-doc -->
639         * <!-- end-user-doc -->
640         * @generated
641         */
642        public AxisType getXSamples() {
643                return xSamples;
644        }
645 
646        /**
647         * <!-- begin-user-doc -->
648         * <!-- end-user-doc -->
649         * @generated
650         */
651        public void setXSamples(AxisType newXSamples) {
652                AxisType oldXSamples = xSamples;
653                xSamples = newXSamples == null ? XSAMPLES_EDEFAULT : newXSamples;
654                boolean oldXSamplesESet = xSamplesESet;
655                xSamplesESet = true;
656                if (eNotificationRequired())
657                        eNotify(new ENotificationImpl(this, Notification.SET, LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__XSAMPLES, oldXSamples, xSamples, !oldXSamplesESet));
658        }
659 
660        /**
661         * <!-- begin-user-doc -->
662         * <!-- end-user-doc -->
663         * @generated
664         */
665        public void unsetXSamples() {
666                AxisType oldXSamples = xSamples;
667                boolean oldXSamplesESet = xSamplesESet;
668                xSamples = XSAMPLES_EDEFAULT;
669                xSamplesESet = false;
670                if (eNotificationRequired())
671                        eNotify(new ENotificationImpl(this, Notification.UNSET, LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__XSAMPLES, oldXSamples, XSAMPLES_EDEFAULT, oldXSamplesESet));
672        }
673 
674        /**
675         * <!-- begin-user-doc -->
676         * <!-- end-user-doc -->
677         * @generated
678         */
679        public boolean isSetXSamples() {
680                return xSamplesESet;
681        }
682 
683        /**
684         * <!-- begin-user-doc -->
685         * <!-- end-user-doc -->
686         * @generated
687         */
688        @Override
689        public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
690                switch (featureID) {
691                        case LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__UNDERFLOW_BIN:
692                                return basicSetUnderflowBin(null, msgs);
693                        case LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__HISTOGRAM_BIN:
694                                return ((InternalEList<?>)getHistogramBin()).basicRemove(otherEnd, msgs);
695                        case LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__OVERFLOW_BIN:
696                                return basicSetOverflowBin(null, msgs);
697                }
698                return super.eInverseRemove(otherEnd, featureID, msgs);
699        }
700 
701        /**
702         * <!-- begin-user-doc -->
703         * <!-- end-user-doc -->
704         * @generated
705         */
706        @Override
707        public Object eGet(int featureID, boolean resolve, boolean coreType) {
708                switch (featureID) {
709                        case LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__UNDERFLOW_BIN:
710                                return getUnderflowBin();
711                        case LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__HISTOGRAM_BIN:
712                                return getHistogramBin();
713                        case LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__OVERFLOW_BIN:
714                                return getOverflowBin();
715                        case LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__BIN_SIZE:
716                                return getBinSize();
717                        case LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__KURTOSIS:
718                                return getKurtosis();
719                        case LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__MAX:
720                                return getMax();
721                        case LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__MEAN:
722                                return getMean();
723                        case LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__MID_POINT:
724                                return getMidPoint();
725                        case LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__MIN:
726                                return getMin();
727                        case LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__NUMBER_BINS:
728                                return getNumberBins();
729                        case LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__SKEW:
730                                return getSkew();
731                        case LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__STD_DEV:
732                                return getStdDev();
733                        case LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__XSAMPLES:
734                                return getXSamples();
735                }
736                return super.eGet(featureID, resolve, coreType);
737        }
738 
739        /**
740         * <!-- begin-user-doc -->
741         * <!-- end-user-doc -->
742         * @generated
743         */
744        @SuppressWarnings("unchecked")
745        @Override
746        public void eSet(int featureID, Object newValue) {
747                switch (featureID) {
748                        case LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__UNDERFLOW_BIN:
749                                setUnderflowBin((HistogramBinType)newValue);
750                                return;
751                        case LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__HISTOGRAM_BIN:
752                                getHistogramBin().clear();
753                                getHistogramBin().addAll((Collection<? extends HistogramBinType>)newValue);
754                                return;
755                        case LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__OVERFLOW_BIN:
756                                setOverflowBin((HistogramBinType)newValue);
757                                return;
758                        case LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__BIN_SIZE:
759                                setBinSize(newValue);
760                                return;
761                        case LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__KURTOSIS:
762                                setKurtosis(newValue);
763                                return;
764                        case LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__MAX:
765                                setMax(newValue);
766                                return;
767                        case LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__MEAN:
768                                setMean(newValue);
769                                return;
770                        case LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__MID_POINT:
771                                setMidPoint(newValue);
772                                return;
773                        case LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__MIN:
774                                setMin(newValue);
775                                return;
776                        case LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__NUMBER_BINS:
777                                setNumberBins((BigInteger)newValue);
778                                return;
779                        case LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__SKEW:
780                                setSkew(newValue);
781                                return;
782                        case LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__STD_DEV:
783                                setStdDev(newValue);
784                                return;
785                        case LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__XSAMPLES:
786                                setXSamples((AxisType)newValue);
787                                return;
788                }
789                super.eSet(featureID, newValue);
790        }
791 
792        /**
793         * <!-- begin-user-doc -->
794         * <!-- end-user-doc -->
795         * @generated
796         */
797        @Override
798        public void eUnset(int featureID) {
799                switch (featureID) {
800                        case LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__UNDERFLOW_BIN:
801                                setUnderflowBin((HistogramBinType)null);
802                                return;
803                        case LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__HISTOGRAM_BIN:
804                                getHistogramBin().clear();
805                                return;
806                        case LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__OVERFLOW_BIN:
807                                setOverflowBin((HistogramBinType)null);
808                                return;
809                        case LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__BIN_SIZE:
810                                setBinSize(BIN_SIZE_EDEFAULT);
811                                return;
812                        case LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__KURTOSIS:
813                                setKurtosis(KURTOSIS_EDEFAULT);
814                                return;
815                        case LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__MAX:
816                                setMax(MAX_EDEFAULT);
817                                return;
818                        case LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__MEAN:
819                                setMean(MEAN_EDEFAULT);
820                                return;
821                        case LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__MID_POINT:
822                                setMidPoint(MID_POINT_EDEFAULT);
823                                return;
824                        case LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__MIN:
825                                setMin(MIN_EDEFAULT);
826                                return;
827                        case LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__NUMBER_BINS:
828                                unsetNumberBins();
829                                return;
830                        case LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__SKEW:
831                                setSkew(SKEW_EDEFAULT);
832                                return;
833                        case LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__STD_DEV:
834                                setStdDev(STD_DEV_EDEFAULT);
835                                return;
836                        case LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__XSAMPLES:
837                                unsetXSamples();
838                                return;
839                }
840                super.eUnset(featureID);
841        }
842 
843        /**
844         * <!-- begin-user-doc -->
845         * <!-- end-user-doc -->
846         * @generated
847         */
848        @Override
849        public boolean eIsSet(int featureID) {
850                switch (featureID) {
851                        case LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__UNDERFLOW_BIN:
852                                return underflowBin != null;
853                        case LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__HISTOGRAM_BIN:
854                                return histogramBin != null && !histogramBin.isEmpty();
855                        case LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__OVERFLOW_BIN:
856                                return overflowBin != null;
857                        case LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__BIN_SIZE:
858                                return BIN_SIZE_EDEFAULT == null ? binSize != null : !BIN_SIZE_EDEFAULT.equals(binSize);
859                        case LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__KURTOSIS:
860                                return KURTOSIS_EDEFAULT == null ? kurtosis != null : !KURTOSIS_EDEFAULT.equals(kurtosis);
861                        case LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__MAX:
862                                return MAX_EDEFAULT == null ? max != null : !MAX_EDEFAULT.equals(max);
863                        case LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__MEAN:
864                                return MEAN_EDEFAULT == null ? mean != null : !MEAN_EDEFAULT.equals(mean);
865                        case LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__MID_POINT:
866                                return MID_POINT_EDEFAULT == null ? midPoint != null : !MID_POINT_EDEFAULT.equals(midPoint);
867                        case LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__MIN:
868                                return MIN_EDEFAULT == null ? min != null : !MIN_EDEFAULT.equals(min);
869                        case LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__NUMBER_BINS:
870                                return isSetNumberBins();
871                        case LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__SKEW:
872                                return SKEW_EDEFAULT == null ? skew != null : !SKEW_EDEFAULT.equals(skew);
873                        case LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__STD_DEV:
874                                return STD_DEV_EDEFAULT == null ? stdDev != null : !STD_DEV_EDEFAULT.equals(stdDev);
875                        case LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE__XSAMPLES:
876                                return isSetXSamples();
877                }
878                return super.eIsSet(featureID);
879        }
880 
881        /**
882         * <!-- begin-user-doc -->
883         * <!-- end-user-doc -->
884         * @generated
885         */
886        @Override
887        public String toString() {
888                if (eIsProxy()) return super.toString();
889 
890                StringBuffer result = new StringBuffer(super.toString());
891                result.append(" (binSize: ");
892                result.append(binSize);
893                result.append(", kurtosis: ");
894                result.append(kurtosis);
895                result.append(", max: ");
896                result.append(max);
897                result.append(", mean: ");
898                result.append(mean);
899                result.append(", midPoint: ");
900                result.append(midPoint);
901                result.append(", min: ");
902                result.append(min);
903                result.append(", numberBins: ");
904                if (numberBinsESet) result.append(numberBins); else result.append("<unset>");
905                result.append(", skew: ");
906                result.append(skew);
907                result.append(", stdDev: ");
908                result.append(stdDev);
909                result.append(", xSamples: ");
910                if (xSamplesESet) result.append(xSamples); else result.append("<unset>");
911                result.append(')');
912                return result.toString();
913        }
914 
915} //OutputDistributionTypeImpl

[all classes][LqnCore.impl]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov