diff options
Diffstat (limited to 'Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/OptimizationDirection.java')
-rw-r--r-- | Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/OptimizationDirection.java | 233 |
1 files changed, 233 insertions, 0 deletions
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/OptimizationDirection.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/OptimizationDirection.java new file mode 100644 index 00000000..57068cb5 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/OptimizationDirection.java | |||
@@ -0,0 +1,233 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration; | ||
5 | |||
6 | import java.util.Arrays; | ||
7 | import java.util.Collections; | ||
8 | import java.util.List; | ||
9 | |||
10 | import org.eclipse.emf.common.util.Enumerator; | ||
11 | |||
12 | /** | ||
13 | * <!-- begin-user-doc --> | ||
14 | * A representation of the literals of the enumeration '<em><b>Optimization Direction</b></em>', | ||
15 | * and utility methods for working with them. | ||
16 | * <!-- end-user-doc --> | ||
17 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage#getOptimizationDirection() | ||
18 | * @model | ||
19 | * @generated | ||
20 | */ | ||
21 | public enum OptimizationDirection implements Enumerator | ||
22 | { | ||
23 | /** | ||
24 | * The '<em><b>MINIMIZE</b></em>' literal object. | ||
25 | * <!-- begin-user-doc --> | ||
26 | * <!-- end-user-doc --> | ||
27 | * @see #MINIMIZE_VALUE | ||
28 | * @generated | ||
29 | * @ordered | ||
30 | */ | ||
31 | MINIMIZE(0, "MINIMIZE", "minimize"), | ||
32 | |||
33 | /** | ||
34 | * The '<em><b>MAXIMIZE</b></em>' literal object. | ||
35 | * <!-- begin-user-doc --> | ||
36 | * <!-- end-user-doc --> | ||
37 | * @see #MAXIMIZE_VALUE | ||
38 | * @generated | ||
39 | * @ordered | ||
40 | */ | ||
41 | MAXIMIZE(1, "MAXIMIZE", "maximize"); | ||
42 | |||
43 | /** | ||
44 | * The '<em><b>MINIMIZE</b></em>' literal value. | ||
45 | * <!-- begin-user-doc --> | ||
46 | * <p> | ||
47 | * If the meaning of '<em><b>MINIMIZE</b></em>' literal object isn't clear, | ||
48 | * there really should be more of a description here... | ||
49 | * </p> | ||
50 | * <!-- end-user-doc --> | ||
51 | * @see #MINIMIZE | ||
52 | * @model literal="minimize" | ||
53 | * @generated | ||
54 | * @ordered | ||
55 | */ | ||
56 | public static final int MINIMIZE_VALUE = 0; | ||
57 | |||
58 | /** | ||
59 | * The '<em><b>MAXIMIZE</b></em>' literal value. | ||
60 | * <!-- begin-user-doc --> | ||
61 | * <p> | ||
62 | * If the meaning of '<em><b>MAXIMIZE</b></em>' literal object isn't clear, | ||
63 | * there really should be more of a description here... | ||
64 | * </p> | ||
65 | * <!-- end-user-doc --> | ||
66 | * @see #MAXIMIZE | ||
67 | * @model literal="maximize" | ||
68 | * @generated | ||
69 | * @ordered | ||
70 | */ | ||
71 | public static final int MAXIMIZE_VALUE = 1; | ||
72 | |||
73 | /** | ||
74 | * An array of all the '<em><b>Optimization Direction</b></em>' enumerators. | ||
75 | * <!-- begin-user-doc --> | ||
76 | * <!-- end-user-doc --> | ||
77 | * @generated | ||
78 | */ | ||
79 | private static final OptimizationDirection[] VALUES_ARRAY = | ||
80 | new OptimizationDirection[] | ||
81 | { | ||
82 | MINIMIZE, | ||
83 | MAXIMIZE, | ||
84 | }; | ||
85 | |||
86 | /** | ||
87 | * A public read-only list of all the '<em><b>Optimization Direction</b></em>' enumerators. | ||
88 | * <!-- begin-user-doc --> | ||
89 | * <!-- end-user-doc --> | ||
90 | * @generated | ||
91 | */ | ||
92 | public static final List<OptimizationDirection> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); | ||
93 | |||
94 | /** | ||
95 | * Returns the '<em><b>Optimization Direction</b></em>' literal with the specified literal value. | ||
96 | * <!-- begin-user-doc --> | ||
97 | * <!-- end-user-doc --> | ||
98 | * @param literal the literal. | ||
99 | * @return the matching enumerator or <code>null</code>. | ||
100 | * @generated | ||
101 | */ | ||
102 | public static OptimizationDirection get(String literal) | ||
103 | { | ||
104 | for (int i = 0; i < VALUES_ARRAY.length; ++i) | ||
105 | { | ||
106 | OptimizationDirection result = VALUES_ARRAY[i]; | ||
107 | if (result.toString().equals(literal)) | ||
108 | { | ||
109 | return result; | ||
110 | } | ||
111 | } | ||
112 | return null; | ||
113 | } | ||
114 | |||
115 | /** | ||
116 | * Returns the '<em><b>Optimization Direction</b></em>' literal with the specified name. | ||
117 | * <!-- begin-user-doc --> | ||
118 | * <!-- end-user-doc --> | ||
119 | * @param name the name. | ||
120 | * @return the matching enumerator or <code>null</code>. | ||
121 | * @generated | ||
122 | */ | ||
123 | public static OptimizationDirection getByName(String name) | ||
124 | { | ||
125 | for (int i = 0; i < VALUES_ARRAY.length; ++i) | ||
126 | { | ||
127 | OptimizationDirection result = VALUES_ARRAY[i]; | ||
128 | if (result.getName().equals(name)) | ||
129 | { | ||
130 | return result; | ||
131 | } | ||
132 | } | ||
133 | return null; | ||
134 | } | ||
135 | |||
136 | /** | ||
137 | * Returns the '<em><b>Optimization Direction</b></em>' literal with the specified integer value. | ||
138 | * <!-- begin-user-doc --> | ||
139 | * <!-- end-user-doc --> | ||
140 | * @param value the integer value. | ||
141 | * @return the matching enumerator or <code>null</code>. | ||
142 | * @generated | ||
143 | */ | ||
144 | public static OptimizationDirection get(int value) | ||
145 | { | ||
146 | switch (value) | ||
147 | { | ||
148 | case MINIMIZE_VALUE: return MINIMIZE; | ||
149 | case MAXIMIZE_VALUE: return MAXIMIZE; | ||
150 | } | ||
151 | return null; | ||
152 | } | ||
153 | |||
154 | /** | ||
155 | * <!-- begin-user-doc --> | ||
156 | * <!-- end-user-doc --> | ||
157 | * @generated | ||
158 | */ | ||
159 | private final int value; | ||
160 | |||
161 | /** | ||
162 | * <!-- begin-user-doc --> | ||
163 | * <!-- end-user-doc --> | ||
164 | * @generated | ||
165 | */ | ||
166 | private final String name; | ||
167 | |||
168 | /** | ||
169 | * <!-- begin-user-doc --> | ||
170 | * <!-- end-user-doc --> | ||
171 | * @generated | ||
172 | */ | ||
173 | private final String literal; | ||
174 | |||
175 | /** | ||
176 | * Only this class can construct instances. | ||
177 | * <!-- begin-user-doc --> | ||
178 | * <!-- end-user-doc --> | ||
179 | * @generated | ||
180 | */ | ||
181 | private OptimizationDirection(int value, String name, String literal) | ||
182 | { | ||
183 | this.value = value; | ||
184 | this.name = name; | ||
185 | this.literal = literal; | ||
186 | } | ||
187 | |||
188 | /** | ||
189 | * <!-- begin-user-doc --> | ||
190 | * <!-- end-user-doc --> | ||
191 | * @generated | ||
192 | */ | ||
193 | @Override | ||
194 | public int getValue() | ||
195 | { | ||
196 | return value; | ||
197 | } | ||
198 | |||
199 | /** | ||
200 | * <!-- begin-user-doc --> | ||
201 | * <!-- end-user-doc --> | ||
202 | * @generated | ||
203 | */ | ||
204 | @Override | ||
205 | public String getName() | ||
206 | { | ||
207 | return name; | ||
208 | } | ||
209 | |||
210 | /** | ||
211 | * <!-- begin-user-doc --> | ||
212 | * <!-- end-user-doc --> | ||
213 | * @generated | ||
214 | */ | ||
215 | @Override | ||
216 | public String getLiteral() | ||
217 | { | ||
218 | return literal; | ||
219 | } | ||
220 | |||
221 | /** | ||
222 | * Returns the literal value of the enumerator, which is its string representation. | ||
223 | * <!-- begin-user-doc --> | ||
224 | * <!-- end-user-doc --> | ||
225 | * @generated | ||
226 | */ | ||
227 | @Override | ||
228 | public String toString() | ||
229 | { | ||
230 | return literal; | ||
231 | } | ||
232 | |||
233 | } //OptimizationDirection | ||