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

COVERAGE SUMMARY FOR SOURCE FILE [RequiredResourceDelegationConnectorImpl.java]

nameclass, %method, %block, %line, %
RequiredResourceDelegationConnectorImpl.java0%   (0/1)0%   (0/15)0%   (0/290)0%   (0/73)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class RequiredResourceDelegationConnectorImpl0%   (0/1)0%   (0/15)0%   (0/290)0%   (0/73)
RequiredResourceDelegationConnectorImpl (): void 0%   (0/1)0%   (0/3)0%   (0/2)
basicGetAssemblyContext__RequiredResourceDelegationConnector (): AssemblyContext 0%   (0/1)0%   (0/3)0%   (0/1)
basicGetInnerRequiredRole__RequiredResourceDelegationConnector (): ResourceRe... 0%   (0/1)0%   (0/3)0%   (0/1)
basicGetOuterRequiredRole__RequiredResourceDelegationConnector (): ResourceRe... 0%   (0/1)0%   (0/3)0%   (0/1)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/32)0%   (0/8)
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)
getAssemblyContext__RequiredResourceDelegationConnector (): AssemblyContext 0%   (0/1)0%   (0/38)0%   (0/7)
getInnerRequiredRole__RequiredResourceDelegationConnector (): ResourceRequire... 0%   (0/1)0%   (0/38)0%   (0/7)
getOuterRequiredRole__RequiredResourceDelegationConnector (): ResourceRequire... 0%   (0/1)0%   (0/38)0%   (0/7)
setAssemblyContext__RequiredResourceDelegationConnector (AssemblyContext): void 0%   (0/1)0%   (0/21)0%   (0/5)
setInnerRequiredRole__RequiredResourceDelegationConnector (ResourceRequiredRo... 0%   (0/1)0%   (0/21)0%   (0/5)
setOuterRequiredRole__RequiredResourceDelegationConnector (ResourceRequiredRo... 0%   (0/1)0%   (0/21)0%   (0/5)

1/**
2 * Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany
3 *
4 * $Id$
5 */
6package de.uka.ipd.sdq.pcm.core.composition.impl;
7 
8import org.eclipse.emf.common.notify.Notification;
9import org.eclipse.emf.ecore.EClass;
10import org.eclipse.emf.ecore.InternalEObject;
11import org.eclipse.emf.ecore.impl.ENotificationImpl;
12 
13import de.uka.ipd.sdq.pcm.core.composition.AssemblyContext;
14import de.uka.ipd.sdq.pcm.core.composition.CompositionPackage;
15import de.uka.ipd.sdq.pcm.core.composition.RequiredResourceDelegationConnector;
16import de.uka.ipd.sdq.pcm.core.entity.ResourceRequiredRole;
17 
18/**
19 * <!-- begin-user-doc -->
20 * An implementation of the model object '<em><b>Required Resource Delegation Connector</b></em>'.
21 * <!-- end-user-doc -->
22 * <p>
23 * The following features are implemented:
24 * <ul>
25 *   <li>{@link de.uka.ipd.sdq.pcm.core.composition.impl.RequiredResourceDelegationConnectorImpl#getAssemblyContext__RequiredResourceDelegationConnector <em>Assembly Context Required Resource Delegation Connector</em>}</li>
26 *   <li>{@link de.uka.ipd.sdq.pcm.core.composition.impl.RequiredResourceDelegationConnectorImpl#getInnerRequiredRole__RequiredResourceDelegationConnector <em>Inner Required Role Required Resource Delegation Connector</em>}</li>
27 *   <li>{@link de.uka.ipd.sdq.pcm.core.composition.impl.RequiredResourceDelegationConnectorImpl#getOuterRequiredRole__RequiredResourceDelegationConnector <em>Outer Required Role Required Resource Delegation Connector</em>}</li>
28 * </ul>
29 * </p>
30 *
31 * @generated
32 */
33public class RequiredResourceDelegationConnectorImpl extends DelegationConnectorImpl implements RequiredResourceDelegationConnector {
34        /**
35         * <!-- begin-user-doc -->
36         * <!-- end-user-doc -->
37         * @generated
38         */
39        public static final String copyright = "Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany";
40 
41        /**
42         * The cached value of the '{@link #getAssemblyContext__RequiredResourceDelegationConnector() <em>Assembly Context Required Resource Delegation Connector</em>}' reference.
43         * <!-- begin-user-doc -->
44         * <!-- end-user-doc -->
45         * @see #getAssemblyContext__RequiredResourceDelegationConnector()
46         * @generated
47         * @ordered
48         */
49        protected AssemblyContext assemblyContext__RequiredResourceDelegationConnector;
50 
51        /**
52         * The cached value of the '{@link #getInnerRequiredRole__RequiredResourceDelegationConnector() <em>Inner Required Role Required Resource Delegation Connector</em>}' reference.
53         * <!-- begin-user-doc -->
54         * <!-- end-user-doc -->
55         * @see #getInnerRequiredRole__RequiredResourceDelegationConnector()
56         * @generated
57         * @ordered
58         */
59        protected ResourceRequiredRole innerRequiredRole__RequiredResourceDelegationConnector;
60 
61        /**
62         * The cached value of the '{@link #getOuterRequiredRole__RequiredResourceDelegationConnector() <em>Outer Required Role Required Resource Delegation Connector</em>}' reference.
63         * <!-- begin-user-doc -->
64         * <!-- end-user-doc -->
65         * @see #getOuterRequiredRole__RequiredResourceDelegationConnector()
66         * @generated
67         * @ordered
68         */
69        protected ResourceRequiredRole outerRequiredRole__RequiredResourceDelegationConnector;
70 
71        /**
72         * <!-- begin-user-doc -->
73         * <!-- end-user-doc -->
74         * @generated
75         */
76        protected RequiredResourceDelegationConnectorImpl() {
77                super();
78        }
79 
80        /**
81         * <!-- begin-user-doc -->
82         * <!-- end-user-doc -->
83         * @generated
84         */
85        @Override
86        protected EClass eStaticClass() {
87                return CompositionPackage.Literals.REQUIRED_RESOURCE_DELEGATION_CONNECTOR;
88        }
89 
90        /**
91         * <!-- begin-user-doc -->
92         * <!-- end-user-doc -->
93         * @generated
94         */
95        public AssemblyContext getAssemblyContext__RequiredResourceDelegationConnector() {
96                if (assemblyContext__RequiredResourceDelegationConnector != null && assemblyContext__RequiredResourceDelegationConnector.eIsProxy()) {
97                        InternalEObject oldAssemblyContext__RequiredResourceDelegationConnector = (InternalEObject)assemblyContext__RequiredResourceDelegationConnector;
98                        assemblyContext__RequiredResourceDelegationConnector = (AssemblyContext)eResolveProxy(oldAssemblyContext__RequiredResourceDelegationConnector);
99                        if (assemblyContext__RequiredResourceDelegationConnector != oldAssemblyContext__RequiredResourceDelegationConnector) {
100                                if (eNotificationRequired())
101                                        eNotify(new ENotificationImpl(this, Notification.RESOLVE, CompositionPackage.REQUIRED_RESOURCE_DELEGATION_CONNECTOR__ASSEMBLY_CONTEXT_REQUIRED_RESOURCE_DELEGATION_CONNECTOR, oldAssemblyContext__RequiredResourceDelegationConnector, assemblyContext__RequiredResourceDelegationConnector));
102                        }
103                }
104                return assemblyContext__RequiredResourceDelegationConnector;
105        }
106 
107        /**
108         * <!-- begin-user-doc -->
109         * <!-- end-user-doc -->
110         * @generated
111         */
112        public AssemblyContext basicGetAssemblyContext__RequiredResourceDelegationConnector() {
113                return assemblyContext__RequiredResourceDelegationConnector;
114        }
115 
116        /**
117         * <!-- begin-user-doc -->
118         * <!-- end-user-doc -->
119         * @generated
120         */
121        public void setAssemblyContext__RequiredResourceDelegationConnector(AssemblyContext newAssemblyContext__RequiredResourceDelegationConnector) {
122                AssemblyContext oldAssemblyContext__RequiredResourceDelegationConnector = assemblyContext__RequiredResourceDelegationConnector;
123                assemblyContext__RequiredResourceDelegationConnector = newAssemblyContext__RequiredResourceDelegationConnector;
124                if (eNotificationRequired())
125                        eNotify(new ENotificationImpl(this, Notification.SET, CompositionPackage.REQUIRED_RESOURCE_DELEGATION_CONNECTOR__ASSEMBLY_CONTEXT_REQUIRED_RESOURCE_DELEGATION_CONNECTOR, oldAssemblyContext__RequiredResourceDelegationConnector, assemblyContext__RequiredResourceDelegationConnector));
126        }
127 
128        /**
129         * <!-- begin-user-doc -->
130         * <!-- end-user-doc -->
131         * @generated
132         */
133        public ResourceRequiredRole getInnerRequiredRole__RequiredResourceDelegationConnector() {
134                if (innerRequiredRole__RequiredResourceDelegationConnector != null && innerRequiredRole__RequiredResourceDelegationConnector.eIsProxy()) {
135                        InternalEObject oldInnerRequiredRole__RequiredResourceDelegationConnector = (InternalEObject)innerRequiredRole__RequiredResourceDelegationConnector;
136                        innerRequiredRole__RequiredResourceDelegationConnector = (ResourceRequiredRole)eResolveProxy(oldInnerRequiredRole__RequiredResourceDelegationConnector);
137                        if (innerRequiredRole__RequiredResourceDelegationConnector != oldInnerRequiredRole__RequiredResourceDelegationConnector) {
138                                if (eNotificationRequired())
139                                        eNotify(new ENotificationImpl(this, Notification.RESOLVE, CompositionPackage.REQUIRED_RESOURCE_DELEGATION_CONNECTOR__INNER_REQUIRED_ROLE_REQUIRED_RESOURCE_DELEGATION_CONNECTOR, oldInnerRequiredRole__RequiredResourceDelegationConnector, innerRequiredRole__RequiredResourceDelegationConnector));
140                        }
141                }
142                return innerRequiredRole__RequiredResourceDelegationConnector;
143        }
144 
145        /**
146         * <!-- begin-user-doc -->
147         * <!-- end-user-doc -->
148         * @generated
149         */
150        public ResourceRequiredRole basicGetInnerRequiredRole__RequiredResourceDelegationConnector() {
151                return innerRequiredRole__RequiredResourceDelegationConnector;
152        }
153 
154        /**
155         * <!-- begin-user-doc -->
156         * <!-- end-user-doc -->
157         * @generated
158         */
159        public void setInnerRequiredRole__RequiredResourceDelegationConnector(ResourceRequiredRole newInnerRequiredRole__RequiredResourceDelegationConnector) {
160                ResourceRequiredRole oldInnerRequiredRole__RequiredResourceDelegationConnector = innerRequiredRole__RequiredResourceDelegationConnector;
161                innerRequiredRole__RequiredResourceDelegationConnector = newInnerRequiredRole__RequiredResourceDelegationConnector;
162                if (eNotificationRequired())
163                        eNotify(new ENotificationImpl(this, Notification.SET, CompositionPackage.REQUIRED_RESOURCE_DELEGATION_CONNECTOR__INNER_REQUIRED_ROLE_REQUIRED_RESOURCE_DELEGATION_CONNECTOR, oldInnerRequiredRole__RequiredResourceDelegationConnector, innerRequiredRole__RequiredResourceDelegationConnector));
164        }
165 
166        /**
167         * <!-- begin-user-doc -->
168         * <!-- end-user-doc -->
169         * @generated
170         */
171        public ResourceRequiredRole getOuterRequiredRole__RequiredResourceDelegationConnector() {
172                if (outerRequiredRole__RequiredResourceDelegationConnector != null && outerRequiredRole__RequiredResourceDelegationConnector.eIsProxy()) {
173                        InternalEObject oldOuterRequiredRole__RequiredResourceDelegationConnector = (InternalEObject)outerRequiredRole__RequiredResourceDelegationConnector;
174                        outerRequiredRole__RequiredResourceDelegationConnector = (ResourceRequiredRole)eResolveProxy(oldOuterRequiredRole__RequiredResourceDelegationConnector);
175                        if (outerRequiredRole__RequiredResourceDelegationConnector != oldOuterRequiredRole__RequiredResourceDelegationConnector) {
176                                if (eNotificationRequired())
177                                        eNotify(new ENotificationImpl(this, Notification.RESOLVE, CompositionPackage.REQUIRED_RESOURCE_DELEGATION_CONNECTOR__OUTER_REQUIRED_ROLE_REQUIRED_RESOURCE_DELEGATION_CONNECTOR, oldOuterRequiredRole__RequiredResourceDelegationConnector, outerRequiredRole__RequiredResourceDelegationConnector));
178                        }
179                }
180                return outerRequiredRole__RequiredResourceDelegationConnector;
181        }
182 
183        /**
184         * <!-- begin-user-doc -->
185         * <!-- end-user-doc -->
186         * @generated
187         */
188        public ResourceRequiredRole basicGetOuterRequiredRole__RequiredResourceDelegationConnector() {
189                return outerRequiredRole__RequiredResourceDelegationConnector;
190        }
191 
192        /**
193         * <!-- begin-user-doc -->
194         * <!-- end-user-doc -->
195         * @generated
196         */
197        public void setOuterRequiredRole__RequiredResourceDelegationConnector(ResourceRequiredRole newOuterRequiredRole__RequiredResourceDelegationConnector) {
198                ResourceRequiredRole oldOuterRequiredRole__RequiredResourceDelegationConnector = outerRequiredRole__RequiredResourceDelegationConnector;
199                outerRequiredRole__RequiredResourceDelegationConnector = newOuterRequiredRole__RequiredResourceDelegationConnector;
200                if (eNotificationRequired())
201                        eNotify(new ENotificationImpl(this, Notification.SET, CompositionPackage.REQUIRED_RESOURCE_DELEGATION_CONNECTOR__OUTER_REQUIRED_ROLE_REQUIRED_RESOURCE_DELEGATION_CONNECTOR, oldOuterRequiredRole__RequiredResourceDelegationConnector, outerRequiredRole__RequiredResourceDelegationConnector));
202        }
203 
204        /**
205         * <!-- begin-user-doc -->
206         * <!-- end-user-doc -->
207         * @generated
208         */
209        @Override
210        public Object eGet(int featureID, boolean resolve, boolean coreType) {
211                switch (featureID) {
212                        case CompositionPackage.REQUIRED_RESOURCE_DELEGATION_CONNECTOR__ASSEMBLY_CONTEXT_REQUIRED_RESOURCE_DELEGATION_CONNECTOR:
213                                if (resolve) return getAssemblyContext__RequiredResourceDelegationConnector();
214                                return basicGetAssemblyContext__RequiredResourceDelegationConnector();
215                        case CompositionPackage.REQUIRED_RESOURCE_DELEGATION_CONNECTOR__INNER_REQUIRED_ROLE_REQUIRED_RESOURCE_DELEGATION_CONNECTOR:
216                                if (resolve) return getInnerRequiredRole__RequiredResourceDelegationConnector();
217                                return basicGetInnerRequiredRole__RequiredResourceDelegationConnector();
218                        case CompositionPackage.REQUIRED_RESOURCE_DELEGATION_CONNECTOR__OUTER_REQUIRED_ROLE_REQUIRED_RESOURCE_DELEGATION_CONNECTOR:
219                                if (resolve) return getOuterRequiredRole__RequiredResourceDelegationConnector();
220                                return basicGetOuterRequiredRole__RequiredResourceDelegationConnector();
221                }
222                return super.eGet(featureID, resolve, coreType);
223        }
224 
225        /**
226         * <!-- begin-user-doc -->
227         * <!-- end-user-doc -->
228         * @generated
229         */
230        @Override
231        public void eSet(int featureID, Object newValue) {
232                switch (featureID) {
233                        case CompositionPackage.REQUIRED_RESOURCE_DELEGATION_CONNECTOR__ASSEMBLY_CONTEXT_REQUIRED_RESOURCE_DELEGATION_CONNECTOR:
234                                setAssemblyContext__RequiredResourceDelegationConnector((AssemblyContext)newValue);
235                                return;
236                        case CompositionPackage.REQUIRED_RESOURCE_DELEGATION_CONNECTOR__INNER_REQUIRED_ROLE_REQUIRED_RESOURCE_DELEGATION_CONNECTOR:
237                                setInnerRequiredRole__RequiredResourceDelegationConnector((ResourceRequiredRole)newValue);
238                                return;
239                        case CompositionPackage.REQUIRED_RESOURCE_DELEGATION_CONNECTOR__OUTER_REQUIRED_ROLE_REQUIRED_RESOURCE_DELEGATION_CONNECTOR:
240                                setOuterRequiredRole__RequiredResourceDelegationConnector((ResourceRequiredRole)newValue);
241                                return;
242                }
243                super.eSet(featureID, newValue);
244        }
245 
246        /**
247         * <!-- begin-user-doc -->
248         * <!-- end-user-doc -->
249         * @generated
250         */
251        @Override
252        public void eUnset(int featureID) {
253                switch (featureID) {
254                        case CompositionPackage.REQUIRED_RESOURCE_DELEGATION_CONNECTOR__ASSEMBLY_CONTEXT_REQUIRED_RESOURCE_DELEGATION_CONNECTOR:
255                                setAssemblyContext__RequiredResourceDelegationConnector((AssemblyContext)null);
256                                return;
257                        case CompositionPackage.REQUIRED_RESOURCE_DELEGATION_CONNECTOR__INNER_REQUIRED_ROLE_REQUIRED_RESOURCE_DELEGATION_CONNECTOR:
258                                setInnerRequiredRole__RequiredResourceDelegationConnector((ResourceRequiredRole)null);
259                                return;
260                        case CompositionPackage.REQUIRED_RESOURCE_DELEGATION_CONNECTOR__OUTER_REQUIRED_ROLE_REQUIRED_RESOURCE_DELEGATION_CONNECTOR:
261                                setOuterRequiredRole__RequiredResourceDelegationConnector((ResourceRequiredRole)null);
262                                return;
263                }
264                super.eUnset(featureID);
265        }
266 
267        /**
268         * <!-- begin-user-doc -->
269         * <!-- end-user-doc -->
270         * @generated
271         */
272        @Override
273        public boolean eIsSet(int featureID) {
274                switch (featureID) {
275                        case CompositionPackage.REQUIRED_RESOURCE_DELEGATION_CONNECTOR__ASSEMBLY_CONTEXT_REQUIRED_RESOURCE_DELEGATION_CONNECTOR:
276                                return assemblyContext__RequiredResourceDelegationConnector != null;
277                        case CompositionPackage.REQUIRED_RESOURCE_DELEGATION_CONNECTOR__INNER_REQUIRED_ROLE_REQUIRED_RESOURCE_DELEGATION_CONNECTOR:
278                                return innerRequiredRole__RequiredResourceDelegationConnector != null;
279                        case CompositionPackage.REQUIRED_RESOURCE_DELEGATION_CONNECTOR__OUTER_REQUIRED_ROLE_REQUIRED_RESOURCE_DELEGATION_CONNECTOR:
280                                return outerRequiredRole__RequiredResourceDelegationConnector != null;
281                }
282                return super.eIsSet(featureID);
283        }
284 
285} //RequiredResourceDelegationConnectorImpl

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