diff options
author | 2020-05-19 21:18:06 +0200 | |
---|---|---|
committer | 2020-05-19 21:18:06 +0200 | |
commit | b3c1c5b30ae8ea7ebad391c9250b4509d5a4cc9b (patch) | |
tree | ad3222182065b8fac7d9b3d528c4efabf2aa0dd2 /Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/SolverLanguageFactoryImpl.java | |
parent | Merge branch 'master' of github.com:viatra/VIATRA-Generator (diff) | |
download | VIATRA-Generator-b3c1c5b30ae8ea7ebad391c9250b4509d5a4cc9b.tar.gz VIATRA-Generator-b3c1c5b30ae8ea7ebad391c9250b4509d5a4cc9b.tar.zst VIATRA-Generator-b3c1c5b30ae8ea7ebad391c9250b4509d5a4cc9b.zip |
Config language WIP
Diffstat (limited to 'Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/SolverLanguageFactoryImpl.java')
-rw-r--r-- | Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/SolverLanguageFactoryImpl.java | 894 |
1 files changed, 0 insertions, 894 deletions
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/SolverLanguageFactoryImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/SolverLanguageFactoryImpl.java deleted file mode 100644 index 509d7568..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/SolverLanguageFactoryImpl.java +++ /dev/null | |||
@@ -1,894 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | import org.eclipse.emf.ecore.EDataType; | ||
8 | import org.eclipse.emf.ecore.EObject; | ||
9 | import org.eclipse.emf.ecore.EPackage; | ||
10 | |||
11 | import org.eclipse.emf.ecore.impl.EFactoryImpl; | ||
12 | |||
13 | import org.eclipse.emf.ecore.plugin.EcorePlugin; | ||
14 | |||
15 | import org.eclipse.viatra.solver.language.solverLanguage.*; | ||
16 | |||
17 | /** | ||
18 | * <!-- begin-user-doc --> | ||
19 | * An implementation of the model <b>Factory</b>. | ||
20 | * <!-- end-user-doc --> | ||
21 | * @generated | ||
22 | */ | ||
23 | public class SolverLanguageFactoryImpl extends EFactoryImpl implements SolverLanguageFactory | ||
24 | { | ||
25 | /** | ||
26 | * Creates the default factory implementation. | ||
27 | * <!-- begin-user-doc --> | ||
28 | * <!-- end-user-doc --> | ||
29 | * @generated | ||
30 | */ | ||
31 | public static SolverLanguageFactory init() | ||
32 | { | ||
33 | try | ||
34 | { | ||
35 | SolverLanguageFactory theSolverLanguageFactory = (SolverLanguageFactory)EPackage.Registry.INSTANCE.getEFactory(SolverLanguagePackage.eNS_URI); | ||
36 | if (theSolverLanguageFactory != null) | ||
37 | { | ||
38 | return theSolverLanguageFactory; | ||
39 | } | ||
40 | } | ||
41 | catch (Exception exception) | ||
42 | { | ||
43 | EcorePlugin.INSTANCE.log(exception); | ||
44 | } | ||
45 | return new SolverLanguageFactoryImpl(); | ||
46 | } | ||
47 | |||
48 | /** | ||
49 | * Creates an instance of the factory. | ||
50 | * <!-- begin-user-doc --> | ||
51 | * <!-- end-user-doc --> | ||
52 | * @generated | ||
53 | */ | ||
54 | public SolverLanguageFactoryImpl() | ||
55 | { | ||
56 | super(); | ||
57 | } | ||
58 | |||
59 | /** | ||
60 | * <!-- begin-user-doc --> | ||
61 | * <!-- end-user-doc --> | ||
62 | * @generated | ||
63 | */ | ||
64 | @Override | ||
65 | public EObject create(EClass eClass) | ||
66 | { | ||
67 | switch (eClass.getClassifierID()) | ||
68 | { | ||
69 | case SolverLanguagePackage.PROBLEM: return createProblem(); | ||
70 | case SolverLanguagePackage.STATEMENT: return createStatement(); | ||
71 | case SolverLanguagePackage.PREDICATE_DEFINITION: return createPredicateDefinition(); | ||
72 | case SolverLanguagePackage.UNNAMED_ERROR_PREDIATE_DEFINITION: return createUnnamedErrorPrediateDefinition(); | ||
73 | case SolverLanguagePackage.DEFAULT_DEFINITION: return createDefaultDefinition(); | ||
74 | case SolverLanguagePackage.EXTERN_PREDICATE_DEFINITION: return createExternPredicateDefinition(); | ||
75 | case SolverLanguagePackage.METRIC_DEFINITION: return createMetricDefinition(); | ||
76 | case SolverLanguagePackage.EXTERN_METRIC_DEFINITION: return createExternMetricDefinition(); | ||
77 | case SolverLanguagePackage.EXPRESSION: return createExpression(); | ||
78 | case SolverLanguagePackage.IF_ELSE: return createIfElse(); | ||
79 | case SolverLanguagePackage.CASE: return createCase(); | ||
80 | case SolverLanguagePackage.COUNT: return createCount(); | ||
81 | case SolverLanguagePackage.AGGREGATION: return createAggregation(); | ||
82 | case SolverLanguagePackage.CALL: return createCall(); | ||
83 | case SolverLanguagePackage.ARGUMENT_LIST: return createArgumentList(); | ||
84 | case SolverLanguagePackage.ARGUMENT: return createArgument(); | ||
85 | case SolverLanguagePackage.EXPRESSION_ARGUMENT: return createExpressionArgument(); | ||
86 | case SolverLanguagePackage.STAR_ARGUMENT: return createStarArgument(); | ||
87 | case SolverLanguagePackage.TYPED_ARGUMENT: return createTypedArgument(); | ||
88 | case SolverLanguagePackage.TYPED_STAR_ARGUMENT: return createTypedStarArgument(); | ||
89 | case SolverLanguagePackage.REFERENCE: return createReference(); | ||
90 | case SolverLanguagePackage.INTERVAL: return createInterval(); | ||
91 | case SolverLanguagePackage.LITERAL: return createLiteral(); | ||
92 | case SolverLanguagePackage.LOGIC_LITERAL: return createLogicLiteral(); | ||
93 | case SolverLanguagePackage.NUMERIC_LITERAL: return createNumericLiteral(); | ||
94 | case SolverLanguagePackage.INFINITY_LITERAL: return createInfinityLiteral(); | ||
95 | case SolverLanguagePackage.EMPTY_INTERVAL_LITERAL: return createEmptyIntervalLiteral(); | ||
96 | case SolverLanguagePackage.STRING_LITERAL: return createStringLiteral(); | ||
97 | case SolverLanguagePackage.CLASS_DEFINITION: return createClassDefinition(); | ||
98 | case SolverLanguagePackage.MEMBER_DEFINITION: return createMemberDefinition(); | ||
99 | case SolverLanguagePackage.MULTIPLICITY: return createMultiplicity(); | ||
100 | case SolverLanguagePackage.MANY_MULTIPLICITY: return createManyMultiplicity(); | ||
101 | case SolverLanguagePackage.EXACT_MULTIPLICITY: return createExactMultiplicity(); | ||
102 | case SolverLanguagePackage.BOUNDED_MULTIPLICITY: return createBoundedMultiplicity(); | ||
103 | case SolverLanguagePackage.SCOPE_DEFINITION: return createScopeDefinition(); | ||
104 | case SolverLanguagePackage.EXACT_SCOPE_DEFINITION: return createExactScopeDefinition(); | ||
105 | case SolverLanguagePackage.BOUNDED_SCOPE_DEFINITION: return createBoundedScopeDefinition(); | ||
106 | case SolverLanguagePackage.LOWER_BOUNDED_SCOPE_DEFINITION: return createLowerBoundedScopeDefinition(); | ||
107 | case SolverLanguagePackage.OBJECTIVE_DEFINITION: return createObjectiveDefinition(); | ||
108 | case SolverLanguagePackage.NAMED_ELEMENT: return createNamedElement(); | ||
109 | case SolverLanguagePackage.ASSERTION: return createAssertion(); | ||
110 | case SolverLanguagePackage.DISJUNCTION: return createDisjunction(); | ||
111 | case SolverLanguagePackage.SWITCH: return createSwitch(); | ||
112 | case SolverLanguagePackage.CONJUNCTION: return createConjunction(); | ||
113 | case SolverLanguagePackage.COMPARISON: return createComparison(); | ||
114 | case SolverLanguagePackage.BINARY_EXPRESSION: return createBinaryExpression(); | ||
115 | case SolverLanguagePackage.UNARY_EXPRESSION: return createUnaryExpression(); | ||
116 | default: | ||
117 | throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); | ||
118 | } | ||
119 | } | ||
120 | |||
121 | /** | ||
122 | * <!-- begin-user-doc --> | ||
123 | * <!-- end-user-doc --> | ||
124 | * @generated | ||
125 | */ | ||
126 | @Override | ||
127 | public Object createFromString(EDataType eDataType, String initialValue) | ||
128 | { | ||
129 | switch (eDataType.getClassifierID()) | ||
130 | { | ||
131 | case SolverLanguagePackage.METRIC_TYPE: | ||
132 | return createMetricTypeFromString(eDataType, initialValue); | ||
133 | case SolverLanguagePackage.BINARY_OPERATOR: | ||
134 | return createBinaryOperatorFromString(eDataType, initialValue); | ||
135 | case SolverLanguagePackage.UNARY_OP: | ||
136 | return createUnaryOpFromString(eDataType, initialValue); | ||
137 | case SolverLanguagePackage.AGGREGATION_OP: | ||
138 | return createAggregationOpFromString(eDataType, initialValue); | ||
139 | case SolverLanguagePackage.LOGIC_VALUE: | ||
140 | return createLogicValueFromString(eDataType, initialValue); | ||
141 | case SolverLanguagePackage.OBJECTIVE_KIND: | ||
142 | return createObjectiveKindFromString(eDataType, initialValue); | ||
143 | default: | ||
144 | throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); | ||
145 | } | ||
146 | } | ||
147 | |||
148 | /** | ||
149 | * <!-- begin-user-doc --> | ||
150 | * <!-- end-user-doc --> | ||
151 | * @generated | ||
152 | */ | ||
153 | @Override | ||
154 | public String convertToString(EDataType eDataType, Object instanceValue) | ||
155 | { | ||
156 | switch (eDataType.getClassifierID()) | ||
157 | { | ||
158 | case SolverLanguagePackage.METRIC_TYPE: | ||
159 | return convertMetricTypeToString(eDataType, instanceValue); | ||
160 | case SolverLanguagePackage.BINARY_OPERATOR: | ||
161 | return convertBinaryOperatorToString(eDataType, instanceValue); | ||
162 | case SolverLanguagePackage.UNARY_OP: | ||
163 | return convertUnaryOpToString(eDataType, instanceValue); | ||
164 | case SolverLanguagePackage.AGGREGATION_OP: | ||
165 | return convertAggregationOpToString(eDataType, instanceValue); | ||
166 | case SolverLanguagePackage.LOGIC_VALUE: | ||
167 | return convertLogicValueToString(eDataType, instanceValue); | ||
168 | case SolverLanguagePackage.OBJECTIVE_KIND: | ||
169 | return convertObjectiveKindToString(eDataType, instanceValue); | ||
170 | default: | ||
171 | throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); | ||
172 | } | ||
173 | } | ||
174 | |||
175 | /** | ||
176 | * <!-- begin-user-doc --> | ||
177 | * <!-- end-user-doc --> | ||
178 | * @generated | ||
179 | */ | ||
180 | @Override | ||
181 | public Problem createProblem() | ||
182 | { | ||
183 | ProblemImpl problem = new ProblemImpl(); | ||
184 | return problem; | ||
185 | } | ||
186 | |||
187 | /** | ||
188 | * <!-- begin-user-doc --> | ||
189 | * <!-- end-user-doc --> | ||
190 | * @generated | ||
191 | */ | ||
192 | @Override | ||
193 | public Statement createStatement() | ||
194 | { | ||
195 | StatementImpl statement = new StatementImpl(); | ||
196 | return statement; | ||
197 | } | ||
198 | |||
199 | /** | ||
200 | * <!-- begin-user-doc --> | ||
201 | * <!-- end-user-doc --> | ||
202 | * @generated | ||
203 | */ | ||
204 | @Override | ||
205 | public PredicateDefinition createPredicateDefinition() | ||
206 | { | ||
207 | PredicateDefinitionImpl predicateDefinition = new PredicateDefinitionImpl(); | ||
208 | return predicateDefinition; | ||
209 | } | ||
210 | |||
211 | /** | ||
212 | * <!-- begin-user-doc --> | ||
213 | * <!-- end-user-doc --> | ||
214 | * @generated | ||
215 | */ | ||
216 | @Override | ||
217 | public UnnamedErrorPrediateDefinition createUnnamedErrorPrediateDefinition() | ||
218 | { | ||
219 | UnnamedErrorPrediateDefinitionImpl unnamedErrorPrediateDefinition = new UnnamedErrorPrediateDefinitionImpl(); | ||
220 | return unnamedErrorPrediateDefinition; | ||
221 | } | ||
222 | |||
223 | /** | ||
224 | * <!-- begin-user-doc --> | ||
225 | * <!-- end-user-doc --> | ||
226 | * @generated | ||
227 | */ | ||
228 | @Override | ||
229 | public DefaultDefinition createDefaultDefinition() | ||
230 | { | ||
231 | DefaultDefinitionImpl defaultDefinition = new DefaultDefinitionImpl(); | ||
232 | return defaultDefinition; | ||
233 | } | ||
234 | |||
235 | /** | ||
236 | * <!-- begin-user-doc --> | ||
237 | * <!-- end-user-doc --> | ||
238 | * @generated | ||
239 | */ | ||
240 | @Override | ||
241 | public ExternPredicateDefinition createExternPredicateDefinition() | ||
242 | { | ||
243 | ExternPredicateDefinitionImpl externPredicateDefinition = new ExternPredicateDefinitionImpl(); | ||
244 | return externPredicateDefinition; | ||
245 | } | ||
246 | |||
247 | /** | ||
248 | * <!-- begin-user-doc --> | ||
249 | * <!-- end-user-doc --> | ||
250 | * @generated | ||
251 | */ | ||
252 | @Override | ||
253 | public MetricDefinition createMetricDefinition() | ||
254 | { | ||
255 | MetricDefinitionImpl metricDefinition = new MetricDefinitionImpl(); | ||
256 | return metricDefinition; | ||
257 | } | ||
258 | |||
259 | /** | ||
260 | * <!-- begin-user-doc --> | ||
261 | * <!-- end-user-doc --> | ||
262 | * @generated | ||
263 | */ | ||
264 | @Override | ||
265 | public ExternMetricDefinition createExternMetricDefinition() | ||
266 | { | ||
267 | ExternMetricDefinitionImpl externMetricDefinition = new ExternMetricDefinitionImpl(); | ||
268 | return externMetricDefinition; | ||
269 | } | ||
270 | |||
271 | /** | ||
272 | * <!-- begin-user-doc --> | ||
273 | * <!-- end-user-doc --> | ||
274 | * @generated | ||
275 | */ | ||
276 | @Override | ||
277 | public Expression createExpression() | ||
278 | { | ||
279 | ExpressionImpl expression = new ExpressionImpl(); | ||
280 | return expression; | ||
281 | } | ||
282 | |||
283 | /** | ||
284 | * <!-- begin-user-doc --> | ||
285 | * <!-- end-user-doc --> | ||
286 | * @generated | ||
287 | */ | ||
288 | @Override | ||
289 | public IfElse createIfElse() | ||
290 | { | ||
291 | IfElseImpl ifElse = new IfElseImpl(); | ||
292 | return ifElse; | ||
293 | } | ||
294 | |||
295 | /** | ||
296 | * <!-- begin-user-doc --> | ||
297 | * <!-- end-user-doc --> | ||
298 | * @generated | ||
299 | */ | ||
300 | @Override | ||
301 | public Case createCase() | ||
302 | { | ||
303 | CaseImpl case_ = new CaseImpl(); | ||
304 | return case_; | ||
305 | } | ||
306 | |||
307 | /** | ||
308 | * <!-- begin-user-doc --> | ||
309 | * <!-- end-user-doc --> | ||
310 | * @generated | ||
311 | */ | ||
312 | @Override | ||
313 | public Count createCount() | ||
314 | { | ||
315 | CountImpl count = new CountImpl(); | ||
316 | return count; | ||
317 | } | ||
318 | |||
319 | /** | ||
320 | * <!-- begin-user-doc --> | ||
321 | * <!-- end-user-doc --> | ||
322 | * @generated | ||
323 | */ | ||
324 | @Override | ||
325 | public Aggregation createAggregation() | ||
326 | { | ||
327 | AggregationImpl aggregation = new AggregationImpl(); | ||
328 | return aggregation; | ||
329 | } | ||
330 | |||
331 | /** | ||
332 | * <!-- begin-user-doc --> | ||
333 | * <!-- end-user-doc --> | ||
334 | * @generated | ||
335 | */ | ||
336 | @Override | ||
337 | public Call createCall() | ||
338 | { | ||
339 | CallImpl call = new CallImpl(); | ||
340 | return call; | ||
341 | } | ||
342 | |||
343 | /** | ||
344 | * <!-- begin-user-doc --> | ||
345 | * <!-- end-user-doc --> | ||
346 | * @generated | ||
347 | */ | ||
348 | @Override | ||
349 | public ArgumentList createArgumentList() | ||
350 | { | ||
351 | ArgumentListImpl argumentList = new ArgumentListImpl(); | ||
352 | return argumentList; | ||
353 | } | ||
354 | |||
355 | /** | ||
356 | * <!-- begin-user-doc --> | ||
357 | * <!-- end-user-doc --> | ||
358 | * @generated | ||
359 | */ | ||
360 | @Override | ||
361 | public Argument createArgument() | ||
362 | { | ||
363 | ArgumentImpl argument = new ArgumentImpl(); | ||
364 | return argument; | ||
365 | } | ||
366 | |||
367 | /** | ||
368 | * <!-- begin-user-doc --> | ||
369 | * <!-- end-user-doc --> | ||
370 | * @generated | ||
371 | */ | ||
372 | @Override | ||
373 | public ExpressionArgument createExpressionArgument() | ||
374 | { | ||
375 | ExpressionArgumentImpl expressionArgument = new ExpressionArgumentImpl(); | ||
376 | return expressionArgument; | ||
377 | } | ||
378 | |||
379 | /** | ||
380 | * <!-- begin-user-doc --> | ||
381 | * <!-- end-user-doc --> | ||
382 | * @generated | ||
383 | */ | ||
384 | @Override | ||
385 | public StarArgument createStarArgument() | ||
386 | { | ||
387 | StarArgumentImpl starArgument = new StarArgumentImpl(); | ||
388 | return starArgument; | ||
389 | } | ||
390 | |||
391 | /** | ||
392 | * <!-- begin-user-doc --> | ||
393 | * <!-- end-user-doc --> | ||
394 | * @generated | ||
395 | */ | ||
396 | @Override | ||
397 | public TypedArgument createTypedArgument() | ||
398 | { | ||
399 | TypedArgumentImpl typedArgument = new TypedArgumentImpl(); | ||
400 | return typedArgument; | ||
401 | } | ||
402 | |||
403 | /** | ||
404 | * <!-- begin-user-doc --> | ||
405 | * <!-- end-user-doc --> | ||
406 | * @generated | ||
407 | */ | ||
408 | @Override | ||
409 | public TypedStarArgument createTypedStarArgument() | ||
410 | { | ||
411 | TypedStarArgumentImpl typedStarArgument = new TypedStarArgumentImpl(); | ||
412 | return typedStarArgument; | ||
413 | } | ||
414 | |||
415 | /** | ||
416 | * <!-- begin-user-doc --> | ||
417 | * <!-- end-user-doc --> | ||
418 | * @generated | ||
419 | */ | ||
420 | @Override | ||
421 | public Reference createReference() | ||
422 | { | ||
423 | ReferenceImpl reference = new ReferenceImpl(); | ||
424 | return reference; | ||
425 | } | ||
426 | |||
427 | /** | ||
428 | * <!-- begin-user-doc --> | ||
429 | * <!-- end-user-doc --> | ||
430 | * @generated | ||
431 | */ | ||
432 | @Override | ||
433 | public Interval createInterval() | ||
434 | { | ||
435 | IntervalImpl interval = new IntervalImpl(); | ||
436 | return interval; | ||
437 | } | ||
438 | |||
439 | /** | ||
440 | * <!-- begin-user-doc --> | ||
441 | * <!-- end-user-doc --> | ||
442 | * @generated | ||
443 | */ | ||
444 | @Override | ||
445 | public Literal createLiteral() | ||
446 | { | ||
447 | LiteralImpl literal = new LiteralImpl(); | ||
448 | return literal; | ||
449 | } | ||
450 | |||
451 | /** | ||
452 | * <!-- begin-user-doc --> | ||
453 | * <!-- end-user-doc --> | ||
454 | * @generated | ||
455 | */ | ||
456 | @Override | ||
457 | public LogicLiteral createLogicLiteral() | ||
458 | { | ||
459 | LogicLiteralImpl logicLiteral = new LogicLiteralImpl(); | ||
460 | return logicLiteral; | ||
461 | } | ||
462 | |||
463 | /** | ||
464 | * <!-- begin-user-doc --> | ||
465 | * <!-- end-user-doc --> | ||
466 | * @generated | ||
467 | */ | ||
468 | @Override | ||
469 | public NumericLiteral createNumericLiteral() | ||
470 | { | ||
471 | NumericLiteralImpl numericLiteral = new NumericLiteralImpl(); | ||
472 | return numericLiteral; | ||
473 | } | ||
474 | |||
475 | /** | ||
476 | * <!-- begin-user-doc --> | ||
477 | * <!-- end-user-doc --> | ||
478 | * @generated | ||
479 | */ | ||
480 | @Override | ||
481 | public InfinityLiteral createInfinityLiteral() | ||
482 | { | ||
483 | InfinityLiteralImpl infinityLiteral = new InfinityLiteralImpl(); | ||
484 | return infinityLiteral; | ||
485 | } | ||
486 | |||
487 | /** | ||
488 | * <!-- begin-user-doc --> | ||
489 | * <!-- end-user-doc --> | ||
490 | * @generated | ||
491 | */ | ||
492 | @Override | ||
493 | public EmptyIntervalLiteral createEmptyIntervalLiteral() | ||
494 | { | ||
495 | EmptyIntervalLiteralImpl emptyIntervalLiteral = new EmptyIntervalLiteralImpl(); | ||
496 | return emptyIntervalLiteral; | ||
497 | } | ||
498 | |||
499 | /** | ||
500 | * <!-- begin-user-doc --> | ||
501 | * <!-- end-user-doc --> | ||
502 | * @generated | ||
503 | */ | ||
504 | @Override | ||
505 | public StringLiteral createStringLiteral() | ||
506 | { | ||
507 | StringLiteralImpl stringLiteral = new StringLiteralImpl(); | ||
508 | return stringLiteral; | ||
509 | } | ||
510 | |||
511 | /** | ||
512 | * <!-- begin-user-doc --> | ||
513 | * <!-- end-user-doc --> | ||
514 | * @generated | ||
515 | */ | ||
516 | @Override | ||
517 | public ClassDefinition createClassDefinition() | ||
518 | { | ||
519 | ClassDefinitionImpl classDefinition = new ClassDefinitionImpl(); | ||
520 | return classDefinition; | ||
521 | } | ||
522 | |||
523 | /** | ||
524 | * <!-- begin-user-doc --> | ||
525 | * <!-- end-user-doc --> | ||
526 | * @generated | ||
527 | */ | ||
528 | @Override | ||
529 | public MemberDefinition createMemberDefinition() | ||
530 | { | ||
531 | MemberDefinitionImpl memberDefinition = new MemberDefinitionImpl(); | ||
532 | return memberDefinition; | ||
533 | } | ||
534 | |||
535 | /** | ||
536 | * <!-- begin-user-doc --> | ||
537 | * <!-- end-user-doc --> | ||
538 | * @generated | ||
539 | */ | ||
540 | @Override | ||
541 | public Multiplicity createMultiplicity() | ||
542 | { | ||
543 | MultiplicityImpl multiplicity = new MultiplicityImpl(); | ||
544 | return multiplicity; | ||
545 | } | ||
546 | |||
547 | /** | ||
548 | * <!-- begin-user-doc --> | ||
549 | * <!-- end-user-doc --> | ||
550 | * @generated | ||
551 | */ | ||
552 | @Override | ||
553 | public ManyMultiplicity createManyMultiplicity() | ||
554 | { | ||
555 | ManyMultiplicityImpl manyMultiplicity = new ManyMultiplicityImpl(); | ||
556 | return manyMultiplicity; | ||
557 | } | ||
558 | |||
559 | /** | ||
560 | * <!-- begin-user-doc --> | ||
561 | * <!-- end-user-doc --> | ||
562 | * @generated | ||
563 | */ | ||
564 | @Override | ||
565 | public ExactMultiplicity createExactMultiplicity() | ||
566 | { | ||
567 | ExactMultiplicityImpl exactMultiplicity = new ExactMultiplicityImpl(); | ||
568 | return exactMultiplicity; | ||
569 | } | ||
570 | |||
571 | /** | ||
572 | * <!-- begin-user-doc --> | ||
573 | * <!-- end-user-doc --> | ||
574 | * @generated | ||
575 | */ | ||
576 | @Override | ||
577 | public BoundedMultiplicity createBoundedMultiplicity() | ||
578 | { | ||
579 | BoundedMultiplicityImpl boundedMultiplicity = new BoundedMultiplicityImpl(); | ||
580 | return boundedMultiplicity; | ||
581 | } | ||
582 | |||
583 | /** | ||
584 | * <!-- begin-user-doc --> | ||
585 | * <!-- end-user-doc --> | ||
586 | * @generated | ||
587 | */ | ||
588 | @Override | ||
589 | public ScopeDefinition createScopeDefinition() | ||
590 | { | ||
591 | ScopeDefinitionImpl scopeDefinition = new ScopeDefinitionImpl(); | ||
592 | return scopeDefinition; | ||
593 | } | ||
594 | |||
595 | /** | ||
596 | * <!-- begin-user-doc --> | ||
597 | * <!-- end-user-doc --> | ||
598 | * @generated | ||
599 | */ | ||
600 | @Override | ||
601 | public ExactScopeDefinition createExactScopeDefinition() | ||
602 | { | ||
603 | ExactScopeDefinitionImpl exactScopeDefinition = new ExactScopeDefinitionImpl(); | ||
604 | return exactScopeDefinition; | ||
605 | } | ||
606 | |||
607 | /** | ||
608 | * <!-- begin-user-doc --> | ||
609 | * <!-- end-user-doc --> | ||
610 | * @generated | ||
611 | */ | ||
612 | @Override | ||
613 | public BoundedScopeDefinition createBoundedScopeDefinition() | ||
614 | { | ||
615 | BoundedScopeDefinitionImpl boundedScopeDefinition = new BoundedScopeDefinitionImpl(); | ||
616 | return boundedScopeDefinition; | ||
617 | } | ||
618 | |||
619 | /** | ||
620 | * <!-- begin-user-doc --> | ||
621 | * <!-- end-user-doc --> | ||
622 | * @generated | ||
623 | */ | ||
624 | @Override | ||
625 | public LowerBoundedScopeDefinition createLowerBoundedScopeDefinition() | ||
626 | { | ||
627 | LowerBoundedScopeDefinitionImpl lowerBoundedScopeDefinition = new LowerBoundedScopeDefinitionImpl(); | ||
628 | return lowerBoundedScopeDefinition; | ||
629 | } | ||
630 | |||
631 | /** | ||
632 | * <!-- begin-user-doc --> | ||
633 | * <!-- end-user-doc --> | ||
634 | * @generated | ||
635 | */ | ||
636 | @Override | ||
637 | public ObjectiveDefinition createObjectiveDefinition() | ||
638 | { | ||
639 | ObjectiveDefinitionImpl objectiveDefinition = new ObjectiveDefinitionImpl(); | ||
640 | return objectiveDefinition; | ||
641 | } | ||
642 | |||
643 | /** | ||
644 | * <!-- begin-user-doc --> | ||
645 | * <!-- end-user-doc --> | ||
646 | * @generated | ||
647 | */ | ||
648 | @Override | ||
649 | public NamedElement createNamedElement() | ||
650 | { | ||
651 | NamedElementImpl namedElement = new NamedElementImpl(); | ||
652 | return namedElement; | ||
653 | } | ||
654 | |||
655 | /** | ||
656 | * <!-- begin-user-doc --> | ||
657 | * <!-- end-user-doc --> | ||
658 | * @generated | ||
659 | */ | ||
660 | @Override | ||
661 | public Assertion createAssertion() | ||
662 | { | ||
663 | AssertionImpl assertion = new AssertionImpl(); | ||
664 | return assertion; | ||
665 | } | ||
666 | |||
667 | /** | ||
668 | * <!-- begin-user-doc --> | ||
669 | * <!-- end-user-doc --> | ||
670 | * @generated | ||
671 | */ | ||
672 | @Override | ||
673 | public Disjunction createDisjunction() | ||
674 | { | ||
675 | DisjunctionImpl disjunction = new DisjunctionImpl(); | ||
676 | return disjunction; | ||
677 | } | ||
678 | |||
679 | /** | ||
680 | * <!-- begin-user-doc --> | ||
681 | * <!-- end-user-doc --> | ||
682 | * @generated | ||
683 | */ | ||
684 | @Override | ||
685 | public Switch createSwitch() | ||
686 | { | ||
687 | SwitchImpl switch_ = new SwitchImpl(); | ||
688 | return switch_; | ||
689 | } | ||
690 | |||
691 | /** | ||
692 | * <!-- begin-user-doc --> | ||
693 | * <!-- end-user-doc --> | ||
694 | * @generated | ||
695 | */ | ||
696 | @Override | ||
697 | public Conjunction createConjunction() | ||
698 | { | ||
699 | ConjunctionImpl conjunction = new ConjunctionImpl(); | ||
700 | return conjunction; | ||
701 | } | ||
702 | |||
703 | /** | ||
704 | * <!-- begin-user-doc --> | ||
705 | * <!-- end-user-doc --> | ||
706 | * @generated | ||
707 | */ | ||
708 | @Override | ||
709 | public Comparison createComparison() | ||
710 | { | ||
711 | ComparisonImpl comparison = new ComparisonImpl(); | ||
712 | return comparison; | ||
713 | } | ||
714 | |||
715 | /** | ||
716 | * <!-- begin-user-doc --> | ||
717 | * <!-- end-user-doc --> | ||
718 | * @generated | ||
719 | */ | ||
720 | @Override | ||
721 | public BinaryExpression createBinaryExpression() | ||
722 | { | ||
723 | BinaryExpressionImpl binaryExpression = new BinaryExpressionImpl(); | ||
724 | return binaryExpression; | ||
725 | } | ||
726 | |||
727 | /** | ||
728 | * <!-- begin-user-doc --> | ||
729 | * <!-- end-user-doc --> | ||
730 | * @generated | ||
731 | */ | ||
732 | @Override | ||
733 | public UnaryExpression createUnaryExpression() | ||
734 | { | ||
735 | UnaryExpressionImpl unaryExpression = new UnaryExpressionImpl(); | ||
736 | return unaryExpression; | ||
737 | } | ||
738 | |||
739 | /** | ||
740 | * <!-- begin-user-doc --> | ||
741 | * <!-- end-user-doc --> | ||
742 | * @generated | ||
743 | */ | ||
744 | public MetricType createMetricTypeFromString(EDataType eDataType, String initialValue) | ||
745 | { | ||
746 | MetricType result = MetricType.get(initialValue); | ||
747 | if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); | ||
748 | return result; | ||
749 | } | ||
750 | |||
751 | /** | ||
752 | * <!-- begin-user-doc --> | ||
753 | * <!-- end-user-doc --> | ||
754 | * @generated | ||
755 | */ | ||
756 | public String convertMetricTypeToString(EDataType eDataType, Object instanceValue) | ||
757 | { | ||
758 | return instanceValue == null ? null : instanceValue.toString(); | ||
759 | } | ||
760 | |||
761 | /** | ||
762 | * <!-- begin-user-doc --> | ||
763 | * <!-- end-user-doc --> | ||
764 | * @generated | ||
765 | */ | ||
766 | public BinaryOperator createBinaryOperatorFromString(EDataType eDataType, String initialValue) | ||
767 | { | ||
768 | BinaryOperator result = BinaryOperator.get(initialValue); | ||
769 | if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); | ||
770 | return result; | ||
771 | } | ||
772 | |||
773 | /** | ||
774 | * <!-- begin-user-doc --> | ||
775 | * <!-- end-user-doc --> | ||
776 | * @generated | ||
777 | */ | ||
778 | public String convertBinaryOperatorToString(EDataType eDataType, Object instanceValue) | ||
779 | { | ||
780 | return instanceValue == null ? null : instanceValue.toString(); | ||
781 | } | ||
782 | |||
783 | /** | ||
784 | * <!-- begin-user-doc --> | ||
785 | * <!-- end-user-doc --> | ||
786 | * @generated | ||
787 | */ | ||
788 | public UnaryOp createUnaryOpFromString(EDataType eDataType, String initialValue) | ||
789 | { | ||
790 | UnaryOp result = UnaryOp.get(initialValue); | ||
791 | if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); | ||
792 | return result; | ||
793 | } | ||
794 | |||
795 | /** | ||
796 | * <!-- begin-user-doc --> | ||
797 | * <!-- end-user-doc --> | ||
798 | * @generated | ||
799 | */ | ||
800 | public String convertUnaryOpToString(EDataType eDataType, Object instanceValue) | ||
801 | { | ||
802 | return instanceValue == null ? null : instanceValue.toString(); | ||
803 | } | ||
804 | |||
805 | /** | ||
806 | * <!-- begin-user-doc --> | ||
807 | * <!-- end-user-doc --> | ||
808 | * @generated | ||
809 | */ | ||
810 | public AggregationOp createAggregationOpFromString(EDataType eDataType, String initialValue) | ||
811 | { | ||
812 | AggregationOp result = AggregationOp.get(initialValue); | ||
813 | if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); | ||
814 | return result; | ||
815 | } | ||
816 | |||
817 | /** | ||
818 | * <!-- begin-user-doc --> | ||
819 | * <!-- end-user-doc --> | ||
820 | * @generated | ||
821 | */ | ||
822 | public String convertAggregationOpToString(EDataType eDataType, Object instanceValue) | ||
823 | { | ||
824 | return instanceValue == null ? null : instanceValue.toString(); | ||
825 | } | ||
826 | |||
827 | /** | ||
828 | * <!-- begin-user-doc --> | ||
829 | * <!-- end-user-doc --> | ||
830 | * @generated | ||
831 | */ | ||
832 | public LogicValue createLogicValueFromString(EDataType eDataType, String initialValue) | ||
833 | { | ||
834 | LogicValue result = LogicValue.get(initialValue); | ||
835 | if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); | ||
836 | return result; | ||
837 | } | ||
838 | |||
839 | /** | ||
840 | * <!-- begin-user-doc --> | ||
841 | * <!-- end-user-doc --> | ||
842 | * @generated | ||
843 | */ | ||
844 | public String convertLogicValueToString(EDataType eDataType, Object instanceValue) | ||
845 | { | ||
846 | return instanceValue == null ? null : instanceValue.toString(); | ||
847 | } | ||
848 | |||
849 | /** | ||
850 | * <!-- begin-user-doc --> | ||
851 | * <!-- end-user-doc --> | ||
852 | * @generated | ||
853 | */ | ||
854 | public ObjectiveKind createObjectiveKindFromString(EDataType eDataType, String initialValue) | ||
855 | { | ||
856 | ObjectiveKind result = ObjectiveKind.get(initialValue); | ||
857 | if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); | ||
858 | return result; | ||
859 | } | ||
860 | |||
861 | /** | ||
862 | * <!-- begin-user-doc --> | ||
863 | * <!-- end-user-doc --> | ||
864 | * @generated | ||
865 | */ | ||
866 | public String convertObjectiveKindToString(EDataType eDataType, Object instanceValue) | ||
867 | { | ||
868 | return instanceValue == null ? null : instanceValue.toString(); | ||
869 | } | ||
870 | |||
871 | /** | ||
872 | * <!-- begin-user-doc --> | ||
873 | * <!-- end-user-doc --> | ||
874 | * @generated | ||
875 | */ | ||
876 | @Override | ||
877 | public SolverLanguagePackage getSolverLanguagePackage() | ||
878 | { | ||
879 | return (SolverLanguagePackage)getEPackage(); | ||
880 | } | ||
881 | |||
882 | /** | ||
883 | * <!-- begin-user-doc --> | ||
884 | * <!-- end-user-doc --> | ||
885 | * @deprecated | ||
886 | * @generated | ||
887 | */ | ||
888 | @Deprecated | ||
889 | public static SolverLanguagePackage getPackage() | ||
890 | { | ||
891 | return SolverLanguagePackage.eINSTANCE; | ||
892 | } | ||
893 | |||
894 | } //SolverLanguageFactoryImpl | ||