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

COVERAGE SUMMARY FOR SOURCE FILE [PriorityRangeImpl.java]

nameclass, %method, %block, %line, %
PriorityRangeImpl.java0%   (0/1)0%   (0/19)0%   (0/393)0%   (0/107)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class PriorityRangeImpl0%   (0/1)0%   (0/19)0%   (0/393)0%   (0/107)
PriorityRangeImpl (): void 0%   (0/1)0%   (0/21)0%   (0/8)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/32)0%   (0/8)
eIsSet (int): boolean 0%   (0/1)0%   (0/48)0%   (0/8)
eSet (int, Object): void 0%   (0/1)0%   (0/43)0%   (0/15)
eStaticClass (): EClass 0%   (0/1)0%   (0/2)0%   (0/1)
eUnset (int): void 0%   (0/1)0%   (0/30)0%   (0/15)
getAverage (): int 0%   (0/1)0%   (0/3)0%   (0/1)
getDefault (): int 0%   (0/1)0%   (0/3)0%   (0/1)
getHigh (): int 0%   (0/1)0%   (0/3)0%   (0/1)
getHighest (): int 0%   (0/1)0%   (0/3)0%   (0/1)
getLow (): int 0%   (0/1)0%   (0/3)0%   (0/1)
getLowest (): int 0%   (0/1)0%   (0/3)0%   (0/1)
setAverage (int): void 0%   (0/1)0%   (0/21)0%   (0/5)
setDefault (int): void 0%   (0/1)0%   (0/21)0%   (0/5)
setHigh (int): void 0%   (0/1)0%   (0/21)0%   (0/5)
setHighest (int): void 0%   (0/1)0%   (0/21)0%   (0/5)
setLow (int): void 0%   (0/1)0%   (0/21)0%   (0/5)
setLowest (int): void 0%   (0/1)0%   (0/21)0%   (0/5)
toString (): String 0%   (0/1)0%   (0/73)0%   (0/16)

