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

nameclass, %method, %block, %line, %
ResourceDemandingInternalBehaviourImpl.java0%   (0/1)0%   (0/12)0%   (0/188)0%   (0/47)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ResourceDemandingInternalBehaviourImpl0%   (0/1)0%   (0/12)0%   (0/188)0%   (0/47)
ResourceDemandingInternalBehaviourImpl (): void 0%   (0/1)0%   (0/3)0%   (0/2)
basicSetResourceDemandingSEFF_ResourceDemandingInternalBehaviour (ResourceDem... 0%   (0/1)0%   (0/9)0%   (0/2)
eBasicRemoveFromContainerFeature (NotificationChain): NotificationChain 0%   (0/1)0%   (0/15)0%   (0/3)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/11)0%   (0/3)
eInverseAdd (InternalEObject, int, NotificationChain): NotificationChain 0%   (0/1)0%   (0/21)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)
getResourceDemandingSEFF_ResourceDemandingInternalBehaviour (): ResourceDeman... 0%   (0/1)0%   (0/10)0%   (0/2)
setResourceDemandingSEFF_ResourceDemandingInternalBehaviour (ResourceDemandin... 0%   (0/1)0%   (0/69)0%   (0/13)

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.seff.ResourceDemandingInternalBehaviour;
16import de.uka.ipd.sdq.pcm.seff.ResourceDemandingSEFF;
17import de.uka.ipd.sdq.pcm.seff.SeffPackage;
18 
19/**
20 * <!-- begin-user-doc -->
21 * An implementation of the model object '<em><b>Resource Demanding Internal Behaviour</b></em>'.
22 * <!-- end-user-doc -->
23 * <p>
24 * The following features are implemented:
25 * <ul>
26 *   <li>{@link de.uka.ipd.sdq.pcm.seff.impl.ResourceDemandingInternalBehaviourImpl#getResourceDemandingSEFF_ResourceDemandingInternalBehaviour <em>Resource Demanding SEFF Resource Demanding Internal Behaviour</em>}</li>
27 * </ul>
28 * </p>
29 *
30 * @generated
31 */
32public class ResourceDemandingInternalBehaviourImpl extends ResourceDemandingBehaviourImpl implements ResourceDemandingInternalBehaviour {
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         * <!-- begin-user-doc -->
42         * <!-- end-user-doc -->
43         * @generated
44         */
45        protected ResourceDemandingInternalBehaviourImpl() {
46                super();
47        }
48 
49        /**
50         * <!-- begin-user-doc -->
51         * <!-- end-user-doc -->
52         * @generated
53         */
54        @Override
55        protected EClass eStaticClass() {
56                return SeffPackage.Literals.RESOURCE_DEMANDING_INTERNAL_BEHAVIOUR;
57        }
58 
59        /**
60         * <!-- begin-user-doc -->
61         * <!-- end-user-doc -->
62         * @generated
63         */
64        public ResourceDemandingSEFF getResourceDemandingSEFF_ResourceDemandingInternalBehaviour() {
65                if (eContainerFeatureID() != SeffPackage.RESOURCE_DEMANDING_INTERNAL_BEHAVIOUR__RESOURCE_DEMANDING_SEFF_RESOURCE_DEMANDING_INTERNAL_BEHAVIOUR) return null;
66                return (ResourceDemandingSEFF)eContainer();
67        }
68 
69        /**
70         * <!-- begin-user-doc -->
71         * <!-- end-user-doc -->
72         * @generated
73         */
74        public NotificationChain basicSetResourceDemandingSEFF_ResourceDemandingInternalBehaviour(ResourceDemandingSEFF newResourceDemandingSEFF_ResourceDemandingInternalBehaviour, NotificationChain msgs) {
75                msgs = eBasicSetContainer((InternalEObject)newResourceDemandingSEFF_ResourceDemandingInternalBehaviour, SeffPackage.RESOURCE_DEMANDING_INTERNAL_BEHAVIOUR__RESOURCE_DEMANDING_SEFF_RESOURCE_DEMANDING_INTERNAL_BEHAVIOUR, msgs);
76                return msgs;
77        }
78 
79        /**
80         * <!-- begin-user-doc -->
81         * <!-- end-user-doc -->
82         * @generated
83         */
84        public void setResourceDemandingSEFF_ResourceDemandingInternalBehaviour(ResourceDemandingSEFF newResourceDemandingSEFF_ResourceDemandingInternalBehaviour) {
85                if (newResourceDemandingSEFF_ResourceDemandingInternalBehaviour != eInternalContainer() || (eContainerFeatureID() != SeffPackage.RESOURCE_DEMANDING_INTERNAL_BEHAVIOUR__RESOURCE_DEMANDING_SEFF_RESOURCE_DEMANDING_INTERNAL_BEHAVIOUR && newResourceDemandingSEFF_ResourceDemandingInternalBehaviour != null)) {
86                        if (EcoreUtil.isAncestor(this, newResourceDemandingSEFF_ResourceDemandingInternalBehaviour))
87                                throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
88                        NotificationChain msgs = null;
89                        if (eInternalContainer() != null)
90                                msgs = eBasicRemoveFromContainer(msgs);
91                        if (newResourceDemandingSEFF_ResourceDemandingInternalBehaviour != null)
92                                msgs = ((InternalEObject)newResourceDemandingSEFF_ResourceDemandingInternalBehaviour).eInverseAdd(this, SeffPackage.RESOURCE_DEMANDING_SEFF__RESOURCE_DEMANDING_INTERNAL_BEHAVIOURS, ResourceDemandingSEFF.class, msgs);
93                        msgs = basicSetResourceDemandingSEFF_ResourceDemandingInternalBehaviour(newResourceDemandingSEFF_ResourceDemandingInternalBehaviour, msgs);
94                        if (msgs != null) msgs.dispatch();
95                }
96                else if (eNotificationRequired())
97                        eNotify(new ENotificationImpl(this, Notification.SET, SeffPackage.RESOURCE_DEMANDING_INTERNAL_BEHAVIOUR__RESOURCE_DEMANDING_SEFF_RESOURCE_DEMANDING_INTERNAL_BEHAVIOUR, newResourceDemandingSEFF_ResourceDemandingInternalBehaviour, newResourceDemandingSEFF_ResourceDemandingInternalBehaviour));
98        }
99 
100        /**
101         * <!-- begin-user-doc -->
102         * <!-- end-user-doc -->
103         * @generated
104         */
105        @Override
106        public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
107                switch (featureID) {
108                        case SeffPackage.RESOURCE_DEMANDING_INTERNAL_BEHAVIOUR__RESOURCE_DEMANDING_SEFF_RESOURCE_DEMANDING_INTERNAL_BEHAVIOUR:
109                                if (eInternalContainer() != null)
110                                        msgs = eBasicRemoveFromContainer(msgs);
111                                return basicSetResourceDemandingSEFF_ResourceDemandingInternalBehaviour((ResourceDemandingSEFF)otherEnd, msgs);
112                }
113                return super.eInverseAdd(otherEnd, featureID, msgs);
114        }
115 
116        /**
117         * <!-- begin-user-doc -->
118         * <!-- end-user-doc -->
119         * @generated
120         */
121        @Override
122        public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
123                switch (featureID) {
124                        case SeffPackage.RESOURCE_DEMANDING_INTERNAL_BEHAVIOUR__RESOURCE_DEMANDING_SEFF_RESOURCE_DEMANDING_INTERNAL_BEHAVIOUR:
125                                return basicSetResourceDemandingSEFF_ResourceDemandingInternalBehaviour(null, msgs);
126                }
127                return super.eInverseRemove(otherEnd, featureID, msgs);
128        }
129 
130        /**
131         * <!-- begin-user-doc -->
132         * <!-- end-user-doc -->
133         * @generated
134         */
135        @Override
136        public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) {
137                switch (eContainerFeatureID()) {
138                        case SeffPackage.RESOURCE_DEMANDING_INTERNAL_BEHAVIOUR__RESOURCE_DEMANDING_SEFF_RESOURCE_DEMANDING_INTERNAL_BEHAVIOUR:
139                                return eInternalContainer().eInverseRemove(this, SeffPackage.RESOURCE_DEMANDING_SEFF__RESOURCE_DEMANDING_INTERNAL_BEHAVIOURS, ResourceDemandingSEFF.class, msgs);
140                }
141                return super.eBasicRemoveFromContainerFeature(msgs);
142        }
143 
144        /**
145         * <!-- begin-user-doc -->
146         * <!-- end-user-doc -->
147         * @generated
148         */
149        @Override
150        public Object eGet(int featureID, boolean resolve, boolean coreType) {
151                switch (featureID) {
152                        case SeffPackage.RESOURCE_DEMANDING_INTERNAL_BEHAVIOUR__RESOURCE_DEMANDING_SEFF_RESOURCE_DEMANDING_INTERNAL_BEHAVIOUR:
153                                return getResourceDemandingSEFF_ResourceDemandingInternalBehaviour();
154                }
155                return super.eGet(featureID, resolve, coreType);
156        }
157 
158        /**
159         * <!-- begin-user-doc -->
160         * <!-- end-user-doc -->
161         * @generated
162         */
163        @Override
164        public void eSet(int featureID, Object newValue) {
165                switch (featureID) {
166                        case SeffPackage.RESOURCE_DEMANDING_INTERNAL_BEHAVIOUR__RESOURCE_DEMANDING_SEFF_RESOURCE_DEMANDING_INTERNAL_BEHAVIOUR:
167                                setResourceDemandingSEFF_ResourceDemandingInternalBehaviour((ResourceDemandingSEFF)newValue);
168                                return;
169                }
170                super.eSet(featureID, newValue);
171        }
172 
173        /**
174         * <!-- begin-user-doc -->
175         * <!-- end-user-doc -->
176         * @generated
177         */
178        @Override
179        public void eUnset(int featureID) {
180                switch (featureID) {
181                        case SeffPackage.RESOURCE_DEMANDING_INTERNAL_BEHAVIOUR__RESOURCE_DEMANDING_SEFF_RESOURCE_DEMANDING_INTERNAL_BEHAVIOUR:
182                                setResourceDemandingSEFF_ResourceDemandingInternalBehaviour((ResourceDemandingSEFF)null);
183                                return;
184                }
185                super.eUnset(featureID);
186        }
187 
188        /**
189         * <!-- begin-user-doc -->
190         * <!-- end-user-doc -->
191         * @generated
192         */
193        @Override
194        public boolean eIsSet(int featureID) {
195                switch (featureID) {
196                        case SeffPackage.RESOURCE_DEMANDING_INTERNAL_BEHAVIOUR__RESOURCE_DEMANDING_SEFF_RESOURCE_DEMANDING_INTERNAL_BEHAVIOUR:
197                                return getResourceDemandingSEFF_ResourceDemandingInternalBehaviour() != null;
198                }
199                return super.eIsSet(featureID);
200        }
201 
202} //ResourceDemandingInternalBehaviourImpl

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