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

COVERAGE SUMMARY FOR SOURCE FILE [VariableUsageType.java]

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

COVERAGE BREAKDOWN BY CLASS AND METHOD

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

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

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