1/**
2 * <copyright>
3 * </copyright>
4 *
5 * $Id$
6 */
7package scheduler.configuration.impl;
8 
9import org.eclipse.emf.common.notify.Notification;
10 
11import org.eclipse.emf.ecore.EClass;
12 
13import org.eclipse.emf.ecore.impl.ENotificationImpl;
14import org.eclipse.emf.ecore.impl.EObjectImpl;
15 
16import scheduler.configuration.ConfigurationPackage;
17import scheduler.configuration.PriorityRange;
18 
19/**
20 * <!-- begin-user-doc -->
21 * An implementation of the model object '<em><b>Priority Range</b></em>'.
22 * <!-- end-user-doc -->
23 * <p>
24 * The following features are implemented:
25 * <ul>
26 *   <li>{@link scheduler.configuration.impl.PriorityRangeImpl#getHighest <em>Highest</em>}</li>
27 *   <li>{@link scheduler.configuration.impl.PriorityRangeImpl#getHigh <em>High</em>}</li>
28 *   <li>{@link scheduler.configuration.impl.PriorityRangeImpl#getAverage <em>Average</em>}</li>
29 *   <li>{@link scheduler.configuration.impl.PriorityRangeImpl#getLow <em>Low</em>}</li>
30 *   <li>{@link scheduler.configuration.impl.PriorityRangeImpl#getLowest <em>Lowest</em>}</li>
31 *   <li>{@link scheduler.configuration.impl.PriorityRangeImpl#getDefault <em>Default</em>}</li>
32 * </ul>
33 * </p>
34 *
35 * @generated
36 */
37public class PriorityRangeImpl extends EObjectImpl implements PriorityRange {
38        /**
39         * The default value of the '{@link #getHighest() <em>Highest</em>}' attribute.
40         * <!-- begin-user-doc -->
41         * <!-- end-user-doc -->
42         * @see #getHighest()
43         * @generated
44         * @ordered
45         */
46        protected static final int HIGHEST_EDEFAULT = 0;
47 
48        /**
49         * The cached value of the '{@link #getHighest() <em>Highest</em>}' attribute.
50         * <!-- begin-user-doc -->
51         * <!-- end-user-doc -->
52         * @see #getHighest()
53         * @generated
54         * @ordered
55         */
56        protected int highest = HIGHEST_EDEFAULT;
57 
58        /**
59         * The default value of the '{@link #getHigh() <em>High</em>}' attribute.
60         * <!-- begin-user-doc -->
61         * <!-- end-user-doc -->
62         * @see #getHigh()
63         * @generated
64         * @ordered
65         */
66        protected static final int HIGH_EDEFAULT = 0;
67 
68        /**
69         * The cached value of the '{@link #getHigh() <em>High</em>}' attribute.
70         * <!-- begin-user-doc -->
71         * <!-- end-user-doc -->
72         * @see #getHigh()
73         * @generated
74         * @ordered
75         */
76        protected int high = HIGH_EDEFAULT;
77 
78        /**
79         * The default value of the '{@link #getAverage() <em>Average</em>}' attribute.
80         * <!-- begin-user-doc -->
81         * <!-- end-user-doc -->
82         * @see #getAverage()
83         * @generated
84         * @ordered
85         */
86        protected static final int AVERAGE_EDEFAULT = 0;
87 
88        /**
89         * The cached value of the '{@link #getAverage() <em>Average</em>}' attribute.
90         * <!-- begin-user-doc -->
91         * <!-- end-user-doc -->
92         * @see #getAverage()
93         * @generated
94         * @ordered
95         */
96        protected int average = AVERAGE_EDEFAULT;
97 
98        /**
99         * The default value of the '{@link #getLow() <em>Low</em>}' attribute.
100         * <!-- begin-user-doc -->
101         * <!-- end-user-doc -->
102         * @see #getLow()
103         * @generated
104         * @ordered
105         */
106        protected static final int LOW_EDEFAULT = 0;
107 
108        /**
109         * The cached value of the '{@link #getLow() <em>Low</em>}' attribute.
110         * <!-- begin-user-doc -->
111         * <!-- end-user-doc -->
112         * @see #getLow()
113         * @generated
114         * @ordered
115         */
116        protected int low = LOW_EDEFAULT;
117 
118        /**
119         * The default value of the '{@link #getLowest() <em>Lowest</em>}' attribute.
120         * <!-- begin-user-doc -->
121         * <!-- end-user-doc -->
122         * @see #getLowest()
123         * @generated
124         * @ordered
125         */
126        protected static final int LOWEST_EDEFAULT = 0;
127 
128        /**
129         * The cached value of the '{@link #getLowest() <em>Lowest</em>}' attribute.
130         * <!-- begin-user-doc -->
131         * <!-- end-user-doc -->
132         * @see #getLowest()
133         * @generated
134         * @ordered
135         */
136        protected int lowest = LOWEST_EDEFAULT;
137 
138        /**
139         * The default value of the '{@link #getDefault() <em>Default</em>}' attribute.
140         * <!-- begin-user-doc -->
141         * <!-- end-user-doc -->
142         * @see #getDefault()
143         * @generated
144         * @ordered
145         */
146        protected static final int DEFAULT_EDEFAULT = 0;
147 
148        /**
149         * The cached value of the '{@link #getDefault() <em>Default</em>}' attribute.
150         * <!-- begin-user-doc -->
151         * <!-- end-user-doc -->
152         * @see #getDefault()
153         * @generated
154         * @ordered
155         */
156        protected int default_ = DEFAULT_EDEFAULT;
157 
158        /**
159         * <!-- begin-user-doc -->
160         * <!-- end-user-doc -->
161         * @generated
162         */
163        protected PriorityRangeImpl() {
164                super();
165        }
166 
167        /**
168         * <!-- begin-user-doc -->
169         * <!-- end-user-doc -->
170         * @generated
171         */
172        @Override
173        protected EClass eStaticClass() {
174                return ConfigurationPackage.Literals.PRIORITY_RANGE;
175        }
176 
177        /**
178         * <!-- begin-user-doc -->
179         * <!-- end-user-doc -->
180         * @generated
181         */
182        public int getHighest() {
183                return highest;
184        }
185 
186        /**
187         * <!-- begin-user-doc -->
188         * <!-- end-user-doc -->
189         * @generated
190         */
191        public void setHighest(int newHighest) {
192                int oldHighest = highest;
193                highest = newHighest;
194                if (eNotificationRequired())
195                        eNotify(new ENotificationImpl(this, Notification.SET, ConfigurationPackage.PRIORITY_RANGE__HIGHEST, oldHighest, highest));
196        }
197 
198        /**
199         * <!-- begin-user-doc -->
200         * <!-- end-user-doc -->
201         * @generated
202         */
203        public int getHigh() {
204                return high;
205        }
206 
207        /**
208         * <!-- begin-user-doc -->
209         * <!-- end-user-doc -->
210         * @generated
211         */
212        public void setHigh(int newHigh) {
213                int oldHigh = high;
214                high = newHigh;
215                if (eNotificationRequired())
216                        eNotify(new ENotificationImpl(this, Notification.SET, ConfigurationPackage.PRIORITY_RANGE__HIGH, oldHigh, high));
217        }
218 
219        /**
220         * <!-- begin-user-doc -->
221         * <!-- end-user-doc -->
222         * @generated
223         */
224        public int getAverage() {
225                return average;
226        }
227 
228        /**
229         * <!-- begin-user-doc -->
230         * <!-- end-user-doc -->
231         * @generated
232         */
233        public void setAverage(int newAverage) {
234                int oldAverage = average;
235                average = newAverage;
236                if (eNotificationRequired())
237                        eNotify(new ENotificationImpl(this, Notification.SET, ConfigurationPackage.PRIORITY_RANGE__AVERAGE, oldAverage, average));
238        }
239 
240        /**
241         * <!-- begin-user-doc -->
242         * <!-- end-user-doc -->
243         * @generated
244         */
245        public int getLow() {
246                return low;
247        }
248 
249        /**
250         * <!-- begin-user-doc -->
251         * <!-- end-user-doc -->
252         * @generated
253         */
254        public void setLow(int newLow) {
255                int oldLow = low;
256                low = newLow;
257                if (eNotificationRequired())
258                        eNotify(new ENotificationImpl(this, Notification.SET, ConfigurationPackage.PRIORITY_RANGE__LOW, oldLow, low));
259        }
260 
261        /**
262         * <!-- begin-user-doc -->
263         * <!-- end-user-doc -->
264         * @generated
265         */
266        public int getLowest() {
267                return lowest;
268        }
269 
270        /**
271         * <!-- begin-user-doc -->
272         * <!-- end-user-doc -->
273         * @generated
274         */
275        public void setLowest(int newLowest) {
276                int oldLowest = lowest;
277                lowest = newLowest;
278                if (eNotificationRequired())
279                        eNotify(new ENotificationImpl(this, Notification.SET, ConfigurationPackage.PRIORITY_RANGE__LOWEST, oldLowest, lowest));
280        }
281 
282        /**
283         * <!-- begin-user-doc -->
284         * <!-- end-user-doc -->
285         * @generated
286         */
287        public int getDefault() {
288                return default_;
289        }
290 
291        /**
292         * <!-- begin-user-doc -->
293         * <!-- end-user-doc -->
294         * @generated
295         */
296        public void setDefault(int newDefault) {
297                int oldDefault = default_;
298                default_ = newDefault;
299                if (eNotificationRequired())
300                        eNotify(new ENotificationImpl(this, Notification.SET, ConfigurationPackage.PRIORITY_RANGE__DEFAULT, oldDefault, default_));
301        }
302 
303        /**
304         * <!-- begin-user-doc -->
305         * <!-- end-user-doc -->
306         * @generated
307         */
308        @Override
309        public Object eGet(int featureID, boolean resolve, boolean coreType) {
310                switch (featureID) {
311                        case ConfigurationPackage.PRIORITY_RANGE__HIGHEST:
312                                return getHighest();
313                        case ConfigurationPackage.PRIORITY_RANGE__HIGH:
314                                return getHigh();
315                        case ConfigurationPackage.PRIORITY_RANGE__AVERAGE:
316                                return getAverage();
317                        case ConfigurationPackage.PRIORITY_RANGE__LOW:
318                                return getLow();
319                        case ConfigurationPackage.PRIORITY_RANGE__LOWEST:
320                                return getLowest();
321                        case ConfigurationPackage.PRIORITY_RANGE__DEFAULT:
322                                return getDefault();
323                }
324                return super.eGet(featureID, resolve, coreType);
325        }
326 
327        /**
328         * <!-- begin-user-doc -->
329         * <!-- end-user-doc -->
330         * @generated
331         */
332        @Override
333        public void eSet(int featureID, Object newValue) {
334                switch (featureID) {
335                        case ConfigurationPackage.PRIORITY_RANGE__HIGHEST:
336                                setHighest((Integer)newValue);
337                                return;
338                        case ConfigurationPackage.PRIORITY_RANGE__HIGH:
339                                setHigh((Integer)newValue);
340                                return;
341                        case ConfigurationPackage.PRIORITY_RANGE__AVERAGE:
342                                setAverage((Integer)newValue);
343                                return;
344                        case ConfigurationPackage.PRIORITY_RANGE__LOW:
345                                setLow((Integer)newValue);
346                                return;
347                        case ConfigurationPackage.PRIORITY_RANGE__LOWEST:
348                                setLowest((Integer)newValue);
349                                return;
350                        case ConfigurationPackage.PRIORITY_RANGE__DEFAULT:
351                                setDefault((Integer)newValue);
352                                return;
353                }
354                super.eSet(featureID, newValue);
355        }
356 
357        /**
358         * <!-- begin-user-doc -->
359         * <!-- end-user-doc -->
360         * @generated
361         */
362        @Override
363        public void eUnset(int featureID) {
364                switch (featureID) {
365                        case ConfigurationPackage.PRIORITY_RANGE__HIGHEST:
366                                setHighest(HIGHEST_EDEFAULT);
367                                return;
368                        case ConfigurationPackage.PRIORITY_RANGE__HIGH:
369                                setHigh(HIGH_EDEFAULT);
370                                return;
371                        case ConfigurationPackage.PRIORITY_RANGE__AVERAGE:
372                                setAverage(AVERAGE_EDEFAULT);
373                                return;
374                        case ConfigurationPackage.PRIORITY_RANGE__LOW:
375                                setLow(LOW_EDEFAULT);
376                                return;
377                        case ConfigurationPackage.PRIORITY_RANGE__LOWEST:
378                                setLowest(LOWEST_EDEFAULT);
379                                return;
380                        case ConfigurationPackage.PRIORITY_RANGE__DEFAULT:
381                                setDefault(DEFAULT_EDEFAULT);
382                                return;
383                }
384                super.eUnset(featureID);
385        }
386 
387        /**
388         * <!-- begin-user-doc -->
389         * <!-- end-user-doc -->
390         * @generated
391         */
392        @Override
393        public boolean eIsSet(int featureID) {
394                switch (featureID) {
395                        case ConfigurationPackage.PRIORITY_RANGE__HIGHEST:
396                                return highest != HIGHEST_EDEFAULT;
397                        case ConfigurationPackage.PRIORITY_RANGE__HIGH:
398                                return high != HIGH_EDEFAULT;
399                        case ConfigurationPackage.PRIORITY_RANGE__AVERAGE:
400                                return average != AVERAGE_EDEFAULT;
401                        case ConfigurationPackage.PRIORITY_RANGE__LOW:
402                                return low != LOW_EDEFAULT;
403                        case ConfigurationPackage.PRIORITY_RANGE__LOWEST:
404                                return lowest != LOWEST_EDEFAULT;
405                        case ConfigurationPackage.PRIORITY_RANGE__DEFAULT:
406                                return default_ != DEFAULT_EDEFAULT;
407                }
408                return super.eIsSet(featureID);
409        }
410 
411        /**
412         * <!-- begin-user-doc -->
413         * <!-- end-user-doc -->
414         * @generated
415         */
416        @Override
417        public String toString() {
418                if (eIsProxy()) return super.toString();
419 
420                StringBuffer result = new StringBuffer(super.toString());
421                result.append(" (highest: ");
422                result.append(highest);
423                result.append(", high: ");
424                result.append(high);
425                result.append(", average: ");
426                result.append(average);
427                result.append(", low: ");
428                result.append(low);
429                result.append(", lowest: ");
430                result.append(lowest);
431                result.append(", default: ");
432                result.append(default_);
433                result.append(')');
434                return result.toString();
435        }
436 
437} //PriorityRangeImpl

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