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

nameclass, %method, %block, %line, %
ContainerOperatingSystem.java0%   (0/1)0%   (0/11)0%   (0/237)0%   (0/54)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ContainerOperatingSystem0%   (0/1)0%   (0/11)0%   (0/237)0%   (0/54)
<static initializer> 0%   (0/1)0%   (0/130)0%   (0/25)
ContainerOperatingSystem (String, int, int, String, String): void 0%   (0/1)0%   (0/14)0%   (0/5)
get (String): ContainerOperatingSystem 0%   (0/1)0%   (0/21)0%   (0/5)
get (int): ContainerOperatingSystem 0%   (0/1)0%   (0/18)0%   (0/9)
getByName (String): ContainerOperatingSystem 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): ContainerOperatingSystem 0%   (0/1)0%   (0/5)0%   (0/1)
values (): ContainerOperatingSystem [] 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>Container Operating System</b></em>',
17 * and utility methods for working with them.
18 * <!-- end-user-doc -->
19 * @see de.uka.ipd.sdq.pcm.resourceenvironment.ResourceenvironmentPackage#getContainerOperatingSystem()
20 * @model
21 * @generated
22 */
23public enum ContainerOperatingSystem implements Enumerator {
24        /**
25         * The '<em><b>WINDOWS VISTA</b></em>' literal object.
26         * <!-- begin-user-doc -->
27         * <!-- end-user-doc -->
28         * @see #WINDOWS_VISTA_VALUE
29         * @generated
30         * @ordered
31         */
32        WINDOWS_VISTA(0, "WINDOWS_VISTA", "WINDOWS_VISTA"),
33 
34        /**
35         * The '<em><b>LINUX26 CFS</b></em>' literal object.
36         * <!-- begin-user-doc -->
37         * <!-- end-user-doc -->
38         * @see #LINUX26_CFS_VALUE
39         * @generated
40         * @ordered
41         */
42        LINUX26_CFS(1, "LINUX26_CFS", "LINUX26_CFS"),
43 
44        /**
45         * The '<em><b>LINUX26 O1</b></em>' literal object.
46         * <!-- begin-user-doc -->
47         * <!-- end-user-doc -->
48         * @see #LINUX26_O1_VALUE
49         * @generated
50         * @ordered
51         */
52        LINUX26_O1(2, "LINUX26_O1", "LINUX26_O1"),
53 
54        /**
55         * The '<em><b>WINDOWS XP</b></em>' literal object.
56         * <!-- begin-user-doc -->
57         * <!-- end-user-doc -->
58         * @see #WINDOWS_XP_VALUE
59         * @generated
60         * @ordered
61         */
62        WINDOWS_XP(3, "WINDOWS_XP", "WINDOWS_XP"),
63 
64        /**
65         * The '<em><b>WINDOWS 7</b></em>' literal object.
66         * <!-- begin-user-doc -->
67         * <!-- end-user-doc -->
68         * @see #WINDOWS_7_VALUE
69         * @generated
70         * @ordered
71         */
72        WINDOWS_7(4, "WINDOWS_7", "WINDOWS_7"),
73 
74        /**
75         * The '<em><b>WINDOWS 2003</b></em>' literal object.
76         * <!-- begin-user-doc -->
77         * <!-- end-user-doc -->
78         * @see #WINDOWS_2003_VALUE
79         * @generated
80         * @ordered
81         */
82        WINDOWS_2003(5, "WINDOWS_2003", "WINDOWS_2003"),
83 
84        /**
85         * The '<em><b>ABSTRACT</b></em>' literal object.
86         * <!-- begin-user-doc -->
87         * <!-- end-user-doc -->
88         * @see #ABSTRACT_VALUE
89         * @generated
90         * @ordered
91         */
92        ABSTRACT(6, "ABSTRACT", "ABSTRACT");
93 
94        /**
95         * <!-- begin-user-doc -->
96         * <!-- end-user-doc -->
97         * @generated
98         */
99        public static final String copyright = "Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany";
100 
101        /**
102         * The '<em><b>WINDOWS VISTA</b></em>' literal value.
103         * <!-- begin-user-doc -->
104         * <p>
105         * If the meaning of '<em><b>WINDOWS VISTA</b></em>' literal object isn't clear,
106         * there really should be more of a description here...
107         * </p>
108         * <!-- end-user-doc -->
109         * @see #WINDOWS_VISTA
110         * @model
111         * @generated
112         * @ordered
113         */
114        public static final int WINDOWS_VISTA_VALUE = 0;
115 
116        /**
117         * The '<em><b>LINUX26 CFS</b></em>' literal value.
118         * <!-- begin-user-doc -->
119         * <p>
120         * If the meaning of '<em><b>LINUX26 CFS</b></em>' literal object isn't clear,
121         * there really should be more of a description here...
122         * </p>
123         * <!-- end-user-doc -->
124         * @see #LINUX26_CFS
125         * @model
126         * @generated
127         * @ordered
128         */
129        public static final int LINUX26_CFS_VALUE = 1;
130 
131        /**
132         * The '<em><b>LINUX26 O1</b></em>' literal value.
133         * <!-- begin-user-doc -->
134         * <p>
135         * If the meaning of '<em><b>LINUX26 O1</b></em>' literal object isn't clear,
136         * there really should be more of a description here...
137         * </p>
138         * <!-- end-user-doc -->
139         * @see #LINUX26_O1
140         * @model
141         * @generated
142         * @ordered
143         */
144        public static final int LINUX26_O1_VALUE = 2;
145 
146        /**
147         * The '<em><b>WINDOWS XP</b></em>' literal value.
148         * <!-- begin-user-doc -->
149         * <p>
150         * If the meaning of '<em><b>WINDOWS XP</b></em>' literal object isn't clear,
151         * there really should be more of a description here...
152         * </p>
153         * <!-- end-user-doc -->
154         * @see #WINDOWS_XP
155         * @model
156         * @generated
157         * @ordered
158         */
159        public static final int WINDOWS_XP_VALUE = 3;
160 
161        /**
162         * The '<em><b>WINDOWS 7</b></em>' literal value.
163         * <!-- begin-user-doc -->
164         * <p>
165         * If the meaning of '<em><b>WINDOWS 7</b></em>' literal object isn't clear,
166         * there really should be more of a description here...
167         * </p>
168         * <!-- end-user-doc -->
169         * @see #WINDOWS_7
170         * @model
171         * @generated
172         * @ordered
173         */
174        public static final int WINDOWS_7_VALUE = 4;
175 
176        /**
177         * The '<em><b>WINDOWS 2003</b></em>' literal value.
178         * <!-- begin-user-doc -->
179         * <p>
180         * If the meaning of '<em><b>WINDOWS 2003</b></em>' literal object isn't clear,
181         * there really should be more of a description here...
182         * </p>
183         * <!-- end-user-doc -->
184         * @see #WINDOWS_2003
185         * @model
186         * @generated
187         * @ordered
188         */
189        public static final int WINDOWS_2003_VALUE = 5;
190 
191        /**
192         * The '<em><b>ABSTRACT</b></em>' literal value.
193         * <!-- begin-user-doc -->
194         * <p>
195         * If the meaning of '<em><b>ABSTRACT</b></em>' literal object isn't clear,
196         * there really should be more of a description here...
197         * </p>
198         * <!-- end-user-doc -->
199         * @see #ABSTRACT
200         * @model
201         * @generated
202         * @ordered
203         */
204        public static final int ABSTRACT_VALUE = 6;
205 
206        /**
207         * An array of all the '<em><b>Container Operating System</b></em>' enumerators.
208         * <!-- begin-user-doc -->
209         * <!-- end-user-doc -->
210         * @generated
211         */
212        private static final ContainerOperatingSystem[] VALUES_ARRAY =
213                new ContainerOperatingSystem[] {
214                        WINDOWS_VISTA,
215                        LINUX26_CFS,
216                        LINUX26_O1,
217                        WINDOWS_XP,
218                        WINDOWS_7,
219                        WINDOWS_2003,
220                        ABSTRACT,
221                };
222 
223        /**
224         * A public read-only list of all the '<em><b>Container Operating System</b></em>' enumerators.
225         * <!-- begin-user-doc -->
226         * <!-- end-user-doc -->
227         * @generated
228         */
229        public static final List<ContainerOperatingSystem> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
230 
231        /**
232         * Returns the '<em><b>Container Operating System</b></em>' literal with the specified literal value.
233         * <!-- begin-user-doc -->
234         * <!-- end-user-doc -->
235         * @generated
236         */
237        public static ContainerOperatingSystem get(String literal) {
238                for (int i = 0; i < VALUES_ARRAY.length; ++i) {
239                        ContainerOperatingSystem result = VALUES_ARRAY[i];
240                        if (result.toString().equals(literal)) {
241                                return result;
242                        }
243                }
244                return null;
245        }
246 
247        /**
248         * Returns the '<em><b>Container Operating System</b></em>' literal with the specified name.
249         * <!-- begin-user-doc -->
250         * <!-- end-user-doc -->
251         * @generated
252         */
253        public static ContainerOperatingSystem getByName(String name) {
254                for (int i = 0; i < VALUES_ARRAY.length; ++i) {
255                        ContainerOperatingSystem result = VALUES_ARRAY[i];
256                        if (result.getName().equals(name)) {
257                                return result;
258                        }
259                }
260                return null;
261        }
262 
263        /**
264         * Returns the '<em><b>Container Operating System</b></em>' literal with the specified integer value.
265         * <!-- begin-user-doc -->
266         * <!-- end-user-doc -->
267         * @generated
268         */
269        public static ContainerOperatingSystem get(int value) {
270                switch (value) {
271                        case WINDOWS_VISTA_VALUE: return WINDOWS_VISTA;
272                        case LINUX26_CFS_VALUE: return LINUX26_CFS;
273                        case LINUX26_O1_VALUE: return LINUX26_O1;
274                        case WINDOWS_XP_VALUE: return WINDOWS_XP;
275                        case WINDOWS_7_VALUE: return WINDOWS_7;
276                        case WINDOWS_2003_VALUE: return WINDOWS_2003;
277                        case ABSTRACT_VALUE: return ABSTRACT;
278                }
279                return null;
280        }
281 
282        /**
283         * <!-- begin-user-doc -->
284         * <!-- end-user-doc -->
285         * @generated
286         */
287        private final int value;
288 
289        /**
290         * <!-- begin-user-doc -->
291         * <!-- end-user-doc -->
292         * @generated
293         */
294        private final String name;
295 
296        /**
297         * <!-- begin-user-doc -->
298         * <!-- end-user-doc -->
299         * @generated
300         */
301        private final String literal;
302 
303        /**
304         * Only this class can construct instances.
305         * <!-- begin-user-doc -->
306         * <!-- end-user-doc -->
307         * @generated
308         */
309        private ContainerOperatingSystem(int value, String name, String literal) {
310                this.value = value;
311                this.name = name;
312                this.literal = literal;
313        }
314 
315        /**
316         * <!-- begin-user-doc -->
317         * <!-- end-user-doc -->
318         * @generated
319         */
320        public int getValue() {
321          return value;
322        }
323 
324        /**
325         * <!-- begin-user-doc -->
326         * <!-- end-user-doc -->
327         * @generated
328         */
329        public String getName() {
330          return name;
331        }
332 
333        /**
334         * <!-- begin-user-doc -->
335         * <!-- end-user-doc -->
336         * @generated
337         */
338        public String getLiteral() {
339          return literal;
340        }
341 
342        /**
343         * Returns the literal value of the enumerator, which is its string representation.
344         * <!-- begin-user-doc -->
345         * <!-- end-user-doc -->
346         * @generated
347         */
348        @Override
349        public String toString() {
350                return literal;
351        }
352        
353} //ContainerOperatingSystem

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