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

COVERAGE SUMMARY FOR SOURCE FILE [SchedulingPolicy.java]

nameclass, %method, %block, %line, %
SchedulingPolicy.java0%   (0/1)0%   (0/11)0%   (0/199)0%   (0/45)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class SchedulingPolicy0%   (0/1)0%   (0/11)0%   (0/199)0%   (0/45)
<static initializer> 0%   (0/1)0%   (0/96)0%   (0/18)
SchedulingPolicy (String, int, int, String, String): void 0%   (0/1)0%   (0/14)0%   (0/5)
get (String): SchedulingPolicy 0%   (0/1)0%   (0/21)0%   (0/5)
get (int): SchedulingPolicy 0%   (0/1)0%   (0/14)0%   (0/7)
getByName (String): SchedulingPolicy 0%   (0/1)0%   (0/21)0%   (0/5)
getLiteral (): String 0%   (0/1)0%   (0/3)0%   (0/1)
getName (): String 0%   (0/1)0%   (0/3)0%   (0/1)
getValue (): int 0%   (0/1)0%   (0/3)0%   (0/1)
toString (): String 0%   (0/1)0%   (0/3)0%   (0/1)
valueOf (String): SchedulingPolicy 0%   (0/1)0%   (0/5)0%   (0/1)
values (): SchedulingPolicy [] 0%   (0/1)0%   (0/16)0%   (0/1)

