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

COVERAGE SUMMARY FOR SOURCE FILE [QueueingConfigurationImpl.java]

nameclass, %method, %block, %line, %
QueueingConfigurationImpl.java0%   (0/1)0%   (0/12)0%   (0/176)0%   (0/50)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class QueueingConfigurationImpl0%   (0/1)0%   (0/12)0%   (0/176)0%   (0/50)
<static initializer> 0%   (0/1)0%   (0/5)0%   (0/3)
QueueingConfigurationImpl (): void 0%   (0/1)0%   (0/9)0%   (0/4)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/14)0%   (0/4)
eIsSet (int): boolean 0%   (0/1)0%   (0/22)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)
getInitialInstanceSelection (): ResourceInstanceSelection 0%   (0/1)0%   (0/3)0%   (0/1)
getRunqueueType (): RunQueueType 0%   (0/1)0%   (0/3)0%   (0/1)
setInitialInstanceSelection (ResourceInstanceSelection): void 0%   (0/1)0%   (0/25)0%   (0/5)
setRunqueueType (RunQueueType): void 0%   (0/1)0%   (0/25)0%   (0/5)
toString (): String 0%   (0/1)0%   (0/37)0%   (0/8)

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;
14import org.eclipse.emf.ecore.impl.EObjectImpl;
15 
16import scheduler.configuration.ConfigurationPackage;
17import scheduler.configuration.QueueingConfiguration;
18import scheduler.configuration.ResourceInstanceSelection;
19import scheduler.configuration.RunQueueType;
20 
21/**
22 * <!-- begin-user-doc -->
23 * An implementation of the model object '<em><b>Queueing Configuration</b></em>'.
24 * <!-- end-user-doc -->
25 * <p>
26 * The following features are implemented:
27 * <ul>
28 *   <li>{@link scheduler.configuration.impl.QueueingConfigurationImpl#getInitialInstanceSelection <em>Initial Instance Selection</em>}</li>
29 *   <li>{@link scheduler.configuration.impl.QueueingConfigurationImpl#getRunqueueType <em>Runqueue Type</em>}</li>
30 * </ul>
31 * </p>
32 *
33 * @generated
34 */
35public abstract class QueueingConfigurationImpl extends EObjectImpl implements QueueingConfiguration {
36        /**
37         * The default value of the '{@link #getInitialInstanceSelection() <em>Initial Instance Selection</em>}' attribute.
38         * <!-- begin-user-doc -->
39         * <!-- end-user-doc -->
40         * @see #getInitialInstanceSelection()
41         * @generated
42         * @ordered
43         */
44        protected static final ResourceInstanceSelection INITIAL_INSTANCE_SELECTION_EDEFAULT = ResourceInstanceSelection.ROUND_ROBIN;
45 
46        /**
47         * The cached value of the '{@link #getInitialInstanceSelection() <em>Initial Instance Selection</em>}' attribute.
48         * <!-- begin-user-doc -->
49         * <!-- end-user-doc -->
50         * @see #getInitialInstanceSelection()
51         * @generated
52         * @ordered
53         */
54        protected ResourceInstanceSelection initialInstanceSelection = INITIAL_INSTANCE_SELECTION_EDEFAULT;
55 
56        /**
57         * The default value of the '{@link #getRunqueueType() <em>Runqueue Type</em>}' attribute.
58         * <!-- begin-user-doc -->
59         * <!-- end-user-doc -->
60         * @see #getRunqueueType()
61         * @generated
62         * @ordered
63         */
64        protected static final RunQueueType RUNQUEUE_TYPE_EDEFAULT = RunQueueType.ACTIVE_AND_EXPIRED;
65 
66        /**
67         * The cached value of the '{@link #getRunqueueType() <em>Runqueue Type</em>}' attribute.
68         * <!-- begin-user-doc -->
69         * <!-- end-user-doc -->
70         * @see #getRunqueueType()
71         * @generated
72         * @ordered
73         */
74        protected RunQueueType runqueueType = RUNQUEUE_TYPE_EDEFAULT;
75 
76        /**
77         * <!-- begin-user-doc -->
78         * <!-- end-user-doc -->
79         * @generated
80         */
81        protected QueueingConfigurationImpl() {
82                super();
83        }
84 
85        /**
86         * <!-- begin-user-doc -->
87         * <!-- end-user-doc -->
88         * @generated
89         */
90        @Override
91        protected EClass eStaticClass() {
92                return ConfigurationPackage.Literals.QUEUEING_CONFIGURATION;
93        }
94 
95        /**
96         * <!-- begin-user-doc -->
97         * <!-- end-user-doc -->
98         * @generated
99         */
100        public ResourceInstanceSelection getInitialInstanceSelection() {
101                return initialInstanceSelection;
102        }
103 
104        /**
105         * <!-- begin-user-doc -->
106         * <!-- end-user-doc -->
107         * @generated
108         */
109        public void setInitialInstanceSelection(ResourceInstanceSelection newInitialInstanceSelection) {
110                ResourceInstanceSelection oldInitialInstanceSelection = initialInstanceSelection;
111                initialInstanceSelection = newInitialInstanceSelection == null ? INITIAL_INSTANCE_SELECTION_EDEFAULT : newInitialInstanceSelection;
112                if (eNotificationRequired())
113                        eNotify(new ENotificationImpl(this, Notification.SET, ConfigurationPackage.QUEUEING_CONFIGURATION__INITIAL_INSTANCE_SELECTION, oldInitialInstanceSelection, initialInstanceSelection));
114        }
115 
116        /**
117         * <!-- begin-user-doc -->
118         * <!-- end-user-doc -->
119         * @generated
120         */
121        public RunQueueType getRunqueueType() {
122                return runqueueType;
123        }
124 
125        /**
126         * <!-- begin-user-doc -->
127         * <!-- end-user-doc -->
128         * @generated
129         */
130        public void setRunqueueType(RunQueueType newRunqueueType) {
131                RunQueueType oldRunqueueType = runqueueType;
132                runqueueType = newRunqueueType == null ? RUNQUEUE_TYPE_EDEFAULT : newRunqueueType;
133                if (eNotificationRequired())
134                        eNotify(new ENotificationImpl(this, Notification.SET, ConfigurationPackage.QUEUEING_CONFIGURATION__RUNQUEUE_TYPE, oldRunqueueType, runqueueType));
135        }
136 
137        /**
138         * <!-- begin-user-doc -->
139         * <!-- end-user-doc -->
140         * @generated
141         */
142        @Override
143        public Object eGet(int featureID, boolean resolve, boolean coreType) {
144                switch (featureID) {
145                        case ConfigurationPackage.QUEUEING_CONFIGURATION__INITIAL_INSTANCE_SELECTION:
146                                return getInitialInstanceSelection();
147                        case ConfigurationPackage.QUEUEING_CONFIGURATION__RUNQUEUE_TYPE:
148                                return getRunqueueType();
149                }
150                return super.eGet(featureID, resolve, coreType);
151        }
152 
153        /**
154         * <!-- begin-user-doc -->
155         * <!-- end-user-doc -->
156         * @generated
157         */
158        @Override
159        public void eSet(int featureID, Object newValue) {
160                switch (featureID) {
161                        case ConfigurationPackage.QUEUEING_CONFIGURATION__INITIAL_INSTANCE_SELECTION:
162                                setInitialInstanceSelection((ResourceInstanceSelection)newValue);
163                                return;
164                        case ConfigurationPackage.QUEUEING_CONFIGURATION__RUNQUEUE_TYPE:
165                                setRunqueueType((RunQueueType)newValue);
166                                return;
167                }
168                super.eSet(featureID, newValue);
169        }
170 
171        /**
172         * <!-- begin-user-doc -->
173         * <!-- end-user-doc -->
174         * @generated
175         */
176        @Override
177        public void eUnset(int featureID) {
178                switch (featureID) {
179                        case ConfigurationPackage.QUEUEING_CONFIGURATION__INITIAL_INSTANCE_SELECTION:
180                                setInitialInstanceSelection(INITIAL_INSTANCE_SELECTION_EDEFAULT);
181                                return;
182                        case ConfigurationPackage.QUEUEING_CONFIGURATION__RUNQUEUE_TYPE:
183                                setRunqueueType(RUNQUEUE_TYPE_EDEFAULT);
184                                return;
185                }
186                super.eUnset(featureID);
187        }
188 
189        /**
190         * <!-- begin-user-doc -->
191         * <!-- end-user-doc -->
192         * @generated
193         */
194        @Override
195        public boolean eIsSet(int featureID) {
196                switch (featureID) {
197                        case ConfigurationPackage.QUEUEING_CONFIGURATION__INITIAL_INSTANCE_SELECTION:
198                                return initialInstanceSelection != INITIAL_INSTANCE_SELECTION_EDEFAULT;
199                        case ConfigurationPackage.QUEUEING_CONFIGURATION__RUNQUEUE_TYPE:
200                                return runqueueType != RUNQUEUE_TYPE_EDEFAULT;
201                }
202                return super.eIsSet(featureID);
203        }
204 
205        /**
206         * <!-- begin-user-doc -->
207         * <!-- end-user-doc -->
208         * @generated
209         */
210        @Override
211        public String toString() {
212                if (eIsProxy()) return super.toString();
213 
214                StringBuffer result = new StringBuffer(super.toString());
215                result.append(" (initialInstanceSelection: ");
216                result.append(initialInstanceSelection);
217                result.append(", runqueueType: ");
218                result.append(runqueueType);
219                result.append(')');
220                return result.toString();
221        }
222 
223} //QueueingConfigurationImpl

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