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

nameclass, %method, %block, %line, %
EventChannelSourceConnectorImpl.java0%   (0/1)0%   (0/18)0%   (0/389)0%   (0/93)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class EventChannelSourceConnectorImpl0%   (0/1)0%   (0/18)0%   (0/389)0%   (0/93)
EventChannelSourceConnectorImpl (): void 0%   (0/1)0%   (0/3)0%   (0/2)
basicGetAssemblyContext__EventChannelSourceConnector (): AssemblyContext 0%   (0/1)0%   (0/3)0%   (0/1)
basicGetEventChannel__EventChannelSourceConnector (): EventChannel 0%   (0/1)0%   (0/3)0%   (0/1)
basicGetSourceRole__EventChannelSourceRole (): SourceRole 0%   (0/1)0%   (0/3)0%   (0/1)
basicSetEventChannel__EventChannelSourceConnector (EventChannel, Notification... 0%   (0/1)0%   (0/29)0%   (0/6)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/32)0%   (0/8)
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/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__EventChannelSourceConnector (): AssemblyContext 0%   (0/1)0%   (0/38)0%   (0/7)
getEventChannel__EventChannelSourceConnector (): EventChannel 0%   (0/1)0%   (0/38)0%   (0/7)
getSourceRole__EventChannelSourceRole (): SourceRole 0%   (0/1)0%   (0/38)0%   (0/7)
setAssemblyContext__EventChannelSourceConnector (AssemblyContext): void 0%   (0/1)0%   (0/21)0%   (0/5)
setEventChannel__EventChannelSourceConnector (EventChannel): void 0%   (0/1)0%   (0/52)0%   (0/11)
setSourceRole__EventChannelSourceRole (SourceRole): void 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.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.composition.AssemblyContext;
15import de.uka.ipd.sdq.pcm.core.composition.CompositionPackage;
16import de.uka.ipd.sdq.pcm.core.composition.EventChannel;
17import de.uka.ipd.sdq.pcm.core.composition.EventChannelSourceConnector;
18import de.uka.ipd.sdq.pcm.repository.SourceRole;
19 
20/**
21 * <!-- begin-user-doc -->
22 * An implementation of the model object '<em><b>Event Channel Source Connector</b></em>'.
23 * <!-- end-user-doc -->
24 * <p>
25 * The following features are implemented:
26 * <ul>
27 *   <li>{@link de.uka.ipd.sdq.pcm.core.composition.impl.EventChannelSourceConnectorImpl#getSourceRole__EventChannelSourceRole <em>Source Role Event Channel Source Role</em>}</li>
28 *   <li>{@link de.uka.ipd.sdq.pcm.core.composition.impl.EventChannelSourceConnectorImpl#getAssemblyContext__EventChannelSourceConnector <em>Assembly Context Event Channel Source Connector</em>}</li>
29 *   <li>{@link de.uka.ipd.sdq.pcm.core.composition.impl.EventChannelSourceConnectorImpl#getEventChannel__EventChannelSourceConnector <em>Event Channel Event Channel Source Connector</em>}</li>
30 * </ul>
31 * </p>
32 *
33 * @generated
34 */
35public class EventChannelSourceConnectorImpl extends ConnectorImpl implements EventChannelSourceConnector {
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 #getSourceRole__EventChannelSourceRole() <em>Source Role Event Channel Source Role</em>}' reference.
45         * <!-- begin-user-doc -->
46         * <!-- end-user-doc -->
47         * @see #getSourceRole__EventChannelSourceRole()
48         * @generated
49         * @ordered
50         */
51        protected SourceRole sourceRole__EventChannelSourceRole;
52 
53        /**
54         * The cached value of the '{@link #getAssemblyContext__EventChannelSourceConnector() <em>Assembly Context Event Channel Source Connector</em>}' reference.
55         * <!-- begin-user-doc -->
56         * <!-- end-user-doc -->
57         * @see #getAssemblyContext__EventChannelSourceConnector()
58         * @generated
59         * @ordered
60         */
61        protected AssemblyContext assemblyContext__EventChannelSourceConnector;
62 
63        /**
64         * The cached value of the '{@link #getEventChannel__EventChannelSourceConnector() <em>Event Channel Event Channel Source Connector</em>}' reference.
65         * <!-- begin-user-doc -->
66         * <!-- end-user-doc -->
67         * @see #getEventChannel__EventChannelSourceConnector()
68         * @generated
69         * @ordered
70         */
71        protected EventChannel eventChannel__EventChannelSourceConnector;
72 
73        /**
74         * <!-- begin-user-doc -->
75         * <!-- end-user-doc -->
76         * @generated
77         */
78        protected EventChannelSourceConnectorImpl() {
79                super();
80        }
81 
82        /**
83         * <!-- begin-user-doc -->
84         * <!-- end-user-doc -->
85         * @generated
86         */
87        @Override
88        protected EClass eStaticClass() {
89                return CompositionPackage.Literals.EVENT_CHANNEL_SOURCE_CONNECTOR;
90        }
91 
92        /**
93         * <!-- begin-user-doc -->
94         * <!-- end-user-doc -->
95         * @generated
96         */
97        public SourceRole getSourceRole__EventChannelSourceRole() {
98                if (sourceRole__EventChannelSourceRole != null && sourceRole__EventChannelSourceRole.eIsProxy()) {
99                        InternalEObject oldSourceRole__EventChannelSourceRole = (InternalEObject)sourceRole__EventChannelSourceRole;
100                        sourceRole__EventChannelSourceRole = (SourceRole)eResolveProxy(oldSourceRole__EventChannelSourceRole);
101                        if (sourceRole__EventChannelSourceRole != oldSourceRole__EventChannelSourceRole) {
102                                if (eNotificationRequired())
103                                        eNotify(new ENotificationImpl(this, Notification.RESOLVE, CompositionPackage.EVENT_CHANNEL_SOURCE_CONNECTOR__SOURCE_ROLE_EVENT_CHANNEL_SOURCE_ROLE, oldSourceRole__EventChannelSourceRole, sourceRole__EventChannelSourceRole));
104                        }
105                }
106                return sourceRole__EventChannelSourceRole;
107        }
108 
109        /**
110         * <!-- begin-user-doc -->
111         * <!-- end-user-doc -->
112         * @generated
113         */
114        public SourceRole basicGetSourceRole__EventChannelSourceRole() {
115                return sourceRole__EventChannelSourceRole;
116        }
117 
118        /**
119         * <!-- begin-user-doc -->
120         * <!-- end-user-doc -->
121         * @generated
122         */
123        public void setSourceRole__EventChannelSourceRole(SourceRole newSourceRole__EventChannelSourceRole) {
124                SourceRole oldSourceRole__EventChannelSourceRole = sourceRole__EventChannelSourceRole;
125                sourceRole__EventChannelSourceRole = newSourceRole__EventChannelSourceRole;
126                if (eNotificationRequired())
127                        eNotify(new ENotificationImpl(this, Notification.SET, CompositionPackage.EVENT_CHANNEL_SOURCE_CONNECTOR__SOURCE_ROLE_EVENT_CHANNEL_SOURCE_ROLE, oldSourceRole__EventChannelSourceRole, sourceRole__EventChannelSourceRole));
128        }
129 
130        /**
131         * <!-- begin-user-doc -->
132         * <!-- end-user-doc -->
133         * @generated
134         */
135        public AssemblyContext getAssemblyContext__EventChannelSourceConnector() {
136                if (assemblyContext__EventChannelSourceConnector != null && assemblyContext__EventChannelSourceConnector.eIsProxy()) {
137                        InternalEObject oldAssemblyContext__EventChannelSourceConnector = (InternalEObject)assemblyContext__EventChannelSourceConnector;
138                        assemblyContext__EventChannelSourceConnector = (AssemblyContext)eResolveProxy(oldAssemblyContext__EventChannelSourceConnector);
139                        if (assemblyContext__EventChannelSourceConnector != oldAssemblyContext__EventChannelSourceConnector) {
140                                if (eNotificationRequired())
141                                        eNotify(new ENotificationImpl(this, Notification.RESOLVE, CompositionPackage.EVENT_CHANNEL_SOURCE_CONNECTOR__ASSEMBLY_CONTEXT_EVENT_CHANNEL_SOURCE_CONNECTOR, oldAssemblyContext__EventChannelSourceConnector, assemblyContext__EventChannelSourceConnector));
142                        }
143                }
144                return assemblyContext__EventChannelSourceConnector;
145        }
146 
147        /**
148         * <!-- begin-user-doc -->
149         * <!-- end-user-doc -->
150         * @generated
151         */
152        public AssemblyContext basicGetAssemblyContext__EventChannelSourceConnector() {
153                return assemblyContext__EventChannelSourceConnector;
154        }
155 
156        /**
157         * <!-- begin-user-doc -->
158         * <!-- end-user-doc -->
159         * @generated
160         */
161        public void setAssemblyContext__EventChannelSourceConnector(AssemblyContext newAssemblyContext__EventChannelSourceConnector) {
162                AssemblyContext oldAssemblyContext__EventChannelSourceConnector = assemblyContext__EventChannelSourceConnector;
163                assemblyContext__EventChannelSourceConnector = newAssemblyContext__EventChannelSourceConnector;
164                if (eNotificationRequired())
165                        eNotify(new ENotificationImpl(this, Notification.SET, CompositionPackage.EVENT_CHANNEL_SOURCE_CONNECTOR__ASSEMBLY_CONTEXT_EVENT_CHANNEL_SOURCE_CONNECTOR, oldAssemblyContext__EventChannelSourceConnector, assemblyContext__EventChannelSourceConnector));
166        }
167 
168        /**
169         * <!-- begin-user-doc -->
170         * <!-- end-user-doc -->
171         * @generated
172         */
173        public EventChannel getEventChannel__EventChannelSourceConnector() {
174                if (eventChannel__EventChannelSourceConnector != null && eventChannel__EventChannelSourceConnector.eIsProxy()) {
175                        InternalEObject oldEventChannel__EventChannelSourceConnector = (InternalEObject)eventChannel__EventChannelSourceConnector;
176                        eventChannel__EventChannelSourceConnector = (EventChannel)eResolveProxy(oldEventChannel__EventChannelSourceConnector);
177                        if (eventChannel__EventChannelSourceConnector != oldEventChannel__EventChannelSourceConnector) {
178                                if (eNotificationRequired())
179                                        eNotify(new ENotificationImpl(this, Notification.RESOLVE, CompositionPackage.EVENT_CHANNEL_SOURCE_CONNECTOR__EVENT_CHANNEL_EVENT_CHANNEL_SOURCE_CONNECTOR, oldEventChannel__EventChannelSourceConnector, eventChannel__EventChannelSourceConnector));
180                        }
181                }
182                return eventChannel__EventChannelSourceConnector;
183        }
184 
185        /**
186         * <!-- begin-user-doc -->
187         * <!-- end-user-doc -->
188         * @generated
189         */
190        public EventChannel basicGetEventChannel__EventChannelSourceConnector() {
191                return eventChannel__EventChannelSourceConnector;
192        }
193 
194        /**
195         * <!-- begin-user-doc -->
196         * <!-- end-user-doc -->
197         * @generated
198         */
199        public NotificationChain basicSetEventChannel__EventChannelSourceConnector(EventChannel newEventChannel__EventChannelSourceConnector, NotificationChain msgs) {
200                EventChannel oldEventChannel__EventChannelSourceConnector = eventChannel__EventChannelSourceConnector;
201                eventChannel__EventChannelSourceConnector = newEventChannel__EventChannelSourceConnector;
202                if (eNotificationRequired()) {
203                        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, CompositionPackage.EVENT_CHANNEL_SOURCE_CONNECTOR__EVENT_CHANNEL_EVENT_CHANNEL_SOURCE_CONNECTOR, oldEventChannel__EventChannelSourceConnector, newEventChannel__EventChannelSourceConnector);
204                        if (msgs == null) msgs = notification; else msgs.add(notification);
205                }
206                return msgs;
207        }
208 
209        /**
210         * <!-- begin-user-doc -->
211         * <!-- end-user-doc -->
212         * @generated
213         */
214        public void setEventChannel__EventChannelSourceConnector(EventChannel newEventChannel__EventChannelSourceConnector) {
215                if (newEventChannel__EventChannelSourceConnector != eventChannel__EventChannelSourceConnector) {
216                        NotificationChain msgs = null;
217                        if (eventChannel__EventChannelSourceConnector != null)
218                                msgs = ((InternalEObject)eventChannel__EventChannelSourceConnector).eInverseRemove(this, CompositionPackage.EVENT_CHANNEL__EVENT_CHANNEL_SOURCE_CONNECTOR_EVENT_CHANNEL, EventChannel.class, msgs);
219                        if (newEventChannel__EventChannelSourceConnector != null)
220                                msgs = ((InternalEObject)newEventChannel__EventChannelSourceConnector).eInverseAdd(this, CompositionPackage.EVENT_CHANNEL__EVENT_CHANNEL_SOURCE_CONNECTOR_EVENT_CHANNEL, EventChannel.class, msgs);
221                        msgs = basicSetEventChannel__EventChannelSourceConnector(newEventChannel__EventChannelSourceConnector, msgs);
222                        if (msgs != null) msgs.dispatch();
223                }
224                else if (eNotificationRequired())
225                        eNotify(new ENotificationImpl(this, Notification.SET, CompositionPackage.EVENT_CHANNEL_SOURCE_CONNECTOR__EVENT_CHANNEL_EVENT_CHANNEL_SOURCE_CONNECTOR, newEventChannel__EventChannelSourceConnector, newEventChannel__EventChannelSourceConnector));
226        }
227 
228        /**
229         * <!-- begin-user-doc -->
230         * <!-- end-user-doc -->
231         * @generated
232         */
233        @Override
234        public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
235                switch (featureID) {
236                        case CompositionPackage.EVENT_CHANNEL_SOURCE_CONNECTOR__EVENT_CHANNEL_EVENT_CHANNEL_SOURCE_CONNECTOR:
237                                if (eventChannel__EventChannelSourceConnector != null)
238                                        msgs = ((InternalEObject)eventChannel__EventChannelSourceConnector).eInverseRemove(this, CompositionPackage.EVENT_CHANNEL__EVENT_CHANNEL_SOURCE_CONNECTOR_EVENT_CHANNEL, EventChannel.class, msgs);
239                                return basicSetEventChannel__EventChannelSourceConnector((EventChannel)otherEnd, msgs);
240                }
241                return super.eInverseAdd(otherEnd, featureID, msgs);
242        }
243 
244        /**
245         * <!-- begin-user-doc -->
246         * <!-- end-user-doc -->
247         * @generated
248         */
249        @Override
250        public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
251                switch (featureID) {
252                        case CompositionPackage.EVENT_CHANNEL_SOURCE_CONNECTOR__EVENT_CHANNEL_EVENT_CHANNEL_SOURCE_CONNECTOR:
253                                return basicSetEventChannel__EventChannelSourceConnector(null, msgs);
254                }
255                return super.eInverseRemove(otherEnd, featureID, msgs);
256        }
257 
258        /**
259         * <!-- begin-user-doc -->
260         * <!-- end-user-doc -->
261         * @generated
262         */
263        @Override
264        public Object eGet(int featureID, boolean resolve, boolean coreType) {
265                switch (featureID) {
266                        case CompositionPackage.EVENT_CHANNEL_SOURCE_CONNECTOR__SOURCE_ROLE_EVENT_CHANNEL_SOURCE_ROLE:
267                                if (resolve) return getSourceRole__EventChannelSourceRole();
268                                return basicGetSourceRole__EventChannelSourceRole();
269                        case CompositionPackage.EVENT_CHANNEL_SOURCE_CONNECTOR__ASSEMBLY_CONTEXT_EVENT_CHANNEL_SOURCE_CONNECTOR:
270                                if (resolve) return getAssemblyContext__EventChannelSourceConnector();
271                                return basicGetAssemblyContext__EventChannelSourceConnector();
272                        case CompositionPackage.EVENT_CHANNEL_SOURCE_CONNECTOR__EVENT_CHANNEL_EVENT_CHANNEL_SOURCE_CONNECTOR:
273                                if (resolve) return getEventChannel__EventChannelSourceConnector();
274                                return basicGetEventChannel__EventChannelSourceConnector();
275                }
276                return super.eGet(featureID, resolve, coreType);
277        }
278 
279        /**
280         * <!-- begin-user-doc -->
281         * <!-- end-user-doc -->
282         * @generated
283         */
284        @Override
285        public void eSet(int featureID, Object newValue) {
286                switch (featureID) {
287                        case CompositionPackage.EVENT_CHANNEL_SOURCE_CONNECTOR__SOURCE_ROLE_EVENT_CHANNEL_SOURCE_ROLE:
288                                setSourceRole__EventChannelSourceRole((SourceRole)newValue);
289                                return;
290                        case CompositionPackage.EVENT_CHANNEL_SOURCE_CONNECTOR__ASSEMBLY_CONTEXT_EVENT_CHANNEL_SOURCE_CONNECTOR:
291                                setAssemblyContext__EventChannelSourceConnector((AssemblyContext)newValue);
292                                return;
293                        case CompositionPackage.EVENT_CHANNEL_SOURCE_CONNECTOR__EVENT_CHANNEL_EVENT_CHANNEL_SOURCE_CONNECTOR:
294                                setEventChannel__EventChannelSourceConnector((EventChannel)newValue);
295                                return;
296                }
297                super.eSet(featureID, newValue);
298        }
299 
300        /**
301         * <!-- begin-user-doc -->
302         * <!-- end-user-doc -->
303         * @generated
304         */
305        @Override
306        public void eUnset(int featureID) {
307                switch (featureID) {
308                        case CompositionPackage.EVENT_CHANNEL_SOURCE_CONNECTOR__SOURCE_ROLE_EVENT_CHANNEL_SOURCE_ROLE:
309                                setSourceRole__EventChannelSourceRole((SourceRole)null);
310                                return;
311                        case CompositionPackage.EVENT_CHANNEL_SOURCE_CONNECTOR__ASSEMBLY_CONTEXT_EVENT_CHANNEL_SOURCE_CONNECTOR:
312                                setAssemblyContext__EventChannelSourceConnector((AssemblyContext)null);
313                                return;
314                        case CompositionPackage.EVENT_CHANNEL_SOURCE_CONNECTOR__EVENT_CHANNEL_EVENT_CHANNEL_SOURCE_CONNECTOR:
315                                setEventChannel__EventChannelSourceConnector((EventChannel)null);
316                                return;
317                }
318                super.eUnset(featureID);
319        }
320 
321        /**
322         * <!-- begin-user-doc -->
323         * <!-- end-user-doc -->
324         * @generated
325         */
326        @Override
327        public boolean eIsSet(int featureID) {
328                switch (featureID) {
329                        case CompositionPackage.EVENT_CHANNEL_SOURCE_CONNECTOR__SOURCE_ROLE_EVENT_CHANNEL_SOURCE_ROLE:
330                                return sourceRole__EventChannelSourceRole != null;
331                        case CompositionPackage.EVENT_CHANNEL_SOURCE_CONNECTOR__ASSEMBLY_CONTEXT_EVENT_CHANNEL_SOURCE_CONNECTOR:
332                                return assemblyContext__EventChannelSourceConnector != null;
333                        case CompositionPackage.EVENT_CHANNEL_SOURCE_CONNECTOR__EVENT_CHANNEL_EVENT_CHANNEL_SOURCE_CONNECTOR:
334                                return eventChannel__EventChannelSourceConnector != null;
335                }
336                return super.eIsSet(featureID);
337        }
338 
339} //EventChannelSourceConnectorImpl

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