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

COVERAGE SUMMARY FOR SOURCE FILE [SchedulerConfigurationImpl.java]

nameclass, %method, %block, %line, %
SchedulerConfigurationImpl.java0%   (0/1)0%   (0/29)0%   (0/729)0%   (0/181)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class SchedulerConfigurationImpl0%   (0/1)0%   (0/29)0%   (0/729)0%   (0/181)
<static initializer> 0%   (0/1)0%   (0/3)0%   (0/2)
SchedulerConfigurationImpl (): void 0%   (0/1)0%   (0/15)0%   (0/6)
basicSetPreemptionConfiguration (PreemptionConfiguration, NotificationChain):... 0%   (0/1)0%   (0/29)0%   (0/6)
basicSetPriorityConfiguration (PriorityConfiguration, NotificationChain): Not... 0%   (0/1)0%   (0/29)0%   (0/6)
basicSetQueueingConfiguration (QueueingConfiguration, NotificationChain): Not... 0%   (0/1)0%   (0/29)0%   (0/6)
basicSetStarvationBoost (StarvationBoost, NotificationChain): NotificationChain 0%   (0/1)0%   (0/29)0%   (0/6)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/35)0%   (0/10)
eInverseRemove (InternalEObject, int, NotificationChain): NotificationChain 0%   (0/1)0%   (0/28)0%   (0/6)
eIsSet (int): boolean 0%   (0/1)0%   (0/71)0%   (0/10)
eSet (int, Object): void 0%   (0/1)0%   (0/50)0%   (0/19)
eStaticClass (): EClass 0%   (0/1)0%   (0/2)0%   (0/1)
eUnset (int): void 0%   (0/1)0%   (0/38)0%   (0/19)
getInterval (): double 0%   (0/1)0%   (0/3)0%   (0/1)
getName (): String 0%   (0/1)0%   (0/3)0%   (0/1)
getPreemptionConfiguration (): PreemptionConfiguration 0%   (0/1)0%   (0/3)0%   (0/1)
getPriorityConfiguration (): PriorityConfiguration 0%   (0/1)0%   (0/3)0%   (0/1)
getQueueingConfiguration (): QueueingConfiguration 0%   (0/1)0%   (0/3)0%   (0/1)
getStarvationBoost (): StarvationBoost 0%   (0/1)0%   (0/3)0%   (0/1)
isInFrontAfterWaiting (): boolean 0%   (0/1)0%   (0/3)0%   (0/1)
isWindows (): boolean 0%   (0/1)0%   (0/3)0%   (0/1)
setInFrontAfterWaiting (boolean): void 0%   (0/1)0%   (0/21)0%   (0/5)
setInterval (double): void 0%   (0/1)0%   (0/21)0%   (0/5)
setName (String): void 0%   (0/1)0%   (0/21)0%   (0/5)
setPreemptionConfiguration (PreemptionConfiguration): void 0%   (0/1)0%   (0/52)0%   (0/11)
setPriorityConfiguration (PriorityConfiguration): void 0%   (0/1)0%   (0/52)0%   (0/11)
setQueueingConfiguration (QueueingConfiguration): void 0%   (0/1)0%   (0/52)0%   (0/11)
setStarvationBoost (StarvationBoost): void 0%   (0/1)0%   (0/52)0%   (0/11)
setWindows (boolean): void 0%   (0/1)0%   (0/21)0%   (0/5)
toString (): String 0%   (0/1)0%   (0/55)0%   (0/12)

