EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012)
[all classes][de.fzi.se.quality.qualityannotation.impl]

COVERAGE SUMMARY FOR SOURCE FILE [PCMServiceSpecificationImpl.java]

nameclass, %method, %block, %line, %
PCMServiceSpecificationImpl.java0%   (0/1)0%   (0/9)0%   (0/118)0%   (0/33)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class PCMServiceSpecificationImpl0%   (0/1)0%   (0/9)0%   (0/118)0%   (0/33)
PCMServiceSpecificationImpl (): void 0%   (0/1)0%   (0/3)0%   (0/2)
basicGetResourceDemandingSEFF (): ResourceDemandingSEFF 0%   (0/1)0%   (0/3)0%   (0/1)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/16)0%   (0/4)
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 (): ResourceDemandingSEFF 0%   (0/1)0%   (0/38)0%   (0/7)
setResourceDemandingSEFF (ResourceDemandingSEFF): void 0%   (0/1)0%   (0/21)0%   (0/5)

1/**
2 * <copyright>
3 * </copyright>
4 *
5 * $Id$
6 */
7package de.fzi.se.quality.qualityannotation.impl;
8 
9import de.fzi.se.quality.qualityannotation.PCMServiceSpecification;
10import de.fzi.se.quality.qualityannotation.QualityAnnotationPackage;
11 
12import de.uka.ipd.sdq.pcm.seff.ResourceDemandingSEFF;
13 
14import org.eclipse.emf.common.notify.Notification;
15 
16import org.eclipse.emf.ecore.EClass;
17import org.eclipse.emf.ecore.InternalEObject;
18 
19import org.eclipse.emf.ecore.impl.ENotificationImpl;
20 
21/**
22 * <!-- begin-user-doc -->
23 * An implementation of the model object '<em><b>PCM Service Specification</b></em>'.
24 * <!-- end-user-doc -->
25 * <p>
26 * The following features are implemented:
27 * <ul>
28 *   <li>{@link de.fzi.se.quality.qualityannotation.impl.PCMServiceSpecificationImpl#getResourceDemandingSEFF <em>Resource Demanding SEFF</em>}</li>
29 * </ul>
30 * </p>
31 *
32 * @generated
33 */
34public class PCMServiceSpecificationImpl extends ServiceSpecificationImpl implements PCMServiceSpecification {
35        /**
36         * The cached value of the '{@link #getResourceDemandingSEFF() <em>Resource Demanding SEFF</em>}' reference.
37         * <!-- begin-user-doc -->
38         * <!-- end-user-doc -->
39         * @see #getResourceDemandingSEFF()
40         * @generated
41         * @ordered
42         */
43        protected ResourceDemandingSEFF resourceDemandingSEFF;
44 
45        /**
46         * <!-- begin-user-doc -->
47         * <!-- end-user-doc -->
48         * @generated
49         */
50        protected PCMServiceSpecificationImpl() {
51                super();
52        }
53 
54        /**
55         * <!-- begin-user-doc -->
56         * <!-- end-user-doc -->
57         * @generated
58         */
59        @Override
60        protected EClass eStaticClass() {
61                return QualityAnnotationPackage.Literals.PCM_SERVICE_SPECIFICATION;
62        }
63 
64        /**
65         * <!-- begin-user-doc -->
66         * <!-- end-user-doc -->
67         * @generated
68         */
69        public ResourceDemandingSEFF getResourceDemandingSEFF() {
70                if (resourceDemandingSEFF != null && resourceDemandingSEFF.eIsProxy()) {
71                        InternalEObject oldResourceDemandingSEFF = (InternalEObject)resourceDemandingSEFF;
72                        resourceDemandingSEFF = (ResourceDemandingSEFF)eResolveProxy(oldResourceDemandingSEFF);
73                        if (resourceDemandingSEFF != oldResourceDemandingSEFF) {
74                                if (eNotificationRequired())
75                                        eNotify(new ENotificationImpl(this, Notification.RESOLVE, QualityAnnotationPackage.PCM_SERVICE_SPECIFICATION__RESOURCE_DEMANDING_SEFF, oldResourceDemandingSEFF, resourceDemandingSEFF));
76                        }
77                }
78                return resourceDemandingSEFF;
79        }
80 
81        /**
82         * <!-- begin-user-doc -->
83         * <!-- end-user-doc -->
84         * @generated
85         */
86        public ResourceDemandingSEFF basicGetResourceDemandingSEFF() {
87                return resourceDemandingSEFF;
88        }
89 
90        /**
91         * <!-- begin-user-doc -->
92         * <!-- end-user-doc -->
93         * @generated
94         */
95        public void setResourceDemandingSEFF(ResourceDemandingSEFF newResourceDemandingSEFF) {
96                ResourceDemandingSEFF oldResourceDemandingSEFF = resourceDemandingSEFF;
97                resourceDemandingSEFF = newResourceDemandingSEFF;
98                if (eNotificationRequired())
99                        eNotify(new ENotificationImpl(this, Notification.SET, QualityAnnotationPackage.PCM_SERVICE_SPECIFICATION__RESOURCE_DEMANDING_SEFF, oldResourceDemandingSEFF, resourceDemandingSEFF));
100        }
101 
102        /**
103         * <!-- begin-user-doc -->
104         * <!-- end-user-doc -->
105         * @generated
106         */
107        @Override
108        public Object eGet(int featureID, boolean resolve, boolean coreType) {
109                switch (featureID) {
110                        case QualityAnnotationPackage.PCM_SERVICE_SPECIFICATION__RESOURCE_DEMANDING_SEFF:
111                                if (resolve) return getResourceDemandingSEFF();
112                                return basicGetResourceDemandingSEFF();
113                }
114                return super.eGet(featureID, resolve, coreType);
115        }
116 
117        /**
118         * <!-- begin-user-doc -->
119         * <!-- end-user-doc -->
120         * @generated
121         */
122        @Override
123        public void eSet(int featureID, Object newValue) {
124                switch (featureID) {
125                        case QualityAnnotationPackage.PCM_SERVICE_SPECIFICATION__RESOURCE_DEMANDING_SEFF:
126                                setResourceDemandingSEFF((ResourceDemandingSEFF)newValue);
127                                return;
128                }
129                super.eSet(featureID, newValue);
130        }
131 
132        /**
133         * <!-- begin-user-doc -->
134         * <!-- end-user-doc -->
135         * @generated
136         */
137        @Override
138        public void eUnset(int featureID) {
139                switch (featureID) {
140                        case QualityAnnotationPackage.PCM_SERVICE_SPECIFICATION__RESOURCE_DEMANDING_SEFF:
141                                setResourceDemandingSEFF((ResourceDemandingSEFF)null);
142                                return;
143                }
144                super.eUnset(featureID);
145        }
146 
147        /**
148         * <!-- begin-user-doc -->
149         * <!-- end-user-doc -->
150         * @generated
151         */
152        @Override
153        public boolean eIsSet(int featureID) {
154                switch (featureID) {
155                        case QualityAnnotationPackage.PCM_SERVICE_SPECIFICATION__RESOURCE_DEMANDING_SEFF:
156                                return resourceDemandingSEFF != null;
157                }
158                return super.eIsSet(featureID);
159        }
160 
161} //PCMServiceSpecificationImpl

[all classes][de.fzi.se.quality.qualityannotation.impl]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov