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 [AbstractLoopActionImpl.java]

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

COVERAGE BREAKDOWN BY CLASS AND METHOD

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

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