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

COVERAGE SUMMARY FOR SOURCE FILE [AbstractActionImpl.java]

nameclass, %method, %block, %line, %
AbstractActionImpl.java0%   (0/1)0%   (0/20)0%   (0/526)0%   (0/119)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class AbstractActionImpl0%   (0/1)0%   (0/20)0%   (0/526)0%   (0/119)
AbstractActionImpl (): void 0%   (0/1)0%   (0/3)0%   (0/2)
basicGetPredecessor_AbstractAction (): AbstractAction 0%   (0/1)0%   (0/3)0%   (0/1)
basicGetSuccessor_AbstractAction (): AbstractAction 0%   (0/1)0%   (0/3)0%   (0/1)
basicSetPredecessor_AbstractAction (AbstractAction, NotificationChain): Notif... 0%   (0/1)0%   (0/29)0%   (0/6)
basicSetResourceDemandingBehaviour_AbstractAction (ResourceDemandingBehaviour... 0%   (0/1)0%   (0/9)0%   (0/2)
basicSetSuccessor_AbstractAction (AbstractAction, NotificationChain): Notific... 0%   (0/1)0%   (0/29)0%   (0/6)
eBasicRemoveFromContainerFeature (NotificationChain): NotificationChain 0%   (0/1)0%   (0/15)0%   (0/3)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/27)0%   (0/7)
eInverseAdd (InternalEObject, int, NotificationChain): NotificationChain 0%   (0/1)0%   (0/57)0%   (0/11)
eInverseRemove (InternalEObject, int, NotificationChain): NotificationChain 0%   (0/1)0%   (0/23)0%   (0/5)
eIsSet (int): boolean 0%   (0/1)0%   (0/27)0%   (0/5)
eSet (int, Object): void 0%   (0/1)0%   (0/22)0%   (0/9)
eStaticClass (): EClass 0%   (0/1)0%   (0/2)0%   (0/1)
eUnset (int): void 0%   (0/1)0%   (0/18)0%   (0/9)
getPredecessor_AbstractAction (): AbstractAction 0%   (0/1)0%   (0/38)0%   (0/7)
getResourceDemandingBehaviour_AbstractAction (): ResourceDemandingBehaviour 0%   (0/1)0%   (0/10)0%   (0/2)
getSuccessor_AbstractAction (): AbstractAction 0%   (0/1)0%   (0/38)0%   (0/7)
setPredecessor_AbstractAction (AbstractAction): void 0%   (0/1)0%   (0/52)0%   (0/11)
setResourceDemandingBehaviour_AbstractAction (ResourceDemandingBehaviour): void 0%   (0/1)0%   (0/69)0%   (0/13)
setSuccessor_AbstractAction (AbstractAction): 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.seff.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;
13import org.eclipse.emf.ecore.util.EcoreUtil;
14 
15import de.uka.ipd.sdq.pcm.core.entity.impl.EntityImpl;
16import de.uka.ipd.sdq.pcm.seff.AbstractAction;
17import de.uka.ipd.sdq.pcm.seff.ResourceDemandingBehaviour;
18import de.uka.ipd.sdq.pcm.seff.SeffPackage;
19 
20/**
21 * <!-- begin-user-doc -->
22 * An implementation of the model object '<em><b>Abstract Action</b></em>'.
23 * <!-- end-user-doc -->
24 * <p>
25 * The following features are implemented:
26 * <ul>
27 *   <li>{@link de.uka.ipd.sdq.pcm.seff.impl.AbstractActionImpl#getPredecessor_AbstractAction <em>Predecessor Abstract Action</em>}</li>
28 *   <li>{@link de.uka.ipd.sdq.pcm.seff.impl.AbstractActionImpl#getSuccessor_AbstractAction <em>Successor Abstract Action</em>}</li>
29 *   <li>{@link de.uka.ipd.sdq.pcm.seff.impl.AbstractActionImpl#getResourceDemandingBehaviour_AbstractAction <em>Resource Demanding Behaviour Abstract Action</em>}</li>
30 * </ul>
31 * </p>
32 *
33 * @generated
34 */
35public abstract class AbstractActionImpl extends EntityImpl implements AbstractAction {
36        /**
37         * <!-- begin-user-doc -->
38         * <!-- end-user-doc -->
39         * @generated
40         */
41        public static final String copyright = "Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany";
42 
43        /**
44         * The cached value of the '{@link #getPredecessor_AbstractAction() <em>Predecessor Abstract Action</em>}' reference.
45         * <!-- begin-user-doc -->
46         * <!-- end-user-doc -->
47         * @see #getPredecessor_AbstractAction()
48         * @generated
49         * @ordered
50         */
51        protected AbstractAction predecessor_AbstractAction;
52 
53        /**
54         * The cached value of the '{@link #getSuccessor_AbstractAction() <em>Successor Abstract Action</em>}' reference.
55         * <!-- begin-user-doc -->
56         * <!-- end-user-doc -->
57         * @see #getSuccessor_AbstractAction()
58         * @generated
59         * @ordered
60         */
61        protected AbstractAction successor_AbstractAction;
62 
63        /**
64         * <!-- begin-user-doc -->
65         * <!-- end-user-doc -->
66         * @generated
67         */
68        protected AbstractActionImpl() {
69                super();
70        }
71 
72        /**
73         * <!-- begin-user-doc -->
74         * <!-- end-user-doc -->
75         * @generated
76         */
77        @Override
78        protected EClass eStaticClass() {
79                return SeffPackage.Literals.ABSTRACT_ACTION;
80        }
81 
82        /**
83         * <!-- begin-user-doc -->
84         * <!-- end-user-doc -->
85         * @generated
86         */
87        public AbstractAction getPredecessor_AbstractAction() {
88                if (predecessor_AbstractAction != null && predecessor_AbstractAction.eIsProxy()) {
89                        InternalEObject oldPredecessor_AbstractAction = (InternalEObject)predecessor_AbstractAction;
90                        predecessor_AbstractAction = (AbstractAction)eResolveProxy(oldPredecessor_AbstractAction);
91                        if (predecessor_AbstractAction != oldPredecessor_AbstractAction) {
92                                if (eNotificationRequired())
93                                        eNotify(new ENotificationImpl(this, Notification.RESOLVE, SeffPackage.ABSTRACT_ACTION__PREDECESSOR_ABSTRACT_ACTION, oldPredecessor_AbstractAction, predecessor_AbstractAction));
94                        }
95                }
96                return predecessor_AbstractAction;
97        }
98 
99        /**
100         * <!-- begin-user-doc -->
101         * <!-- end-user-doc -->
102         * @generated
103         */
104        public AbstractAction basicGetPredecessor_AbstractAction() {
105                return predecessor_AbstractAction;
106        }
107 
108        /**
109         * <!-- begin-user-doc -->
110         * <!-- end-user-doc -->
111         * @generated
112         */
113        public NotificationChain basicSetPredecessor_AbstractAction(AbstractAction newPredecessor_AbstractAction, NotificationChain msgs) {
114                AbstractAction oldPredecessor_AbstractAction = predecessor_AbstractAction;
115                predecessor_AbstractAction = newPredecessor_AbstractAction;
116                if (eNotificationRequired()) {
117                        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SeffPackage.ABSTRACT_ACTION__PREDECESSOR_ABSTRACT_ACTION, oldPredecessor_AbstractAction, newPredecessor_AbstractAction);
118                        if (msgs == null) msgs = notification; else msgs.add(notification);
119                }
120                return msgs;
121        }
122 
123        /**
124         * <!-- begin-user-doc -->
125         * <!-- end-user-doc -->
126         * @generated
127         */
128        public void setPredecessor_AbstractAction(AbstractAction newPredecessor_AbstractAction) {
129                if (newPredecessor_AbstractAction != predecessor_AbstractAction) {
130                        NotificationChain msgs = null;
131                        if (predecessor_AbstractAction != null)
132                                msgs = ((InternalEObject)predecessor_AbstractAction).eInverseRemove(this, SeffPackage.ABSTRACT_ACTION__SUCCESSOR_ABSTRACT_ACTION, AbstractAction.class, msgs);
133                        if (newPredecessor_AbstractAction != null)
134                                msgs = ((InternalEObject)newPredecessor_AbstractAction).eInverseAdd(this, SeffPackage.ABSTRACT_ACTION__SUCCESSOR_ABSTRACT_ACTION, AbstractAction.class, msgs);
135                        msgs = basicSetPredecessor_AbstractAction(newPredecessor_AbstractAction, msgs);
136                        if (msgs != null) msgs.dispatch();
137                }
138                else if (eNotificationRequired())
139                        eNotify(new ENotificationImpl(this, Notification.SET, SeffPackage.ABSTRACT_ACTION__PREDECESSOR_ABSTRACT_ACTION, newPredecessor_AbstractAction, newPredecessor_AbstractAction));
140        }
141 
142        /**
143         * <!-- begin-user-doc -->
144         * <!-- end-user-doc -->
145         * @generated
146         */
147        public AbstractAction getSuccessor_AbstractAction() {
148                if (successor_AbstractAction != null && successor_AbstractAction.eIsProxy()) {
149                        InternalEObject oldSuccessor_AbstractAction = (InternalEObject)successor_AbstractAction;
150                        successor_AbstractAction = (AbstractAction)eResolveProxy(oldSuccessor_AbstractAction);
151                        if (successor_AbstractAction != oldSuccessor_AbstractAction) {
152                                if (eNotificationRequired())
153                                        eNotify(new ENotificationImpl(this, Notification.RESOLVE, SeffPackage.ABSTRACT_ACTION__SUCCESSOR_ABSTRACT_ACTION, oldSuccessor_AbstractAction, successor_AbstractAction));
154                        }
155                }
156                return successor_AbstractAction;
157        }
158 
159        /**
160         * <!-- begin-user-doc -->
161         * <!-- end-user-doc -->
162         * @generated
163         */
164        public AbstractAction basicGetSuccessor_AbstractAction() {
165                return successor_AbstractAction;
166        }
167 
168        /**
169         * <!-- begin-user-doc -->
170         * <!-- end-user-doc -->
171         * @generated
172         */
173        public NotificationChain basicSetSuccessor_AbstractAction(AbstractAction newSuccessor_AbstractAction, NotificationChain msgs) {
174                AbstractAction oldSuccessor_AbstractAction = successor_AbstractAction;
175                successor_AbstractAction = newSuccessor_AbstractAction;
176                if (eNotificationRequired()) {
177                        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SeffPackage.ABSTRACT_ACTION__SUCCESSOR_ABSTRACT_ACTION, oldSuccessor_AbstractAction, newSuccessor_AbstractAction);
178                        if (msgs == null) msgs = notification; else msgs.add(notification);
179                }
180                return msgs;
181        }
182 
183        /**
184         * <!-- begin-user-doc -->
185         * <!-- end-user-doc -->
186         * @generated
187         */
188        public void setSuccessor_AbstractAction(AbstractAction newSuccessor_AbstractAction) {
189                if (newSuccessor_AbstractAction != successor_AbstractAction) {
190                        NotificationChain msgs = null;
191                        if (successor_AbstractAction != null)
192                                msgs = ((InternalEObject)successor_AbstractAction).eInverseRemove(this, SeffPackage.ABSTRACT_ACTION__PREDECESSOR_ABSTRACT_ACTION, AbstractAction.class, msgs);
193                        if (newSuccessor_AbstractAction != null)
194                                msgs = ((InternalEObject)newSuccessor_AbstractAction).eInverseAdd(this, SeffPackage.ABSTRACT_ACTION__PREDECESSOR_ABSTRACT_ACTION, AbstractAction.class, msgs);
195                        msgs = basicSetSuccessor_AbstractAction(newSuccessor_AbstractAction, msgs);
196                        if (msgs != null) msgs.dispatch();
197                }
198                else if (eNotificationRequired())
199                        eNotify(new ENotificationImpl(this, Notification.SET, SeffPackage.ABSTRACT_ACTION__SUCCESSOR_ABSTRACT_ACTION, newSuccessor_AbstractAction, newSuccessor_AbstractAction));
200        }
201 
202        /**
203         * <!-- begin-user-doc -->
204         * <!-- end-user-doc -->
205         * @generated
206         */
207        public ResourceDemandingBehaviour getResourceDemandingBehaviour_AbstractAction() {
208                if (eContainerFeatureID() != SeffPackage.ABSTRACT_ACTION__RESOURCE_DEMANDING_BEHAVIOUR_ABSTRACT_ACTION) return null;
209                return (ResourceDemandingBehaviour)eContainer();
210        }
211 
212        /**
213         * <!-- begin-user-doc -->
214         * <!-- end-user-doc -->
215         * @generated
216         */
217        public NotificationChain basicSetResourceDemandingBehaviour_AbstractAction(ResourceDemandingBehaviour newResourceDemandingBehaviour_AbstractAction, NotificationChain msgs) {
218                msgs = eBasicSetContainer((InternalEObject)newResourceDemandingBehaviour_AbstractAction, SeffPackage.ABSTRACT_ACTION__RESOURCE_DEMANDING_BEHAVIOUR_ABSTRACT_ACTION, msgs);
219                return msgs;
220        }
221 
222        /**
223         * <!-- begin-user-doc -->
224         * <!-- end-user-doc -->
225         * @generated
226         */
227        public void setResourceDemandingBehaviour_AbstractAction(ResourceDemandingBehaviour newResourceDemandingBehaviour_AbstractAction) {
228                if (newResourceDemandingBehaviour_AbstractAction != eInternalContainer() || (eContainerFeatureID() != SeffPackage.ABSTRACT_ACTION__RESOURCE_DEMANDING_BEHAVIOUR_ABSTRACT_ACTION && newResourceDemandingBehaviour_AbstractAction != null)) {
229                        if (EcoreUtil.isAncestor(this, newResourceDemandingBehaviour_AbstractAction))
230                                throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
231                        NotificationChain msgs = null;
232                        if (eInternalContainer() != null)
233                                msgs = eBasicRemoveFromContainer(msgs);
234                        if (newResourceDemandingBehaviour_AbstractAction != null)
235                                msgs = ((InternalEObject)newResourceDemandingBehaviour_AbstractAction).eInverseAdd(this, SeffPackage.RESOURCE_DEMANDING_BEHAVIOUR__STEPS_BEHAVIOUR, ResourceDemandingBehaviour.class, msgs);
236                        msgs = basicSetResourceDemandingBehaviour_AbstractAction(newResourceDemandingBehaviour_AbstractAction, msgs);
237                        if (msgs != null) msgs.dispatch();
238                }
239                else if (eNotificationRequired())
240                        eNotify(new ENotificationImpl(this, Notification.SET, SeffPackage.ABSTRACT_ACTION__RESOURCE_DEMANDING_BEHAVIOUR_ABSTRACT_ACTION, newResourceDemandingBehaviour_AbstractAction, newResourceDemandingBehaviour_AbstractAction));
241        }
242 
243        /**
244         * <!-- begin-user-doc -->
245         * <!-- end-user-doc -->
246         * @generated
247         */
248        @Override
249        public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
250                switch (featureID) {
251                        case SeffPackage.ABSTRACT_ACTION__PREDECESSOR_ABSTRACT_ACTION:
252                                if (predecessor_AbstractAction != null)
253                                        msgs = ((InternalEObject)predecessor_AbstractAction).eInverseRemove(this, SeffPackage.ABSTRACT_ACTION__SUCCESSOR_ABSTRACT_ACTION, AbstractAction.class, msgs);
254                                return basicSetPredecessor_AbstractAction((AbstractAction)otherEnd, msgs);
255                        case SeffPackage.ABSTRACT_ACTION__SUCCESSOR_ABSTRACT_ACTION:
256                                if (successor_AbstractAction != null)
257                                        msgs = ((InternalEObject)successor_AbstractAction).eInverseRemove(this, SeffPackage.ABSTRACT_ACTION__PREDECESSOR_ABSTRACT_ACTION, AbstractAction.class, msgs);
258                                return basicSetSuccessor_AbstractAction((AbstractAction)otherEnd, msgs);
259                        case SeffPackage.ABSTRACT_ACTION__RESOURCE_DEMANDING_BEHAVIOUR_ABSTRACT_ACTION:
260                                if (eInternalContainer() != null)
261                                        msgs = eBasicRemoveFromContainer(msgs);
262                                return basicSetResourceDemandingBehaviour_AbstractAction((ResourceDemandingBehaviour)otherEnd, msgs);
263                }
264                return super.eInverseAdd(otherEnd, featureID, msgs);
265        }
266 
267        /**
268         * <!-- begin-user-doc -->
269         * <!-- end-user-doc -->
270         * @generated
271         */
272        @Override
273        public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
274                switch (featureID) {
275                        case SeffPackage.ABSTRACT_ACTION__PREDECESSOR_ABSTRACT_ACTION:
276                                return basicSetPredecessor_AbstractAction(null, msgs);
277                        case SeffPackage.ABSTRACT_ACTION__SUCCESSOR_ABSTRACT_ACTION:
278                                return basicSetSuccessor_AbstractAction(null, msgs);
279                        case SeffPackage.ABSTRACT_ACTION__RESOURCE_DEMANDING_BEHAVIOUR_ABSTRACT_ACTION:
280                                return basicSetResourceDemandingBehaviour_AbstractAction(null, msgs);
281                }
282                return super.eInverseRemove(otherEnd, featureID, msgs);
283        }
284 
285        /**
286         * <!-- begin-user-doc -->
287         * <!-- end-user-doc -->
288         * @generated
289         */
290        @Override
291        public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) {
292                switch (eContainerFeatureID()) {
293                        case SeffPackage.ABSTRACT_ACTION__RESOURCE_DEMANDING_BEHAVIOUR_ABSTRACT_ACTION:
294                                return eInternalContainer().eInverseRemove(this, SeffPackage.RESOURCE_DEMANDING_BEHAVIOUR__STEPS_BEHAVIOUR, ResourceDemandingBehaviour.class, msgs);
295                }
296                return super.eBasicRemoveFromContainerFeature(msgs);
297        }
298 
299        /**
300         * <!-- begin-user-doc -->
301         * <!-- end-user-doc -->
302         * @generated
303         */
304        @Override
305        public Object eGet(int featureID, boolean resolve, boolean coreType) {
306                switch (featureID) {
307                        case SeffPackage.ABSTRACT_ACTION__PREDECESSOR_ABSTRACT_ACTION:
308                                if (resolve) return getPredecessor_AbstractAction();
309                                return basicGetPredecessor_AbstractAction();
310                        case SeffPackage.ABSTRACT_ACTION__SUCCESSOR_ABSTRACT_ACTION:
311                                if (resolve) return getSuccessor_AbstractAction();
312                                return basicGetSuccessor_AbstractAction();
313                        case SeffPackage.ABSTRACT_ACTION__RESOURCE_DEMANDING_BEHAVIOUR_ABSTRACT_ACTION:
314                                return getResourceDemandingBehaviour_AbstractAction();
315                }
316                return super.eGet(featureID, resolve, coreType);
317        }
318 
319        /**
320         * <!-- begin-user-doc -->
321         * <!-- end-user-doc -->
322         * @generated
323         */
324        @Override
325        public void eSet(int featureID, Object newValue) {
326                switch (featureID) {
327                        case SeffPackage.ABSTRACT_ACTION__PREDECESSOR_ABSTRACT_ACTION:
328                                setPredecessor_AbstractAction((AbstractAction)newValue);
329                                return;
330                        case SeffPackage.ABSTRACT_ACTION__SUCCESSOR_ABSTRACT_ACTION:
331                                setSuccessor_AbstractAction((AbstractAction)newValue);
332                                return;
333                        case SeffPackage.ABSTRACT_ACTION__RESOURCE_DEMANDING_BEHAVIOUR_ABSTRACT_ACTION:
334                                setResourceDemandingBehaviour_AbstractAction((ResourceDemandingBehaviour)newValue);
335                                return;
336                }
337                super.eSet(featureID, newValue);
338        }
339 
340        /**
341         * <!-- begin-user-doc -->
342         * <!-- end-user-doc -->
343         * @generated
344         */
345        @Override
346        public void eUnset(int featureID) {
347                switch (featureID) {
348                        case SeffPackage.ABSTRACT_ACTION__PREDECESSOR_ABSTRACT_ACTION:
349                                setPredecessor_AbstractAction((AbstractAction)null);
350                                return;
351                        case SeffPackage.ABSTRACT_ACTION__SUCCESSOR_ABSTRACT_ACTION:
352                                setSuccessor_AbstractAction((AbstractAction)null);
353                                return;
354                        case SeffPackage.ABSTRACT_ACTION__RESOURCE_DEMANDING_BEHAVIOUR_ABSTRACT_ACTION:
355                                setResourceDemandingBehaviour_AbstractAction((ResourceDemandingBehaviour)null);
356                                return;
357                }
358                super.eUnset(featureID);
359        }
360 
361        /**
362         * <!-- begin-user-doc -->
363         * <!-- end-user-doc -->
364         * @generated
365         */
366        @Override
367        public boolean eIsSet(int featureID) {
368                switch (featureID) {
369                        case SeffPackage.ABSTRACT_ACTION__PREDECESSOR_ABSTRACT_ACTION:
370                                return predecessor_AbstractAction != null;
371                        case SeffPackage.ABSTRACT_ACTION__SUCCESSOR_ABSTRACT_ACTION:
372                                return successor_AbstractAction != null;
373                        case SeffPackage.ABSTRACT_ACTION__RESOURCE_DEMANDING_BEHAVIOUR_ABSTRACT_ACTION:
374                                return getResourceDemandingBehaviour_AbstractAction() != null;
375                }
376                return super.eIsSet(featureID);
377        }
378 
379} //AbstractActionImpl

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