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

COVERAGE SUMMARY FOR SOURCE FILE [OutputResultForwardingANDJoinDelayImpl.java]

nameclass, %method, %block, %line, %
OutputResultForwardingANDJoinDelayImpl.java0%   (0/1)0%   (0/19)0%   (0/427)0%   (0/106)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class OutputResultForwardingANDJoinDelayImpl0%   (0/1)0%   (0/19)0%   (0/427)0%   (0/106)
<static initializer> 0%   (0/1)0%   (0/9)0%   (0/5)
OutputResultForwardingANDJoinDelayImpl (): void 0%   (0/1)0%   (0/15)0%   (0/6)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/26)0%   (0/8)
eInverseRemove (InternalEObject, int, NotificationChain): NotificationChain 0%   (0/1)0%   (0/22)0%   (0/4)
eIsSet (int): boolean 0%   (0/1)0%   (0/100)0%   (0/8)
eSet (int, Object): void 0%   (0/1)0%   (0/44)0%   (0/17)
eStaticClass (): EClass 0%   (0/1)0%   (0/2)0%   (0/1)
eUnset (int): void 0%   (0/1)0%   (0/30)0%   (0/15)
getDest (): String 0%   (0/1)0%   (0/3)0%   (0/1)
getJoinVariance (): Object 0%   (0/1)0%   (0/3)0%   (0/1)
getJoinWaiting (): Object 0%   (0/1)0%   (0/3)0%   (0/1)
getResultConf95 (): EList 0%   (0/1)0%   (0/14)0%   (0/3)
getResultConf99 (): EList 0%   (0/1)0%   (0/14)0%   (0/3)
getWaiting (): Object 0%   (0/1)0%   (0/3)0%   (0/1)
setDest (String): void 0%   (0/1)0%   (0/21)0%   (0/5)
setJoinVariance (Object): void 0%   (0/1)0%   (0/21)0%   (0/5)
setJoinWaiting (Object): void 0%   (0/1)0%   (0/21)0%   (0/5)
setWaiting (Object): void 0%   (0/1)0%   (0/21)0%   (0/5)
toString (): String 0%   (0/1)0%   (0/55)0%   (0/12)

1/**
2 * <copyright>
3 * </copyright>
4 *
5 * $Id$
6 */
7package LqnCore.impl;
8 
9import LqnCore.LqnCorePackage;
10import LqnCore.OutputResultForwardingANDJoinDelay;
11import LqnCore.ResultConf95Type;
12import LqnCore.ResultConf99Type;
13 
14import java.util.Collection;
15 
16import org.eclipse.emf.common.notify.Notification;
17import org.eclipse.emf.common.notify.NotificationChain;
18 
19import org.eclipse.emf.common.util.EList;
20 
21import org.eclipse.emf.ecore.EClass;
22import org.eclipse.emf.ecore.InternalEObject;
23 
24import org.eclipse.emf.ecore.impl.ENotificationImpl;
25import org.eclipse.emf.ecore.impl.EObjectImpl;
26 
27import org.eclipse.emf.ecore.util.EObjectContainmentEList;
28import org.eclipse.emf.ecore.util.InternalEList;
29 
30/**
31 * <!-- begin-user-doc -->
32 * An implementation of the model object '<em><b>Output Result Forwarding AND Join Delay</b></em>'.
33 * <!-- end-user-doc -->
34 * <p>
35 * The following features are implemented:
36 * <ul>
37 *   <li>{@link LqnCore.impl.OutputResultForwardingANDJoinDelayImpl#getResultConf95 <em>Result Conf95</em>}</li>
38 *   <li>{@link LqnCore.impl.OutputResultForwardingANDJoinDelayImpl#getResultConf99 <em>Result Conf99</em>}</li>
39 *   <li>{@link LqnCore.impl.OutputResultForwardingANDJoinDelayImpl#getDest <em>Dest</em>}</li>
40 *   <li>{@link LqnCore.impl.OutputResultForwardingANDJoinDelayImpl#getJoinVariance <em>Join Variance</em>}</li>
41 *   <li>{@link LqnCore.impl.OutputResultForwardingANDJoinDelayImpl#getJoinWaiting <em>Join Waiting</em>}</li>
42 *   <li>{@link LqnCore.impl.OutputResultForwardingANDJoinDelayImpl#getWaiting <em>Waiting</em>}</li>
43 * </ul>
44 * </p>
45 *
46 * @generated
47 */
48public class OutputResultForwardingANDJoinDelayImpl extends EObjectImpl implements OutputResultForwardingANDJoinDelay {
49        /**
50         * The cached value of the '{@link #getResultConf95() <em>Result Conf95</em>}' containment reference list.
51         * <!-- begin-user-doc -->
52         * <!-- end-user-doc -->
53         * @see #getResultConf95()
54         * @generated
55         * @ordered
56         */
57        protected EList<ResultConf95Type> resultConf95;
58 
59        /**
60         * The cached value of the '{@link #getResultConf99() <em>Result Conf99</em>}' containment reference list.
61         * <!-- begin-user-doc -->
62         * <!-- end-user-doc -->
63         * @see #getResultConf99()
64         * @generated
65         * @ordered
66         */
67        protected EList<ResultConf99Type> resultConf99;
68 
69        /**
70         * The default value of the '{@link #getDest() <em>Dest</em>}' attribute.
71         * <!-- begin-user-doc -->
72         * <!-- end-user-doc -->
73         * @see #getDest()
74         * @generated
75         * @ordered
76         */
77        protected static final String DEST_EDEFAULT = null;
78 
79        /**
80         * The cached value of the '{@link #getDest() <em>Dest</em>}' attribute.
81         * <!-- begin-user-doc -->
82         * <!-- end-user-doc -->
83         * @see #getDest()
84         * @generated
85         * @ordered
86         */
87        protected String dest = DEST_EDEFAULT;
88 
89        /**
90         * The default value of the '{@link #getJoinVariance() <em>Join Variance</em>}' attribute.
91         * <!-- begin-user-doc -->
92         * <!-- end-user-doc -->
93         * @see #getJoinVariance()
94         * @generated
95         * @ordered
96         */
97        protected static final Object JOIN_VARIANCE_EDEFAULT = null;
98 
99        /**
100         * The cached value of the '{@link #getJoinVariance() <em>Join Variance</em>}' attribute.
101         * <!-- begin-user-doc -->
102         * <!-- end-user-doc -->
103         * @see #getJoinVariance()
104         * @generated
105         * @ordered
106         */
107        protected Object joinVariance = JOIN_VARIANCE_EDEFAULT;
108 
109        /**
110         * The default value of the '{@link #getJoinWaiting() <em>Join Waiting</em>}' attribute.
111         * <!-- begin-user-doc -->
112         * <!-- end-user-doc -->
113         * @see #getJoinWaiting()
114         * @generated
115         * @ordered
116         */
117        protected static final Object JOIN_WAITING_EDEFAULT = null;
118 
119        /**
120         * The cached value of the '{@link #getJoinWaiting() <em>Join Waiting</em>}' attribute.
121         * <!-- begin-user-doc -->
122         * <!-- end-user-doc -->
123         * @see #getJoinWaiting()
124         * @generated
125         * @ordered
126         */
127        protected Object joinWaiting = JOIN_WAITING_EDEFAULT;
128 
129        /**
130         * The default value of the '{@link #getWaiting() <em>Waiting</em>}' attribute.
131         * <!-- begin-user-doc -->
132         * <!-- end-user-doc -->
133         * @see #getWaiting()
134         * @generated
135         * @ordered
136         */
137        protected static final Object WAITING_EDEFAULT = null;
138 
139        /**
140         * The cached value of the '{@link #getWaiting() <em>Waiting</em>}' attribute.
141         * <!-- begin-user-doc -->
142         * <!-- end-user-doc -->
143         * @see #getWaiting()
144         * @generated
145         * @ordered
146         */
147        protected Object waiting = WAITING_EDEFAULT;
148 
149        /**
150         * <!-- begin-user-doc -->
151         * <!-- end-user-doc -->
152         * @generated
153         */
154        protected OutputResultForwardingANDJoinDelayImpl() {
155                super();
156        }
157 
158        /**
159         * <!-- begin-user-doc -->
160         * <!-- end-user-doc -->
161         * @generated
162         */
163        @Override
164        protected EClass eStaticClass() {
165                return LqnCorePackage.Literals.OUTPUT_RESULT_FORWARDING_AND_JOIN_DELAY;
166        }
167 
168        /**
169         * <!-- begin-user-doc -->
170         * <!-- end-user-doc -->
171         * @generated
172         */
173        public EList<ResultConf95Type> getResultConf95() {
174                if (resultConf95 == null) {
175                        resultConf95 = new EObjectContainmentEList<ResultConf95Type>(ResultConf95Type.class, this, LqnCorePackage.OUTPUT_RESULT_FORWARDING_AND_JOIN_DELAY__RESULT_CONF95);
176                }
177                return resultConf95;
178        }
179 
180        /**
181         * <!-- begin-user-doc -->
182         * <!-- end-user-doc -->
183         * @generated
184         */
185        public EList<ResultConf99Type> getResultConf99() {
186                if (resultConf99 == null) {
187                        resultConf99 = new EObjectContainmentEList<ResultConf99Type>(ResultConf99Type.class, this, LqnCorePackage.OUTPUT_RESULT_FORWARDING_AND_JOIN_DELAY__RESULT_CONF99);
188                }
189                return resultConf99;
190        }
191 
192        /**
193         * <!-- begin-user-doc -->
194         * <!-- end-user-doc -->
195         * @generated
196         */
197        public String getDest() {
198                return dest;
199        }
200 
201        /**
202         * <!-- begin-user-doc -->
203         * <!-- end-user-doc -->
204         * @generated
205         */
206        public void setDest(String newDest) {
207                String oldDest = dest;
208                dest = newDest;
209                if (eNotificationRequired())
210                        eNotify(new ENotificationImpl(this, Notification.SET, LqnCorePackage.OUTPUT_RESULT_FORWARDING_AND_JOIN_DELAY__DEST, oldDest, dest));
211        }
212 
213        /**
214         * <!-- begin-user-doc -->
215         * <!-- end-user-doc -->
216         * @generated
217         */
218        public Object getJoinVariance() {
219                return joinVariance;
220        }
221 
222        /**
223         * <!-- begin-user-doc -->
224         * <!-- end-user-doc -->
225         * @generated
226         */
227        public void setJoinVariance(Object newJoinVariance) {
228                Object oldJoinVariance = joinVariance;
229                joinVariance = newJoinVariance;
230                if (eNotificationRequired())
231                        eNotify(new ENotificationImpl(this, Notification.SET, LqnCorePackage.OUTPUT_RESULT_FORWARDING_AND_JOIN_DELAY__JOIN_VARIANCE, oldJoinVariance, joinVariance));
232        }
233 
234        /**
235         * <!-- begin-user-doc -->
236         * <!-- end-user-doc -->
237         * @generated
238         */
239        public Object getJoinWaiting() {
240                return joinWaiting;
241        }
242 
243        /**
244         * <!-- begin-user-doc -->
245         * <!-- end-user-doc -->
246         * @generated
247         */
248        public void setJoinWaiting(Object newJoinWaiting) {
249                Object oldJoinWaiting = joinWaiting;
250                joinWaiting = newJoinWaiting;
251                if (eNotificationRequired())
252                        eNotify(new ENotificationImpl(this, Notification.SET, LqnCorePackage.OUTPUT_RESULT_FORWARDING_AND_JOIN_DELAY__JOIN_WAITING, oldJoinWaiting, joinWaiting));
253        }
254 
255        /**
256         * <!-- begin-user-doc -->
257         * <!-- end-user-doc -->
258         * @generated
259         */
260        public Object getWaiting() {
261                return waiting;
262        }
263 
264        /**
265         * <!-- begin-user-doc -->
266         * <!-- end-user-doc -->
267         * @generated
268         */
269        public void setWaiting(Object newWaiting) {
270                Object oldWaiting = waiting;
271                waiting = newWaiting;
272                if (eNotificationRequired())
273                        eNotify(new ENotificationImpl(this, Notification.SET, LqnCorePackage.OUTPUT_RESULT_FORWARDING_AND_JOIN_DELAY__WAITING, oldWaiting, waiting));
274        }
275 
276        /**
277         * <!-- begin-user-doc -->
278         * <!-- end-user-doc -->
279         * @generated
280         */
281        @Override
282        public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
283                switch (featureID) {
284                        case LqnCorePackage.OUTPUT_RESULT_FORWARDING_AND_JOIN_DELAY__RESULT_CONF95:
285                                return ((InternalEList<?>)getResultConf95()).basicRemove(otherEnd, msgs);
286                        case LqnCorePackage.OUTPUT_RESULT_FORWARDING_AND_JOIN_DELAY__RESULT_CONF99:
287                                return ((InternalEList<?>)getResultConf99()).basicRemove(otherEnd, msgs);
288                }
289                return super.eInverseRemove(otherEnd, featureID, msgs);
290        }
291 
292        /**
293         * <!-- begin-user-doc -->
294         * <!-- end-user-doc -->
295         * @generated
296         */
297        @Override
298        public Object eGet(int featureID, boolean resolve, boolean coreType) {
299                switch (featureID) {
300                        case LqnCorePackage.OUTPUT_RESULT_FORWARDING_AND_JOIN_DELAY__RESULT_CONF95:
301                                return getResultConf95();
302                        case LqnCorePackage.OUTPUT_RESULT_FORWARDING_AND_JOIN_DELAY__RESULT_CONF99:
303                                return getResultConf99();
304                        case LqnCorePackage.OUTPUT_RESULT_FORWARDING_AND_JOIN_DELAY__DEST:
305                                return getDest();
306                        case LqnCorePackage.OUTPUT_RESULT_FORWARDING_AND_JOIN_DELAY__JOIN_VARIANCE:
307                                return getJoinVariance();
308                        case LqnCorePackage.OUTPUT_RESULT_FORWARDING_AND_JOIN_DELAY__JOIN_WAITING:
309                                return getJoinWaiting();
310                        case LqnCorePackage.OUTPUT_RESULT_FORWARDING_AND_JOIN_DELAY__WAITING:
311                                return getWaiting();
312                }
313                return super.eGet(featureID, resolve, coreType);
314        }
315 
316        /**
317         * <!-- begin-user-doc -->
318         * <!-- end-user-doc -->
319         * @generated
320         */
321        @SuppressWarnings("unchecked")
322        @Override
323        public void eSet(int featureID, Object newValue) {
324                switch (featureID) {
325                        case LqnCorePackage.OUTPUT_RESULT_FORWARDING_AND_JOIN_DELAY__RESULT_CONF95:
326                                getResultConf95().clear();
327                                getResultConf95().addAll((Collection<? extends ResultConf95Type>)newValue);
328                                return;
329                        case LqnCorePackage.OUTPUT_RESULT_FORWARDING_AND_JOIN_DELAY__RESULT_CONF99:
330                                getResultConf99().clear();
331                                getResultConf99().addAll((Collection<? extends ResultConf99Type>)newValue);
332                                return;
333                        case LqnCorePackage.OUTPUT_RESULT_FORWARDING_AND_JOIN_DELAY__DEST:
334                                setDest((String)newValue);
335                                return;
336                        case LqnCorePackage.OUTPUT_RESULT_FORWARDING_AND_JOIN_DELAY__JOIN_VARIANCE:
337                                setJoinVariance(newValue);
338                                return;
339                        case LqnCorePackage.OUTPUT_RESULT_FORWARDING_AND_JOIN_DELAY__JOIN_WAITING:
340                                setJoinWaiting(newValue);
341                                return;
342                        case LqnCorePackage.OUTPUT_RESULT_FORWARDING_AND_JOIN_DELAY__WAITING:
343                                setWaiting(newValue);
344                                return;
345                }
346                super.eSet(featureID, newValue);
347        }
348 
349        /**
350         * <!-- begin-user-doc -->
351         * <!-- end-user-doc -->
352         * @generated
353         */
354        @Override
355        public void eUnset(int featureID) {
356                switch (featureID) {
357                        case LqnCorePackage.OUTPUT_RESULT_FORWARDING_AND_JOIN_DELAY__RESULT_CONF95:
358                                getResultConf95().clear();
359                                return;
360                        case LqnCorePackage.OUTPUT_RESULT_FORWARDING_AND_JOIN_DELAY__RESULT_CONF99:
361                                getResultConf99().clear();
362                                return;
363                        case LqnCorePackage.OUTPUT_RESULT_FORWARDING_AND_JOIN_DELAY__DEST:
364                                setDest(DEST_EDEFAULT);
365                                return;
366                        case LqnCorePackage.OUTPUT_RESULT_FORWARDING_AND_JOIN_DELAY__JOIN_VARIANCE:
367                                setJoinVariance(JOIN_VARIANCE_EDEFAULT);
368                                return;
369                        case LqnCorePackage.OUTPUT_RESULT_FORWARDING_AND_JOIN_DELAY__JOIN_WAITING:
370                                setJoinWaiting(JOIN_WAITING_EDEFAULT);
371                                return;
372                        case LqnCorePackage.OUTPUT_RESULT_FORWARDING_AND_JOIN_DELAY__WAITING:
373                                setWaiting(WAITING_EDEFAULT);
374                                return;
375                }
376                super.eUnset(featureID);
377        }
378 
379        /**
380         * <!-- begin-user-doc -->
381         * <!-- end-user-doc -->
382         * @generated
383         */
384        @Override
385        public boolean eIsSet(int featureID) {
386                switch (featureID) {
387                        case LqnCorePackage.OUTPUT_RESULT_FORWARDING_AND_JOIN_DELAY__RESULT_CONF95:
388                                return resultConf95 != null && !resultConf95.isEmpty();
389                        case LqnCorePackage.OUTPUT_RESULT_FORWARDING_AND_JOIN_DELAY__RESULT_CONF99:
390                                return resultConf99 != null && !resultConf99.isEmpty();
391                        case LqnCorePackage.OUTPUT_RESULT_FORWARDING_AND_JOIN_DELAY__DEST:
392                                return DEST_EDEFAULT == null ? dest != null : !DEST_EDEFAULT.equals(dest);
393                        case LqnCorePackage.OUTPUT_RESULT_FORWARDING_AND_JOIN_DELAY__JOIN_VARIANCE:
394                                return JOIN_VARIANCE_EDEFAULT == null ? joinVariance != null : !JOIN_VARIANCE_EDEFAULT.equals(joinVariance);
395                        case LqnCorePackage.OUTPUT_RESULT_FORWARDING_AND_JOIN_DELAY__JOIN_WAITING:
396                                return JOIN_WAITING_EDEFAULT == null ? joinWaiting != null : !JOIN_WAITING_EDEFAULT.equals(joinWaiting);
397                        case LqnCorePackage.OUTPUT_RESULT_FORWARDING_AND_JOIN_DELAY__WAITING:
398                                return WAITING_EDEFAULT == null ? waiting != null : !WAITING_EDEFAULT.equals(waiting);
399                }
400                return super.eIsSet(featureID);
401        }
402 
403        /**
404         * <!-- begin-user-doc -->
405         * <!-- end-user-doc -->
406         * @generated
407         */
408        @Override
409        public String toString() {
410                if (eIsProxy()) return super.toString();
411 
412                StringBuffer result = new StringBuffer(super.toString());
413                result.append(" (dest: ");
414                result.append(dest);
415                result.append(", joinVariance: ");
416                result.append(joinVariance);
417                result.append(", joinWaiting: ");
418                result.append(joinWaiting);
419                result.append(", waiting: ");
420                result.append(waiting);
421                result.append(')');
422                return result.toString();
423        }
424 
425} //OutputResultForwardingANDJoinDelayImpl

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