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

COVERAGE SUMMARY FOR SOURCE FILE [ProcessingResourceTypeImpl.java]

nameclass, %method, %block, %line, %
ProcessingResourceTypeImpl.java0%   (0/1)0%   (0/12)0%   (0/217)0%   (0/53)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ProcessingResourceTypeImpl0%   (0/1)0%   (0/12)0%   (0/217)0%   (0/53)
ProcessingResourceTypeImpl (): void 0%   (0/1)0%   (0/3)0%   (0/2)
basicGetHardwareInducedFailureType__ProcessingResourceType (): HardwareInduce... 0%   (0/1)0%   (0/3)0%   (0/1)
basicSetHardwareInducedFailureType__ProcessingResourceType (HardwareInducedFa... 0%   (0/1)0%   (0/29)0%   (0/6)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/16)0%   (0/4)
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)
getHardwareInducedFailureType__ProcessingResourceType (): HardwareInducedFail... 0%   (0/1)0%   (0/38)0%   (0/7)
setHardwareInducedFailureType__ProcessingResourceType (HardwareInducedFailure... 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.resourcetype.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.reliability.HardwareInducedFailureType;
15import de.uka.ipd.sdq.pcm.reliability.ReliabilityPackage;
16import de.uka.ipd.sdq.pcm.resourcetype.ProcessingResourceType;
17import de.uka.ipd.sdq.pcm.resourcetype.ResourcetypePackage;
18 
19/**
20 * <!-- begin-user-doc -->
21 * An implementation of the model object '<em><b>Processing Resource Type</b></em>'.
22 * <!-- end-user-doc -->
23 * <p>
24 * The following features are implemented:
25 * <ul>
26 *   <li>{@link de.uka.ipd.sdq.pcm.resourcetype.impl.ProcessingResourceTypeImpl#getHardwareInducedFailureType__ProcessingResourceType <em>Hardware Induced Failure Type Processing Resource Type</em>}</li>
27 * </ul>
28 * </p>
29 *
30 * @generated
31 */
32public class ProcessingResourceTypeImpl extends ResourceTypeImpl implements ProcessingResourceType {
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         * The cached value of the '{@link #getHardwareInducedFailureType__ProcessingResourceType() <em>Hardware Induced Failure Type Processing Resource Type</em>}' reference.
42         * <!-- begin-user-doc -->
43         * <!-- end-user-doc -->
44         * @see #getHardwareInducedFailureType__ProcessingResourceType()
45         * @generated
46         * @ordered
47         */
48        protected HardwareInducedFailureType hardwareInducedFailureType__ProcessingResourceType;
49 
50        /**
51         * <!-- begin-user-doc -->
52         * <!-- end-user-doc -->
53         * @generated
54         */
55        protected ProcessingResourceTypeImpl() {
56                super();
57        }
58 
59        /**
60         * <!-- begin-user-doc -->
61         * <!-- end-user-doc -->
62         * @generated
63         */
64        @Override
65        protected EClass eStaticClass() {
66                return ResourcetypePackage.Literals.PROCESSING_RESOURCE_TYPE;
67        }
68 
69        /**
70         * <!-- begin-user-doc -->
71         * <!-- end-user-doc -->
72         * @generated
73         */
74        public HardwareInducedFailureType getHardwareInducedFailureType__ProcessingResourceType() {
75                if (hardwareInducedFailureType__ProcessingResourceType != null && hardwareInducedFailureType__ProcessingResourceType.eIsProxy()) {
76                        InternalEObject oldHardwareInducedFailureType__ProcessingResourceType = (InternalEObject)hardwareInducedFailureType__ProcessingResourceType;
77                        hardwareInducedFailureType__ProcessingResourceType = (HardwareInducedFailureType)eResolveProxy(oldHardwareInducedFailureType__ProcessingResourceType);
78                        if (hardwareInducedFailureType__ProcessingResourceType != oldHardwareInducedFailureType__ProcessingResourceType) {
79                                if (eNotificationRequired())
80                                        eNotify(new ENotificationImpl(this, Notification.RESOLVE, ResourcetypePackage.PROCESSING_RESOURCE_TYPE__HARDWARE_INDUCED_FAILURE_TYPE_PROCESSING_RESOURCE_TYPE, oldHardwareInducedFailureType__ProcessingResourceType, hardwareInducedFailureType__ProcessingResourceType));
81                        }
82                }
83                return hardwareInducedFailureType__ProcessingResourceType;
84        }
85 
86        /**
87         * <!-- begin-user-doc -->
88         * <!-- end-user-doc -->
89         * @generated
90         */
91        public HardwareInducedFailureType basicGetHardwareInducedFailureType__ProcessingResourceType() {
92                return hardwareInducedFailureType__ProcessingResourceType;
93        }
94 
95        /**
96         * <!-- begin-user-doc -->
97         * <!-- end-user-doc -->
98         * @generated
99         */
100        public NotificationChain basicSetHardwareInducedFailureType__ProcessingResourceType(HardwareInducedFailureType newHardwareInducedFailureType__ProcessingResourceType, NotificationChain msgs) {
101                HardwareInducedFailureType oldHardwareInducedFailureType__ProcessingResourceType = hardwareInducedFailureType__ProcessingResourceType;
102                hardwareInducedFailureType__ProcessingResourceType = newHardwareInducedFailureType__ProcessingResourceType;
103                if (eNotificationRequired()) {
104                        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ResourcetypePackage.PROCESSING_RESOURCE_TYPE__HARDWARE_INDUCED_FAILURE_TYPE_PROCESSING_RESOURCE_TYPE, oldHardwareInducedFailureType__ProcessingResourceType, newHardwareInducedFailureType__ProcessingResourceType);
105                        if (msgs == null) msgs = notification; else msgs.add(notification);
106                }
107                return msgs;
108        }
109 
110        /**
111         * <!-- begin-user-doc -->
112         * <!-- end-user-doc -->
113         * @generated
114         */
115        public void setHardwareInducedFailureType__ProcessingResourceType(HardwareInducedFailureType newHardwareInducedFailureType__ProcessingResourceType) {
116                if (newHardwareInducedFailureType__ProcessingResourceType != hardwareInducedFailureType__ProcessingResourceType) {
117                        NotificationChain msgs = null;
118                        if (hardwareInducedFailureType__ProcessingResourceType != null)
119                                msgs = ((InternalEObject)hardwareInducedFailureType__ProcessingResourceType).eInverseRemove(this, ReliabilityPackage.HARDWARE_INDUCED_FAILURE_TYPE__PROCESSING_RESOURCE_TYPE_HARDWARE_INDUCED_FAILURE_TYPE, HardwareInducedFailureType.class, msgs);
120                        if (newHardwareInducedFailureType__ProcessingResourceType != null)
121                                msgs = ((InternalEObject)newHardwareInducedFailureType__ProcessingResourceType).eInverseAdd(this, ReliabilityPackage.HARDWARE_INDUCED_FAILURE_TYPE__PROCESSING_RESOURCE_TYPE_HARDWARE_INDUCED_FAILURE_TYPE, HardwareInducedFailureType.class, msgs);
122                        msgs = basicSetHardwareInducedFailureType__ProcessingResourceType(newHardwareInducedFailureType__ProcessingResourceType, msgs);
123                        if (msgs != null) msgs.dispatch();
124                }
125                else if (eNotificationRequired())
126                        eNotify(new ENotificationImpl(this, Notification.SET, ResourcetypePackage.PROCESSING_RESOURCE_TYPE__HARDWARE_INDUCED_FAILURE_TYPE_PROCESSING_RESOURCE_TYPE, newHardwareInducedFailureType__ProcessingResourceType, newHardwareInducedFailureType__ProcessingResourceType));
127        }
128 
129        /**
130         * <!-- begin-user-doc -->
131         * <!-- end-user-doc -->
132         * @generated
133         */
134        @Override
135        public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
136                switch (featureID) {
137                        case ResourcetypePackage.PROCESSING_RESOURCE_TYPE__HARDWARE_INDUCED_FAILURE_TYPE_PROCESSING_RESOURCE_TYPE:
138                                if (hardwareInducedFailureType__ProcessingResourceType != null)
139                                        msgs = ((InternalEObject)hardwareInducedFailureType__ProcessingResourceType).eInverseRemove(this, ReliabilityPackage.HARDWARE_INDUCED_FAILURE_TYPE__PROCESSING_RESOURCE_TYPE_HARDWARE_INDUCED_FAILURE_TYPE, HardwareInducedFailureType.class, msgs);
140                                return basicSetHardwareInducedFailureType__ProcessingResourceType((HardwareInducedFailureType)otherEnd, msgs);
141                }
142                return super.eInverseAdd(otherEnd, featureID, msgs);
143        }
144 
145        /**
146         * <!-- begin-user-doc -->
147         * <!-- end-user-doc -->
148         * @generated
149         */
150        @Override
151        public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
152                switch (featureID) {
153                        case ResourcetypePackage.PROCESSING_RESOURCE_TYPE__HARDWARE_INDUCED_FAILURE_TYPE_PROCESSING_RESOURCE_TYPE:
154                                return basicSetHardwareInducedFailureType__ProcessingResourceType(null, msgs);
155                }
156                return super.eInverseRemove(otherEnd, featureID, msgs);
157        }
158 
159        /**
160         * <!-- begin-user-doc -->
161         * <!-- end-user-doc -->
162         * @generated
163         */
164        @Override
165        public Object eGet(int featureID, boolean resolve, boolean coreType) {
166                switch (featureID) {
167                        case ResourcetypePackage.PROCESSING_RESOURCE_TYPE__HARDWARE_INDUCED_FAILURE_TYPE_PROCESSING_RESOURCE_TYPE:
168                                if (resolve) return getHardwareInducedFailureType__ProcessingResourceType();
169                                return basicGetHardwareInducedFailureType__ProcessingResourceType();
170                }
171                return super.eGet(featureID, resolve, coreType);
172        }
173 
174        /**
175         * <!-- begin-user-doc -->
176         * <!-- end-user-doc -->
177         * @generated
178         */
179        @Override
180        public void eSet(int featureID, Object newValue) {
181                switch (featureID) {
182                        case ResourcetypePackage.PROCESSING_RESOURCE_TYPE__HARDWARE_INDUCED_FAILURE_TYPE_PROCESSING_RESOURCE_TYPE:
183                                setHardwareInducedFailureType__ProcessingResourceType((HardwareInducedFailureType)newValue);
184                                return;
185                }
186                super.eSet(featureID, newValue);
187        }
188 
189        /**
190         * <!-- begin-user-doc -->
191         * <!-- end-user-doc -->
192         * @generated
193         */
194        @Override
195        public void eUnset(int featureID) {
196                switch (featureID) {
197                        case ResourcetypePackage.PROCESSING_RESOURCE_TYPE__HARDWARE_INDUCED_FAILURE_TYPE_PROCESSING_RESOURCE_TYPE:
198                                setHardwareInducedFailureType__ProcessingResourceType((HardwareInducedFailureType)null);
199                                return;
200                }
201                super.eUnset(featureID);
202        }
203 
204        /**
205         * <!-- begin-user-doc -->
206         * <!-- end-user-doc -->
207         * @generated
208         */
209        @Override
210        public boolean eIsSet(int featureID) {
211                switch (featureID) {
212                        case ResourcetypePackage.PROCESSING_RESOURCE_TYPE__HARDWARE_INDUCED_FAILURE_TYPE_PROCESSING_RESOURCE_TYPE:
213                                return hardwareInducedFailureType__ProcessingResourceType != null;
214                }
215                return super.eIsSet(featureID);
216        }
217 
218} //ProcessingResourceTypeImpl

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