EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012)
[all classes][scheduler.configuration.impl]

COVERAGE SUMMARY FOR SOURCE FILE [SingleQueueConfigurationImpl.java]

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

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class SingleQueueConfigurationImpl0%   (0/1)0%   (0/10)0%   (0/114)0%   (0/34)
<static initializer> 0%   (0/1)0%   (0/3)0%   (0/2)
SingleQueueConfigurationImpl (): 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)
getProcessSelection (): ProcessSelection 0%   (0/1)0%   (0/3)0%   (0/1)
setProcessSelection (ProcessSelection): void 0%   (0/1)0%   (0/25)0%   (0/5)
toString (): String 0%   (0/1)0%   (0/28)0%   (0/6)

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

[all classes][scheduler.configuration.impl]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov