EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012)
[all classes][de.uka.ipd.sdq.pcm.usagemodel.impl]

COVERAGE SUMMARY FOR SOURCE FILE [DelayImpl.java]

nameclass, %method, %block, %line, %
DelayImpl.java0%   (0/1)0%   (0/11)0%   (0/174)0%   (0/45)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class DelayImpl0%   (0/1)0%   (0/11)0%   (0/174)0%   (0/45)
DelayImpl (): void 0%   (0/1)0%   (0/3)0%   (0/2)
basicSetTimeSpecification_Delay (PCMRandomVariable, NotificationChain): Notif... 0%   (0/1)0%   (0/29)0%   (0/6)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/11)0%   (0/3)
eInverseAdd (InternalEObject, int, NotificationChain): NotificationChain 0%   (0/1)0%   (0/26)0%   (0/5)
eInverseRemove (InternalEObject, int, NotificationChain): NotificationChain 0%   (0/1)0%   (0/13)0%   (0/3)
eIsSet (int): boolean 0%   (0/1)0%   (0/13)0%   (0/3)
eSet (int, Object): void 0%   (0/1)0%   (0/12)0%   (0/5)
eStaticClass (): EClass 0%   (0/1)0%   (0/2)0%   (0/1)
eUnset (int): void 0%   (0/1)0%   (0/10)0%   (0/5)
getTimeSpecification_Delay (): PCMRandomVariable 0%   (0/1)0%   (0/3)0%   (0/1)
setTimeSpecification_Delay (PCMRandomVariable): void 0%   (0/1)0%   (0/52)0%   (0/11)

1/**
2 * Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany
3 *
4 * $Id$
5 */
6package de.uka.ipd.sdq.pcm.usagemodel.impl;
7 
8import org.eclipse.emf.common.notify.Notification;
9import org.eclipse.emf.common.notify.NotificationChain;
10import org.eclipse.emf.ecore.EClass;
11import org.eclipse.emf.ecore.InternalEObject;
12import org.eclipse.emf.ecore.impl.ENotificationImpl;
13 
14import de.uka.ipd.sdq.pcm.core.CorePackage;
15import de.uka.ipd.sdq.pcm.core.PCMRandomVariable;
16import de.uka.ipd.sdq.pcm.usagemodel.Delay;
17import de.uka.ipd.sdq.pcm.usagemodel.UsagemodelPackage;
18 
19/**
20 * <!-- begin-user-doc -->
21 * An implementation of the model object '<em><b>Delay</b></em>'.
22 * <!-- end-user-doc -->
23 * <p>
24 * The following features are implemented:
25 * <ul>
26 *   <li>{@link de.uka.ipd.sdq.pcm.usagemodel.impl.DelayImpl#getTimeSpecification_Delay <em>Time Specification Delay</em>}</li>
27 * </ul>
28 * </p>
29 *
30 * @generated
31 */
32public class DelayImpl extends AbstractUserActionImpl implements Delay {
33        /**
34         * <!-- begin-user-doc -->
35         * <!-- end-user-doc -->
36         * @generated
37         */
38        public static final String copyright = "Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany";
39 
40        /**
41         * The cached value of the '{@link #getTimeSpecification_Delay() <em>Time Specification Delay</em>}' containment reference.
42         * <!-- begin-user-doc -->
43         * <!-- end-user-doc -->
44         * @see #getTimeSpecification_Delay()
45         * @generated
46         * @ordered
47         */
48        protected PCMRandomVariable timeSpecification_Delay;
49 
50        /**
51         * <!-- begin-user-doc -->
52         * <!-- end-user-doc -->
53         * @generated
54         */
55        protected DelayImpl() {
56                super();
57        }
58 
59        /**
60         * <!-- begin-user-doc -->
61         * <!-- end-user-doc -->
62         * @generated
63         */
64        @Override
65        protected EClass eStaticClass() {
66                return UsagemodelPackage.Literals.DELAY;
67        }
68 
69        /**
70         * <!-- begin-user-doc -->
71         * <!-- end-user-doc -->
72         * @generated
73         */
74        public PCMRandomVariable getTimeSpecification_Delay() {
75                return timeSpecification_Delay;
76        }
77 
78        /**
79         * <!-- begin-user-doc -->
80         * <!-- end-user-doc -->
81         * @generated
82         */
83        public NotificationChain basicSetTimeSpecification_Delay(PCMRandomVariable newTimeSpecification_Delay, NotificationChain msgs) {
84                PCMRandomVariable oldTimeSpecification_Delay = timeSpecification_Delay;
85                timeSpecification_Delay = newTimeSpecification_Delay;
86                if (eNotificationRequired()) {
87                        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UsagemodelPackage.DELAY__TIME_SPECIFICATION_DELAY, oldTimeSpecification_Delay, newTimeSpecification_Delay);
88                        if (msgs == null) msgs = notification; else msgs.add(notification);
89                }
90                return msgs;
91        }
92 
93        /**
94         * <!-- begin-user-doc -->
95         * <!-- end-user-doc -->
96         * @generated
97         */
98        public void setTimeSpecification_Delay(PCMRandomVariable newTimeSpecification_Delay) {
99                if (newTimeSpecification_Delay != timeSpecification_Delay) {
100                        NotificationChain msgs = null;
101                        if (timeSpecification_Delay != null)
102                                msgs = ((InternalEObject)timeSpecification_Delay).eInverseRemove(this, CorePackage.PCM_RANDOM_VARIABLE__DELAY_TIME_SPECIFICATION, PCMRandomVariable.class, msgs);
103                        if (newTimeSpecification_Delay != null)
104                                msgs = ((InternalEObject)newTimeSpecification_Delay).eInverseAdd(this, CorePackage.PCM_RANDOM_VARIABLE__DELAY_TIME_SPECIFICATION, PCMRandomVariable.class, msgs);
105                        msgs = basicSetTimeSpecification_Delay(newTimeSpecification_Delay, msgs);
106                        if (msgs != null) msgs.dispatch();
107                }
108                else if (eNotificationRequired())
109                        eNotify(new ENotificationImpl(this, Notification.SET, UsagemodelPackage.DELAY__TIME_SPECIFICATION_DELAY, newTimeSpecification_Delay, newTimeSpecification_Delay));
110        }
111 
112        /**
113         * <!-- begin-user-doc -->
114         * <!-- end-user-doc -->
115         * @generated
116         */
117        @Override
118        public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
119                switch (featureID) {
120                        case UsagemodelPackage.DELAY__TIME_SPECIFICATION_DELAY:
121                                if (timeSpecification_Delay != null)
122                                        msgs = ((InternalEObject)timeSpecification_Delay).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UsagemodelPackage.DELAY__TIME_SPECIFICATION_DELAY, null, msgs);
123                                return basicSetTimeSpecification_Delay((PCMRandomVariable)otherEnd, msgs);
124                }
125                return super.eInverseAdd(otherEnd, featureID, msgs);
126        }
127 
128        /**
129         * <!-- begin-user-doc -->
130         * <!-- end-user-doc -->
131         * @generated
132         */
133        @Override
134        public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
135                switch (featureID) {
136                        case UsagemodelPackage.DELAY__TIME_SPECIFICATION_DELAY:
137                                return basicSetTimeSpecification_Delay(null, msgs);
138                }
139                return super.eInverseRemove(otherEnd, featureID, msgs);
140        }
141 
142        /**
143         * <!-- begin-user-doc -->
144         * <!-- end-user-doc -->
145         * @generated
146         */
147        @Override
148        public Object eGet(int featureID, boolean resolve, boolean coreType) {
149                switch (featureID) {
150                        case UsagemodelPackage.DELAY__TIME_SPECIFICATION_DELAY:
151                                return getTimeSpecification_Delay();
152                }
153                return super.eGet(featureID, resolve, coreType);
154        }
155 
156        /**
157         * <!-- begin-user-doc -->
158         * <!-- end-user-doc -->
159         * @generated
160         */
161        @Override
162        public void eSet(int featureID, Object newValue) {
163                switch (featureID) {
164                        case UsagemodelPackage.DELAY__TIME_SPECIFICATION_DELAY:
165                                setTimeSpecification_Delay((PCMRandomVariable)newValue);
166                                return;
167                }
168                super.eSet(featureID, newValue);
169        }
170 
171        /**
172         * <!-- begin-user-doc -->
173         * <!-- end-user-doc -->
174         * @generated
175         */
176        @Override
177        public void eUnset(int featureID) {
178                switch (featureID) {
179                        case UsagemodelPackage.DELAY__TIME_SPECIFICATION_DELAY:
180                                setTimeSpecification_Delay((PCMRandomVariable)null);
181                                return;
182                }
183                super.eUnset(featureID);
184        }
185 
186        /**
187         * <!-- begin-user-doc -->
188         * <!-- end-user-doc -->
189         * @generated
190         */
191        @Override
192        public boolean eIsSet(int featureID) {
193                switch (featureID) {
194                        case UsagemodelPackage.DELAY__TIME_SPECIFICATION_DELAY:
195                                return timeSpecification_Delay != null;
196                }
197                return super.eIsSet(featureID);
198        }
199 
200} //DelayImpl

[all classes][de.uka.ipd.sdq.pcm.usagemodel.impl]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov