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

COVERAGE SUMMARY FOR SOURCE FILE [ProcessSelection.java]

nameclass, %method, %block, %line, %
ProcessSelection.java0%   (0/1)0%   (0/11)0%   (0/142)0%   (0/34)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ProcessSelection0%   (0/1)0%   (0/11)0%   (0/142)0%   (0/34)
<static initializer> 0%   (0/1)0%   (0/45)0%   (0/10)
ProcessSelection (String, int, int, String, String): void 0%   (0/1)0%   (0/14)0%   (0/5)
get (String): ProcessSelection 0%   (0/1)0%   (0/21)0%   (0/5)
get (int): ProcessSelection 0%   (0/1)0%   (0/8)0%   (0/4)
getByName (String): ProcessSelection 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): ProcessSelection 0%   (0/1)0%   (0/5)0%   (0/1)
values (): ProcessSelection [] 0%   (0/1)0%   (0/16)0%   (0/1)

1/**
2 * <copyright>
3 * </copyright>
4 *
5 * $Id$
6 */
7package scheduler.configuration;
8 
9import java.util.Arrays;
10import java.util.Collections;
11import java.util.List;
12 
13import org.eclipse.emf.common.util.Enumerator;
14 
15/**
16 * <!-- begin-user-doc -->
17 * A representation of the literals of the enumeration '<em><b>Process Selection</b></em>',
18 * and utility methods for working with them.
19 * <!-- end-user-doc -->
20 * @see scheduler.configuration.ConfigurationPackage#getProcessSelection()
21 * @model
22 * @generated
23 */
24public enum ProcessSelection implements Enumerator {
25        /**
26         * The '<em><b>PREFER IDEAL AND LAST</b></em>' literal object.
27         * <!-- begin-user-doc -->
28         * <!-- end-user-doc -->
29         * @see #PREFER_IDEAL_AND_LAST_VALUE
30         * @generated
31         * @ordered
32         */
33        PREFER_IDEAL_AND_LAST(0, "PREFER_IDEAL_AND_LAST", "PREFER_IDEAL_AND_LAST"),
34 
35        /**
36         * The '<em><b>NEXT RUNNABLE</b></em>' literal object.
37         * <!-- begin-user-doc -->
38         * <!-- end-user-doc -->
39         * @see #NEXT_RUNNABLE_VALUE
40         * @generated
41         * @ordered
42         */
43        NEXT_RUNNABLE(1, "NEXT_RUNNABLE", "NEXT_RUNNABLE");
44 
45        /**
46         * The '<em><b>PREFER IDEAL AND LAST</b></em>' literal value.
47         * <!-- begin-user-doc -->
48         * <p>
49         * If the meaning of '<em><b>PREFER IDEAL AND LAST</b></em>' literal object isn't clear,
50         * there really should be more of a description here...
51         * </p>
52         * <!-- end-user-doc -->
53         * @see #PREFER_IDEAL_AND_LAST
54         * @model
55         * @generated
56         * @ordered
57         */
58        public static final int PREFER_IDEAL_AND_LAST_VALUE = 0;
59 
60        /**
61         * The '<em><b>NEXT RUNNABLE</b></em>' literal value.
62         * <!-- begin-user-doc -->
63         * <p>
64         * If the meaning of '<em><b>NEXT RUNNABLE</b></em>' literal object isn't clear,
65         * there really should be more of a description here...
66         * </p>
67         * <!-- end-user-doc -->
68         * @see #NEXT_RUNNABLE
69         * @model
70         * @generated
71         * @ordered
72         */
73        public static final int NEXT_RUNNABLE_VALUE = 1;
74 
75        /**
76         * An array of all the '<em><b>Process Selection</b></em>' enumerators.
77         * <!-- begin-user-doc -->
78         * <!-- end-user-doc -->
79         * @generated
80         */
81        private static final ProcessSelection[] VALUES_ARRAY =
82                new ProcessSelection[] {
83                        PREFER_IDEAL_AND_LAST,
84                        NEXT_RUNNABLE,
85                };
86 
87        /**
88         * A public read-only list of all the '<em><b>Process Selection</b></em>' enumerators.
89         * <!-- begin-user-doc -->
90         * <!-- end-user-doc -->
91         * @generated
92         */
93        public static final List<ProcessSelection> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
94 
95        /**
96         * Returns the '<em><b>Process Selection</b></em>' literal with the specified literal value.
97         * <!-- begin-user-doc -->
98         * <!-- end-user-doc -->
99         * @generated
100         */
101        public static ProcessSelection get(String literal) {
102                for (int i = 0; i < VALUES_ARRAY.length; ++i) {
103                        ProcessSelection result = VALUES_ARRAY[i];
104                        if (result.toString().equals(literal)) {
105                                return result;
106                        }
107                }
108                return null;
109        }
110 
111        /**
112         * Returns the '<em><b>Process Selection</b></em>' literal with the specified name.
113         * <!-- begin-user-doc -->
114         * <!-- end-user-doc -->
115         * @generated
116         */
117        public static ProcessSelection getByName(String name) {
118                for (int i = 0; i < VALUES_ARRAY.length; ++i) {
119                        ProcessSelection result = VALUES_ARRAY[i];
120                        if (result.getName().equals(name)) {
121                                return result;
122                        }
123                }
124                return null;
125        }
126 
127        /**
128         * Returns the '<em><b>Process Selection</b></em>' literal with the specified integer value.
129         * <!-- begin-user-doc -->
130         * <!-- end-user-doc -->
131         * @generated
132         */
133        public static ProcessSelection get(int value) {
134                switch (value) {
135                        case PREFER_IDEAL_AND_LAST_VALUE: return PREFER_IDEAL_AND_LAST;
136                        case NEXT_RUNNABLE_VALUE: return NEXT_RUNNABLE;
137                }
138                return null;
139        }
140 
141        /**
142         * <!-- begin-user-doc -->
143         * <!-- end-user-doc -->
144         * @generated
145         */
146        private final int value;
147 
148        /**
149         * <!-- begin-user-doc -->
150         * <!-- end-user-doc -->
151         * @generated
152         */
153        private final String name;
154 
155        /**
156         * <!-- begin-user-doc -->
157         * <!-- end-user-doc -->
158         * @generated
159         */
160        private final String literal;
161 
162        /**
163         * Only this class can construct instances.
164         * <!-- begin-user-doc -->
165         * <!-- end-user-doc -->
166         * @generated
167         */
168        private ProcessSelection(int value, String name, String literal) {
169                this.value = value;
170                this.name = name;
171                this.literal = literal;
172        }
173 
174        /**
175         * <!-- begin-user-doc -->
176         * <!-- end-user-doc -->
177         * @generated
178         */
179        public int getValue() {
180          return value;
181        }
182 
183        /**
184         * <!-- begin-user-doc -->
185         * <!-- end-user-doc -->
186         * @generated
187         */
188        public String getName() {
189          return name;
190        }
191 
192        /**
193         * <!-- begin-user-doc -->
194         * <!-- end-user-doc -->
195         * @generated
196         */
197        public String getLiteral() {
198          return literal;
199        }
200 
201        /**
202         * Returns the literal value of the enumerator, which is its string representation.
203         * <!-- begin-user-doc -->
204         * <!-- end-user-doc -->
205         * @generated
206         */
207        @Override
208        public String toString() {
209                return literal;
210        }
211        
212} //ProcessSelection

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