1/**
2 * Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany
3 *
4 * $Id$
5 */
6package de.uka.ipd.sdq.pcm.resourceenvironment;
7 
8import java.util.Arrays;
9import java.util.Collections;
10import java.util.List;
11 
12import org.eclipse.emf.common.util.Enumerator;
13 
14/**
15 * <!-- begin-user-doc -->
16 * A representation of the literals of the enumeration '<em><b>Scheduling Policy</b></em>',
17 * and utility methods for working with them.
18 * <!-- end-user-doc -->
19 * <!-- begin-model-doc -->
20 * Supported scheduling policies of the PCM
21 * <!-- end-model-doc -->
22 * @see de.uka.ipd.sdq.pcm.resourceenvironment.ResourceenvironmentPackage#getSchedulingPolicy()
23 * @model
24 * @generated
25 */
26public enum SchedulingPolicy implements Enumerator {
27        /**
28         * The '<em><b>EXACT</b></em>' literal object.
29         * <!-- begin-user-doc -->
30         * <!-- end-user-doc -->
31         * @see #EXACT_VALUE
32         * @generated
33         * @ordered
34         */
35        EXACT(0, "EXACT", "EXACT"),
36 
37        /**
38         * The '<em><b>DELAY</b></em>' literal object.
39         * <!-- begin-user-doc -->
40         * <!-- end-user-doc -->
41         * @see #DELAY_VALUE
42         * @generated
43         * @ordered
44         */
45        DELAY(1, "DELAY", "DELAY"),
46 
47        /**
48         * The '<em><b>PROCESSOR SHARING</b></em>' literal object.
49         * <!-- begin-user-doc -->
50         * <!-- end-user-doc -->
51         * @see #PROCESSOR_SHARING_VALUE
52         * @generated
53         * @ordered
54         */
55        PROCESSOR_SHARING(2, "PROCESSOR_SHARING", "PROCESSOR_SHARING"),
56 
57        /**
58         * The '<em><b>FCFS</b></em>' literal object.
59         * <!-- begin-user-doc -->
60         * <!-- end-user-doc -->
61         * @see #FCFS_VALUE
62         * @generated
63         * @ordered
64         */
65        FCFS(3, "FCFS", "FCFS"), /**
66         * The '<em><b>GINPEX DETECTED</b></em>' literal object.
67         * <!-- begin-user-doc -->
68         * <!-- end-user-doc -->
69         * @see #GINPEX_DETECTED_VALUE
70         * @generated
71         * @ordered
72         */
73        GINPEX_DETECTED(4, "GINPEX_DETECTED", "GINPEX_DETECTED");
74 
75        /**
76         * <!-- begin-user-doc -->
77         * <!-- end-user-doc -->
78         * @generated
79         */
80        public static final String copyright = "Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany";
81 
82        /**
83         * The '<em><b>EXACT</b></em>' literal value.
84         * <!-- begin-user-doc -->
85         * <p>
86         * If the meaning of '<em><b>EXACT</b></em>' literal object isn't clear,
87         * there really should be more of a description here...
88         * </p>
89         * <!-- end-user-doc -->
90         * @see #EXACT
91         * @model
92         * @generated
93         * @ordered
94         */
95        public static final int EXACT_VALUE = 0;
96 
97        /**
98         * The '<em><b>DELAY</b></em>' literal value.
99         * <!-- begin-user-doc -->
100         * <p>
101         * If the meaning of '<em><b>DELAY</b></em>' literal object isn't clear,
102         * there really should be more of a description here...
103         * </p>
104         * <!-- end-user-doc -->
105         * @see #DELAY
106         * @model
107         * @generated
108         * @ordered
109         */
110        public static final int DELAY_VALUE = 1;
111 
112        /**
113         * The '<em><b>PROCESSOR SHARING</b></em>' literal value.
114         * <!-- begin-user-doc -->
115         * <p>
116         * If the meaning of '<em><b>PROCESSOR SHARING</b></em>' literal object isn't clear,
117         * there really should be more of a description here...
118         * </p>
119         * <!-- end-user-doc -->
120         * @see #PROCESSOR_SHARING
121         * @model
122         * @generated
123         * @ordered
124         */
125        public static final int PROCESSOR_SHARING_VALUE = 2;
126 
127        /**
128         * The '<em><b>FCFS</b></em>' literal value.
129         * <!-- begin-user-doc -->
130         * <p>
131         * If the meaning of '<em><b>FCFS</b></em>' literal object isn't clear,
132         * there really should be more of a description here...
133         * </p>
134         * <!-- end-user-doc -->
135         * @see #FCFS
136         * @model
137         * @generated
138         * @ordered
139         */
140        public static final int FCFS_VALUE = 3;
141 
142        /**
143         * The '<em><b>GINPEX DETECTED</b></em>' literal value.
144         * <!-- begin-user-doc -->
145         * <p>
146         * If the meaning of '<em><b>GINPEX DETECTED</b></em>' literal object isn't clear,
147         * there really should be more of a description here...
148         * </p>
149         * <!-- end-user-doc -->
150         * @see #GINPEX_DETECTED
151         * @model
152         * @generated
153         * @ordered
154         */
155        public static final int GINPEX_DETECTED_VALUE = 4;
156 
157        /**
158         * An array of all the '<em><b>Scheduling Policy</b></em>' enumerators.
159         * <!-- begin-user-doc -->
160         * <!-- end-user-doc -->
161         * @generated
162         */
163        private static final SchedulingPolicy[] VALUES_ARRAY =
164                new SchedulingPolicy[] {
165                        EXACT,
166                        DELAY,
167                        PROCESSOR_SHARING,
168                        FCFS,
169                        GINPEX_DETECTED,
170                };
171 
172        /**
173         * A public read-only list of all the '<em><b>Scheduling Policy</b></em>' enumerators.
174         * <!-- begin-user-doc -->
175         * <!-- end-user-doc -->
176         * @generated
177         */
178        public static final List<SchedulingPolicy> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
179 
180        /**
181         * Returns the '<em><b>Scheduling Policy</b></em>' literal with the specified literal value.
182         * <!-- begin-user-doc -->
183         * <!-- end-user-doc -->
184         * @generated
185         */
186        public static SchedulingPolicy get(String literal) {
187                for (int i = 0; i < VALUES_ARRAY.length; ++i) {
188                        SchedulingPolicy result = VALUES_ARRAY[i];
189                        if (result.toString().equals(literal)) {
190                                return result;
191                        }
192                }
193                return null;
194        }
195 
196        /**
197         * Returns the '<em><b>Scheduling Policy</b></em>' literal with the specified name.
198         * <!-- begin-user-doc -->
199         * <!-- end-user-doc -->
200         * @generated
201         */
202        public static SchedulingPolicy getByName(String name) {
203                for (int i = 0; i < VALUES_ARRAY.length; ++i) {
204                        SchedulingPolicy result = VALUES_ARRAY[i];
205                        if (result.getName().equals(name)) {
206                                return result;
207                        }
208                }
209                return null;
210        }
211 
212        /**
213         * Returns the '<em><b>Scheduling Policy</b></em>' literal with the specified integer value.
214         * <!-- begin-user-doc -->
215         * <!-- end-user-doc -->
216         * @generated
217         */
218        public static SchedulingPolicy get(int value) {
219                switch (value) {
220                        case EXACT_VALUE: return EXACT;
221                        case DELAY_VALUE: return DELAY;
222                        case PROCESSOR_SHARING_VALUE: return PROCESSOR_SHARING;
223                        case FCFS_VALUE: return FCFS;
224                        case GINPEX_DETECTED_VALUE: return GINPEX_DETECTED;
225                }
226                return null;
227        }
228 
229        /**
230         * <!-- begin-user-doc -->
231         * <!-- end-user-doc -->
232         * @generated
233         */
234        private final int value;
235 
236        /**
237         * <!-- begin-user-doc -->
238         * <!-- end-user-doc -->
239         * @generated
240         */
241        private final String name;
242 
243        /**
244         * <!-- begin-user-doc -->
245         * <!-- end-user-doc -->
246         * @generated
247         */
248        private final String literal;
249 
250        /**
251         * Only this class can construct instances.
252         * <!-- begin-user-doc -->
253         * <!-- end-user-doc -->
254         * @generated
255         */
256        private SchedulingPolicy(int value, String name, String literal) {
257                this.value = value;
258                this.name = name;
259                this.literal = literal;
260        }
261 
262        /**
263         * <!-- begin-user-doc -->
264         * <!-- end-user-doc -->
265         * @generated
266         */
267        public int getValue() {
268          return value;
269        }
270 
271        /**
272         * <!-- begin-user-doc -->
273         * <!-- end-user-doc -->
274         * @generated
275         */
276        public String getName() {
277          return name;
278        }
279 
280        /**
281         * <!-- begin-user-doc -->
282         * <!-- end-user-doc -->
283         * @generated
284         */
285        public String getLiteral() {
286          return literal;
287        }
288 
289        /**
290         * Returns the literal value of the enumerator, which is its string representation.
291         * <!-- begin-user-doc -->
292         * <!-- end-user-doc -->
293         * @generated
294         */
295        @Override
296        public String toString() {
297                return literal;
298        }
299        
300} //SchedulingPolicy

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