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

nameclass, %method, %block, %line, %
CharacterisedPCMParameterPartitionIntervalImpl.java0%   (0/1)0%   (0/13)0%   (0/256)0%   (0/65)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class CharacterisedPCMParameterPartitionIntervalImpl0%   (0/1)0%   (0/13)0%   (0/256)0%   (0/65)
CharacterisedPCMParameterPartitionIntervalImpl (): void 0%   (0/1)0%   (0/3)0%   (0/2)
basicSetFrom (PCMRandomVariable, NotificationChain): NotificationChain 0%   (0/1)0%   (0/29)0%   (0/6)
basicSetTo (PCMRandomVariable, NotificationChain): NotificationChain 0%   (0/1)0%   (0/29)0%   (0/6)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/14)0%   (0/4)
eInverseRemove (InternalEObject, int, NotificationChain): NotificationChain 0%   (0/1)0%   (0/18)0%   (0/4)
eIsSet (int): boolean 0%   (0/1)0%   (0/20)0%   (0/4)
eSet (int, Object): void 0%   (0/1)0%   (0/17)0%   (0/7)
eStaticClass (): EClass 0%   (0/1)0%   (0/2)0%   (0/1)
eUnset (int): void 0%   (0/1)0%   (0/14)0%   (0/7)
getFrom (): PCMRandomVariable 0%   (0/1)0%   (0/3)0%   (0/1)
getTo (): PCMRandomVariable 0%   (0/1)0%   (0/3)0%   (0/1)
setFrom (PCMRandomVariable): void 0%   (0/1)0%   (0/52)0%   (0/11)
setTo (PCMRandomVariable): void 0%   (0/1)0%   (0/52)0%   (0/11)

1/**
2 * <copyright>
3 * </copyright>
4 *
5 * $Id$
6 */
7package de.fzi.se.quality.qualityannotation.impl;
8 
9import de.fzi.se.quality.qualityannotation.CharacterisedPCMParameterPartitionInterval;
10import de.fzi.se.quality.qualityannotation.QualityAnnotationPackage;
11 
12import de.uka.ipd.sdq.pcm.core.PCMRandomVariable;
13 
14import org.eclipse.emf.common.notify.Notification;
15import org.eclipse.emf.common.notify.NotificationChain;
16 
17import org.eclipse.emf.ecore.EClass;
18import org.eclipse.emf.ecore.InternalEObject;
19 
20import org.eclipse.emf.ecore.impl.ENotificationImpl;
21 
22/**
23 * <!-- begin-user-doc -->
24 * An implementation of the model object '<em><b>Characterised PCM Parameter Partition Interval</b></em>'.
25 * <!-- end-user-doc -->
26 * <p>
27 * The following features are implemented:
28 * <ul>
29 *   <li>{@link de.fzi.se.quality.qualityannotation.impl.CharacterisedPCMParameterPartitionIntervalImpl#getFrom <em>From</em>}</li>
30 *   <li>{@link de.fzi.se.quality.qualityannotation.impl.CharacterisedPCMParameterPartitionIntervalImpl#getTo <em>To</em>}</li>
31 * </ul>
32 * </p>
33 *
34 * @generated
35 */
36public class CharacterisedPCMParameterPartitionIntervalImpl extends CharacterisedPCMParameterPartitionImpl implements CharacterisedPCMParameterPartitionInterval {
37        /**
38         * The cached value of the '{@link #getFrom() <em>From</em>}' containment reference.
39         * <!-- begin-user-doc -->
40         * <!-- end-user-doc -->
41         * @see #getFrom()
42         * @generated
43         * @ordered
44         */
45        protected PCMRandomVariable from;
46 
47        /**
48         * The cached value of the '{@link #getTo() <em>To</em>}' containment reference.
49         * <!-- begin-user-doc -->
50         * <!-- end-user-doc -->
51         * @see #getTo()
52         * @generated
53         * @ordered
54         */
55        protected PCMRandomVariable to;
56 
57        /**
58         * <!-- begin-user-doc -->
59         * <!-- end-user-doc -->
60         * @generated
61         */
62        protected CharacterisedPCMParameterPartitionIntervalImpl() {
63                super();
64        }
65 
66        /**
67         * <!-- begin-user-doc -->
68         * <!-- end-user-doc -->
69         * @generated
70         */
71        @Override
72        protected EClass eStaticClass() {
73                return QualityAnnotationPackage.Literals.CHARACTERISED_PCM_PARAMETER_PARTITION_INTERVAL;
74        }
75 
76        /**
77         * <!-- begin-user-doc -->
78         * <!-- end-user-doc -->
79         * @generated
80         */
81        public PCMRandomVariable getFrom() {
82                return from;
83        }
84 
85        /**
86         * <!-- begin-user-doc -->
87         * <!-- end-user-doc -->
88         * @generated
89         */
90        public NotificationChain basicSetFrom(PCMRandomVariable newFrom, NotificationChain msgs) {
91                PCMRandomVariable oldFrom = from;
92                from = newFrom;
93                if (eNotificationRequired()) {
94                        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, QualityAnnotationPackage.CHARACTERISED_PCM_PARAMETER_PARTITION_INTERVAL__FROM, oldFrom, newFrom);
95                        if (msgs == null) msgs = notification; else msgs.add(notification);
96                }
97                return msgs;
98        }
99 
100        /**
101         * <!-- begin-user-doc -->
102         * <!-- end-user-doc -->
103         * @generated
104         */
105        public void setFrom(PCMRandomVariable newFrom) {
106                if (newFrom != from) {
107                        NotificationChain msgs = null;
108                        if (from != null)
109                                msgs = ((InternalEObject)from).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - QualityAnnotationPackage.CHARACTERISED_PCM_PARAMETER_PARTITION_INTERVAL__FROM, null, msgs);
110                        if (newFrom != null)
111                                msgs = ((InternalEObject)newFrom).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - QualityAnnotationPackage.CHARACTERISED_PCM_PARAMETER_PARTITION_INTERVAL__FROM, null, msgs);
112                        msgs = basicSetFrom(newFrom, msgs);
113                        if (msgs != null) msgs.dispatch();
114                }
115                else if (eNotificationRequired())
116                        eNotify(new ENotificationImpl(this, Notification.SET, QualityAnnotationPackage.CHARACTERISED_PCM_PARAMETER_PARTITION_INTERVAL__FROM, newFrom, newFrom));
117        }
118 
119        /**
120         * <!-- begin-user-doc -->
121         * <!-- end-user-doc -->
122         * @generated
123         */
124        public PCMRandomVariable getTo() {
125                return to;
126        }
127 
128        /**
129         * <!-- begin-user-doc -->
130         * <!-- end-user-doc -->
131         * @generated
132         */
133        public NotificationChain basicSetTo(PCMRandomVariable newTo, NotificationChain msgs) {
134                PCMRandomVariable oldTo = to;
135                to = newTo;
136                if (eNotificationRequired()) {
137                        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, QualityAnnotationPackage.CHARACTERISED_PCM_PARAMETER_PARTITION_INTERVAL__TO, oldTo, newTo);
138                        if (msgs == null) msgs = notification; else msgs.add(notification);
139                }
140                return msgs;
141        }
142 
143        /**
144         * <!-- begin-user-doc -->
145         * <!-- end-user-doc -->
146         * @generated
147         */
148        public void setTo(PCMRandomVariable newTo) {
149                if (newTo != to) {
150                        NotificationChain msgs = null;
151                        if (to != null)
152                                msgs = ((InternalEObject)to).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - QualityAnnotationPackage.CHARACTERISED_PCM_PARAMETER_PARTITION_INTERVAL__TO, null, msgs);
153                        if (newTo != null)
154                                msgs = ((InternalEObject)newTo).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - QualityAnnotationPackage.CHARACTERISED_PCM_PARAMETER_PARTITION_INTERVAL__TO, null, msgs);
155                        msgs = basicSetTo(newTo, msgs);
156                        if (msgs != null) msgs.dispatch();
157                }
158                else if (eNotificationRequired())
159                        eNotify(new ENotificationImpl(this, Notification.SET, QualityAnnotationPackage.CHARACTERISED_PCM_PARAMETER_PARTITION_INTERVAL__TO, newTo, newTo));
160        }
161 
162        /**
163         * <!-- begin-user-doc -->
164         * <!-- end-user-doc -->
165         * @generated
166         */
167        @Override
168        public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
169                switch (featureID) {
170                        case QualityAnnotationPackage.CHARACTERISED_PCM_PARAMETER_PARTITION_INTERVAL__FROM:
171                                return basicSetFrom(null, msgs);
172                        case QualityAnnotationPackage.CHARACTERISED_PCM_PARAMETER_PARTITION_INTERVAL__TO:
173                                return basicSetTo(null, msgs);
174                }
175                return super.eInverseRemove(otherEnd, featureID, msgs);
176        }
177 
178        /**
179         * <!-- begin-user-doc -->
180         * <!-- end-user-doc -->
181         * @generated
182         */
183        @Override
184        public Object eGet(int featureID, boolean resolve, boolean coreType) {
185                switch (featureID) {
186                        case QualityAnnotationPackage.CHARACTERISED_PCM_PARAMETER_PARTITION_INTERVAL__FROM:
187                                return getFrom();
188                        case QualityAnnotationPackage.CHARACTERISED_PCM_PARAMETER_PARTITION_INTERVAL__TO:
189                                return getTo();
190                }
191                return super.eGet(featureID, resolve, coreType);
192        }
193 
194        /**
195         * <!-- begin-user-doc -->
196         * <!-- end-user-doc -->
197         * @generated
198         */
199        @Override
200        public void eSet(int featureID, Object newValue) {
201                switch (featureID) {
202                        case QualityAnnotationPackage.CHARACTERISED_PCM_PARAMETER_PARTITION_INTERVAL__FROM:
203                                setFrom((PCMRandomVariable)newValue);
204                                return;
205                        case QualityAnnotationPackage.CHARACTERISED_PCM_PARAMETER_PARTITION_INTERVAL__TO:
206                                setTo((PCMRandomVariable)newValue);
207                                return;
208                }
209                super.eSet(featureID, newValue);
210        }
211 
212        /**
213         * <!-- begin-user-doc -->
214         * <!-- end-user-doc -->
215         * @generated
216         */
217        @Override
218        public void eUnset(int featureID) {
219                switch (featureID) {
220                        case QualityAnnotationPackage.CHARACTERISED_PCM_PARAMETER_PARTITION_INTERVAL__FROM:
221                                setFrom((PCMRandomVariable)null);
222                                return;
223                        case QualityAnnotationPackage.CHARACTERISED_PCM_PARAMETER_PARTITION_INTERVAL__TO:
224                                setTo((PCMRandomVariable)null);
225                                return;
226                }
227                super.eUnset(featureID);
228        }
229 
230        /**
231         * <!-- begin-user-doc -->
232         * <!-- end-user-doc -->
233         * @generated
234         */
235        @Override
236        public boolean eIsSet(int featureID) {
237                switch (featureID) {
238                        case QualityAnnotationPackage.CHARACTERISED_PCM_PARAMETER_PARTITION_INTERVAL__FROM:
239                                return from != null;
240                        case QualityAnnotationPackage.CHARACTERISED_PCM_PARAMETER_PARTITION_INTERVAL__TO:
241                                return to != null;
242                }
243                return super.eIsSet(featureID);
244        }
245 
246} //CharacterisedPCMParameterPartitionIntervalImpl

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