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

COVERAGE SUMMARY FOR SOURCE FILE [ActivityDefBaseImpl.java]

nameclass, %method, %block, %line, %
ActivityDefBaseImpl.java0%   (0/1)0%   (0/27)0%   (0/697)0%   (0/170)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ActivityDefBaseImpl0%   (0/1)0%   (0/27)0%   (0/697)0%   (0/170)
<static initializer> 0%   (0/1)0%   (0/13)0%   (0/7)
ActivityDefBaseImpl (): void 0%   (0/1)0%   (0/21)0%   (0/8)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/38)0%   (0/12)
eInverseRemove (InternalEObject, int, NotificationChain): NotificationChain 0%   (0/1)0%   (0/36)0%   (0/6)
eIsSet (int): boolean 0%   (0/1)0%   (0/143)0%   (0/12)
eSet (int, Object): void 0%   (0/1)0%   (0/73)0%   (0/27)
eStaticClass (): EClass 0%   (0/1)0%   (0/2)0%   (0/1)
eUnset (int): void 0%   (0/1)0%   (0/45)0%   (0/23)
getCallOrder (): CallOrderType 0%   (0/1)0%   (0/3)0%   (0/1)
getHostDemandCvsq (): Object 0%   (0/1)0%   (0/3)0%   (0/1)
getHostDemandMean (): Object 0%   (0/1)0%   (0/3)0%   (0/1)
getMaxServiceTime (): Object 0%   (0/1)0%   (0/3)0%   (0/1)
getName (): String 0%   (0/1)0%   (0/3)0%   (0/1)
getResultActivity (): EList 0%   (0/1)0%   (0/14)0%   (0/3)
getResultForwarding (): EList 0%   (0/1)0%   (0/14)0%   (0/3)
getResultJoinDelay (): EList 0%   (0/1)0%   (0/14)0%   (0/3)
getServiceTimeDistribution (): EList 0%   (0/1)0%   (0/14)0%   (0/3)
getThinkTime (): Object 0%   (0/1)0%   (0/3)0%   (0/1)
isSetCallOrder (): boolean 0%   (0/1)0%   (0/3)0%   (0/1)
setCallOrder (CallOrderType): void 0%   (0/1)0%   (0/36)0%   (0/7)
setHostDemandCvsq (Object): void 0%   (0/1)0%   (0/21)0%   (0/5)
setHostDemandMean (Object): void 0%   (0/1)0%   (0/21)0%   (0/5)
setMaxServiceTime (Object): void 0%   (0/1)0%   (0/21)0%   (0/5)
setName (String): void 0%   (0/1)0%   (0/21)0%   (0/5)
setThinkTime (Object): void 0%   (0/1)0%   (0/21)0%   (0/5)
toString (): String 0%   (0/1)0%   (0/81)0%   (0/16)
unsetCallOrder (): 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.ActivityDefBase;
10import LqnCore.CallOrderType;
11import LqnCore.LqnCorePackage;
12import LqnCore.OutputDistributionType;
13import LqnCore.OutputResultForwardingANDJoinDelay;
14import LqnCore.OutputResultType;
15 
16import java.util.Collection;
17 
18import org.eclipse.emf.common.notify.Notification;
19import org.eclipse.emf.common.notify.NotificationChain;
20 
21import org.eclipse.emf.common.util.EList;
22 
23import org.eclipse.emf.ecore.EClass;
24import org.eclipse.emf.ecore.InternalEObject;
25 
26import org.eclipse.emf.ecore.impl.ENotificationImpl;
27import org.eclipse.emf.ecore.impl.EObjectImpl;
28 
29import org.eclipse.emf.ecore.util.EObjectContainmentEList;
30import org.eclipse.emf.ecore.util.InternalEList;
31 
32/**
33 * <!-- begin-user-doc -->
34 * An implementation of the model object '<em><b>Activity Def Base</b></em>'.
35 * <!-- end-user-doc -->
36 * <p>
37 * The following features are implemented:
38 * <ul>
39 *   <li>{@link LqnCore.impl.ActivityDefBaseImpl#getResultJoinDelay <em>Result Join Delay</em>}</li>
40 *   <li>{@link LqnCore.impl.ActivityDefBaseImpl#getResultForwarding <em>Result Forwarding</em>}</li>
41 *   <li>{@link LqnCore.impl.ActivityDefBaseImpl#getServiceTimeDistribution <em>Service Time Distribution</em>}</li>
42 *   <li>{@link LqnCore.impl.ActivityDefBaseImpl#getResultActivity <em>Result Activity</em>}</li>
43 *   <li>{@link LqnCore.impl.ActivityDefBaseImpl#getCallOrder <em>Call Order</em>}</li>
44 *   <li>{@link LqnCore.impl.ActivityDefBaseImpl#getHostDemandCvsq <em>Host Demand Cvsq</em>}</li>
45 *   <li>{@link LqnCore.impl.ActivityDefBaseImpl#getHostDemandMean <em>Host Demand Mean</em>}</li>
46 *   <li>{@link LqnCore.impl.ActivityDefBaseImpl#getMaxServiceTime <em>Max Service Time</em>}</li>
47 *   <li>{@link LqnCore.impl.ActivityDefBaseImpl#getName <em>Name</em>}</li>
48 *   <li>{@link LqnCore.impl.ActivityDefBaseImpl#getThinkTime <em>Think Time</em>}</li>
49 * </ul>
50 * </p>
51 *
52 * @generated
53 */
54public class ActivityDefBaseImpl extends EObjectImpl implements ActivityDefBase {
55        /**
56         * The cached value of the '{@link #getResultJoinDelay() <em>Result Join Delay</em>}' containment reference list.
57         * <!-- begin-user-doc -->
58         * <!-- end-user-doc -->
59         * @see #getResultJoinDelay()
60         * @generated
61         * @ordered
62         */
63        protected EList<OutputResultForwardingANDJoinDelay> resultJoinDelay;
64 
65        /**
66         * The cached value of the '{@link #getResultForwarding() <em>Result Forwarding</em>}' containment reference list.
67         * <!-- begin-user-doc -->
68         * <!-- end-user-doc -->
69         * @see #getResultForwarding()
70         * @generated
71         * @ordered
72         */
73        protected EList<OutputResultForwardingANDJoinDelay> resultForwarding;
74 
75        /**
76         * The cached value of the '{@link #getServiceTimeDistribution() <em>Service Time Distribution</em>}' containment reference list.
77         * <!-- begin-user-doc -->
78         * <!-- end-user-doc -->
79         * @see #getServiceTimeDistribution()
80         * @generated
81         * @ordered
82         */
83        protected EList<OutputDistributionType> serviceTimeDistribution;
84 
85        /**
86         * The cached value of the '{@link #getResultActivity() <em>Result Activity</em>}' containment reference list.
87         * <!-- begin-user-doc -->
88         * <!-- end-user-doc -->
89         * @see #getResultActivity()
90         * @generated
91         * @ordered
92         */
93        protected EList<OutputResultType> resultActivity;
94 
95        /**
96         * The default value of the '{@link #getCallOrder() <em>Call Order</em>}' attribute.
97         * <!-- begin-user-doc -->
98         * <!-- end-user-doc -->
99         * @see #getCallOrder()
100         * @generated
101         * @ordered
102         */
103        protected static final CallOrderType CALL_ORDER_EDEFAULT = CallOrderType.STOCHASTIC;
104 
105        /**
106         * The cached value of the '{@link #getCallOrder() <em>Call Order</em>}' attribute.
107         * <!-- begin-user-doc -->
108         * <!-- end-user-doc -->
109         * @see #getCallOrder()
110         * @generated
111         * @ordered
112         */
113        protected CallOrderType callOrder = CALL_ORDER_EDEFAULT;
114 
115        /**
116         * This is true if the Call Order attribute has been set.
117         * <!-- begin-user-doc -->
118         * <!-- end-user-doc -->
119         * @generated
120         * @ordered
121         */
122        protected boolean callOrderESet;
123 
124        /**
125         * The default value of the '{@link #getHostDemandCvsq() <em>Host Demand Cvsq</em>}' attribute.
126         * <!-- begin-user-doc -->
127         * <!-- end-user-doc -->
128         * @see #getHostDemandCvsq()
129         * @generated
130         * @ordered
131         */
132        protected static final Object HOST_DEMAND_CVSQ_EDEFAULT = null;
133 
134        /**
135         * The cached value of the '{@link #getHostDemandCvsq() <em>Host Demand Cvsq</em>}' attribute.
136         * <!-- begin-user-doc -->
137         * <!-- end-user-doc -->
138         * @see #getHostDemandCvsq()
139         * @generated
140         * @ordered
141         */
142        protected Object hostDemandCvsq = HOST_DEMAND_CVSQ_EDEFAULT;
143 
144        /**
145         * The default value of the '{@link #getHostDemandMean() <em>Host Demand Mean</em>}' attribute.
146         * <!-- begin-user-doc -->
147         * <!-- end-user-doc -->
148         * @see #getHostDemandMean()
149         * @generated
150         * @ordered
151         */
152        protected static final Object HOST_DEMAND_MEAN_EDEFAULT = null;
153 
154        /**
155         * The cached value of the '{@link #getHostDemandMean() <em>Host Demand Mean</em>}' attribute.
156         * <!-- begin-user-doc -->
157         * <!-- end-user-doc -->
158         * @see #getHostDemandMean()
159         * @generated
160         * @ordered
161         */
162        protected Object hostDemandMean = HOST_DEMAND_MEAN_EDEFAULT;
163 
164        /**
165         * The default value of the '{@link #getMaxServiceTime() <em>Max Service Time</em>}' attribute.
166         * <!-- begin-user-doc -->
167         * <!-- end-user-doc -->
168         * @see #getMaxServiceTime()
169         * @generated
170         * @ordered
171         */
172        protected static final Object MAX_SERVICE_TIME_EDEFAULT = null;
173 
174        /**
175         * The cached value of the '{@link #getMaxServiceTime() <em>Max Service Time</em>}' attribute.
176         * <!-- begin-user-doc -->
177         * <!-- end-user-doc -->
178         * @see #getMaxServiceTime()
179         * @generated
180         * @ordered
181         */
182        protected Object maxServiceTime = MAX_SERVICE_TIME_EDEFAULT;
183 
184        /**
185         * The default value of the '{@link #getName() <em>Name</em>}' attribute.
186         * <!-- begin-user-doc -->
187         * <!-- end-user-doc -->
188         * @see #getName()
189         * @generated
190         * @ordered
191         */
192        protected static final String NAME_EDEFAULT = null;
193 
194        /**
195         * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
196         * <!-- begin-user-doc -->
197         * <!-- end-user-doc -->
198         * @see #getName()
199         * @generated
200         * @ordered
201         */
202        protected String name = NAME_EDEFAULT;
203 
204        /**
205         * The default value of the '{@link #getThinkTime() <em>Think Time</em>}' attribute.
206         * <!-- begin-user-doc -->
207         * <!-- end-user-doc -->
208         * @see #getThinkTime()
209         * @generated
210         * @ordered
211         */
212        protected static final Object THINK_TIME_EDEFAULT = null;
213 
214        /**
215         * The cached value of the '{@link #getThinkTime() <em>Think Time</em>}' attribute.
216         * <!-- begin-user-doc -->
217         * <!-- end-user-doc -->
218         * @see #getThinkTime()
219         * @generated
220         * @ordered
221         */
222        protected Object thinkTime = THINK_TIME_EDEFAULT;
223 
224        /**
225         * <!-- begin-user-doc -->
226         * <!-- end-user-doc -->
227         * @generated
228         */
229        protected ActivityDefBaseImpl() {
230                super();
231        }
232 
233        /**
234         * <!-- begin-user-doc -->
235         * <!-- end-user-doc -->
236         * @generated
237         */
238        @Override
239        protected EClass eStaticClass() {
240                return LqnCorePackage.Literals.ACTIVITY_DEF_BASE;
241        }
242 
243        /**
244         * <!-- begin-user-doc -->
245         * <!-- end-user-doc -->
246         * @generated
247         */
248        public EList<OutputResultForwardingANDJoinDelay> getResultJoinDelay() {
249                if (resultJoinDelay == null) {
250                        resultJoinDelay = new EObjectContainmentEList<OutputResultForwardingANDJoinDelay>(OutputResultForwardingANDJoinDelay.class, this, LqnCorePackage.ACTIVITY_DEF_BASE__RESULT_JOIN_DELAY);
251                }
252                return resultJoinDelay;
253        }
254 
255        /**
256         * <!-- begin-user-doc -->
257         * <!-- end-user-doc -->
258         * @generated
259         */
260        public EList<OutputResultForwardingANDJoinDelay> getResultForwarding() {
261                if (resultForwarding == null) {
262                        resultForwarding = new EObjectContainmentEList<OutputResultForwardingANDJoinDelay>(OutputResultForwardingANDJoinDelay.class, this, LqnCorePackage.ACTIVITY_DEF_BASE__RESULT_FORWARDING);
263                }
264                return resultForwarding;
265        }
266 
267        /**
268         * <!-- begin-user-doc -->
269         * <!-- end-user-doc -->
270         * @generated
271         */
272        public EList<OutputDistributionType> getServiceTimeDistribution() {
273                if (serviceTimeDistribution == null) {
274                        serviceTimeDistribution = new EObjectContainmentEList<OutputDistributionType>(OutputDistributionType.class, this, LqnCorePackage.ACTIVITY_DEF_BASE__SERVICE_TIME_DISTRIBUTION);
275                }
276                return serviceTimeDistribution;
277        }
278 
279        /**
280         * <!-- begin-user-doc -->
281         * <!-- end-user-doc -->
282         * @generated
283         */
284        public EList<OutputResultType> getResultActivity() {
285                if (resultActivity == null) {
286                        resultActivity = new EObjectContainmentEList<OutputResultType>(OutputResultType.class, this, LqnCorePackage.ACTIVITY_DEF_BASE__RESULT_ACTIVITY);
287                }
288                return resultActivity;
289        }
290 
291        /**
292         * <!-- begin-user-doc -->
293         * <!-- end-user-doc -->
294         * @generated
295         */
296        public CallOrderType getCallOrder() {
297                return callOrder;
298        }
299 
300        /**
301         * <!-- begin-user-doc -->
302         * <!-- end-user-doc -->
303         * @generated
304         */
305        public void setCallOrder(CallOrderType newCallOrder) {
306                CallOrderType oldCallOrder = callOrder;
307                callOrder = newCallOrder == null ? CALL_ORDER_EDEFAULT : newCallOrder;
308                boolean oldCallOrderESet = callOrderESet;
309                callOrderESet = true;
310                if (eNotificationRequired())
311                        eNotify(new ENotificationImpl(this, Notification.SET, LqnCorePackage.ACTIVITY_DEF_BASE__CALL_ORDER, oldCallOrder, callOrder, !oldCallOrderESet));
312        }
313 
314        /**
315         * <!-- begin-user-doc -->
316         * <!-- end-user-doc -->
317         * @generated
318         */
319        public void unsetCallOrder() {
320                CallOrderType oldCallOrder = callOrder;
321                boolean oldCallOrderESet = callOrderESet;
322                callOrder = CALL_ORDER_EDEFAULT;
323                callOrderESet = false;
324                if (eNotificationRequired())
325                        eNotify(new ENotificationImpl(this, Notification.UNSET, LqnCorePackage.ACTIVITY_DEF_BASE__CALL_ORDER, oldCallOrder, CALL_ORDER_EDEFAULT, oldCallOrderESet));
326        }
327 
328        /**
329         * <!-- begin-user-doc -->
330         * <!-- end-user-doc -->
331         * @generated
332         */
333        public boolean isSetCallOrder() {
334                return callOrderESet;
335        }
336 
337        /**
338         * <!-- begin-user-doc -->
339         * <!-- end-user-doc -->
340         * @generated
341         */
342        public Object getHostDemandCvsq() {
343                return hostDemandCvsq;
344        }
345 
346        /**
347         * <!-- begin-user-doc -->
348         * <!-- end-user-doc -->
349         * @generated
350         */
351        public void setHostDemandCvsq(Object newHostDemandCvsq) {
352                Object oldHostDemandCvsq = hostDemandCvsq;
353                hostDemandCvsq = newHostDemandCvsq;
354                if (eNotificationRequired())
355                        eNotify(new ENotificationImpl(this, Notification.SET, LqnCorePackage.ACTIVITY_DEF_BASE__HOST_DEMAND_CVSQ, oldHostDemandCvsq, hostDemandCvsq));
356        }
357 
358        /**
359         * <!-- begin-user-doc -->
360         * <!-- end-user-doc -->
361         * @generated
362         */
363        public Object getHostDemandMean() {
364                return hostDemandMean;
365        }
366 
367        /**
368         * <!-- begin-user-doc -->
369         * <!-- end-user-doc -->
370         * @generated
371         */
372        public void setHostDemandMean(Object newHostDemandMean) {
373                Object oldHostDemandMean = hostDemandMean;
374                hostDemandMean = newHostDemandMean;
375                if (eNotificationRequired())
376                        eNotify(new ENotificationImpl(this, Notification.SET, LqnCorePackage.ACTIVITY_DEF_BASE__HOST_DEMAND_MEAN, oldHostDemandMean, hostDemandMean));
377        }
378 
379        /**
380         * <!-- begin-user-doc -->
381         * <!-- end-user-doc -->
382         * @generated
383         */
384        public Object getMaxServiceTime() {
385                return maxServiceTime;
386        }
387 
388        /**
389         * <!-- begin-user-doc -->
390         * <!-- end-user-doc -->
391         * @generated
392         */
393        public void setMaxServiceTime(Object newMaxServiceTime) {
394                Object oldMaxServiceTime = maxServiceTime;
395                maxServiceTime = newMaxServiceTime;
396                if (eNotificationRequired())
397                        eNotify(new ENotificationImpl(this, Notification.SET, LqnCorePackage.ACTIVITY_DEF_BASE__MAX_SERVICE_TIME, oldMaxServiceTime, maxServiceTime));
398        }
399 
400        /**
401         * <!-- begin-user-doc -->
402         * <!-- end-user-doc -->
403         * @generated
404         */
405        public String getName() {
406                return name;
407        }
408 
409        /**
410         * <!-- begin-user-doc -->
411         * <!-- end-user-doc -->
412         * @generated
413         */
414        public void setName(String newName) {
415                String oldName = name;
416                name = newName;
417                if (eNotificationRequired())
418                        eNotify(new ENotificationImpl(this, Notification.SET, LqnCorePackage.ACTIVITY_DEF_BASE__NAME, oldName, name));
419        }
420 
421        /**
422         * <!-- begin-user-doc -->
423         * <!-- end-user-doc -->
424         * @generated
425         */
426        public Object getThinkTime() {
427                return thinkTime;
428        }
429 
430        /**
431         * <!-- begin-user-doc -->
432         * <!-- end-user-doc -->
433         * @generated
434         */
435        public void setThinkTime(Object newThinkTime) {
436                Object oldThinkTime = thinkTime;
437                thinkTime = newThinkTime;
438                if (eNotificationRequired())
439                        eNotify(new ENotificationImpl(this, Notification.SET, LqnCorePackage.ACTIVITY_DEF_BASE__THINK_TIME, oldThinkTime, thinkTime));
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 LqnCorePackage.ACTIVITY_DEF_BASE__RESULT_JOIN_DELAY:
451                                return ((InternalEList<?>)getResultJoinDelay()).basicRemove(otherEnd, msgs);
452                        case LqnCorePackage.ACTIVITY_DEF_BASE__RESULT_FORWARDING:
453                                return ((InternalEList<?>)getResultForwarding()).basicRemove(otherEnd, msgs);
454                        case LqnCorePackage.ACTIVITY_DEF_BASE__SERVICE_TIME_DISTRIBUTION:
455                                return ((InternalEList<?>)getServiceTimeDistribution()).basicRemove(otherEnd, msgs);
456                        case LqnCorePackage.ACTIVITY_DEF_BASE__RESULT_ACTIVITY:
457                                return ((InternalEList<?>)getResultActivity()).basicRemove(otherEnd, 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 LqnCorePackage.ACTIVITY_DEF_BASE__RESULT_JOIN_DELAY:
471                                return getResultJoinDelay();
472                        case LqnCorePackage.ACTIVITY_DEF_BASE__RESULT_FORWARDING:
473                                return getResultForwarding();
474                        case LqnCorePackage.ACTIVITY_DEF_BASE__SERVICE_TIME_DISTRIBUTION:
475                                return getServiceTimeDistribution();
476                        case LqnCorePackage.ACTIVITY_DEF_BASE__RESULT_ACTIVITY:
477                                return getResultActivity();
478                        case LqnCorePackage.ACTIVITY_DEF_BASE__CALL_ORDER:
479                                return getCallOrder();
480                        case LqnCorePackage.ACTIVITY_DEF_BASE__HOST_DEMAND_CVSQ:
481                                return getHostDemandCvsq();
482                        case LqnCorePackage.ACTIVITY_DEF_BASE__HOST_DEMAND_MEAN:
483                                return getHostDemandMean();
484                        case LqnCorePackage.ACTIVITY_DEF_BASE__MAX_SERVICE_TIME:
485                                return getMaxServiceTime();
486                        case LqnCorePackage.ACTIVITY_DEF_BASE__NAME:
487                                return getName();
488                        case LqnCorePackage.ACTIVITY_DEF_BASE__THINK_TIME:
489                                return getThinkTime();
490                }
491                return super.eGet(featureID, resolve, coreType);
492        }
493 
494        /**
495         * <!-- begin-user-doc -->
496         * <!-- end-user-doc -->
497         * @generated
498         */
499        @SuppressWarnings("unchecked")
500        @Override
501        public void eSet(int featureID, Object newValue) {
502                switch (featureID) {
503                        case LqnCorePackage.ACTIVITY_DEF_BASE__RESULT_JOIN_DELAY:
504                                getResultJoinDelay().clear();
505                                getResultJoinDelay().addAll((Collection<? extends OutputResultForwardingANDJoinDelay>)newValue);
506                                return;
507                        case LqnCorePackage.ACTIVITY_DEF_BASE__RESULT_FORWARDING:
508                                getResultForwarding().clear();
509                                getResultForwarding().addAll((Collection<? extends OutputResultForwardingANDJoinDelay>)newValue);
510                                return;
511                        case LqnCorePackage.ACTIVITY_DEF_BASE__SERVICE_TIME_DISTRIBUTION:
512                                getServiceTimeDistribution().clear();
513                                getServiceTimeDistribution().addAll((Collection<? extends OutputDistributionType>)newValue);
514                                return;
515                        case LqnCorePackage.ACTIVITY_DEF_BASE__RESULT_ACTIVITY:
516                                getResultActivity().clear();
517                                getResultActivity().addAll((Collection<? extends OutputResultType>)newValue);
518                                return;
519                        case LqnCorePackage.ACTIVITY_DEF_BASE__CALL_ORDER:
520                                setCallOrder((CallOrderType)newValue);
521                                return;
522                        case LqnCorePackage.ACTIVITY_DEF_BASE__HOST_DEMAND_CVSQ:
523                                setHostDemandCvsq(newValue);
524                                return;
525                        case LqnCorePackage.ACTIVITY_DEF_BASE__HOST_DEMAND_MEAN:
526                                setHostDemandMean(newValue);
527                                return;
528                        case LqnCorePackage.ACTIVITY_DEF_BASE__MAX_SERVICE_TIME:
529                                setMaxServiceTime(newValue);
530                                return;
531                        case LqnCorePackage.ACTIVITY_DEF_BASE__NAME:
532                                setName((String)newValue);
533                                return;
534                        case LqnCorePackage.ACTIVITY_DEF_BASE__THINK_TIME:
535                                setThinkTime(newValue);
536                                return;
537                }
538                super.eSet(featureID, newValue);
539        }
540 
541        /**
542         * <!-- begin-user-doc -->
543         * <!-- end-user-doc -->
544         * @generated
545         */
546        @Override
547        public void eUnset(int featureID) {
548                switch (featureID) {
549                        case LqnCorePackage.ACTIVITY_DEF_BASE__RESULT_JOIN_DELAY:
550                                getResultJoinDelay().clear();
551                                return;
552                        case LqnCorePackage.ACTIVITY_DEF_BASE__RESULT_FORWARDING:
553                                getResultForwarding().clear();
554                                return;
555                        case LqnCorePackage.ACTIVITY_DEF_BASE__SERVICE_TIME_DISTRIBUTION:
556                                getServiceTimeDistribution().clear();
557                                return;
558                        case LqnCorePackage.ACTIVITY_DEF_BASE__RESULT_ACTIVITY:
559                                getResultActivity().clear();
560                                return;
561                        case LqnCorePackage.ACTIVITY_DEF_BASE__CALL_ORDER:
562                                unsetCallOrder();
563                                return;
564                        case LqnCorePackage.ACTIVITY_DEF_BASE__HOST_DEMAND_CVSQ:
565                                setHostDemandCvsq(HOST_DEMAND_CVSQ_EDEFAULT);
566                                return;
567                        case LqnCorePackage.ACTIVITY_DEF_BASE__HOST_DEMAND_MEAN:
568                                setHostDemandMean(HOST_DEMAND_MEAN_EDEFAULT);
569                                return;
570                        case LqnCorePackage.ACTIVITY_DEF_BASE__MAX_SERVICE_TIME:
571                                setMaxServiceTime(MAX_SERVICE_TIME_EDEFAULT);
572                                return;
573                        case LqnCorePackage.ACTIVITY_DEF_BASE__NAME:
574                                setName(NAME_EDEFAULT);
575                                return;
576                        case LqnCorePackage.ACTIVITY_DEF_BASE__THINK_TIME:
577                                setThinkTime(THINK_TIME_EDEFAULT);
578                                return;
579                }
580                super.eUnset(featureID);
581        }
582 
583        /**
584         * <!-- begin-user-doc -->
585         * <!-- end-user-doc -->
586         * @generated
587         */
588        @Override
589        public boolean eIsSet(int featureID) {
590                switch (featureID) {
591                        case LqnCorePackage.ACTIVITY_DEF_BASE__RESULT_JOIN_DELAY:
592                                return resultJoinDelay != null && !resultJoinDelay.isEmpty();
593                        case LqnCorePackage.ACTIVITY_DEF_BASE__RESULT_FORWARDING:
594                                return resultForwarding != null && !resultForwarding.isEmpty();
595                        case LqnCorePackage.ACTIVITY_DEF_BASE__SERVICE_TIME_DISTRIBUTION:
596                                return serviceTimeDistribution != null && !serviceTimeDistribution.isEmpty();
597                        case LqnCorePackage.ACTIVITY_DEF_BASE__RESULT_ACTIVITY:
598                                return resultActivity != null && !resultActivity.isEmpty();
599                        case LqnCorePackage.ACTIVITY_DEF_BASE__CALL_ORDER:
600                                return isSetCallOrder();
601                        case LqnCorePackage.ACTIVITY_DEF_BASE__HOST_DEMAND_CVSQ:
602                                return HOST_DEMAND_CVSQ_EDEFAULT == null ? hostDemandCvsq != null : !HOST_DEMAND_CVSQ_EDEFAULT.equals(hostDemandCvsq);
603                        case LqnCorePackage.ACTIVITY_DEF_BASE__HOST_DEMAND_MEAN:
604                                return HOST_DEMAND_MEAN_EDEFAULT == null ? hostDemandMean != null : !HOST_DEMAND_MEAN_EDEFAULT.equals(hostDemandMean);
605                        case LqnCorePackage.ACTIVITY_DEF_BASE__MAX_SERVICE_TIME:
606                                return MAX_SERVICE_TIME_EDEFAULT == null ? maxServiceTime != null : !MAX_SERVICE_TIME_EDEFAULT.equals(maxServiceTime);
607                        case LqnCorePackage.ACTIVITY_DEF_BASE__NAME:
608                                return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
609                        case LqnCorePackage.ACTIVITY_DEF_BASE__THINK_TIME:
610                                return THINK_TIME_EDEFAULT == null ? thinkTime != null : !THINK_TIME_EDEFAULT.equals(thinkTime);
611                }
612                return super.eIsSet(featureID);
613        }
614 
615        /**
616         * <!-- begin-user-doc -->
617         * <!-- end-user-doc -->
618         * @generated
619         */
620        @Override
621        public String toString() {
622                if (eIsProxy()) return super.toString();
623 
624                StringBuffer result = new StringBuffer(super.toString());
625                result.append(" (callOrder: ");
626                if (callOrderESet) result.append(callOrder); else result.append("<unset>");
627                result.append(", hostDemandCvsq: ");
628                result.append(hostDemandCvsq);
629                result.append(", hostDemandMean: ");
630                result.append(hostDemandMean);
631                result.append(", maxServiceTime: ");
632                result.append(maxServiceTime);
633                result.append(", name: ");
634                result.append(name);
635                result.append(", thinkTime: ");
636                result.append(thinkTime);
637                result.append(')');
638                return result.toString();
639        }
640 
641} //ActivityDefBaseImpl

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