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