1/**
2 * <copyright>
3 * </copyright>
4 *
5 * $Id$
6 */
7package scheduler.configuration.impl;
8 
9import de.uka.ipd.sdq.identifier.impl.IdentifierImpl;
10 
11import org.eclipse.emf.common.notify.Notification;
12import org.eclipse.emf.common.notify.NotificationChain;
13 
14import org.eclipse.emf.ecore.EClass;
15import org.eclipse.emf.ecore.InternalEObject;
16 
17import org.eclipse.emf.ecore.impl.ENotificationImpl;
18 
19import scheduler.configuration.ConfigurationPackage;
20import scheduler.configuration.PreemptionConfiguration;
21import scheduler.configuration.PriorityConfiguration;
22import scheduler.configuration.QueueingConfiguration;
23import scheduler.configuration.SchedulerConfiguration;
24import scheduler.configuration.StarvationBoost;
25 
26/**
27 * <!-- begin-user-doc -->
28 * An implementation of the model object '<em><b>Scheduler Configuration</b></em>'.
29 * <!-- end-user-doc -->
30 * <p>
31 * The following features are implemented:
32 * <ul>
33 *   <li>{@link scheduler.configuration.impl.SchedulerConfigurationImpl#getPriorityConfiguration <em>Priority Configuration</em>}</li>
34 *   <li>{@link scheduler.configuration.impl.SchedulerConfigurationImpl#getPreemptionConfiguration <em>Preemption Configuration</em>}</li>
35 *   <li>{@link scheduler.configuration.impl.SchedulerConfigurationImpl#getName <em>Name</em>}</li>
36 *   <li>{@link scheduler.configuration.impl.SchedulerConfigurationImpl#getQueueingConfiguration <em>Queueing Configuration</em>}</li>
37 *   <li>{@link scheduler.configuration.impl.SchedulerConfigurationImpl#isInFrontAfterWaiting <em>In Front After Waiting</em>}</li>
38 *   <li>{@link scheduler.configuration.impl.SchedulerConfigurationImpl#isWindows <em>Windows</em>}</li>
39 *   <li>{@link scheduler.configuration.impl.SchedulerConfigurationImpl#getInterval <em>Interval</em>}</li>
40 *   <li>{@link scheduler.configuration.impl.SchedulerConfigurationImpl#getStarvationBoost <em>Starvation Boost</em>}</li>
41 * </ul>
42 * </p>
43 *
44 * @generated
45 */
46public class SchedulerConfigurationImpl extends IdentifierImpl implements SchedulerConfiguration {
47        /**
48         * The cached value of the '{@link #getPriorityConfiguration() <em>Priority Configuration</em>}' containment reference.
49         * <!-- begin-user-doc -->
50         * <!-- end-user-doc -->
51         * @see #getPriorityConfiguration()
52         * @generated
53         * @ordered
54         */
55        protected PriorityConfiguration priorityConfiguration;
56 
57        /**
58         * The cached value of the '{@link #getPreemptionConfiguration() <em>Preemption Configuration</em>}' containment reference.
59         * <!-- begin-user-doc -->
60         * <!-- end-user-doc -->
61         * @see #getPreemptionConfiguration()
62         * @generated
63         * @ordered
64         */
65        protected PreemptionConfiguration preemptionConfiguration;
66 
67        /**
68         * The default value of the '{@link #getName() <em>Name</em>}' attribute.
69         * <!-- begin-user-doc -->
70         * <!-- end-user-doc -->
71         * @see #getName()
72         * @generated
73         * @ordered
74         */
75        protected static final String NAME_EDEFAULT = null;
76 
77        /**
78         * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
79         * <!-- begin-user-doc -->
80         * <!-- end-user-doc -->
81         * @see #getName()
82         * @generated
83         * @ordered
84         */
85        protected String name = NAME_EDEFAULT;
86 
87        /**
88         * The cached value of the '{@link #getQueueingConfiguration() <em>Queueing Configuration</em>}' containment reference.
89         * <!-- begin-user-doc -->
90         * <!-- end-user-doc -->
91         * @see #getQueueingConfiguration()
92         * @generated
93         * @ordered
94         */
95        protected QueueingConfiguration queueingConfiguration;
96 
97        /**
98         * The default value of the '{@link #isInFrontAfterWaiting() <em>In Front After Waiting</em>}' attribute.
99         * <!-- begin-user-doc -->
100         * <!-- end-user-doc -->
101         * @see #isInFrontAfterWaiting()
102         * @generated
103         * @ordered
104         */
105        protected static final boolean IN_FRONT_AFTER_WAITING_EDEFAULT = false;
106 
107        /**
108         * The cached value of the '{@link #isInFrontAfterWaiting() <em>In Front After Waiting</em>}' attribute.
109         * <!-- begin-user-doc -->
110         * <!-- end-user-doc -->
111         * @see #isInFrontAfterWaiting()
112         * @generated
113         * @ordered
114         */
115        protected boolean inFrontAfterWaiting = IN_FRONT_AFTER_WAITING_EDEFAULT;
116 
117        /**
118         * The default value of the '{@link #isWindows() <em>Windows</em>}' attribute.
119         * <!-- begin-user-doc -->
120         * <!-- end-user-doc -->
121         * @see #isWindows()
122         * @generated
123         * @ordered
124         */
125        protected static final boolean WINDOWS_EDEFAULT = true;
126 
127        /**
128         * The cached value of the '{@link #isWindows() <em>Windows</em>}' attribute.
129         * <!-- begin-user-doc -->
130         * <!-- end-user-doc -->
131         * @see #isWindows()
132         * @generated
133         * @ordered
134         */
135        protected boolean windows = WINDOWS_EDEFAULT;
136 
137        /**
138         * The default value of the '{@link #getInterval() <em>Interval</em>}' attribute.
139         * <!-- begin-user-doc -->
140         * <!-- end-user-doc -->
141         * @see #getInterval()
142         * @generated
143         * @ordered
144         */
145        protected static final double INTERVAL_EDEFAULT = 0.0;
146 
147        /**
148         * The cached value of the '{@link #getInterval() <em>Interval</em>}' attribute.
149         * <!-- begin-user-doc -->
150         * <!-- end-user-doc -->
151         * @see #getInterval()
152         * @generated
153         * @ordered
154         */
155        protected double interval = INTERVAL_EDEFAULT;
156 
157        /**
158         * The cached value of the '{@link #getStarvationBoost() <em>Starvation Boost</em>}' containment reference.
159         * <!-- begin-user-doc -->
160         * <!-- end-user-doc -->
161         * @see #getStarvationBoost()
162         * @generated
163         * @ordered
164         */
165        protected StarvationBoost starvationBoost;
166 
167        /**
168         * <!-- begin-user-doc -->
169         * <!-- end-user-doc -->
170         * @generated
171         */
172        protected SchedulerConfigurationImpl() {
173                super();
174        }
175 
176        /**
177         * <!-- begin-user-doc -->
178         * <!-- end-user-doc -->
179         * @generated
180         */
181        @Override
182        protected EClass eStaticClass() {
183                return ConfigurationPackage.Literals.SCHEDULER_CONFIGURATION;
184        }
185 
186        /**
187         * <!-- begin-user-doc -->
188         * <!-- end-user-doc -->
189         * @generated
190         */
191        public PriorityConfiguration getPriorityConfiguration() {
192                return priorityConfiguration;
193        }
194 
195        /**
196         * <!-- begin-user-doc -->
197         * <!-- end-user-doc -->
198         * @generated
199         */
200        public NotificationChain basicSetPriorityConfiguration(PriorityConfiguration newPriorityConfiguration, NotificationChain msgs) {
201                PriorityConfiguration oldPriorityConfiguration = priorityConfiguration;
202                priorityConfiguration = newPriorityConfiguration;
203                if (eNotificationRequired()) {
204                        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ConfigurationPackage.SCHEDULER_CONFIGURATION__PRIORITY_CONFIGURATION, oldPriorityConfiguration, newPriorityConfiguration);
205                        if (msgs == null) msgs = notification; else msgs.add(notification);
206                }
207                return msgs;
208        }
209 
210        /**
211         * <!-- begin-user-doc -->
212         * <!-- end-user-doc -->
213         * @generated
214         */
215        public void setPriorityConfiguration(PriorityConfiguration newPriorityConfiguration) {
216                if (newPriorityConfiguration != priorityConfiguration) {
217                        NotificationChain msgs = null;
218                        if (priorityConfiguration != null)
219                                msgs = ((InternalEObject)priorityConfiguration).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ConfigurationPackage.SCHEDULER_CONFIGURATION__PRIORITY_CONFIGURATION, null, msgs);
220                        if (newPriorityConfiguration != null)
221                                msgs = ((InternalEObject)newPriorityConfiguration).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ConfigurationPackage.SCHEDULER_CONFIGURATION__PRIORITY_CONFIGURATION, null, msgs);
222                        msgs = basicSetPriorityConfiguration(newPriorityConfiguration, msgs);
223                        if (msgs != null) msgs.dispatch();
224                }
225                else if (eNotificationRequired())
226                        eNotify(new ENotificationImpl(this, Notification.SET, ConfigurationPackage.SCHEDULER_CONFIGURATION__PRIORITY_CONFIGURATION, newPriorityConfiguration, newPriorityConfiguration));
227        }
228 
229        /**
230         * <!-- begin-user-doc -->
231         * <!-- end-user-doc -->
232         * @generated
233         */
234        public PreemptionConfiguration getPreemptionConfiguration() {
235                return preemptionConfiguration;
236        }
237 
238        /**
239         * <!-- begin-user-doc -->
240         * <!-- end-user-doc -->
241         * @generated
242         */
243        public NotificationChain basicSetPreemptionConfiguration(PreemptionConfiguration newPreemptionConfiguration, NotificationChain msgs) {
244                PreemptionConfiguration oldPreemptionConfiguration = preemptionConfiguration;
245                preemptionConfiguration = newPreemptionConfiguration;
246                if (eNotificationRequired()) {
247                        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ConfigurationPackage.SCHEDULER_CONFIGURATION__PREEMPTION_CONFIGURATION, oldPreemptionConfiguration, newPreemptionConfiguration);
248                        if (msgs == null) msgs = notification; else msgs.add(notification);
249                }
250                return msgs;
251        }
252 
253        /**
254         * <!-- begin-user-doc -->
255         * <!-- end-user-doc -->
256         * @generated
257         */
258        public void setPreemptionConfiguration(PreemptionConfiguration newPreemptionConfiguration) {
259                if (newPreemptionConfiguration != preemptionConfiguration) {
260                        NotificationChain msgs = null;
261                        if (preemptionConfiguration != null)
262                                msgs = ((InternalEObject)preemptionConfiguration).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ConfigurationPackage.SCHEDULER_CONFIGURATION__PREEMPTION_CONFIGURATION, null, msgs);
263                        if (newPreemptionConfiguration != null)
264                                msgs = ((InternalEObject)newPreemptionConfiguration).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ConfigurationPackage.SCHEDULER_CONFIGURATION__PREEMPTION_CONFIGURATION, null, msgs);
265                        msgs = basicSetPreemptionConfiguration(newPreemptionConfiguration, msgs);
266                        if (msgs != null) msgs.dispatch();
267                }
268                else if (eNotificationRequired())
269                        eNotify(new ENotificationImpl(this, Notification.SET, ConfigurationPackage.SCHEDULER_CONFIGURATION__PREEMPTION_CONFIGURATION, newPreemptionConfiguration, newPreemptionConfiguration));
270        }
271 
272        /**
273         * <!-- begin-user-doc -->
274         * <!-- end-user-doc -->
275         * @generated
276         */
277        public String getName() {
278                return name;
279        }
280 
281        /**
282         * <!-- begin-user-doc -->
283         * <!-- end-user-doc -->
284         * @generated
285         */
286        public void setName(String newName) {
287                String oldName = name;
288                name = newName;
289                if (eNotificationRequired())
290                        eNotify(new ENotificationImpl(this, Notification.SET, ConfigurationPackage.SCHEDULER_CONFIGURATION__NAME, oldName, name));
291        }
292 
293        /**
294         * <!-- begin-user-doc -->
295         * <!-- end-user-doc -->
296         * @generated
297         */
298        public QueueingConfiguration getQueueingConfiguration() {
299                return queueingConfiguration;
300        }
301 
302        /**
303         * <!-- begin-user-doc -->
304         * <!-- end-user-doc -->
305         * @generated
306         */
307        public NotificationChain basicSetQueueingConfiguration(QueueingConfiguration newQueueingConfiguration, NotificationChain msgs) {
308                QueueingConfiguration oldQueueingConfiguration = queueingConfiguration;
309                queueingConfiguration = newQueueingConfiguration;
310                if (eNotificationRequired()) {
311                        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ConfigurationPackage.SCHEDULER_CONFIGURATION__QUEUEING_CONFIGURATION, oldQueueingConfiguration, newQueueingConfiguration);
312                        if (msgs == null) msgs = notification; else msgs.add(notification);
313                }
314                return msgs;
315        }
316 
317        /**
318         * <!-- begin-user-doc -->
319         * <!-- end-user-doc -->
320         * @generated
321         */
322        public void setQueueingConfiguration(QueueingConfiguration newQueueingConfiguration) {
323                if (newQueueingConfiguration != queueingConfiguration) {
324                        NotificationChain msgs = null;
325                        if (queueingConfiguration != null)
326                                msgs = ((InternalEObject)queueingConfiguration).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ConfigurationPackage.SCHEDULER_CONFIGURATION__QUEUEING_CONFIGURATION, null, msgs);
327                        if (newQueueingConfiguration != null)
328                                msgs = ((InternalEObject)newQueueingConfiguration).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ConfigurationPackage.SCHEDULER_CONFIGURATION__QUEUEING_CONFIGURATION, null, msgs);
329                        msgs = basicSetQueueingConfiguration(newQueueingConfiguration, msgs);
330                        if (msgs != null) msgs.dispatch();
331                }
332                else if (eNotificationRequired())
333                        eNotify(new ENotificationImpl(this, Notification.SET, ConfigurationPackage.SCHEDULER_CONFIGURATION__QUEUEING_CONFIGURATION, newQueueingConfiguration, newQueueingConfiguration));
334        }
335 
336        /**
337         * <!-- begin-user-doc -->
338         * <!-- end-user-doc -->
339         * @generated
340         */
341        public boolean isInFrontAfterWaiting() {
342                return inFrontAfterWaiting;
343        }
344 
345        /**
346         * <!-- begin-user-doc -->
347         * <!-- end-user-doc -->
348         * @generated
349         */
350        public void setInFrontAfterWaiting(boolean newInFrontAfterWaiting) {
351                boolean oldInFrontAfterWaiting = inFrontAfterWaiting;
352                inFrontAfterWaiting = newInFrontAfterWaiting;
353                if (eNotificationRequired())
354                        eNotify(new ENotificationImpl(this, Notification.SET, ConfigurationPackage.SCHEDULER_CONFIGURATION__IN_FRONT_AFTER_WAITING, oldInFrontAfterWaiting, inFrontAfterWaiting));
355        }
356 
357        /**
358         * <!-- begin-user-doc -->
359         * <!-- end-user-doc -->
360         * @generated
361         */
362        public boolean isWindows() {
363                return windows;
364        }
365 
366        /**
367         * <!-- begin-user-doc -->
368         * <!-- end-user-doc -->
369         * @generated
370         */
371        public void setWindows(boolean newWindows) {
372                boolean oldWindows = windows;
373                windows = newWindows;
374                if (eNotificationRequired())
375                        eNotify(new ENotificationImpl(this, Notification.SET, ConfigurationPackage.SCHEDULER_CONFIGURATION__WINDOWS, oldWindows, windows));
376        }
377 
378        /**
379         * <!-- begin-user-doc -->
380         * <!-- end-user-doc -->
381         * @generated
382         */
383        public double getInterval() {
384                return interval;
385        }
386 
387        /**
388         * <!-- begin-user-doc -->
389         * <!-- end-user-doc -->
390         * @generated
391         */
392        public void setInterval(double newInterval) {
393                double oldInterval = interval;
394                interval = newInterval;
395                if (eNotificationRequired())
396                        eNotify(new ENotificationImpl(this, Notification.SET, ConfigurationPackage.SCHEDULER_CONFIGURATION__INTERVAL, oldInterval, interval));
397        }
398 
399        /**
400         * <!-- begin-user-doc -->
401         * <!-- end-user-doc -->
402         * @generated
403         */
404        public StarvationBoost getStarvationBoost() {
405                return starvationBoost;
406        }
407 
408        /**
409         * <!-- begin-user-doc -->
410         * <!-- end-user-doc -->
411         * @generated
412         */
413        public NotificationChain basicSetStarvationBoost(StarvationBoost newStarvationBoost, NotificationChain msgs) {
414                StarvationBoost oldStarvationBoost = starvationBoost;
415                starvationBoost = newStarvationBoost;
416                if (eNotificationRequired()) {
417                        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ConfigurationPackage.SCHEDULER_CONFIGURATION__STARVATION_BOOST, oldStarvationBoost, newStarvationBoost);
418                        if (msgs == null) msgs = notification; else msgs.add(notification);
419                }
420                return msgs;
421        }
422 
423        /**
424         * <!-- begin-user-doc -->
425         * <!-- end-user-doc -->
426         * @generated
427         */
428        public void setStarvationBoost(StarvationBoost newStarvationBoost) {
429                if (newStarvationBoost != starvationBoost) {
430                        NotificationChain msgs = null;
431                        if (starvationBoost != null)
432                                msgs = ((InternalEObject)starvationBoost).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ConfigurationPackage.SCHEDULER_CONFIGURATION__STARVATION_BOOST, null, msgs);
433                        if (newStarvationBoost != null)
434                                msgs = ((InternalEObject)newStarvationBoost).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ConfigurationPackage.SCHEDULER_CONFIGURATION__STARVATION_BOOST, null, msgs);
435                        msgs = basicSetStarvationBoost(newStarvationBoost, msgs);
436                        if (msgs != null) msgs.dispatch();
437                }
438                else if (eNotificationRequired())
439                        eNotify(new ENotificationImpl(this, Notification.SET, ConfigurationPackage.SCHEDULER_CONFIGURATION__STARVATION_BOOST, newStarvationBoost, newStarvationBoost));
440        }
441 
442        /**
443         * <!-- begin-user-doc -->
444         * <!-- end-user-doc -->
445         * @generated
446         */
447        @Override
448        public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
449                switch (featureID) {
450                        case ConfigurationPackage.SCHEDULER_CONFIGURATION__PRIORITY_CONFIGURATION:
451                                return basicSetPriorityConfiguration(null, msgs);
452                        case ConfigurationPackage.SCHEDULER_CONFIGURATION__PREEMPTION_CONFIGURATION:
453                                return basicSetPreemptionConfiguration(null, msgs);
454                        case ConfigurationPackage.SCHEDULER_CONFIGURATION__QUEUEING_CONFIGURATION:
455                                return basicSetQueueingConfiguration(null, msgs);
456                        case ConfigurationPackage.SCHEDULER_CONFIGURATION__STARVATION_BOOST:
457                                return basicSetStarvationBoost(null, msgs);
458                }
459                return super.eInverseRemove(otherEnd, featureID, msgs);
460        }
461 
462        /**
463         * <!-- begin-user-doc -->
464         * <!-- end-user-doc -->
465         * @generated
466         */
467        @Override
468        public Object eGet(int featureID, boolean resolve, boolean coreType) {
469                switch (featureID) {
470                        case ConfigurationPackage.SCHEDULER_CONFIGURATION__PRIORITY_CONFIGURATION:
471                                return getPriorityConfiguration();
472                        case ConfigurationPackage.SCHEDULER_CONFIGURATION__PREEMPTION_CONFIGURATION:
473                                return getPreemptionConfiguration();
474                        case ConfigurationPackage.SCHEDULER_CONFIGURATION__NAME:
475                                return getName();
476                        case ConfigurationPackage.SCHEDULER_CONFIGURATION__QUEUEING_CONFIGURATION:
477                                return getQueueingConfiguration();
478                        case ConfigurationPackage.SCHEDULER_CONFIGURATION__IN_FRONT_AFTER_WAITING:
479                                return isInFrontAfterWaiting();
480                        case ConfigurationPackage.SCHEDULER_CONFIGURATION__WINDOWS:
481                                return isWindows();
482                        case ConfigurationPackage.SCHEDULER_CONFIGURATION__INTERVAL:
483                                return getInterval();
484                        case ConfigurationPackage.SCHEDULER_CONFIGURATION__STARVATION_BOOST:
485                                return getStarvationBoost();
486                }
487                return super.eGet(featureID, resolve, coreType);
488        }
489 
490        /**
491         * <!-- begin-user-doc -->
492         * <!-- end-user-doc -->
493         * @generated
494         */
495        @Override
496        public void eSet(int featureID, Object newValue) {
497                switch (featureID) {
498                        case ConfigurationPackage.SCHEDULER_CONFIGURATION__PRIORITY_CONFIGURATION:
499                                setPriorityConfiguration((PriorityConfiguration)newValue);
500                                return;
501                        case ConfigurationPackage.SCHEDULER_CONFIGURATION__PREEMPTION_CONFIGURATION:
502                                setPreemptionConfiguration((PreemptionConfiguration)newValue);
503                                return;
504                        case ConfigurationPackage.SCHEDULER_CONFIGURATION__NAME:
505                                setName((String)newValue);
506                                return;
507                        case ConfigurationPackage.SCHEDULER_CONFIGURATION__QUEUEING_CONFIGURATION:
508                                setQueueingConfiguration((QueueingConfiguration)newValue);
509                                return;
510                        case ConfigurationPackage.SCHEDULER_CONFIGURATION__IN_FRONT_AFTER_WAITING:
511                                setInFrontAfterWaiting((Boolean)newValue);
512                                return;
513                        case ConfigurationPackage.SCHEDULER_CONFIGURATION__WINDOWS:
514                                setWindows((Boolean)newValue);
515                                return;
516                        case ConfigurationPackage.SCHEDULER_CONFIGURATION__INTERVAL:
517                                setInterval((Double)newValue);
518                                return;
519                        case ConfigurationPackage.SCHEDULER_CONFIGURATION__STARVATION_BOOST:
520                                setStarvationBoost((StarvationBoost)newValue);
521                                return;
522                }
523                super.eSet(featureID, newValue);
524        }
525 
526        /**
527         * <!-- begin-user-doc -->
528         * <!-- end-user-doc -->
529         * @generated
530         */
531        @Override
532        public void eUnset(int featureID) {
533                switch (featureID) {
534                        case ConfigurationPackage.SCHEDULER_CONFIGURATION__PRIORITY_CONFIGURATION:
535                                setPriorityConfiguration((PriorityConfiguration)null);
536                                return;
537                        case ConfigurationPackage.SCHEDULER_CONFIGURATION__PREEMPTION_CONFIGURATION:
538                                setPreemptionConfiguration((PreemptionConfiguration)null);
539                                return;
540                        case ConfigurationPackage.SCHEDULER_CONFIGURATION__NAME:
541                                setName(NAME_EDEFAULT);
542                                return;
543                        case ConfigurationPackage.SCHEDULER_CONFIGURATION__QUEUEING_CONFIGURATION:
544                                setQueueingConfiguration((QueueingConfiguration)null);
545                                return;
546                        case ConfigurationPackage.SCHEDULER_CONFIGURATION__IN_FRONT_AFTER_WAITING:
547                                setInFrontAfterWaiting(IN_FRONT_AFTER_WAITING_EDEFAULT);
548                                return;
549                        case ConfigurationPackage.SCHEDULER_CONFIGURATION__WINDOWS:
550                                setWindows(WINDOWS_EDEFAULT);
551                                return;
552                        case ConfigurationPackage.SCHEDULER_CONFIGURATION__INTERVAL:
553                                setInterval(INTERVAL_EDEFAULT);
554                                return;
555                        case ConfigurationPackage.SCHEDULER_CONFIGURATION__STARVATION_BOOST:
556                                setStarvationBoost((StarvationBoost)null);
557                                return;
558                }
559                super.eUnset(featureID);
560        }
561 
562        /**
563         * <!-- begin-user-doc -->
564         * <!-- end-user-doc -->
565         * @generated
566         */
567        @Override
568        public boolean eIsSet(int featureID) {
569                switch (featureID) {
570                        case ConfigurationPackage.SCHEDULER_CONFIGURATION__PRIORITY_CONFIGURATION:
571                                return priorityConfiguration != null;
572                        case ConfigurationPackage.SCHEDULER_CONFIGURATION__PREEMPTION_CONFIGURATION:
573                                return preemptionConfiguration != null;
574                        case ConfigurationPackage.SCHEDULER_CONFIGURATION__NAME:
575                                return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
576                        case ConfigurationPackage.SCHEDULER_CONFIGURATION__QUEUEING_CONFIGURATION:
577                                return queueingConfiguration != null;
578                        case ConfigurationPackage.SCHEDULER_CONFIGURATION__IN_FRONT_AFTER_WAITING:
579                                return inFrontAfterWaiting != IN_FRONT_AFTER_WAITING_EDEFAULT;
580                        case ConfigurationPackage.SCHEDULER_CONFIGURATION__WINDOWS:
581                                return windows != WINDOWS_EDEFAULT;
582                        case ConfigurationPackage.SCHEDULER_CONFIGURATION__INTERVAL:
583                                return interval != INTERVAL_EDEFAULT;
584                        case ConfigurationPackage.SCHEDULER_CONFIGURATION__STARVATION_BOOST:
585                                return starvationBoost != null;
586                }
587                return super.eIsSet(featureID);
588        }
589 
590        /**
591         * <!-- begin-user-doc -->
592         * <!-- end-user-doc -->
593         * @generated
594         */
595        @Override
596        public String toString() {
597                if (eIsProxy()) return super.toString();
598 
599                StringBuffer result = new StringBuffer(super.toString());
600                result.append(" (name: ");
601                result.append(name);
602                result.append(", inFrontAfterWaiting: ");
603                result.append(inFrontAfterWaiting);
604                result.append(", Windows: ");
605                result.append(windows);
606                result.append(", interval: ");
607                result.append(interval);
608                result.append(')');
609                return result.toString();
610        }
611 
612} //SchedulerConfigurationImpl

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