aboutsummaryrefslogtreecommitdiffstats
path: root/Application/org.eclipse.viatra.solver.language.model/src-gen/org/eclipse/viatra/solver/language/solverLanguage/ObjectiveKind.java
diff options
context:
space:
mode:
Diffstat (limited to 'Application/org.eclipse.viatra.solver.language.model/src-gen/org/eclipse/viatra/solver/language/solverLanguage/ObjectiveKind.java')
-rw-r--r--Application/org.eclipse.viatra.solver.language.model/src-gen/org/eclipse/viatra/solver/language/solverLanguage/ObjectiveKind.java204
1 files changed, 204 insertions, 0 deletions
diff --git a/Application/org.eclipse.viatra.solver.language.model/src-gen/org/eclipse/viatra/solver/language/solverLanguage/ObjectiveKind.java b/Application/org.eclipse.viatra.solver.language.model/src-gen/org/eclipse/viatra/solver/language/solverLanguage/ObjectiveKind.java
new file mode 100644
index 00000000..e81389fb
--- /dev/null
+++ b/Application/org.eclipse.viatra.solver.language.model/src-gen/org/eclipse/viatra/solver/language/solverLanguage/ObjectiveKind.java
@@ -0,0 +1,204 @@
1/**
2 */
3package org.eclipse.viatra.solver.language.solverLanguage;
4
5import java.util.Arrays;
6import java.util.Collections;
7import java.util.List;
8
9import org.eclipse.emf.common.util.Enumerator;
10
11/**
12 * <!-- begin-user-doc -->
13 * A representation of the literals of the enumeration '<em><b>Objective Kind</b></em>',
14 * and utility methods for working with them.
15 * <!-- end-user-doc -->
16 * @see org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage#getObjectiveKind()
17 * @model
18 * @generated
19 */
20public enum ObjectiveKind implements Enumerator {
21 /**
22 * The '<em><b>MINIMIZATION</b></em>' literal object.
23 * <!-- begin-user-doc -->
24 * <!-- end-user-doc -->
25 * @see #MINIMIZATION_VALUE
26 * @generated
27 * @ordered
28 */
29 MINIMIZATION(0, "MINIMIZATION", "MINIMIZATION"),
30
31 /**
32 * The '<em><b>MAXIMIZATION</b></em>' literal object.
33 * <!-- begin-user-doc -->
34 * <!-- end-user-doc -->
35 * @see #MAXIMIZATION_VALUE
36 * @generated
37 * @ordered
38 */
39 MAXIMIZATION(1, "MAXIMIZATION", "MAXIMIZATION");
40
41 /**
42 * The '<em><b>MINIMIZATION</b></em>' literal value.
43 * <!-- begin-user-doc -->
44 * <!-- end-user-doc -->
45 * @see #MINIMIZATION
46 * @model
47 * @generated
48 * @ordered
49 */
50 public static final int MINIMIZATION_VALUE = 0;
51
52 /**
53 * The '<em><b>MAXIMIZATION</b></em>' literal value.
54 * <!-- begin-user-doc -->
55 * <!-- end-user-doc -->
56 * @see #MAXIMIZATION
57 * @model
58 * @generated
59 * @ordered
60 */
61 public static final int MAXIMIZATION_VALUE = 1;
62
63 /**
64 * An array of all the '<em><b>Objective Kind</b></em>' enumerators.
65 * <!-- begin-user-doc -->
66 * <!-- end-user-doc -->
67 * @generated
68 */
69 private static final ObjectiveKind[] VALUES_ARRAY = new ObjectiveKind[] { MINIMIZATION, MAXIMIZATION, };
70
71 /**
72 * A public read-only list of all the '<em><b>Objective Kind</b></em>' enumerators.
73 * <!-- begin-user-doc -->
74 * <!-- end-user-doc -->
75 * @generated
76 */
77 public static final List<ObjectiveKind> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
78
79 /**
80 * Returns the '<em><b>Objective Kind</b></em>' literal with the specified literal value.
81 * <!-- begin-user-doc -->
82 * <!-- end-user-doc -->
83 * @param literal the literal.
84 * @return the matching enumerator or <code>null</code>.
85 * @generated
86 */
87 public static ObjectiveKind get(String literal) {
88 for (int i = 0; i < VALUES_ARRAY.length; ++i) {
89 ObjectiveKind result = VALUES_ARRAY[i];
90 if (result.toString().equals(literal)) {
91 return result;
92 }
93 }
94 return null;
95 }
96
97 /**
98 * Returns the '<em><b>Objective Kind</b></em>' literal with the specified name.
99 * <!-- begin-user-doc -->
100 * <!-- end-user-doc -->
101 * @param name the name.
102 * @return the matching enumerator or <code>null</code>.
103 * @generated
104 */
105 public static ObjectiveKind getByName(String name) {
106 for (int i = 0; i < VALUES_ARRAY.length; ++i) {
107 ObjectiveKind result = VALUES_ARRAY[i];
108 if (result.getName().equals(name)) {
109 return result;
110 }
111 }
112 return null;
113 }
114
115 /**
116 * Returns the '<em><b>Objective Kind</b></em>' literal with the specified integer value.
117 * <!-- begin-user-doc -->
118 * <!-- end-user-doc -->
119 * @param value the integer value.
120 * @return the matching enumerator or <code>null</code>.
121 * @generated
122 */
123 public static ObjectiveKind get(int value) {
124 switch (value) {
125 case MINIMIZATION_VALUE:
126 return MINIMIZATION;
127 case MAXIMIZATION_VALUE:
128 return MAXIMIZATION;
129 }
130 return null;
131 }
132
133 /**
134 * <!-- begin-user-doc -->
135 * <!-- end-user-doc -->
136 * @generated
137 */
138 private final int value;
139
140 /**
141 * <!-- begin-user-doc -->
142 * <!-- end-user-doc -->
143 * @generated
144 */
145 private final String name;
146
147 /**
148 * <!-- begin-user-doc -->
149 * <!-- end-user-doc -->
150 * @generated
151 */
152 private final String literal;
153
154 /**
155 * Only this class can construct instances.
156 * <!-- begin-user-doc -->
157 * <!-- end-user-doc -->
158 * @generated
159 */
160 private ObjectiveKind(int value, String name, String literal) {
161 this.value = value;
162 this.name = name;
163 this.literal = literal;
164 }
165
166 /**
167 * <!-- begin-user-doc -->
168 * <!-- end-user-doc -->
169 * @generated
170 */
171 public int getValue() {
172 return value;
173 }
174
175 /**
176 * <!-- begin-user-doc -->
177 * <!-- end-user-doc -->
178 * @generated
179 */
180 public String getName() {
181 return name;
182 }
183
184 /**
185 * <!-- begin-user-doc -->
186 * <!-- end-user-doc -->
187 * @generated
188 */
189 public String getLiteral() {
190 return literal;
191 }
192
193 /**
194 * Returns the literal value of the enumerator, which is its string representation.
195 * <!-- begin-user-doc -->
196 * <!-- end-user-doc -->
197 * @generated
198 */
199 @Override
200 public String toString() {
201 return literal;
202 }
203
204} //ObjectiveKind