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

COVERAGE SUMMARY FOR SOURCE FILE [CharacterisedVariableImpl.java]

nameclass, %method, %block, %line, %
CharacterisedVariableImpl.java0%   (0/1)0%   (0/10)0%   (0/114)0%   (0/34)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class CharacterisedVariableImpl0%   (0/1)0%   (0/10)0%   (0/114)0%   (0/34)
<static initializer> 0%   (0/1)0%   (0/3)0%   (0/2)
CharacterisedVariableImpl (): void 0%   (0/1)0%   (0/6)0%   (0/3)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/11)0%   (0/3)
eIsSet (int): boolean 0%   (0/1)0%   (0/14)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)
getCharacterisationType (): VariableCharacterisationType 0%   (0/1)0%   (0/3)0%   (0/1)
setCharacterisationType (VariableCharacterisationType): void 0%   (0/1)0%   (0/25)0%   (0/5)
toString (): String 0%   (0/1)0%   (0/28)0%   (0/6)

1/**
2 * Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany
3 *
4 * $Id$
5 */
6package de.uka.ipd.sdq.pcm.parameter.impl;
7 
8import org.eclipse.emf.common.notify.Notification;
9import org.eclipse.emf.ecore.EClass;
10import org.eclipse.emf.ecore.impl.ENotificationImpl;
11 
12import de.uka.ipd.sdq.pcm.parameter.CharacterisedVariable;
13import de.uka.ipd.sdq.pcm.parameter.ParameterPackage;
14import de.uka.ipd.sdq.pcm.parameter.VariableCharacterisationType;
15import de.uka.ipd.sdq.stoex.impl.VariableImpl;
16 
17/**
18 * <!-- begin-user-doc -->
19 * An implementation of the model object '<em><b>Characterised Variable</b></em>'.
20 * <!-- end-user-doc -->
21 * <p>
22 * The following features are implemented:
23 * <ul>
24 *   <li>{@link de.uka.ipd.sdq.pcm.parameter.impl.CharacterisedVariableImpl#getCharacterisationType <em>Characterisation Type</em>}</li>
25 * </ul>
26 * </p>
27 *
28 * @generated
29 */
30public class CharacterisedVariableImpl extends VariableImpl implements CharacterisedVariable {
31        /**
32         * <!-- begin-user-doc -->
33         * <!-- end-user-doc -->
34         * @generated
35         */
36        public static final String copyright = "Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany";
37 
38        /**
39         * The default value of the '{@link #getCharacterisationType() <em>Characterisation Type</em>}' attribute.
40         * <!-- begin-user-doc -->
41         * <!-- end-user-doc -->
42         * @see #getCharacterisationType()
43         * @generated
44         * @ordered
45         */
46        protected static final VariableCharacterisationType CHARACTERISATION_TYPE_EDEFAULT = VariableCharacterisationType.STRUCTURE;
47 
48        /**
49         * The cached value of the '{@link #getCharacterisationType() <em>Characterisation Type</em>}' attribute.
50         * <!-- begin-user-doc -->
51         * <!-- end-user-doc -->
52         * @see #getCharacterisationType()
53         * @generated
54         * @ordered
55         */
56        protected VariableCharacterisationType characterisationType = CHARACTERISATION_TYPE_EDEFAULT;
57 
58        /**
59         * <!-- begin-user-doc -->
60         * <!-- end-user-doc -->
61         * @generated
62         */
63        protected CharacterisedVariableImpl() {
64                super();
65        }
66 
67        /**
68         * <!-- begin-user-doc -->
69         * <!-- end-user-doc -->
70         * @generated
71         */
72        @Override
73        protected EClass eStaticClass() {
74                return ParameterPackage.Literals.CHARACTERISED_VARIABLE;
75        }
76 
77        /**
78         * <!-- begin-user-doc -->
79         * <!-- end-user-doc -->
80         * @generated
81         */
82        public VariableCharacterisationType getCharacterisationType() {
83                return characterisationType;
84        }
85 
86        /**
87         * <!-- begin-user-doc -->
88         * <!-- end-user-doc -->
89         * @generated
90         */
91        public void setCharacterisationType(VariableCharacterisationType newCharacterisationType) {
92                VariableCharacterisationType oldCharacterisationType = characterisationType;
93                characterisationType = newCharacterisationType == null ? CHARACTERISATION_TYPE_EDEFAULT : newCharacterisationType;
94                if (eNotificationRequired())
95                        eNotify(new ENotificationImpl(this, Notification.SET, ParameterPackage.CHARACTERISED_VARIABLE__CHARACTERISATION_TYPE, oldCharacterisationType, characterisationType));
96        }
97 
98        /**
99         * <!-- begin-user-doc -->
100         * <!-- end-user-doc -->
101         * @generated
102         */
103        @Override
104        public Object eGet(int featureID, boolean resolve, boolean coreType) {
105                switch (featureID) {
106                        case ParameterPackage.CHARACTERISED_VARIABLE__CHARACTERISATION_TYPE:
107                                return getCharacterisationType();
108                }
109                return super.eGet(featureID, resolve, coreType);
110        }
111 
112        /**
113         * <!-- begin-user-doc -->
114         * <!-- end-user-doc -->
115         * @generated
116         */
117        @Override
118        public void eSet(int featureID, Object newValue) {
119                switch (featureID) {
120                        case ParameterPackage.CHARACTERISED_VARIABLE__CHARACTERISATION_TYPE:
121                                setCharacterisationType((VariableCharacterisationType)newValue);
122                                return;
123                }
124                super.eSet(featureID, newValue);
125        }
126 
127        /**
128         * <!-- begin-user-doc -->
129         * <!-- end-user-doc -->
130         * @generated
131         */
132        @Override
133        public void eUnset(int featureID) {
134                switch (featureID) {
135                        case ParameterPackage.CHARACTERISED_VARIABLE__CHARACTERISATION_TYPE:
136                                setCharacterisationType(CHARACTERISATION_TYPE_EDEFAULT);
137                                return;
138                }
139                super.eUnset(featureID);
140        }
141 
142        /**
143         * <!-- begin-user-doc -->
144         * <!-- end-user-doc -->
145         * @generated
146         */
147        @Override
148        public boolean eIsSet(int featureID) {
149                switch (featureID) {
150                        case ParameterPackage.CHARACTERISED_VARIABLE__CHARACTERISATION_TYPE:
151                                return characterisationType != CHARACTERISATION_TYPE_EDEFAULT;
152                }
153                return super.eIsSet(featureID);
154        }
155 
156        /**
157         * <!-- begin-user-doc -->
158         * <!-- end-user-doc -->
159         * @generated
160         */
161        @Override
162        public String toString() {
163                if (eIsProxy()) return super.toString();
164 
165                StringBuffer result = new StringBuffer(super.toString());
166                result.append(" (characterisationType: ");
167                result.append(characterisationType);
168                result.append(')');
169                return result.toString();
170        }
171 
172} //CharacterisedVariableImpl

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