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

COVERAGE SUMMARY FOR SOURCE FILE [TaskTypeImpl.java]

nameclass, %method, %block, %line, %
TaskTypeImpl.java0%   (0/1)0%   (0/45)0%   (0/1113)0%   (0/276)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class TaskTypeImpl0%   (0/1)0%   (0/45)0%   (0/1113)0%   (0/276)
<static initializer> 0%   (0/1)0%   (0/33)0%   (0/9)
TaskTypeImpl (): void 0%   (0/1)0%   (0/27)0%   (0/10)
basicSetTaskActivities (TaskActivityGraph, NotificationChain): NotificationChain 0%   (0/1)0%   (0/29)0%   (0/6)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/44)0%   (0/14)
eInverseRemove (InternalEObject, int, NotificationChain): NotificationChain 0%   (0/1)0%   (0/34)0%   (0/6)
eIsSet (int): boolean 0%   (0/1)0%   (0/85)0%   (0/14)
eSet (int, Object): void 0%   (0/1)0%   (0/81)0%   (0/30)
eStaticClass (): EClass 0%   (0/1)0%   (0/2)0%   (0/1)
eUnset (int): void 0%   (0/1)0%   (0/47)0%   (0/27)
getActivityGraph (): TaskOptionType 0%   (0/1)0%   (0/3)0%   (0/1)
getEntry (): EList 0%   (0/1)0%   (0/14)0%   (0/3)
getMultiplicity (): BigInteger 0%   (0/1)0%   (0/3)0%   (0/1)
getName (): String 0%   (0/1)0%   (0/3)0%   (0/1)
getPriority (): BigInteger 0%   (0/1)0%   (0/3)0%   (0/1)
getQueueLength (): BigInteger 0%   (0/1)0%   (0/3)0%   (0/1)
getReplication (): BigInteger 0%   (0/1)0%   (0/3)0%   (0/1)
getResultTask (): EList 0%   (0/1)0%   (0/14)0%   (0/3)
getScheduling (): TaskSchedulingType 0%   (0/1)0%   (0/3)0%   (0/1)
getService (): EList 0%   (0/1)0%   (0/14)0%   (0/3)
getTaskActivities (): TaskActivityGraph 0%   (0/1)0%   (0/3)0%   (0/1)
getThinkTime (): Object 0%   (0/1)0%   (0/3)0%   (0/1)
isSetActivityGraph (): boolean 0%   (0/1)0%   (0/3)0%   (0/1)
isSetMultiplicity (): boolean 0%   (0/1)0%   (0/3)0%   (0/1)
isSetPriority (): boolean 0%   (0/1)0%   (0/3)0%   (0/1)
isSetQueueLength (): boolean 0%   (0/1)0%   (0/3)0%   (0/1)
isSetReplication (): boolean 0%   (0/1)0%   (0/3)0%   (0/1)
isSetScheduling (): boolean 0%   (0/1)0%   (0/3)0%   (0/1)
isSetThinkTime (): boolean 0%   (0/1)0%   (0/3)0%   (0/1)
setActivityGraph (TaskOptionType): void 0%   (0/1)0%   (0/36)0%   (0/7)
setMultiplicity (BigInteger): void 0%   (0/1)0%   (0/32)0%   (0/7)
setName (String): void 0%   (0/1)0%   (0/21)0%   (0/5)
setPriority (BigInteger): void 0%   (0/1)0%   (0/32)0%   (0/7)
setQueueLength (BigInteger): void 0%   (0/1)0%   (0/32)0%   (0/7)
setReplication (BigInteger): void 0%   (0/1)0%   (0/32)0%   (0/7)
setScheduling (TaskSchedulingType): void 0%   (0/1)0%   (0/36)0%   (0/7)
setTaskActivities (TaskActivityGraph): void 0%   (0/1)0%   (0/52)0%   (0/11)
setThinkTime (Object): void 0%   (0/1)0%   (0/32)0%   (0/7)
toString (): String 0%   (0/1)0%   (0/147)0%   (0/20)
unsetActivityGraph (): void 0%   (0/1)0%   (0/27)0%   (0/7)
unsetMultiplicity (): void 0%   (0/1)0%   (0/27)0%   (0/7)
unsetPriority (): void 0%   (0/1)0%   (0/27)0%   (0/7)
unsetQueueLength (): void 0%   (0/1)0%   (0/27)0%   (0/7)
unsetReplication (): void 0%   (0/1)0%   (0/27)0%   (0/7)
unsetScheduling (): void 0%   (0/1)0%   (0/27)0%   (0/7)
unsetThinkTime (): 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.EntryType;
10import LqnCore.LqnCoreFactory;
11import LqnCore.LqnCorePackage;
12import LqnCore.OutputResultType;
13import LqnCore.ServiceType;
14import LqnCore.TaskActivityGraph;
15import LqnCore.TaskOptionType;
16import LqnCore.TaskSchedulingType;
17import LqnCore.TaskType;
18 
19import java.math.BigInteger;
20 
21import java.util.Collection;
22 
23import org.eclipse.emf.common.notify.Notification;
24import org.eclipse.emf.common.notify.NotificationChain;
25 
26import org.eclipse.emf.common.util.EList;
27 
28import org.eclipse.emf.ecore.EClass;
29import org.eclipse.emf.ecore.InternalEObject;
30 
31import org.eclipse.emf.ecore.impl.ENotificationImpl;
32import org.eclipse.emf.ecore.impl.EObjectImpl;
33 
34import org.eclipse.emf.ecore.util.EObjectContainmentEList;
35import org.eclipse.emf.ecore.util.InternalEList;
36 
37/**
38 * <!-- begin-user-doc -->
39 * An implementation of the model object '<em><b>Task Type</b></em>'.
40 * <!-- end-user-doc -->
41 * <p>
42 * The following features are implemented:
43 * <ul>
44 *   <li>{@link LqnCore.impl.TaskTypeImpl#getResultTask <em>Result Task</em>}</li>
45 *   <li>{@link LqnCore.impl.TaskTypeImpl#getEntry <em>Entry</em>}</li>
46 *   <li>{@link LqnCore.impl.TaskTypeImpl#getService <em>Service</em>}</li>
47 *   <li>{@link LqnCore.impl.TaskTypeImpl#getTaskActivities <em>Task Activities</em>}</li>
48 *   <li>{@link LqnCore.impl.TaskTypeImpl#getActivityGraph <em>Activity Graph</em>}</li>
49 *   <li>{@link LqnCore.impl.TaskTypeImpl#getMultiplicity <em>Multiplicity</em>}</li>
50 *   <li>{@link LqnCore.impl.TaskTypeImpl#getName <em>Name</em>}</li>
51 *   <li>{@link LqnCore.impl.TaskTypeImpl#getPriority <em>Priority</em>}</li>
52 *   <li>{@link LqnCore.impl.TaskTypeImpl#getQueueLength <em>Queue Length</em>}</li>
53 *   <li>{@link LqnCore.impl.TaskTypeImpl#getReplication <em>Replication</em>}</li>
54 *   <li>{@link LqnCore.impl.TaskTypeImpl#getScheduling <em>Scheduling</em>}</li>
55 *   <li>{@link LqnCore.impl.TaskTypeImpl#getThinkTime <em>Think Time</em>}</li>
56 * </ul>
57 * </p>
58 *
59 * @generated
60 */
61public class TaskTypeImpl extends EObjectImpl implements TaskType {
62        /**
63         * The cached value of the '{@link #getResultTask() <em>Result Task</em>}' containment reference list.
64         * <!-- begin-user-doc -->
65         * <!-- end-user-doc -->
66         * @see #getResultTask()
67         * @generated
68         * @ordered
69         */
70        protected EList<OutputResultType> resultTask;
71 
72        /**
73         * The cached value of the '{@link #getEntry() <em>Entry</em>}' containment reference list.
74         * <!-- begin-user-doc -->
75         * <!-- end-user-doc -->
76         * @see #getEntry()
77         * @generated
78         * @ordered
79         */
80        protected EList<EntryType> entry;
81 
82        /**
83         * The cached value of the '{@link #getService() <em>Service</em>}' containment reference list.
84         * <!-- begin-user-doc -->
85         * <!-- end-user-doc -->
86         * @see #getService()
87         * @generated
88         * @ordered
89         */
90        protected EList<ServiceType> service;
91 
92        /**
93         * The cached value of the '{@link #getTaskActivities() <em>Task Activities</em>}' containment reference.
94         * <!-- begin-user-doc -->
95         * <!-- end-user-doc -->
96         * @see #getTaskActivities()
97         * @generated
98         * @ordered
99         */
100        protected TaskActivityGraph taskActivities;
101 
102        /**
103         * The default value of the '{@link #getActivityGraph() <em>Activity Graph</em>}' attribute.
104         * <!-- begin-user-doc -->
105         * <!-- end-user-doc -->
106         * @see #getActivityGraph()
107         * @generated
108         * @ordered
109         */
110        protected static final TaskOptionType ACTIVITY_GRAPH_EDEFAULT = TaskOptionType.YES;
111 
112        /**
113         * The cached value of the '{@link #getActivityGraph() <em>Activity Graph</em>}' attribute.
114         * <!-- begin-user-doc -->
115         * <!-- end-user-doc -->
116         * @see #getActivityGraph()
117         * @generated
118         * @ordered
119         */
120        protected TaskOptionType activityGraph = ACTIVITY_GRAPH_EDEFAULT;
121 
122        /**
123         * This is true if the Activity Graph attribute has been set.
124         * <!-- begin-user-doc -->
125         * <!-- end-user-doc -->
126         * @generated
127         * @ordered
128         */
129        protected boolean activityGraphESet;
130 
131        /**
132         * The default value of the '{@link #getMultiplicity() <em>Multiplicity</em>}' attribute.
133         * <!-- begin-user-doc -->
134         * <!-- end-user-doc -->
135         * @see #getMultiplicity()
136         * @generated
137         * @ordered
138         */
139        protected static final BigInteger MULTIPLICITY_EDEFAULT = new BigInteger("1");
140 
141        /**
142         * The cached value of the '{@link #getMultiplicity() <em>Multiplicity</em>}' attribute.
143         * <!-- begin-user-doc -->
144         * <!-- end-user-doc -->
145         * @see #getMultiplicity()
146         * @generated
147         * @ordered
148         */
149        protected BigInteger multiplicity = MULTIPLICITY_EDEFAULT;
150 
151        /**
152         * This is true if the Multiplicity attribute has been set.
153         * <!-- begin-user-doc -->
154         * <!-- end-user-doc -->
155         * @generated
156         * @ordered
157         */
158        protected boolean multiplicityESet;
159 
160        /**
161         * The default value of the '{@link #getName() <em>Name</em>}' attribute.
162         * <!-- begin-user-doc -->
163         * <!-- end-user-doc -->
164         * @see #getName()
165         * @generated
166         * @ordered
167         */
168        protected static final String NAME_EDEFAULT = null;
169 
170        /**
171         * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
172         * <!-- begin-user-doc -->
173         * <!-- end-user-doc -->
174         * @see #getName()
175         * @generated
176         * @ordered
177         */
178        protected String name = NAME_EDEFAULT;
179 
180        /**
181         * The default value of the '{@link #getPriority() <em>Priority</em>}' attribute.
182         * <!-- begin-user-doc -->
183         * <!-- end-user-doc -->
184         * @see #getPriority()
185         * @generated
186         * @ordered
187         */
188        protected static final BigInteger PRIORITY_EDEFAULT = new BigInteger("0");
189 
190        /**
191         * The cached value of the '{@link #getPriority() <em>Priority</em>}' attribute.
192         * <!-- begin-user-doc -->
193         * <!-- end-user-doc -->
194         * @see #getPriority()
195         * @generated
196         * @ordered
197         */
198        protected BigInteger priority = PRIORITY_EDEFAULT;
199 
200        /**
201         * This is true if the Priority attribute has been set.
202         * <!-- begin-user-doc -->
203         * <!-- end-user-doc -->
204         * @generated
205         * @ordered
206         */
207        protected boolean priorityESet;
208 
209        /**
210         * The default value of the '{@link #getQueueLength() <em>Queue Length</em>}' attribute.
211         * <!-- begin-user-doc -->
212         * <!-- end-user-doc -->
213         * @see #getQueueLength()
214         * @generated
215         * @ordered
216         */
217        protected static final BigInteger QUEUE_LENGTH_EDEFAULT = new BigInteger("0");
218 
219        /**
220         * The cached value of the '{@link #getQueueLength() <em>Queue Length</em>}' attribute.
221         * <!-- begin-user-doc -->
222         * <!-- end-user-doc -->
223         * @see #getQueueLength()
224         * @generated
225         * @ordered
226         */
227        protected BigInteger queueLength = QUEUE_LENGTH_EDEFAULT;
228 
229        /**
230         * This is true if the Queue Length attribute has been set.
231         * <!-- begin-user-doc -->
232         * <!-- end-user-doc -->
233         * @generated
234         * @ordered
235         */
236        protected boolean queueLengthESet;
237 
238        /**
239         * The default value of the '{@link #getReplication() <em>Replication</em>}' attribute.
240         * <!-- begin-user-doc -->
241         * <!-- end-user-doc -->
242         * @see #getReplication()
243         * @generated
244         * @ordered
245         */
246        protected static final BigInteger REPLICATION_EDEFAULT = new BigInteger("1");
247 
248        /**
249         * The cached value of the '{@link #getReplication() <em>Replication</em>}' attribute.
250         * <!-- begin-user-doc -->
251         * <!-- end-user-doc -->
252         * @see #getReplication()
253         * @generated
254         * @ordered
255         */
256        protected BigInteger replication = REPLICATION_EDEFAULT;
257 
258        /**
259         * This is true if the Replication attribute has been set.
260         * <!-- begin-user-doc -->
261         * <!-- end-user-doc -->
262         * @generated
263         * @ordered
264         */
265        protected boolean replicationESet;
266 
267        /**
268         * The default value of the '{@link #getScheduling() <em>Scheduling</em>}' attribute.
269         * <!-- begin-user-doc -->
270         * <!-- end-user-doc -->
271         * @see #getScheduling()
272         * @generated
273         * @ordered
274         */
275        protected static final TaskSchedulingType SCHEDULING_EDEFAULT = TaskSchedulingType.FCFS;
276 
277        /**
278         * The cached value of the '{@link #getScheduling() <em>Scheduling</em>}' attribute.
279         * <!-- begin-user-doc -->
280         * <!-- end-user-doc -->
281         * @see #getScheduling()
282         * @generated
283         * @ordered
284         */
285        protected TaskSchedulingType scheduling = SCHEDULING_EDEFAULT;
286 
287        /**
288         * This is true if the Scheduling attribute has been set.
289         * <!-- begin-user-doc -->
290         * <!-- end-user-doc -->
291         * @generated
292         * @ordered
293         */
294        protected boolean schedulingESet;
295 
296        /**
297         * The default value of the '{@link #getThinkTime() <em>Think Time</em>}' attribute.
298         * <!-- begin-user-doc -->
299         * <!-- end-user-doc -->
300         * @see #getThinkTime()
301         * @generated
302         * @ordered
303         */
304        protected static final Object THINK_TIME_EDEFAULT = LqnCoreFactory.eINSTANCE.createFromString(LqnCorePackage.eINSTANCE.getSrvnFloat(), "0");
305 
306        /**
307         * The cached value of the '{@link #getThinkTime() <em>Think Time</em>}' attribute.
308         * <!-- begin-user-doc -->
309         * <!-- end-user-doc -->
310         * @see #getThinkTime()
311         * @generated
312         * @ordered
313         */
314        protected Object thinkTime = THINK_TIME_EDEFAULT;
315 
316        /**
317         * This is true if the Think Time attribute has been set.
318         * <!-- begin-user-doc -->
319         * <!-- end-user-doc -->
320         * @generated
321         * @ordered
322         */
323        protected boolean thinkTimeESet;
324 
325        /**
326         * <!-- begin-user-doc -->
327         * <!-- end-user-doc -->
328         * @generated
329         */
330        protected TaskTypeImpl() {
331                super();
332        }
333 
334        /**
335         * <!-- begin-user-doc -->
336         * <!-- end-user-doc -->
337         * @generated
338         */
339        @Override
340        protected EClass eStaticClass() {
341                return LqnCorePackage.Literals.TASK_TYPE;
342        }
343 
344        /**
345         * <!-- begin-user-doc -->
346         * <!-- end-user-doc -->
347         * @generated
348         */
349        public EList<OutputResultType> getResultTask() {
350                if (resultTask == null) {
351                        resultTask = new EObjectContainmentEList<OutputResultType>(OutputResultType.class, this, LqnCorePackage.TASK_TYPE__RESULT_TASK);
352                }
353                return resultTask;
354        }
355 
356        /**
357         * <!-- begin-user-doc -->
358         * <!-- end-user-doc -->
359         * @generated
360         */
361        public EList<EntryType> getEntry() {
362                if (entry == null) {
363                        entry = new EObjectContainmentEList<EntryType>(EntryType.class, this, LqnCorePackage.TASK_TYPE__ENTRY);
364                }
365                return entry;
366        }
367 
368        /**
369         * <!-- begin-user-doc -->
370         * <!-- end-user-doc -->
371         * @generated
372         */
373        public EList<ServiceType> getService() {
374                if (service == null) {
375                        service = new EObjectContainmentEList<ServiceType>(ServiceType.class, this, LqnCorePackage.TASK_TYPE__SERVICE);
376                }
377                return service;
378        }
379 
380        /**
381         * <!-- begin-user-doc -->
382         * <!-- end-user-doc -->
383         * @generated
384         */
385        public TaskActivityGraph getTaskActivities() {
386                return taskActivities;
387        }
388 
389        /**
390         * <!-- begin-user-doc -->
391         * <!-- end-user-doc -->
392         * @generated
393         */
394        public NotificationChain basicSetTaskActivities(TaskActivityGraph newTaskActivities, NotificationChain msgs) {
395                TaskActivityGraph oldTaskActivities = taskActivities;
396                taskActivities = newTaskActivities;
397                if (eNotificationRequired()) {
398                        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, LqnCorePackage.TASK_TYPE__TASK_ACTIVITIES, oldTaskActivities, newTaskActivities);
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 setTaskActivities(TaskActivityGraph newTaskActivities) {
410                if (newTaskActivities != taskActivities) {
411                        NotificationChain msgs = null;
412                        if (taskActivities != null)
413                                msgs = ((InternalEObject)taskActivities).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - LqnCorePackage.TASK_TYPE__TASK_ACTIVITIES, null, msgs);
414                        if (newTaskActivities != null)
415                                msgs = ((InternalEObject)newTaskActivities).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - LqnCorePackage.TASK_TYPE__TASK_ACTIVITIES, null, msgs);
416                        msgs = basicSetTaskActivities(newTaskActivities, msgs);
417                        if (msgs != null) msgs.dispatch();
418                }
419                else if (eNotificationRequired())
420                        eNotify(new ENotificationImpl(this, Notification.SET, LqnCorePackage.TASK_TYPE__TASK_ACTIVITIES, newTaskActivities, newTaskActivities));
421        }
422 
423        /**
424         * <!-- begin-user-doc -->
425         * <!-- end-user-doc -->
426         * @generated
427         */
428        public TaskOptionType getActivityGraph() {
429                return activityGraph;
430        }
431 
432        /**
433         * <!-- begin-user-doc -->
434         * <!-- end-user-doc -->
435         * @generated
436         */
437        public void setActivityGraph(TaskOptionType newActivityGraph) {
438                TaskOptionType oldActivityGraph = activityGraph;
439                activityGraph = newActivityGraph == null ? ACTIVITY_GRAPH_EDEFAULT : newActivityGraph;
440                boolean oldActivityGraphESet = activityGraphESet;
441                activityGraphESet = true;
442                if (eNotificationRequired())
443                        eNotify(new ENotificationImpl(this, Notification.SET, LqnCorePackage.TASK_TYPE__ACTIVITY_GRAPH, oldActivityGraph, activityGraph, !oldActivityGraphESet));
444        }
445 
446        /**
447         * <!-- begin-user-doc -->
448         * <!-- end-user-doc -->
449         * @generated
450         */
451        public void unsetActivityGraph() {
452                TaskOptionType oldActivityGraph = activityGraph;
453                boolean oldActivityGraphESet = activityGraphESet;
454                activityGraph = ACTIVITY_GRAPH_EDEFAULT;
455                activityGraphESet = false;
456                if (eNotificationRequired())
457                        eNotify(new ENotificationImpl(this, Notification.UNSET, LqnCorePackage.TASK_TYPE__ACTIVITY_GRAPH, oldActivityGraph, ACTIVITY_GRAPH_EDEFAULT, oldActivityGraphESet));
458        }
459 
460        /**
461         * <!-- begin-user-doc -->
462         * <!-- end-user-doc -->
463         * @generated
464         */
465        public boolean isSetActivityGraph() {
466                return activityGraphESet;
467        }
468 
469        /**
470         * <!-- begin-user-doc -->
471         * <!-- end-user-doc -->
472         * @generated
473         */
474        public BigInteger getMultiplicity() {
475                return multiplicity;
476        }
477 
478        /**
479         * <!-- begin-user-doc -->
480         * <!-- end-user-doc -->
481         * @generated
482         */
483        public void setMultiplicity(BigInteger newMultiplicity) {
484                BigInteger oldMultiplicity = multiplicity;
485                multiplicity = newMultiplicity;
486                boolean oldMultiplicityESet = multiplicityESet;
487                multiplicityESet = true;
488                if (eNotificationRequired())
489                        eNotify(new ENotificationImpl(this, Notification.SET, LqnCorePackage.TASK_TYPE__MULTIPLICITY, oldMultiplicity, multiplicity, !oldMultiplicityESet));
490        }
491 
492        /**
493         * <!-- begin-user-doc -->
494         * <!-- end-user-doc -->
495         * @generated
496         */
497        public void unsetMultiplicity() {
498                BigInteger oldMultiplicity = multiplicity;
499                boolean oldMultiplicityESet = multiplicityESet;
500                multiplicity = MULTIPLICITY_EDEFAULT;
501                multiplicityESet = false;
502                if (eNotificationRequired())
503                        eNotify(new ENotificationImpl(this, Notification.UNSET, LqnCorePackage.TASK_TYPE__MULTIPLICITY, oldMultiplicity, MULTIPLICITY_EDEFAULT, oldMultiplicityESet));
504        }
505 
506        /**
507         * <!-- begin-user-doc -->
508         * <!-- end-user-doc -->
509         * @generated
510         */
511        public boolean isSetMultiplicity() {
512                return multiplicityESet;
513        }
514 
515        /**
516         * <!-- begin-user-doc -->
517         * <!-- end-user-doc -->
518         * @generated
519         */
520        public String getName() {
521                return name;
522        }
523 
524        /**
525         * <!-- begin-user-doc -->
526         * <!-- end-user-doc -->
527         * @generated
528         */
529        public void setName(String newName) {
530                String oldName = name;
531                name = newName;
532                if (eNotificationRequired())
533                        eNotify(new ENotificationImpl(this, Notification.SET, LqnCorePackage.TASK_TYPE__NAME, oldName, name));
534        }
535 
536        /**
537         * <!-- begin-user-doc -->
538         * <!-- end-user-doc -->
539         * @generated
540         */
541        public BigInteger getPriority() {
542                return priority;
543        }
544 
545        /**
546         * <!-- begin-user-doc -->
547         * <!-- end-user-doc -->
548         * @generated
549         */
550        public void setPriority(BigInteger newPriority) {
551                BigInteger oldPriority = priority;
552                priority = newPriority;
553                boolean oldPriorityESet = priorityESet;
554                priorityESet = true;
555                if (eNotificationRequired())
556                        eNotify(new ENotificationImpl(this, Notification.SET, LqnCorePackage.TASK_TYPE__PRIORITY, oldPriority, priority, !oldPriorityESet));
557        }
558 
559        /**
560         * <!-- begin-user-doc -->
561         * <!-- end-user-doc -->
562         * @generated
563         */
564        public void unsetPriority() {
565                BigInteger oldPriority = priority;
566                boolean oldPriorityESet = priorityESet;
567                priority = PRIORITY_EDEFAULT;
568                priorityESet = false;
569                if (eNotificationRequired())
570                        eNotify(new ENotificationImpl(this, Notification.UNSET, LqnCorePackage.TASK_TYPE__PRIORITY, oldPriority, PRIORITY_EDEFAULT, oldPriorityESet));
571        }
572 
573        /**
574         * <!-- begin-user-doc -->
575         * <!-- end-user-doc -->
576         * @generated
577         */
578        public boolean isSetPriority() {
579                return priorityESet;
580        }
581 
582        /**
583         * <!-- begin-user-doc -->
584         * <!-- end-user-doc -->
585         * @generated
586         */
587        public BigInteger getQueueLength() {
588                return queueLength;
589        }
590 
591        /**
592         * <!-- begin-user-doc -->
593         * <!-- end-user-doc -->
594         * @generated
595         */
596        public void setQueueLength(BigInteger newQueueLength) {
597                BigInteger oldQueueLength = queueLength;
598                queueLength = newQueueLength;
599                boolean oldQueueLengthESet = queueLengthESet;
600                queueLengthESet = true;
601                if (eNotificationRequired())
602                        eNotify(new ENotificationImpl(this, Notification.SET, LqnCorePackage.TASK_TYPE__QUEUE_LENGTH, oldQueueLength, queueLength, !oldQueueLengthESet));
603        }
604 
605        /**
606         * <!-- begin-user-doc -->
607         * <!-- end-user-doc -->
608         * @generated
609         */
610        public void unsetQueueLength() {
611                BigInteger oldQueueLength = queueLength;
612                boolean oldQueueLengthESet = queueLengthESet;
613                queueLength = QUEUE_LENGTH_EDEFAULT;
614                queueLengthESet = false;
615                if (eNotificationRequired())
616                        eNotify(new ENotificationImpl(this, Notification.UNSET, LqnCorePackage.TASK_TYPE__QUEUE_LENGTH, oldQueueLength, QUEUE_LENGTH_EDEFAULT, oldQueueLengthESet));
617        }
618 
619        /**
620         * <!-- begin-user-doc -->
621         * <!-- end-user-doc -->
622         * @generated
623         */
624        public boolean isSetQueueLength() {
625                return queueLengthESet;
626        }
627 
628        /**
629         * <!-- begin-user-doc -->
630         * <!-- end-user-doc -->
631         * @generated
632         */
633        public BigInteger getReplication() {
634                return replication;
635        }
636 
637        /**
638         * <!-- begin-user-doc -->
639         * <!-- end-user-doc -->
640         * @generated
641         */
642        public void setReplication(BigInteger newReplication) {
643                BigInteger oldReplication = replication;
644                replication = newReplication;
645                boolean oldReplicationESet = replicationESet;
646                replicationESet = true;
647                if (eNotificationRequired())
648                        eNotify(new ENotificationImpl(this, Notification.SET, LqnCorePackage.TASK_TYPE__REPLICATION, oldReplication, replication, !oldReplicationESet));
649        }
650 
651        /**
652         * <!-- begin-user-doc -->
653         * <!-- end-user-doc -->
654         * @generated
655         */
656        public void unsetReplication() {
657                BigInteger oldReplication = replication;
658                boolean oldReplicationESet = replicationESet;
659                replication = REPLICATION_EDEFAULT;
660                replicationESet = false;
661                if (eNotificationRequired())
662                        eNotify(new ENotificationImpl(this, Notification.UNSET, LqnCorePackage.TASK_TYPE__REPLICATION, oldReplication, REPLICATION_EDEFAULT, oldReplicationESet));
663        }
664 
665        /**
666         * <!-- begin-user-doc -->
667         * <!-- end-user-doc -->
668         * @generated
669         */
670        public boolean isSetReplication() {
671                return replicationESet;
672        }
673 
674        /**
675         * <!-- begin-user-doc -->
676         * <!-- end-user-doc -->
677         * @generated
678         */
679        public TaskSchedulingType getScheduling() {
680                return scheduling;
681        }
682 
683        /**
684         * <!-- begin-user-doc -->
685         * <!-- end-user-doc -->
686         * @generated
687         */
688        public void setScheduling(TaskSchedulingType newScheduling) {
689                TaskSchedulingType oldScheduling = scheduling;
690                scheduling = newScheduling == null ? SCHEDULING_EDEFAULT : newScheduling;
691                boolean oldSchedulingESet = schedulingESet;
692                schedulingESet = true;
693                if (eNotificationRequired())
694                        eNotify(new ENotificationImpl(this, Notification.SET, LqnCorePackage.TASK_TYPE__SCHEDULING, oldScheduling, scheduling, !oldSchedulingESet));
695        }
696 
697        /**
698         * <!-- begin-user-doc -->
699         * <!-- end-user-doc -->
700         * @generated
701         */
702        public void unsetScheduling() {
703                TaskSchedulingType oldScheduling = scheduling;
704                boolean oldSchedulingESet = schedulingESet;
705                scheduling = SCHEDULING_EDEFAULT;
706                schedulingESet = false;
707                if (eNotificationRequired())
708                        eNotify(new ENotificationImpl(this, Notification.UNSET, LqnCorePackage.TASK_TYPE__SCHEDULING, oldScheduling, SCHEDULING_EDEFAULT, oldSchedulingESet));
709        }
710 
711        /**
712         * <!-- begin-user-doc -->
713         * <!-- end-user-doc -->
714         * @generated
715         */
716        public boolean isSetScheduling() {
717                return schedulingESet;
718        }
719 
720        /**
721         * <!-- begin-user-doc -->
722         * <!-- end-user-doc -->
723         * @generated
724         */
725        public Object getThinkTime() {
726                return thinkTime;
727        }
728 
729        /**
730         * <!-- begin-user-doc -->
731         * <!-- end-user-doc -->
732         * @generated
733         */
734        public void setThinkTime(Object newThinkTime) {
735                Object oldThinkTime = thinkTime;
736                thinkTime = newThinkTime;
737                boolean oldThinkTimeESet = thinkTimeESet;
738                thinkTimeESet = true;
739                if (eNotificationRequired())
740                        eNotify(new ENotificationImpl(this, Notification.SET, LqnCorePackage.TASK_TYPE__THINK_TIME, oldThinkTime, thinkTime, !oldThinkTimeESet));
741        }
742 
743        /**
744         * <!-- begin-user-doc -->
745         * <!-- end-user-doc -->
746         * @generated
747         */
748        public void unsetThinkTime() {
749                Object oldThinkTime = thinkTime;
750                boolean oldThinkTimeESet = thinkTimeESet;
751                thinkTime = THINK_TIME_EDEFAULT;
752                thinkTimeESet = false;
753                if (eNotificationRequired())
754                        eNotify(new ENotificationImpl(this, Notification.UNSET, LqnCorePackage.TASK_TYPE__THINK_TIME, oldThinkTime, THINK_TIME_EDEFAULT, oldThinkTimeESet));
755        }
756 
757        /**
758         * <!-- begin-user-doc -->
759         * <!-- end-user-doc -->
760         * @generated
761         */
762        public boolean isSetThinkTime() {
763                return thinkTimeESet;
764        }
765 
766        /**
767         * <!-- begin-user-doc -->
768         * <!-- end-user-doc -->
769         * @generated
770         */
771        @Override
772        public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
773                switch (featureID) {
774                        case LqnCorePackage.TASK_TYPE__RESULT_TASK:
775                                return ((InternalEList<?>)getResultTask()).basicRemove(otherEnd, msgs);
776                        case LqnCorePackage.TASK_TYPE__ENTRY:
777                                return ((InternalEList<?>)getEntry()).basicRemove(otherEnd, msgs);
778                        case LqnCorePackage.TASK_TYPE__SERVICE:
779                                return ((InternalEList<?>)getService()).basicRemove(otherEnd, msgs);
780                        case LqnCorePackage.TASK_TYPE__TASK_ACTIVITIES:
781                                return basicSetTaskActivities(null, msgs);
782                }
783                return super.eInverseRemove(otherEnd, featureID, msgs);
784        }
785 
786        /**
787         * <!-- begin-user-doc -->
788         * <!-- end-user-doc -->
789         * @generated
790         */
791        @Override
792        public Object eGet(int featureID, boolean resolve, boolean coreType) {
793                switch (featureID) {
794                        case LqnCorePackage.TASK_TYPE__RESULT_TASK:
795                                return getResultTask();
796                        case LqnCorePackage.TASK_TYPE__ENTRY:
797                                return getEntry();
798                        case LqnCorePackage.TASK_TYPE__SERVICE:
799                                return getService();
800                        case LqnCorePackage.TASK_TYPE__TASK_ACTIVITIES:
801                                return getTaskActivities();
802                        case LqnCorePackage.TASK_TYPE__ACTIVITY_GRAPH:
803                                return getActivityGraph();
804                        case LqnCorePackage.TASK_TYPE__MULTIPLICITY:
805                                return getMultiplicity();
806                        case LqnCorePackage.TASK_TYPE__NAME:
807                                return getName();
808                        case LqnCorePackage.TASK_TYPE__PRIORITY:
809                                return getPriority();
810                        case LqnCorePackage.TASK_TYPE__QUEUE_LENGTH:
811                                return getQueueLength();
812                        case LqnCorePackage.TASK_TYPE__REPLICATION:
813                                return getReplication();
814                        case LqnCorePackage.TASK_TYPE__SCHEDULING:
815                                return getScheduling();
816                        case LqnCorePackage.TASK_TYPE__THINK_TIME:
817                                return getThinkTime();
818                }
819                return super.eGet(featureID, resolve, coreType);
820        }
821 
822        /**
823         * <!-- begin-user-doc -->
824         * <!-- end-user-doc -->
825         * @generated
826         */
827        @SuppressWarnings("unchecked")
828        @Override
829        public void eSet(int featureID, Object newValue) {
830                switch (featureID) {
831                        case LqnCorePackage.TASK_TYPE__RESULT_TASK:
832                                getResultTask().clear();
833                                getResultTask().addAll((Collection<? extends OutputResultType>)newValue);
834                                return;
835                        case LqnCorePackage.TASK_TYPE__ENTRY:
836                                getEntry().clear();
837                                getEntry().addAll((Collection<? extends EntryType>)newValue);
838                                return;
839                        case LqnCorePackage.TASK_TYPE__SERVICE:
840                                getService().clear();
841                                getService().addAll((Collection<? extends ServiceType>)newValue);
842                                return;
843                        case LqnCorePackage.TASK_TYPE__TASK_ACTIVITIES:
844                                setTaskActivities((TaskActivityGraph)newValue);
845                                return;
846                        case LqnCorePackage.TASK_TYPE__ACTIVITY_GRAPH:
847                                setActivityGraph((TaskOptionType)newValue);
848                                return;
849                        case LqnCorePackage.TASK_TYPE__MULTIPLICITY:
850                                setMultiplicity((BigInteger)newValue);
851                                return;
852                        case LqnCorePackage.TASK_TYPE__NAME:
853                                setName((String)newValue);
854                                return;
855                        case LqnCorePackage.TASK_TYPE__PRIORITY:
856                                setPriority((BigInteger)newValue);
857                                return;
858                        case LqnCorePackage.TASK_TYPE__QUEUE_LENGTH:
859                                setQueueLength((BigInteger)newValue);
860                                return;
861                        case LqnCorePackage.TASK_TYPE__REPLICATION:
862                                setReplication((BigInteger)newValue);
863                                return;
864                        case LqnCorePackage.TASK_TYPE__SCHEDULING:
865                                setScheduling((TaskSchedulingType)newValue);
866                                return;
867                        case LqnCorePackage.TASK_TYPE__THINK_TIME:
868                                setThinkTime(newValue);
869                                return;
870                }
871                super.eSet(featureID, newValue);
872        }
873 
874        /**
875         * <!-- begin-user-doc -->
876         * <!-- end-user-doc -->
877         * @generated
878         */
879        @Override
880        public void eUnset(int featureID) {
881                switch (featureID) {
882                        case LqnCorePackage.TASK_TYPE__RESULT_TASK:
883                                getResultTask().clear();
884                                return;
885                        case LqnCorePackage.TASK_TYPE__ENTRY:
886                                getEntry().clear();
887                                return;
888                        case LqnCorePackage.TASK_TYPE__SERVICE:
889                                getService().clear();
890                                return;
891                        case LqnCorePackage.TASK_TYPE__TASK_ACTIVITIES:
892                                setTaskActivities((TaskActivityGraph)null);
893                                return;
894                        case LqnCorePackage.TASK_TYPE__ACTIVITY_GRAPH:
895                                unsetActivityGraph();
896                                return;
897                        case LqnCorePackage.TASK_TYPE__MULTIPLICITY:
898                                unsetMultiplicity();
899                                return;
900                        case LqnCorePackage.TASK_TYPE__NAME:
901                                setName(NAME_EDEFAULT);
902                                return;
903                        case LqnCorePackage.TASK_TYPE__PRIORITY:
904                                unsetPriority();
905                                return;
906                        case LqnCorePackage.TASK_TYPE__QUEUE_LENGTH:
907                                unsetQueueLength();
908                                return;
909                        case LqnCorePackage.TASK_TYPE__REPLICATION:
910                                unsetReplication();
911                                return;
912                        case LqnCorePackage.TASK_TYPE__SCHEDULING:
913                                unsetScheduling();
914                                return;
915                        case LqnCorePackage.TASK_TYPE__THINK_TIME:
916                                unsetThinkTime();
917                                return;
918                }
919                super.eUnset(featureID);
920        }
921 
922        /**
923         * <!-- begin-user-doc -->
924         * <!-- end-user-doc -->
925         * @generated
926         */
927        @Override
928        public boolean eIsSet(int featureID) {
929                switch (featureID) {
930                        case LqnCorePackage.TASK_TYPE__RESULT_TASK:
931                                return resultTask != null && !resultTask.isEmpty();
932                        case LqnCorePackage.TASK_TYPE__ENTRY:
933                                return entry != null && !entry.isEmpty();
934                        case LqnCorePackage.TASK_TYPE__SERVICE:
935                                return service != null && !service.isEmpty();
936                        case LqnCorePackage.TASK_TYPE__TASK_ACTIVITIES:
937                                return taskActivities != null;
938                        case LqnCorePackage.TASK_TYPE__ACTIVITY_GRAPH:
939                                return isSetActivityGraph();
940                        case LqnCorePackage.TASK_TYPE__MULTIPLICITY:
941                                return isSetMultiplicity();
942                        case LqnCorePackage.TASK_TYPE__NAME:
943                                return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
944                        case LqnCorePackage.TASK_TYPE__PRIORITY:
945                                return isSetPriority();
946                        case LqnCorePackage.TASK_TYPE__QUEUE_LENGTH:
947                                return isSetQueueLength();
948                        case LqnCorePackage.TASK_TYPE__REPLICATION:
949                                return isSetReplication();
950                        case LqnCorePackage.TASK_TYPE__SCHEDULING:
951                                return isSetScheduling();
952                        case LqnCorePackage.TASK_TYPE__THINK_TIME:
953                                return isSetThinkTime();
954                }
955                return super.eIsSet(featureID);
956        }
957 
958        /**
959         * <!-- begin-user-doc -->
960         * <!-- end-user-doc -->
961         * @generated
962         */
963        @Override
964        public String toString() {
965                if (eIsProxy()) return super.toString();
966 
967                StringBuffer result = new StringBuffer(super.toString());
968                result.append(" (activityGraph: ");
969                if (activityGraphESet) result.append(activityGraph); else result.append("<unset>");
970                result.append(", multiplicity: ");
971                if (multiplicityESet) result.append(multiplicity); else result.append("<unset>");
972                result.append(", name: ");
973                result.append(name);
974                result.append(", priority: ");
975                if (priorityESet) result.append(priority); else result.append("<unset>");
976                result.append(", queueLength: ");
977                if (queueLengthESet) result.append(queueLength); else result.append("<unset>");
978                result.append(", replication: ");
979                if (replicationESet) result.append(replication); else result.append("<unset>");
980                result.append(", scheduling: ");
981                if (schedulingESet) result.append(scheduling); else result.append("<unset>");
982                result.append(", thinkTime: ");
983                if (thinkTimeESet) result.append(thinkTime); else result.append("<unset>");
984                result.append(')');
985                return result.toString();
986        }
987 
988} //TaskTypeImpl

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