1 | /** |
2 | * <copyright> |
3 | * </copyright> |
4 | * |
5 | * $Id$ |
6 | */ |
7 | package LqnCore.impl; |
8 | |
9 | import LqnCore.EntryActivityGraph; |
10 | import LqnCore.EntryMakingCallType; |
11 | import LqnCore.EntryType; |
12 | import LqnCore.LqnCorePackage; |
13 | import LqnCore.OutputEntryDistributionType; |
14 | import LqnCore.OutputResultType; |
15 | import LqnCore.PhaseActivities; |
16 | import LqnCore.SemaphoreType; |
17 | import LqnCore.TypeType; |
18 | |
19 | import java.util.Collection; |
20 | |
21 | import org.eclipse.emf.common.notify.Notification; |
22 | import org.eclipse.emf.common.notify.NotificationChain; |
23 | |
24 | import org.eclipse.emf.common.util.EList; |
25 | |
26 | import org.eclipse.emf.ecore.EClass; |
27 | import org.eclipse.emf.ecore.InternalEObject; |
28 | |
29 | import org.eclipse.emf.ecore.impl.ENotificationImpl; |
30 | import org.eclipse.emf.ecore.impl.EObjectImpl; |
31 | |
32 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; |
33 | import org.eclipse.emf.ecore.util.InternalEList; |
34 | |
35 | /** |
36 | * <!-- begin-user-doc --> |
37 | * An implementation of the model object '<em><b>Entry Type</b></em>'. |
38 | * <!-- end-user-doc --> |
39 | * <p> |
40 | * The following features are implemented: |
41 | * <ul> |
42 | * <li>{@link LqnCore.impl.EntryTypeImpl#getResultEntry <em>Result Entry</em>}</li> |
43 | * <li>{@link LqnCore.impl.EntryTypeImpl#getServiceTimeDistribution <em>Service Time Distribution</em>}</li> |
44 | * <li>{@link LqnCore.impl.EntryTypeImpl#getForwarding <em>Forwarding</em>}</li> |
45 | * <li>{@link LqnCore.impl.EntryTypeImpl#getEntryActivityGraph <em>Entry Activity Graph</em>}</li> |
46 | * <li>{@link LqnCore.impl.EntryTypeImpl#getEntryPhaseActivities <em>Entry Phase Activities</em>}</li> |
47 | * <li>{@link LqnCore.impl.EntryTypeImpl#getName <em>Name</em>}</li> |
48 | * <li>{@link LqnCore.impl.EntryTypeImpl#getOpenArrivalRate <em>Open Arrival Rate</em>}</li> |
49 | * <li>{@link LqnCore.impl.EntryTypeImpl#getPriority <em>Priority</em>}</li> |
50 | * <li>{@link LqnCore.impl.EntryTypeImpl#getSemaphore <em>Semaphore</em>}</li> |
51 | * <li>{@link LqnCore.impl.EntryTypeImpl#getType <em>Type</em>}</li> |
52 | * </ul> |
53 | * </p> |
54 | * |
55 | * @generated |
56 | */ |
57 | public class EntryTypeImpl extends EObjectImpl implements EntryType { |
58 | /** |
59 | * The cached value of the '{@link #getResultEntry() <em>Result Entry</em>}' containment reference list. |
60 | * <!-- begin-user-doc --> |
61 | * <!-- end-user-doc --> |
62 | * @see #getResultEntry() |
63 | * @generated |
64 | * @ordered |
65 | */ |
66 | protected EList<OutputResultType> resultEntry; |
67 | |
68 | /** |
69 | * The cached value of the '{@link #getServiceTimeDistribution() <em>Service Time Distribution</em>}' containment reference list. |
70 | * <!-- begin-user-doc --> |
71 | * <!-- end-user-doc --> |
72 | * @see #getServiceTimeDistribution() |
73 | * @generated |
74 | * @ordered |
75 | */ |
76 | protected EList<OutputEntryDistributionType> serviceTimeDistribution; |
77 | |
78 | /** |
79 | * The cached value of the '{@link #getForwarding() <em>Forwarding</em>}' containment reference list. |
80 | * <!-- begin-user-doc --> |
81 | * <!-- end-user-doc --> |
82 | * @see #getForwarding() |
83 | * @generated |
84 | * @ordered |
85 | */ |
86 | protected EList<EntryMakingCallType> forwarding; |
87 | |
88 | /** |
89 | * The cached value of the '{@link #getEntryActivityGraph() <em>Entry Activity Graph</em>}' containment reference. |
90 | * <!-- begin-user-doc --> |
91 | * <!-- end-user-doc --> |
92 | * @see #getEntryActivityGraph() |
93 | * @generated |
94 | * @ordered |
95 | */ |
96 | protected EntryActivityGraph entryActivityGraph; |
97 | |
98 | /** |
99 | * The cached value of the '{@link #getEntryPhaseActivities() <em>Entry Phase Activities</em>}' containment reference. |
100 | * <!-- begin-user-doc --> |
101 | * <!-- end-user-doc --> |
102 | * @see #getEntryPhaseActivities() |
103 | * @generated |
104 | * @ordered |
105 | */ |
106 | protected PhaseActivities entryPhaseActivities; |
107 | |
108 | /** |
109 | * The default value of the '{@link #getName() <em>Name</em>}' attribute. |
110 | * <!-- begin-user-doc --> |
111 | * <!-- end-user-doc --> |
112 | * @see #getName() |
113 | * @generated |
114 | * @ordered |
115 | */ |
116 | protected static final String NAME_EDEFAULT = null; |
117 | |
118 | /** |
119 | * The cached value of the '{@link #getName() <em>Name</em>}' attribute. |
120 | * <!-- begin-user-doc --> |
121 | * <!-- end-user-doc --> |
122 | * @see #getName() |
123 | * @generated |
124 | * @ordered |
125 | */ |
126 | protected String name = NAME_EDEFAULT; |
127 | |
128 | /** |
129 | * The default value of the '{@link #getOpenArrivalRate() <em>Open Arrival Rate</em>}' attribute. |
130 | * <!-- begin-user-doc --> |
131 | * <!-- end-user-doc --> |
132 | * @see #getOpenArrivalRate() |
133 | * @generated |
134 | * @ordered |
135 | */ |
136 | protected static final Object OPEN_ARRIVAL_RATE_EDEFAULT = null; |
137 | |
138 | /** |
139 | * The cached value of the '{@link #getOpenArrivalRate() <em>Open Arrival Rate</em>}' attribute. |
140 | * <!-- begin-user-doc --> |
141 | * <!-- end-user-doc --> |
142 | * @see #getOpenArrivalRate() |
143 | * @generated |
144 | * @ordered |
145 | */ |
146 | protected Object openArrivalRate = OPEN_ARRIVAL_RATE_EDEFAULT; |
147 | |
148 | /** |
149 | * The default value of the '{@link #getPriority() <em>Priority</em>}' attribute. |
150 | * <!-- begin-user-doc --> |
151 | * <!-- end-user-doc --> |
152 | * @see #getPriority() |
153 | * @generated |
154 | * @ordered |
155 | */ |
156 | protected static final int PRIORITY_EDEFAULT = 0; |
157 | |
158 | /** |
159 | * The cached value of the '{@link #getPriority() <em>Priority</em>}' attribute. |
160 | * <!-- begin-user-doc --> |
161 | * <!-- end-user-doc --> |
162 | * @see #getPriority() |
163 | * @generated |
164 | * @ordered |
165 | */ |
166 | protected int priority = PRIORITY_EDEFAULT; |
167 | |
168 | /** |
169 | * This is true if the Priority attribute has been set. |
170 | * <!-- begin-user-doc --> |
171 | * <!-- end-user-doc --> |
172 | * @generated |
173 | * @ordered |
174 | */ |
175 | protected boolean priorityESet; |
176 | |
177 | /** |
178 | * The default value of the '{@link #getSemaphore() <em>Semaphore</em>}' attribute. |
179 | * <!-- begin-user-doc --> |
180 | * <!-- end-user-doc --> |
181 | * @see #getSemaphore() |
182 | * @generated |
183 | * @ordered |
184 | */ |
185 | protected static final SemaphoreType SEMAPHORE_EDEFAULT = SemaphoreType.SIGNAL; |
186 | |
187 | /** |
188 | * The cached value of the '{@link #getSemaphore() <em>Semaphore</em>}' attribute. |
189 | * <!-- begin-user-doc --> |
190 | * <!-- end-user-doc --> |
191 | * @see #getSemaphore() |
192 | * @generated |
193 | * @ordered |
194 | */ |
195 | protected SemaphoreType semaphore = SEMAPHORE_EDEFAULT; |
196 | |
197 | /** |
198 | * This is true if the Semaphore attribute has been set. |
199 | * <!-- begin-user-doc --> |
200 | * <!-- end-user-doc --> |
201 | * @generated |
202 | * @ordered |
203 | */ |
204 | protected boolean semaphoreESet; |
205 | |
206 | /** |
207 | * The default value of the '{@link #getType() <em>Type</em>}' attribute. |
208 | * <!-- begin-user-doc --> |
209 | * <!-- end-user-doc --> |
210 | * @see #getType() |
211 | * @generated |
212 | * @ordered |
213 | */ |
214 | protected static final TypeType TYPE_EDEFAULT = TypeType.PH1PH2; |
215 | |
216 | /** |
217 | * The cached value of the '{@link #getType() <em>Type</em>}' attribute. |
218 | * <!-- begin-user-doc --> |
219 | * <!-- end-user-doc --> |
220 | * @see #getType() |
221 | * @generated |
222 | * @ordered |
223 | */ |
224 | protected TypeType type = TYPE_EDEFAULT; |
225 | |
226 | /** |
227 | * This is true if the Type attribute has been set. |
228 | * <!-- begin-user-doc --> |
229 | * <!-- end-user-doc --> |
230 | * @generated |
231 | * @ordered |
232 | */ |
233 | protected boolean typeESet; |
234 | |
235 | /** |
236 | * <!-- begin-user-doc --> |
237 | * <!-- end-user-doc --> |
238 | * @generated |
239 | */ |
240 | protected EntryTypeImpl() { |
241 | super(); |
242 | } |
243 | |
244 | /** |
245 | * <!-- begin-user-doc --> |
246 | * <!-- end-user-doc --> |
247 | * @generated |
248 | */ |
249 | @Override |
250 | protected EClass eStaticClass() { |
251 | return LqnCorePackage.Literals.ENTRY_TYPE; |
252 | } |
253 | |
254 | /** |
255 | * <!-- begin-user-doc --> |
256 | * <!-- end-user-doc --> |
257 | * @generated |
258 | */ |
259 | public EList<OutputResultType> getResultEntry() { |
260 | if (resultEntry == null) { |
261 | resultEntry = new EObjectContainmentEList<OutputResultType>(OutputResultType.class, this, LqnCorePackage.ENTRY_TYPE__RESULT_ENTRY); |
262 | } |
263 | return resultEntry; |
264 | } |
265 | |
266 | /** |
267 | * <!-- begin-user-doc --> |
268 | * <!-- end-user-doc --> |
269 | * @generated |
270 | */ |
271 | public EList<OutputEntryDistributionType> getServiceTimeDistribution() { |
272 | if (serviceTimeDistribution == null) { |
273 | serviceTimeDistribution = new EObjectContainmentEList<OutputEntryDistributionType>(OutputEntryDistributionType.class, this, LqnCorePackage.ENTRY_TYPE__SERVICE_TIME_DISTRIBUTION); |
274 | } |
275 | return serviceTimeDistribution; |
276 | } |
277 | |
278 | /** |
279 | * <!-- begin-user-doc --> |
280 | * <!-- end-user-doc --> |
281 | * @generated |
282 | */ |
283 | public EList<EntryMakingCallType> getForwarding() { |
284 | if (forwarding == null) { |
285 | forwarding = new EObjectContainmentEList<EntryMakingCallType>(EntryMakingCallType.class, this, LqnCorePackage.ENTRY_TYPE__FORWARDING); |
286 | } |
287 | return forwarding; |
288 | } |
289 | |
290 | /** |
291 | * <!-- begin-user-doc --> |
292 | * <!-- end-user-doc --> |
293 | * @generated |
294 | */ |
295 | public EntryActivityGraph getEntryActivityGraph() { |
296 | return entryActivityGraph; |
297 | } |
298 | |
299 | /** |
300 | * <!-- begin-user-doc --> |
301 | * <!-- end-user-doc --> |
302 | * @generated |
303 | */ |
304 | public NotificationChain basicSetEntryActivityGraph(EntryActivityGraph newEntryActivityGraph, NotificationChain msgs) { |
305 | EntryActivityGraph oldEntryActivityGraph = entryActivityGraph; |
306 | entryActivityGraph = newEntryActivityGraph; |
307 | if (eNotificationRequired()) { |
308 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, LqnCorePackage.ENTRY_TYPE__ENTRY_ACTIVITY_GRAPH, oldEntryActivityGraph, newEntryActivityGraph); |
309 | if (msgs == null) msgs = notification; else msgs.add(notification); |
310 | } |
311 | return msgs; |
312 | } |
313 | |
314 | /** |
315 | * <!-- begin-user-doc --> |
316 | * <!-- end-user-doc --> |
317 | * @generated |
318 | */ |
319 | public void setEntryActivityGraph(EntryActivityGraph newEntryActivityGraph) { |
320 | if (newEntryActivityGraph != entryActivityGraph) { |
321 | NotificationChain msgs = null; |
322 | if (entryActivityGraph != null) |
323 | msgs = ((InternalEObject)entryActivityGraph).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - LqnCorePackage.ENTRY_TYPE__ENTRY_ACTIVITY_GRAPH, null, msgs); |
324 | if (newEntryActivityGraph != null) |
325 | msgs = ((InternalEObject)newEntryActivityGraph).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - LqnCorePackage.ENTRY_TYPE__ENTRY_ACTIVITY_GRAPH, null, msgs); |
326 | msgs = basicSetEntryActivityGraph(newEntryActivityGraph, msgs); |
327 | if (msgs != null) msgs.dispatch(); |
328 | } |
329 | else if (eNotificationRequired()) |
330 | eNotify(new ENotificationImpl(this, Notification.SET, LqnCorePackage.ENTRY_TYPE__ENTRY_ACTIVITY_GRAPH, newEntryActivityGraph, newEntryActivityGraph)); |
331 | } |
332 | |
333 | /** |
334 | * <!-- begin-user-doc --> |
335 | * <!-- end-user-doc --> |
336 | * @generated |
337 | */ |
338 | public PhaseActivities getEntryPhaseActivities() { |
339 | return entryPhaseActivities; |
340 | } |
341 | |
342 | /** |
343 | * <!-- begin-user-doc --> |
344 | * <!-- end-user-doc --> |
345 | * @generated |
346 | */ |
347 | public NotificationChain basicSetEntryPhaseActivities(PhaseActivities newEntryPhaseActivities, NotificationChain msgs) { |
348 | PhaseActivities oldEntryPhaseActivities = entryPhaseActivities; |
349 | entryPhaseActivities = newEntryPhaseActivities; |
350 | if (eNotificationRequired()) { |
351 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, LqnCorePackage.ENTRY_TYPE__ENTRY_PHASE_ACTIVITIES, oldEntryPhaseActivities, newEntryPhaseActivities); |
352 | if (msgs == null) msgs = notification; else msgs.add(notification); |
353 | } |
354 | return msgs; |
355 | } |
356 | |
357 | /** |
358 | * <!-- begin-user-doc --> |
359 | * <!-- end-user-doc --> |
360 | * @generated |
361 | */ |
362 | public void setEntryPhaseActivities(PhaseActivities newEntryPhaseActivities) { |
363 | if (newEntryPhaseActivities != entryPhaseActivities) { |
364 | NotificationChain msgs = null; |
365 | if (entryPhaseActivities != null) |
366 | msgs = ((InternalEObject)entryPhaseActivities).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - LqnCorePackage.ENTRY_TYPE__ENTRY_PHASE_ACTIVITIES, null, msgs); |
367 | if (newEntryPhaseActivities != null) |
368 | msgs = ((InternalEObject)newEntryPhaseActivities).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - LqnCorePackage.ENTRY_TYPE__ENTRY_PHASE_ACTIVITIES, null, msgs); |
369 | msgs = basicSetEntryPhaseActivities(newEntryPhaseActivities, msgs); |
370 | if (msgs != null) msgs.dispatch(); |
371 | } |
372 | else if (eNotificationRequired()) |
373 | eNotify(new ENotificationImpl(this, Notification.SET, LqnCorePackage.ENTRY_TYPE__ENTRY_PHASE_ACTIVITIES, newEntryPhaseActivities, newEntryPhaseActivities)); |
374 | } |
375 | |
376 | /** |
377 | * <!-- begin-user-doc --> |
378 | * <!-- end-user-doc --> |
379 | * @generated |
380 | */ |
381 | public String getName() { |
382 | return name; |
383 | } |
384 | |
385 | /** |
386 | * <!-- begin-user-doc --> |
387 | * <!-- end-user-doc --> |
388 | * @generated |
389 | */ |
390 | public void setName(String newName) { |
391 | String oldName = name; |
392 | name = newName; |
393 | if (eNotificationRequired()) |
394 | eNotify(new ENotificationImpl(this, Notification.SET, LqnCorePackage.ENTRY_TYPE__NAME, oldName, name)); |
395 | } |
396 | |
397 | /** |
398 | * <!-- begin-user-doc --> |
399 | * <!-- end-user-doc --> |
400 | * @generated |
401 | */ |
402 | public Object getOpenArrivalRate() { |
403 | return openArrivalRate; |
404 | } |
405 | |
406 | /** |
407 | * <!-- begin-user-doc --> |
408 | * <!-- end-user-doc --> |
409 | * @generated |
410 | */ |
411 | public void setOpenArrivalRate(Object newOpenArrivalRate) { |
412 | Object oldOpenArrivalRate = openArrivalRate; |
413 | openArrivalRate = newOpenArrivalRate; |
414 | if (eNotificationRequired()) |
415 | eNotify(new ENotificationImpl(this, Notification.SET, LqnCorePackage.ENTRY_TYPE__OPEN_ARRIVAL_RATE, oldOpenArrivalRate, openArrivalRate)); |
416 | } |
417 | |
418 | /** |
419 | * <!-- begin-user-doc --> |
420 | * <!-- end-user-doc --> |
421 | * @generated |
422 | */ |
423 | public int getPriority() { |
424 | return priority; |
425 | } |
426 | |
427 | /** |
428 | * <!-- begin-user-doc --> |
429 | * <!-- end-user-doc --> |
430 | * @generated |
431 | */ |
432 | public void setPriority(int newPriority) { |
433 | int oldPriority = priority; |
434 | priority = newPriority; |
435 | boolean oldPriorityESet = priorityESet; |
436 | priorityESet = true; |
437 | if (eNotificationRequired()) |
438 | eNotify(new ENotificationImpl(this, Notification.SET, LqnCorePackage.ENTRY_TYPE__PRIORITY, oldPriority, priority, !oldPriorityESet)); |
439 | } |
440 | |
441 | /** |
442 | * <!-- begin-user-doc --> |
443 | * <!-- end-user-doc --> |
444 | * @generated |
445 | */ |
446 | public void unsetPriority() { |
447 | int oldPriority = priority; |
448 | boolean oldPriorityESet = priorityESet; |
449 | priority = PRIORITY_EDEFAULT; |
450 | priorityESet = false; |
451 | if (eNotificationRequired()) |
452 | eNotify(new ENotificationImpl(this, Notification.UNSET, LqnCorePackage.ENTRY_TYPE__PRIORITY, oldPriority, PRIORITY_EDEFAULT, oldPriorityESet)); |
453 | } |
454 | |
455 | /** |
456 | * <!-- begin-user-doc --> |
457 | * <!-- end-user-doc --> |
458 | * @generated |
459 | */ |
460 | public boolean isSetPriority() { |
461 | return priorityESet; |
462 | } |
463 | |
464 | /** |
465 | * <!-- begin-user-doc --> |
466 | * <!-- end-user-doc --> |
467 | * @generated |
468 | */ |
469 | public SemaphoreType getSemaphore() { |
470 | return semaphore; |
471 | } |
472 | |
473 | /** |
474 | * <!-- begin-user-doc --> |
475 | * <!-- end-user-doc --> |
476 | * @generated |
477 | */ |
478 | public void setSemaphore(SemaphoreType newSemaphore) { |
479 | SemaphoreType oldSemaphore = semaphore; |
480 | semaphore = newSemaphore == null ? SEMAPHORE_EDEFAULT : newSemaphore; |
481 | boolean oldSemaphoreESet = semaphoreESet; |
482 | semaphoreESet = true; |
483 | if (eNotificationRequired()) |
484 | eNotify(new ENotificationImpl(this, Notification.SET, LqnCorePackage.ENTRY_TYPE__SEMAPHORE, oldSemaphore, semaphore, !oldSemaphoreESet)); |
485 | } |
486 | |
487 | /** |
488 | * <!-- begin-user-doc --> |
489 | * <!-- end-user-doc --> |
490 | * @generated |
491 | */ |
492 | public void unsetSemaphore() { |
493 | SemaphoreType oldSemaphore = semaphore; |
494 | boolean oldSemaphoreESet = semaphoreESet; |
495 | semaphore = SEMAPHORE_EDEFAULT; |
496 | semaphoreESet = false; |
497 | if (eNotificationRequired()) |
498 | eNotify(new ENotificationImpl(this, Notification.UNSET, LqnCorePackage.ENTRY_TYPE__SEMAPHORE, oldSemaphore, SEMAPHORE_EDEFAULT, oldSemaphoreESet)); |
499 | } |
500 | |
501 | /** |
502 | * <!-- begin-user-doc --> |
503 | * <!-- end-user-doc --> |
504 | * @generated |
505 | */ |
506 | public boolean isSetSemaphore() { |
507 | return semaphoreESet; |
508 | } |
509 | |
510 | /** |
511 | * <!-- begin-user-doc --> |
512 | * <!-- end-user-doc --> |
513 | * @generated |
514 | */ |
515 | public TypeType getType() { |
516 | return type; |
517 | } |
518 | |
519 | /** |
520 | * <!-- begin-user-doc --> |
521 | * <!-- end-user-doc --> |
522 | * @generated |
523 | */ |
524 | public void setType(TypeType newType) { |
525 | TypeType oldType = type; |
526 | type = newType == null ? TYPE_EDEFAULT : newType; |
527 | boolean oldTypeESet = typeESet; |
528 | typeESet = true; |
529 | if (eNotificationRequired()) |
530 | eNotify(new ENotificationImpl(this, Notification.SET, LqnCorePackage.ENTRY_TYPE__TYPE, oldType, type, !oldTypeESet)); |
531 | } |
532 | |
533 | /** |
534 | * <!-- begin-user-doc --> |
535 | * <!-- end-user-doc --> |
536 | * @generated |
537 | */ |
538 | public void unsetType() { |
539 | TypeType oldType = type; |
540 | boolean oldTypeESet = typeESet; |
541 | type = TYPE_EDEFAULT; |
542 | typeESet = false; |
543 | if (eNotificationRequired()) |
544 | eNotify(new ENotificationImpl(this, Notification.UNSET, LqnCorePackage.ENTRY_TYPE__TYPE, oldType, TYPE_EDEFAULT, oldTypeESet)); |
545 | } |
546 | |
547 | /** |
548 | * <!-- begin-user-doc --> |
549 | * <!-- end-user-doc --> |
550 | * @generated |
551 | */ |
552 | public boolean isSetType() { |
553 | return typeESet; |
554 | } |
555 | |
556 | /** |
557 | * <!-- begin-user-doc --> |
558 | * <!-- end-user-doc --> |
559 | * @generated |
560 | */ |
561 | @Override |
562 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { |
563 | switch (featureID) { |
564 | case LqnCorePackage.ENTRY_TYPE__RESULT_ENTRY: |
565 | return ((InternalEList<?>)getResultEntry()).basicRemove(otherEnd, msgs); |
566 | case LqnCorePackage.ENTRY_TYPE__SERVICE_TIME_DISTRIBUTION: |
567 | return ((InternalEList<?>)getServiceTimeDistribution()).basicRemove(otherEnd, msgs); |
568 | case LqnCorePackage.ENTRY_TYPE__FORWARDING: |
569 | return ((InternalEList<?>)getForwarding()).basicRemove(otherEnd, msgs); |
570 | case LqnCorePackage.ENTRY_TYPE__ENTRY_ACTIVITY_GRAPH: |
571 | return basicSetEntryActivityGraph(null, msgs); |
572 | case LqnCorePackage.ENTRY_TYPE__ENTRY_PHASE_ACTIVITIES: |
573 | return basicSetEntryPhaseActivities(null, msgs); |
574 | } |
575 | return super.eInverseRemove(otherEnd, featureID, msgs); |
576 | } |
577 | |
578 | /** |
579 | * <!-- begin-user-doc --> |
580 | * <!-- end-user-doc --> |
581 | * @generated |
582 | */ |
583 | @Override |
584 | public Object eGet(int featureID, boolean resolve, boolean coreType) { |
585 | switch (featureID) { |
586 | case LqnCorePackage.ENTRY_TYPE__RESULT_ENTRY: |
587 | return getResultEntry(); |
588 | case LqnCorePackage.ENTRY_TYPE__SERVICE_TIME_DISTRIBUTION: |
589 | return getServiceTimeDistribution(); |
590 | case LqnCorePackage.ENTRY_TYPE__FORWARDING: |
591 | return getForwarding(); |
592 | case LqnCorePackage.ENTRY_TYPE__ENTRY_ACTIVITY_GRAPH: |
593 | return getEntryActivityGraph(); |
594 | case LqnCorePackage.ENTRY_TYPE__ENTRY_PHASE_ACTIVITIES: |
595 | return getEntryPhaseActivities(); |
596 | case LqnCorePackage.ENTRY_TYPE__NAME: |
597 | return getName(); |
598 | case LqnCorePackage.ENTRY_TYPE__OPEN_ARRIVAL_RATE: |
599 | return getOpenArrivalRate(); |
600 | case LqnCorePackage.ENTRY_TYPE__PRIORITY: |
601 | return new Integer(getPriority()); |
602 | case LqnCorePackage.ENTRY_TYPE__SEMAPHORE: |
603 | return getSemaphore(); |
604 | case LqnCorePackage.ENTRY_TYPE__TYPE: |
605 | return getType(); |
606 | } |
607 | return super.eGet(featureID, resolve, coreType); |
608 | } |
609 | |
610 | /** |
611 | * <!-- begin-user-doc --> |
612 | * <!-- end-user-doc --> |
613 | * @generated |
614 | */ |
615 | @SuppressWarnings("unchecked") |
616 | @Override |
617 | public void eSet(int featureID, Object newValue) { |
618 | switch (featureID) { |
619 | case LqnCorePackage.ENTRY_TYPE__RESULT_ENTRY: |
620 | getResultEntry().clear(); |
621 | getResultEntry().addAll((Collection<? extends OutputResultType>)newValue); |
622 | return; |
623 | case LqnCorePackage.ENTRY_TYPE__SERVICE_TIME_DISTRIBUTION: |
624 | getServiceTimeDistribution().clear(); |
625 | getServiceTimeDistribution().addAll((Collection<? extends OutputEntryDistributionType>)newValue); |
626 | return; |
627 | case LqnCorePackage.ENTRY_TYPE__FORWARDING: |
628 | getForwarding().clear(); |
629 | getForwarding().addAll((Collection<? extends EntryMakingCallType>)newValue); |
630 | return; |
631 | case LqnCorePackage.ENTRY_TYPE__ENTRY_ACTIVITY_GRAPH: |
632 | setEntryActivityGraph((EntryActivityGraph)newValue); |
633 | return; |
634 | case LqnCorePackage.ENTRY_TYPE__ENTRY_PHASE_ACTIVITIES: |
635 | setEntryPhaseActivities((PhaseActivities)newValue); |
636 | return; |
637 | case LqnCorePackage.ENTRY_TYPE__NAME: |
638 | setName((String)newValue); |
639 | return; |
640 | case LqnCorePackage.ENTRY_TYPE__OPEN_ARRIVAL_RATE: |
641 | setOpenArrivalRate(newValue); |
642 | return; |
643 | case LqnCorePackage.ENTRY_TYPE__PRIORITY: |
644 | setPriority(((Integer)newValue).intValue()); |
645 | return; |
646 | case LqnCorePackage.ENTRY_TYPE__SEMAPHORE: |
647 | setSemaphore((SemaphoreType)newValue); |
648 | return; |
649 | case LqnCorePackage.ENTRY_TYPE__TYPE: |
650 | setType((TypeType)newValue); |
651 | return; |
652 | } |
653 | super.eSet(featureID, newValue); |
654 | } |
655 | |
656 | /** |
657 | * <!-- begin-user-doc --> |
658 | * <!-- end-user-doc --> |
659 | * @generated |
660 | */ |
661 | @Override |
662 | public void eUnset(int featureID) { |
663 | switch (featureID) { |
664 | case LqnCorePackage.ENTRY_TYPE__RESULT_ENTRY: |
665 | getResultEntry().clear(); |
666 | return; |
667 | case LqnCorePackage.ENTRY_TYPE__SERVICE_TIME_DISTRIBUTION: |
668 | getServiceTimeDistribution().clear(); |
669 | return; |
670 | case LqnCorePackage.ENTRY_TYPE__FORWARDING: |
671 | getForwarding().clear(); |
672 | return; |
673 | case LqnCorePackage.ENTRY_TYPE__ENTRY_ACTIVITY_GRAPH: |
674 | setEntryActivityGraph((EntryActivityGraph)null); |
675 | return; |
676 | case LqnCorePackage.ENTRY_TYPE__ENTRY_PHASE_ACTIVITIES: |
677 | setEntryPhaseActivities((PhaseActivities)null); |
678 | return; |
679 | case LqnCorePackage.ENTRY_TYPE__NAME: |
680 | setName(NAME_EDEFAULT); |
681 | return; |
682 | case LqnCorePackage.ENTRY_TYPE__OPEN_ARRIVAL_RATE: |
683 | setOpenArrivalRate(OPEN_ARRIVAL_RATE_EDEFAULT); |
684 | return; |
685 | case LqnCorePackage.ENTRY_TYPE__PRIORITY: |
686 | unsetPriority(); |
687 | return; |
688 | case LqnCorePackage.ENTRY_TYPE__SEMAPHORE: |
689 | unsetSemaphore(); |
690 | return; |
691 | case LqnCorePackage.ENTRY_TYPE__TYPE: |
692 | unsetType(); |
693 | return; |
694 | } |
695 | super.eUnset(featureID); |
696 | } |
697 | |
698 | /** |
699 | * <!-- begin-user-doc --> |
700 | * <!-- end-user-doc --> |
701 | * @generated |
702 | */ |
703 | @Override |
704 | public boolean eIsSet(int featureID) { |
705 | switch (featureID) { |
706 | case LqnCorePackage.ENTRY_TYPE__RESULT_ENTRY: |
707 | return resultEntry != null && !resultEntry.isEmpty(); |
708 | case LqnCorePackage.ENTRY_TYPE__SERVICE_TIME_DISTRIBUTION: |
709 | return serviceTimeDistribution != null && !serviceTimeDistribution.isEmpty(); |
710 | case LqnCorePackage.ENTRY_TYPE__FORWARDING: |
711 | return forwarding != null && !forwarding.isEmpty(); |
712 | case LqnCorePackage.ENTRY_TYPE__ENTRY_ACTIVITY_GRAPH: |
713 | return entryActivityGraph != null; |
714 | case LqnCorePackage.ENTRY_TYPE__ENTRY_PHASE_ACTIVITIES: |
715 | return entryPhaseActivities != null; |
716 | case LqnCorePackage.ENTRY_TYPE__NAME: |
717 | return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); |
718 | case LqnCorePackage.ENTRY_TYPE__OPEN_ARRIVAL_RATE: |
719 | return OPEN_ARRIVAL_RATE_EDEFAULT == null ? openArrivalRate != null : !OPEN_ARRIVAL_RATE_EDEFAULT.equals(openArrivalRate); |
720 | case LqnCorePackage.ENTRY_TYPE__PRIORITY: |
721 | return isSetPriority(); |
722 | case LqnCorePackage.ENTRY_TYPE__SEMAPHORE: |
723 | return isSetSemaphore(); |
724 | case LqnCorePackage.ENTRY_TYPE__TYPE: |
725 | return isSetType(); |
726 | } |
727 | return super.eIsSet(featureID); |
728 | } |
729 | |
730 | /** |
731 | * <!-- begin-user-doc --> |
732 | * <!-- end-user-doc --> |
733 | * @generated |
734 | */ |
735 | @Override |
736 | public String toString() { |
737 | if (eIsProxy()) return super.toString(); |
738 | |
739 | StringBuffer result = new StringBuffer(super.toString()); |
740 | result.append(" (name: "); |
741 | result.append(name); |
742 | result.append(", openArrivalRate: "); |
743 | result.append(openArrivalRate); |
744 | result.append(", priority: "); |
745 | if (priorityESet) result.append(priority); else result.append("<unset>"); |
746 | result.append(", semaphore: "); |
747 | if (semaphoreESet) result.append(semaphore); else result.append("<unset>"); |
748 | result.append(", type: "); |
749 | if (typeESet) result.append(type); else result.append("<unset>"); |
750 | result.append(')'); |
751 | return result.toString(); |
752 | } |
753 | |
754 | } //EntryTypeImpl |