diff options
author | 2021-06-27 14:22:40 +0200 | |
---|---|---|
committer | 2021-06-27 14:22:40 +0200 | |
commit | 07719e927f9d398765e661c84fd8778cefb39083 (patch) | |
tree | 9652080f7e580f09a0763a3e258348dea6e02684 /org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main | |
parent | Add enum support (diff) | |
download | refinery-07719e927f9d398765e661c84fd8778cefb39083.tar.gz refinery-07719e927f9d398765e661c84fd8778cefb39083.tar.zst refinery-07719e927f9d398765e661c84fd8778cefb39083.zip |
Simplify project layout
Diffstat (limited to 'org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main')
59 files changed, 0 insertions, 11152 deletions
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/Argument.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/Argument.java deleted file mode 100644 index 4857b38a..00000000 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/Argument.java +++ /dev/null | |||
@@ -1,69 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EObject; | ||
6 | |||
7 | /** | ||
8 | * <!-- begin-user-doc --> | ||
9 | * A representation of the model object '<em><b>Argument</b></em>'. | ||
10 | * <!-- end-user-doc --> | ||
11 | * | ||
12 | * <p> | ||
13 | * The following features are supported: | ||
14 | * </p> | ||
15 | * <ul> | ||
16 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.Argument#getVariableOrNode <em>Variable Or Node</em>}</li> | ||
17 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.Argument#getSingletonVariable <em>Singleton Variable</em>}</li> | ||
18 | * </ul> | ||
19 | * | ||
20 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getArgument() | ||
21 | * @model | ||
22 | * @generated | ||
23 | */ | ||
24 | public interface Argument extends EObject { | ||
25 | /** | ||
26 | * Returns the value of the '<em><b>Variable Or Node</b></em>' reference. | ||
27 | * <!-- begin-user-doc --> | ||
28 | * <!-- end-user-doc --> | ||
29 | * @return the value of the '<em>Variable Or Node</em>' reference. | ||
30 | * @see #setVariableOrNode(VariableOrNode) | ||
31 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getArgument_VariableOrNode() | ||
32 | * @model | ||
33 | * @generated | ||
34 | */ | ||
35 | VariableOrNode getVariableOrNode(); | ||
36 | |||
37 | /** | ||
38 | * Sets the value of the '{@link org.eclipse.viatra.solver.language.model.problem.Argument#getVariableOrNode <em>Variable Or Node</em>}' reference. | ||
39 | * <!-- begin-user-doc --> | ||
40 | * <!-- end-user-doc --> | ||
41 | * @param value the new value of the '<em>Variable Or Node</em>' reference. | ||
42 | * @see #getVariableOrNode() | ||
43 | * @generated | ||
44 | */ | ||
45 | void setVariableOrNode(VariableOrNode value); | ||
46 | |||
47 | /** | ||
48 | * Returns the value of the '<em><b>Singleton Variable</b></em>' containment reference. | ||
49 | * <!-- begin-user-doc --> | ||
50 | * <!-- end-user-doc --> | ||
51 | * @return the value of the '<em>Singleton Variable</em>' containment reference. | ||
52 | * @see #setSingletonVariable(ImplicitVariable) | ||
53 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getArgument_SingletonVariable() | ||
54 | * @model containment="true" | ||
55 | * @generated | ||
56 | */ | ||
57 | ImplicitVariable getSingletonVariable(); | ||
58 | |||
59 | /** | ||
60 | * Sets the value of the '{@link org.eclipse.viatra.solver.language.model.problem.Argument#getSingletonVariable <em>Singleton Variable</em>}' containment reference. | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @param value the new value of the '<em>Singleton Variable</em>' containment reference. | ||
64 | * @see #getSingletonVariable() | ||
65 | * @generated | ||
66 | */ | ||
67 | void setSingletonVariable(ImplicitVariable value); | ||
68 | |||
69 | } // Argument | ||
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/Assertion.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/Assertion.java deleted file mode 100644 index 758212fb..00000000 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/Assertion.java +++ /dev/null | |||
@@ -1,85 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem; | ||
4 | |||
5 | import org.eclipse.emf.common.util.EList; | ||
6 | |||
7 | /** | ||
8 | * <!-- begin-user-doc --> | ||
9 | * A representation of the model object '<em><b>Assertion</b></em>'. | ||
10 | * <!-- end-user-doc --> | ||
11 | * | ||
12 | * <p> | ||
13 | * The following features are supported: | ||
14 | * </p> | ||
15 | * <ul> | ||
16 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.Assertion#getRelation <em>Relation</em>}</li> | ||
17 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.Assertion#getArguments <em>Arguments</em>}</li> | ||
18 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.Assertion#getValue <em>Value</em>}</li> | ||
19 | * </ul> | ||
20 | * | ||
21 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getAssertion() | ||
22 | * @model | ||
23 | * @generated | ||
24 | */ | ||
25 | public interface Assertion extends Statement { | ||
26 | /** | ||
27 | * Returns the value of the '<em><b>Relation</b></em>' reference. | ||
28 | * <!-- begin-user-doc --> | ||
29 | * <!-- end-user-doc --> | ||
30 | * @return the value of the '<em>Relation</em>' reference. | ||
31 | * @see #setRelation(Relation) | ||
32 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getAssertion_Relation() | ||
33 | * @model | ||
34 | * @generated | ||
35 | */ | ||
36 | Relation getRelation(); | ||
37 | |||
38 | /** | ||
39 | * Sets the value of the '{@link org.eclipse.viatra.solver.language.model.problem.Assertion#getRelation <em>Relation</em>}' reference. | ||
40 | * <!-- begin-user-doc --> | ||
41 | * <!-- end-user-doc --> | ||
42 | * @param value the new value of the '<em>Relation</em>' reference. | ||
43 | * @see #getRelation() | ||
44 | * @generated | ||
45 | */ | ||
46 | void setRelation(Relation value); | ||
47 | |||
48 | /** | ||
49 | * Returns the value of the '<em><b>Arguments</b></em>' reference list. | ||
50 | * The list contents are of type {@link org.eclipse.viatra.solver.language.model.problem.Node}. | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @return the value of the '<em>Arguments</em>' reference list. | ||
54 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getAssertion_Arguments() | ||
55 | * @model | ||
56 | * @generated | ||
57 | */ | ||
58 | EList<Node> getArguments(); | ||
59 | |||
60 | /** | ||
61 | * Returns the value of the '<em><b>Value</b></em>' attribute. | ||
62 | * The literals are from the enumeration {@link org.eclipse.viatra.solver.language.model.problem.LogicValue}. | ||
63 | * <!-- begin-user-doc --> | ||
64 | * <!-- end-user-doc --> | ||
65 | * @return the value of the '<em>Value</em>' attribute. | ||
66 | * @see org.eclipse.viatra.solver.language.model.problem.LogicValue | ||
67 | * @see #setValue(LogicValue) | ||
68 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getAssertion_Value() | ||
69 | * @model | ||
70 | * @generated | ||
71 | */ | ||
72 | LogicValue getValue(); | ||
73 | |||
74 | /** | ||
75 | * Sets the value of the '{@link org.eclipse.viatra.solver.language.model.problem.Assertion#getValue <em>Value</em>}' attribute. | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <!-- end-user-doc --> | ||
78 | * @param value the new value of the '<em>Value</em>' attribute. | ||
79 | * @see org.eclipse.viatra.solver.language.model.problem.LogicValue | ||
80 | * @see #getValue() | ||
81 | * @generated | ||
82 | */ | ||
83 | void setValue(LogicValue value); | ||
84 | |||
85 | } // Assertion | ||
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/Atom.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/Atom.java deleted file mode 100644 index d1b4d3fe..00000000 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/Atom.java +++ /dev/null | |||
@@ -1,82 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem; | ||
4 | |||
5 | import org.eclipse.emf.common.util.EList; | ||
6 | |||
7 | /** | ||
8 | * <!-- begin-user-doc --> | ||
9 | * A representation of the model object '<em><b>Atom</b></em>'. | ||
10 | * <!-- end-user-doc --> | ||
11 | * | ||
12 | * <p> | ||
13 | * The following features are supported: | ||
14 | * </p> | ||
15 | * <ul> | ||
16 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.Atom#getRelation <em>Relation</em>}</li> | ||
17 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.Atom#isTransitiveClosure <em>Transitive Closure</em>}</li> | ||
18 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.Atom#getArguments <em>Arguments</em>}</li> | ||
19 | * </ul> | ||
20 | * | ||
21 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getAtom() | ||
22 | * @model | ||
23 | * @generated | ||
24 | */ | ||
25 | public interface Atom extends Literal { | ||
26 | /** | ||
27 | * Returns the value of the '<em><b>Relation</b></em>' reference. | ||
28 | * <!-- begin-user-doc --> | ||
29 | * <!-- end-user-doc --> | ||
30 | * @return the value of the '<em>Relation</em>' reference. | ||
31 | * @see #setRelation(Relation) | ||
32 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getAtom_Relation() | ||
33 | * @model | ||
34 | * @generated | ||
35 | */ | ||
36 | Relation getRelation(); | ||
37 | |||
38 | /** | ||
39 | * Sets the value of the '{@link org.eclipse.viatra.solver.language.model.problem.Atom#getRelation <em>Relation</em>}' reference. | ||
40 | * <!-- begin-user-doc --> | ||
41 | * <!-- end-user-doc --> | ||
42 | * @param value the new value of the '<em>Relation</em>' reference. | ||
43 | * @see #getRelation() | ||
44 | * @generated | ||
45 | */ | ||
46 | void setRelation(Relation value); | ||
47 | |||
48 | /** | ||
49 | * Returns the value of the '<em><b>Arguments</b></em>' containment reference list. | ||
50 | * The list contents are of type {@link org.eclipse.viatra.solver.language.model.problem.Argument}. | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @return the value of the '<em>Arguments</em>' containment reference list. | ||
54 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getAtom_Arguments() | ||
55 | * @model containment="true" | ||
56 | * @generated | ||
57 | */ | ||
58 | EList<Argument> getArguments(); | ||
59 | |||
60 | /** | ||
61 | * Returns the value of the '<em><b>Transitive Closure</b></em>' attribute. | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @return the value of the '<em>Transitive Closure</em>' attribute. | ||
65 | * @see #setTransitiveClosure(boolean) | ||
66 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getAtom_TransitiveClosure() | ||
67 | * @model | ||
68 | * @generated | ||
69 | */ | ||
70 | boolean isTransitiveClosure(); | ||
71 | |||
72 | /** | ||
73 | * Sets the value of the '{@link org.eclipse.viatra.solver.language.model.problem.Atom#isTransitiveClosure <em>Transitive Closure</em>}' attribute. | ||
74 | * <!-- begin-user-doc --> | ||
75 | * <!-- end-user-doc --> | ||
76 | * @param value the new value of the '<em>Transitive Closure</em>' attribute. | ||
77 | * @see #isTransitiveClosure() | ||
78 | * @generated | ||
79 | */ | ||
80 | void setTransitiveClosure(boolean value); | ||
81 | |||
82 | } // Atom | ||
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/ClassDeclaration.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/ClassDeclaration.java deleted file mode 100644 index d0f471be..00000000 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/ClassDeclaration.java +++ /dev/null | |||
@@ -1,95 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem; | ||
4 | |||
5 | import org.eclipse.emf.common.util.EList; | ||
6 | |||
7 | /** | ||
8 | * <!-- begin-user-doc --> | ||
9 | * A representation of the model object '<em><b>Class Declaration</b></em>'. | ||
10 | * <!-- end-user-doc --> | ||
11 | * | ||
12 | * <p> | ||
13 | * The following features are supported: | ||
14 | * </p> | ||
15 | * <ul> | ||
16 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.ClassDeclaration#isAbstract <em>Abstract</em>}</li> | ||
17 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.ClassDeclaration#getSuperTypes <em>Super Types</em>}</li> | ||
18 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.ClassDeclaration#getReferenceDeclarations <em>Reference Declarations</em>}</li> | ||
19 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.ClassDeclaration#getNewNode <em>New Node</em>}</li> | ||
20 | * </ul> | ||
21 | * | ||
22 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getClassDeclaration() | ||
23 | * @model | ||
24 | * @generated | ||
25 | */ | ||
26 | public interface ClassDeclaration extends Relation, Statement { | ||
27 | /** | ||
28 | * Returns the value of the '<em><b>Abstract</b></em>' attribute. | ||
29 | * <!-- begin-user-doc --> | ||
30 | * <!-- end-user-doc --> | ||
31 | * @return the value of the '<em>Abstract</em>' attribute. | ||
32 | * @see #setAbstract(boolean) | ||
33 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getClassDeclaration_Abstract() | ||
34 | * @model | ||
35 | * @generated | ||
36 | */ | ||
37 | boolean isAbstract(); | ||
38 | |||
39 | /** | ||
40 | * Sets the value of the '{@link org.eclipse.viatra.solver.language.model.problem.ClassDeclaration#isAbstract <em>Abstract</em>}' attribute. | ||
41 | * <!-- begin-user-doc --> | ||
42 | * <!-- end-user-doc --> | ||
43 | * @param value the new value of the '<em>Abstract</em>' attribute. | ||
44 | * @see #isAbstract() | ||
45 | * @generated | ||
46 | */ | ||
47 | void setAbstract(boolean value); | ||
48 | |||
49 | /** | ||
50 | * Returns the value of the '<em><b>Super Types</b></em>' reference list. | ||
51 | * The list contents are of type {@link org.eclipse.viatra.solver.language.model.problem.Relation}. | ||
52 | * <!-- begin-user-doc --> | ||
53 | * <!-- end-user-doc --> | ||
54 | * @return the value of the '<em>Super Types</em>' reference list. | ||
55 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getClassDeclaration_SuperTypes() | ||
56 | * @model | ||
57 | * @generated | ||
58 | */ | ||
59 | EList<Relation> getSuperTypes(); | ||
60 | |||
61 | /** | ||
62 | * Returns the value of the '<em><b>Reference Declarations</b></em>' containment reference list. | ||
63 | * The list contents are of type {@link org.eclipse.viatra.solver.language.model.problem.ReferenceDeclaration}. | ||
64 | * <!-- begin-user-doc --> | ||
65 | * <!-- end-user-doc --> | ||
66 | * @return the value of the '<em>Reference Declarations</em>' containment reference list. | ||
67 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getClassDeclaration_ReferenceDeclarations() | ||
68 | * @model containment="true" | ||
69 | * @generated | ||
70 | */ | ||
71 | EList<ReferenceDeclaration> getReferenceDeclarations(); | ||
72 | |||
73 | /** | ||
74 | * Returns the value of the '<em><b>New Node</b></em>' containment reference. | ||
75 | * <!-- begin-user-doc --> | ||
76 | * <!-- end-user-doc --> | ||
77 | * @return the value of the '<em>New Node</em>' containment reference. | ||
78 | * @see #setNewNode(Node) | ||
79 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getClassDeclaration_NewNode() | ||
80 | * @model containment="true" | ||
81 | * @generated | ||
82 | */ | ||
83 | Node getNewNode(); | ||
84 | |||
85 | /** | ||
86 | * Sets the value of the '{@link org.eclipse.viatra.solver.language.model.problem.ClassDeclaration#getNewNode <em>New Node</em>}' containment reference. | ||
87 | * <!-- begin-user-doc --> | ||
88 | * <!-- end-user-doc --> | ||
89 | * @param value the new value of the '<em>New Node</em>' containment reference. | ||
90 | * @see #getNewNode() | ||
91 | * @generated | ||
92 | */ | ||
93 | void setNewNode(Node value); | ||
94 | |||
95 | } // ClassDeclaration | ||
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/Conjunction.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/Conjunction.java deleted file mode 100644 index df8e0cef..00000000 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/Conjunction.java +++ /dev/null | |||
@@ -1,36 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem; | ||
4 | |||
5 | import org.eclipse.emf.common.util.EList; | ||
6 | |||
7 | /** | ||
8 | * <!-- begin-user-doc --> | ||
9 | * A representation of the model object '<em><b>Conjunction</b></em>'. | ||
10 | * <!-- end-user-doc --> | ||
11 | * | ||
12 | * <p> | ||
13 | * The following features are supported: | ||
14 | * </p> | ||
15 | * <ul> | ||
16 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.Conjunction#getLiterals <em>Literals</em>}</li> | ||
17 | * </ul> | ||
18 | * | ||
19 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getConjunction() | ||
20 | * @model | ||
21 | * @generated | ||
22 | */ | ||
23 | public interface Conjunction extends ExistentialQuantifier { | ||
24 | /** | ||
25 | * Returns the value of the '<em><b>Literals</b></em>' containment reference list. | ||
26 | * The list contents are of type {@link org.eclipse.viatra.solver.language.model.problem.Literal}. | ||
27 | * <!-- begin-user-doc --> | ||
28 | * <!-- end-user-doc --> | ||
29 | * @return the value of the '<em>Literals</em>' containment reference list. | ||
30 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getConjunction_Literals() | ||
31 | * @model containment="true" | ||
32 | * @generated | ||
33 | */ | ||
34 | EList<Literal> getLiterals(); | ||
35 | |||
36 | } // Conjunction | ||
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/EnumDeclaration.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/EnumDeclaration.java deleted file mode 100644 index 81f2967d..00000000 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/EnumDeclaration.java +++ /dev/null | |||
@@ -1,36 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem; | ||
4 | |||
5 | import org.eclipse.emf.common.util.EList; | ||
6 | |||
7 | /** | ||
8 | * <!-- begin-user-doc --> | ||
9 | * A representation of the model object '<em><b>Enum Declaration</b></em>'. | ||
10 | * <!-- end-user-doc --> | ||
11 | * | ||
12 | * <p> | ||
13 | * The following features are supported: | ||
14 | * </p> | ||
15 | * <ul> | ||
16 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.EnumDeclaration#getLiterals <em>Literals</em>}</li> | ||
17 | * </ul> | ||
18 | * | ||
19 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getEnumDeclaration() | ||
20 | * @model | ||
21 | * @generated | ||
22 | */ | ||
23 | public interface EnumDeclaration extends Relation, Statement { | ||
24 | /** | ||
25 | * Returns the value of the '<em><b>Literals</b></em>' containment reference list. | ||
26 | * The list contents are of type {@link org.eclipse.viatra.solver.language.model.problem.Node}. | ||
27 | * <!-- begin-user-doc --> | ||
28 | * <!-- end-user-doc --> | ||
29 | * @return the value of the '<em>Literals</em>' containment reference list. | ||
30 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getEnumDeclaration_Literals() | ||
31 | * @model containment="true" | ||
32 | * @generated | ||
33 | */ | ||
34 | EList<Node> getLiterals(); | ||
35 | |||
36 | } // EnumDeclaration | ||
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/ExactMultiplicity.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/ExactMultiplicity.java deleted file mode 100644 index 413c2ad1..00000000 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/ExactMultiplicity.java +++ /dev/null | |||
@@ -1,45 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem; | ||
4 | |||
5 | /** | ||
6 | * <!-- begin-user-doc --> | ||
7 | * A representation of the model object '<em><b>Exact Multiplicity</b></em>'. | ||
8 | * <!-- end-user-doc --> | ||
9 | * | ||
10 | * <p> | ||
11 | * The following features are supported: | ||
12 | * </p> | ||
13 | * <ul> | ||
14 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.ExactMultiplicity#getExactValue <em>Exact Value</em>}</li> | ||
15 | * </ul> | ||
16 | * | ||
17 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getExactMultiplicity() | ||
18 | * @model | ||
19 | * @generated | ||
20 | */ | ||
21 | public interface ExactMultiplicity extends Multiplicity { | ||
22 | /** | ||
23 | * Returns the value of the '<em><b>Exact Value</b></em>' attribute. | ||
24 | * The default value is <code>"1"</code>. | ||
25 | * <!-- begin-user-doc --> | ||
26 | * <!-- end-user-doc --> | ||
27 | * @return the value of the '<em>Exact Value</em>' attribute. | ||
28 | * @see #setExactValue(int) | ||
29 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getExactMultiplicity_ExactValue() | ||
30 | * @model default="1" | ||
31 | * @generated | ||
32 | */ | ||
33 | int getExactValue(); | ||
34 | |||
35 | /** | ||
36 | * Sets the value of the '{@link org.eclipse.viatra.solver.language.model.problem.ExactMultiplicity#getExactValue <em>Exact Value</em>}' attribute. | ||
37 | * <!-- begin-user-doc --> | ||
38 | * <!-- end-user-doc --> | ||
39 | * @param value the new value of the '<em>Exact Value</em>' attribute. | ||
40 | * @see #getExactValue() | ||
41 | * @generated | ||
42 | */ | ||
43 | void setExactValue(int value); | ||
44 | |||
45 | } // ExactMultiplicity | ||
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/ExistentialQuantifier.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/ExistentialQuantifier.java deleted file mode 100644 index 1a1d5f8a..00000000 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/ExistentialQuantifier.java +++ /dev/null | |||
@@ -1,38 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem; | ||
4 | |||
5 | import org.eclipse.emf.common.util.EList; | ||
6 | |||
7 | import org.eclipse.emf.ecore.EObject; | ||
8 | |||
9 | /** | ||
10 | * <!-- begin-user-doc --> | ||
11 | * A representation of the model object '<em><b>Existential Quantifier</b></em>'. | ||
12 | * <!-- end-user-doc --> | ||
13 | * | ||
14 | * <p> | ||
15 | * The following features are supported: | ||
16 | * </p> | ||
17 | * <ul> | ||
18 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.ExistentialQuantifier#getImplicitVariables <em>Implicit Variables</em>}</li> | ||
19 | * </ul> | ||
20 | * | ||
21 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getExistentialQuantifier() | ||
22 | * @model interface="true" abstract="true" | ||
23 | * @generated | ||
24 | */ | ||
25 | public interface ExistentialQuantifier extends EObject { | ||
26 | /** | ||
27 | * Returns the value of the '<em><b>Implicit Variables</b></em>' containment reference list. | ||
28 | * The list contents are of type {@link org.eclipse.viatra.solver.language.model.problem.ImplicitVariable}. | ||
29 | * <!-- begin-user-doc --> | ||
30 | * <!-- end-user-doc --> | ||
31 | * @return the value of the '<em>Implicit Variables</em>' containment reference list. | ||
32 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getExistentialQuantifier_ImplicitVariables() | ||
33 | * @model containment="true" | ||
34 | * @generated | ||
35 | */ | ||
36 | EList<ImplicitVariable> getImplicitVariables(); | ||
37 | |||
38 | } // ExistentialQuantifier | ||
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/ImplicitVariable.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/ImplicitVariable.java deleted file mode 100644 index 6d1793c6..00000000 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/ImplicitVariable.java +++ /dev/null | |||
@@ -1,16 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem; | ||
4 | |||
5 | /** | ||
6 | * <!-- begin-user-doc --> | ||
7 | * A representation of the model object '<em><b>Implicit Variable</b></em>'. | ||
8 | * <!-- end-user-doc --> | ||
9 | * | ||
10 | * | ||
11 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getImplicitVariable() | ||
12 | * @model | ||
13 | * @generated | ||
14 | */ | ||
15 | public interface ImplicitVariable extends Variable { | ||
16 | } // ImplicitVariable | ||
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/Literal.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/Literal.java deleted file mode 100644 index acccf79b..00000000 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/Literal.java +++ /dev/null | |||
@@ -1,18 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EObject; | ||
6 | |||
7 | /** | ||
8 | * <!-- begin-user-doc --> | ||
9 | * A representation of the model object '<em><b>Literal</b></em>'. | ||
10 | * <!-- end-user-doc --> | ||
11 | * | ||
12 | * | ||
13 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getLiteral() | ||
14 | * @model abstract="true" | ||
15 | * @generated | ||
16 | */ | ||
17 | public interface Literal extends EObject { | ||
18 | } // Literal | ||
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/LogicValue.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/LogicValue.java deleted file mode 100644 index 2efbd25a..00000000 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/LogicValue.java +++ /dev/null | |||
@@ -1,227 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem; | ||
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>Logic Value</b></em>', | ||
14 | * and utility methods for working with them. | ||
15 | * <!-- end-user-doc --> | ||
16 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getLogicValue() | ||
17 | * @model | ||
18 | * @generated | ||
19 | */ | ||
20 | public enum LogicValue implements Enumerator { | ||
21 | /** | ||
22 | * The '<em><b>TRUE</b></em>' literal object. | ||
23 | * <!-- begin-user-doc --> | ||
24 | * <!-- end-user-doc --> | ||
25 | * @see #TRUE_VALUE | ||
26 | * @generated | ||
27 | * @ordered | ||
28 | */ | ||
29 | TRUE(0, "TRUE", "TRUE"), | ||
30 | |||
31 | /** | ||
32 | * The '<em><b>FALSE</b></em>' literal object. | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @see #FALSE_VALUE | ||
36 | * @generated | ||
37 | * @ordered | ||
38 | */ | ||
39 | FALSE(1, "FALSE", "FALSE"), | ||
40 | |||
41 | /** | ||
42 | * The '<em><b>UNKNOWN</b></em>' literal object. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @see #UNKNOWN_VALUE | ||
46 | * @generated | ||
47 | * @ordered | ||
48 | */ | ||
49 | UNKNOWN(2, "UNKNOWN", "UNKNOWN"); | ||
50 | |||
51 | /** | ||
52 | * The '<em><b>TRUE</b></em>' literal value. | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @see #TRUE | ||
56 | * @model | ||
57 | * @generated | ||
58 | * @ordered | ||
59 | */ | ||
60 | public static final int TRUE_VALUE = 0; | ||
61 | |||
62 | /** | ||
63 | * The '<em><b>FALSE</b></em>' literal value. | ||
64 | * <!-- begin-user-doc --> | ||
65 | * <!-- end-user-doc --> | ||
66 | * @see #FALSE | ||
67 | * @model | ||
68 | * @generated | ||
69 | * @ordered | ||
70 | */ | ||
71 | public static final int FALSE_VALUE = 1; | ||
72 | |||
73 | /** | ||
74 | * The '<em><b>UNKNOWN</b></em>' literal value. | ||
75 | * <!-- begin-user-doc --> | ||
76 | * <!-- end-user-doc --> | ||
77 | * @see #UNKNOWN | ||
78 | * @model | ||
79 | * @generated | ||
80 | * @ordered | ||
81 | */ | ||
82 | public static final int UNKNOWN_VALUE = 2; | ||
83 | |||
84 | /** | ||
85 | * An array of all the '<em><b>Logic Value</b></em>' enumerators. | ||
86 | * <!-- begin-user-doc --> | ||
87 | * <!-- end-user-doc --> | ||
88 | * @generated | ||
89 | */ | ||
90 | private static final LogicValue[] VALUES_ARRAY = new LogicValue[] { TRUE, FALSE, UNKNOWN, }; | ||
91 | |||
92 | /** | ||
93 | * A public read-only list of all the '<em><b>Logic Value</b></em>' enumerators. | ||
94 | * <!-- begin-user-doc --> | ||
95 | * <!-- end-user-doc --> | ||
96 | * @generated | ||
97 | */ | ||
98 | public static final List<LogicValue> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); | ||
99 | |||
100 | /** | ||
101 | * Returns the '<em><b>Logic Value</b></em>' literal with the specified literal value. | ||
102 | * <!-- begin-user-doc --> | ||
103 | * <!-- end-user-doc --> | ||
104 | * @param literal the literal. | ||
105 | * @return the matching enumerator or <code>null</code>. | ||
106 | * @generated | ||
107 | */ | ||
108 | public static LogicValue get(String literal) { | ||
109 | for (int i = 0; i < VALUES_ARRAY.length; ++i) { | ||
110 | LogicValue result = VALUES_ARRAY[i]; | ||
111 | if (result.toString().equals(literal)) { | ||
112 | return result; | ||
113 | } | ||
114 | } | ||
115 | return null; | ||
116 | } | ||
117 | |||
118 | /** | ||
119 | * Returns the '<em><b>Logic Value</b></em>' literal with the specified name. | ||
120 | * <!-- begin-user-doc --> | ||
121 | * <!-- end-user-doc --> | ||
122 | * @param name the name. | ||
123 | * @return the matching enumerator or <code>null</code>. | ||
124 | * @generated | ||
125 | */ | ||
126 | public static LogicValue getByName(String name) { | ||
127 | for (int i = 0; i < VALUES_ARRAY.length; ++i) { | ||
128 | LogicValue result = VALUES_ARRAY[i]; | ||
129 | if (result.getName().equals(name)) { | ||
130 | return result; | ||
131 | } | ||
132 | } | ||
133 | return null; | ||
134 | } | ||
135 | |||
136 | /** | ||
137 | * Returns the '<em><b>Logic Value</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 LogicValue get(int value) { | ||
145 | switch (value) { | ||
146 | case TRUE_VALUE: | ||
147 | return TRUE; | ||
148 | case FALSE_VALUE: | ||
149 | return FALSE; | ||
150 | case UNKNOWN_VALUE: | ||
151 | return UNKNOWN; | ||
152 | } | ||
153 | return null; | ||
154 | } | ||
155 | |||
156 | /** | ||
157 | * <!-- begin-user-doc --> | ||
158 | * <!-- end-user-doc --> | ||
159 | * @generated | ||
160 | */ | ||
161 | private final int value; | ||
162 | |||
163 | /** | ||
164 | * <!-- begin-user-doc --> | ||
165 | * <!-- end-user-doc --> | ||
166 | * @generated | ||
167 | */ | ||
168 | private final String name; | ||
169 | |||
170 | /** | ||
171 | * <!-- begin-user-doc --> | ||
172 | * <!-- end-user-doc --> | ||
173 | * @generated | ||
174 | */ | ||
175 | private final String literal; | ||
176 | |||
177 | /** | ||
178 | * Only this class can construct instances. | ||
179 | * <!-- begin-user-doc --> | ||
180 | * <!-- end-user-doc --> | ||
181 | * @generated | ||
182 | */ | ||
183 | private LogicValue(int value, String name, String literal) { | ||
184 | this.value = value; | ||
185 | this.name = name; | ||
186 | this.literal = literal; | ||
187 | } | ||
188 | |||
189 | /** | ||
190 | * <!-- begin-user-doc --> | ||
191 | * <!-- end-user-doc --> | ||
192 | * @generated | ||
193 | */ | ||
194 | public int getValue() { | ||
195 | return value; | ||
196 | } | ||
197 | |||
198 | /** | ||
199 | * <!-- begin-user-doc --> | ||
200 | * <!-- end-user-doc --> | ||
201 | * @generated | ||
202 | */ | ||
203 | public String getName() { | ||
204 | return name; | ||
205 | } | ||
206 | |||
207 | /** | ||
208 | * <!-- begin-user-doc --> | ||
209 | * <!-- end-user-doc --> | ||
210 | * @generated | ||
211 | */ | ||
212 | public String getLiteral() { | ||
213 | return literal; | ||
214 | } | ||
215 | |||
216 | /** | ||
217 | * Returns the literal value of the enumerator, which is its string representation. | ||
218 | * <!-- begin-user-doc --> | ||
219 | * <!-- end-user-doc --> | ||
220 | * @generated | ||
221 | */ | ||
222 | @Override | ||
223 | public String toString() { | ||
224 | return literal; | ||
225 | } | ||
226 | |||
227 | } //LogicValue | ||
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/Multiplicity.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/Multiplicity.java deleted file mode 100644 index d3d573fa..00000000 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/Multiplicity.java +++ /dev/null | |||
@@ -1,18 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EObject; | ||
6 | |||
7 | /** | ||
8 | * <!-- begin-user-doc --> | ||
9 | * A representation of the model object '<em><b>Multiplicity</b></em>'. | ||
10 | * <!-- end-user-doc --> | ||
11 | * | ||
12 | * | ||
13 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getMultiplicity() | ||
14 | * @model abstract="true" | ||
15 | * @generated | ||
16 | */ | ||
17 | public interface Multiplicity extends EObject { | ||
18 | } // Multiplicity | ||
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/NamedElement.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/NamedElement.java deleted file mode 100644 index 3302b041..00000000 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/NamedElement.java +++ /dev/null | |||
@@ -1,46 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EObject; | ||
6 | |||
7 | /** | ||
8 | * <!-- begin-user-doc --> | ||
9 | * A representation of the model object '<em><b>Named Element</b></em>'. | ||
10 | * <!-- end-user-doc --> | ||
11 | * | ||
12 | * <p> | ||
13 | * The following features are supported: | ||
14 | * </p> | ||
15 | * <ul> | ||
16 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.NamedElement#getName <em>Name</em>}</li> | ||
17 | * </ul> | ||
18 | * | ||
19 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getNamedElement() | ||
20 | * @model abstract="true" | ||
21 | * @generated | ||
22 | */ | ||
23 | public interface NamedElement extends EObject { | ||
24 | /** | ||
25 | * Returns the value of the '<em><b>Name</b></em>' attribute. | ||
26 | * <!-- begin-user-doc --> | ||
27 | * <!-- end-user-doc --> | ||
28 | * @return the value of the '<em>Name</em>' attribute. | ||
29 | * @see #setName(String) | ||
30 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getNamedElement_Name() | ||
31 | * @model | ||
32 | * @generated | ||
33 | */ | ||
34 | String getName(); | ||
35 | |||
36 | /** | ||
37 | * Sets the value of the '{@link org.eclipse.viatra.solver.language.model.problem.NamedElement#getName <em>Name</em>}' attribute. | ||
38 | * <!-- begin-user-doc --> | ||
39 | * <!-- end-user-doc --> | ||
40 | * @param value the new value of the '<em>Name</em>' attribute. | ||
41 | * @see #getName() | ||
42 | * @generated | ||
43 | */ | ||
44 | void setName(String value); | ||
45 | |||
46 | } // NamedElement | ||
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/NegativeLiteral.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/NegativeLiteral.java deleted file mode 100644 index ac3aa2b9..00000000 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/NegativeLiteral.java +++ /dev/null | |||
@@ -1,44 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem; | ||
4 | |||
5 | /** | ||
6 | * <!-- begin-user-doc --> | ||
7 | * A representation of the model object '<em><b>Negative Literal</b></em>'. | ||
8 | * <!-- end-user-doc --> | ||
9 | * | ||
10 | * <p> | ||
11 | * The following features are supported: | ||
12 | * </p> | ||
13 | * <ul> | ||
14 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.NegativeLiteral#getAtom <em>Atom</em>}</li> | ||
15 | * </ul> | ||
16 | * | ||
17 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getNegativeLiteral() | ||
18 | * @model | ||
19 | * @generated | ||
20 | */ | ||
21 | public interface NegativeLiteral extends ExistentialQuantifier, Literal { | ||
22 | /** | ||
23 | * Returns the value of the '<em><b>Atom</b></em>' containment reference. | ||
24 | * <!-- begin-user-doc --> | ||
25 | * <!-- end-user-doc --> | ||
26 | * @return the value of the '<em>Atom</em>' containment reference. | ||
27 | * @see #setAtom(Atom) | ||
28 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getNegativeLiteral_Atom() | ||
29 | * @model containment="true" | ||
30 | * @generated | ||
31 | */ | ||
32 | Atom getAtom(); | ||
33 | |||
34 | /** | ||
35 | * Sets the value of the '{@link org.eclipse.viatra.solver.language.model.problem.NegativeLiteral#getAtom <em>Atom</em>}' containment reference. | ||
36 | * <!-- begin-user-doc --> | ||
37 | * <!-- end-user-doc --> | ||
38 | * @param value the new value of the '<em>Atom</em>' containment reference. | ||
39 | * @see #getAtom() | ||
40 | * @generated | ||
41 | */ | ||
42 | void setAtom(Atom value); | ||
43 | |||
44 | } // NegativeLiteral | ||
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/Node.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/Node.java deleted file mode 100644 index 3da08af3..00000000 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/Node.java +++ /dev/null | |||
@@ -1,16 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem; | ||
4 | |||
5 | /** | ||
6 | * <!-- begin-user-doc --> | ||
7 | * A representation of the model object '<em><b>Node</b></em>'. | ||
8 | * <!-- end-user-doc --> | ||
9 | * | ||
10 | * | ||
11 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getNode() | ||
12 | * @model | ||
13 | * @generated | ||
14 | */ | ||
15 | public interface Node extends VariableOrNode { | ||
16 | } // Node | ||
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/Parameter.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/Parameter.java deleted file mode 100644 index 7bedca1b..00000000 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/Parameter.java +++ /dev/null | |||
@@ -1,44 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem; | ||
4 | |||
5 | /** | ||
6 | * <!-- begin-user-doc --> | ||
7 | * A representation of the model object '<em><b>Parameter</b></em>'. | ||
8 | * <!-- end-user-doc --> | ||
9 | * | ||
10 | * <p> | ||
11 | * The following features are supported: | ||
12 | * </p> | ||
13 | * <ul> | ||
14 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.Parameter#getParameterType <em>Parameter Type</em>}</li> | ||
15 | * </ul> | ||
16 | * | ||
17 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getParameter() | ||
18 | * @model | ||
19 | * @generated | ||
20 | */ | ||
21 | public interface Parameter extends Variable { | ||
22 | /** | ||
23 | * Returns the value of the '<em><b>Parameter Type</b></em>' reference. | ||
24 | * <!-- begin-user-doc --> | ||
25 | * <!-- end-user-doc --> | ||
26 | * @return the value of the '<em>Parameter Type</em>' reference. | ||
27 | * @see #setParameterType(Relation) | ||
28 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getParameter_ParameterType() | ||
29 | * @model | ||
30 | * @generated | ||
31 | */ | ||
32 | Relation getParameterType(); | ||
33 | |||
34 | /** | ||
35 | * Sets the value of the '{@link org.eclipse.viatra.solver.language.model.problem.Parameter#getParameterType <em>Parameter Type</em>}' reference. | ||
36 | * <!-- begin-user-doc --> | ||
37 | * <!-- end-user-doc --> | ||
38 | * @param value the new value of the '<em>Parameter Type</em>' reference. | ||
39 | * @see #getParameterType() | ||
40 | * @generated | ||
41 | */ | ||
42 | void setParameterType(Relation value); | ||
43 | |||
44 | } // Parameter | ||
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/PredicateDefinition.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/PredicateDefinition.java deleted file mode 100644 index 175d5fff..00000000 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/PredicateDefinition.java +++ /dev/null | |||
@@ -1,72 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem; | ||
4 | |||
5 | import org.eclipse.emf.common.util.EList; | ||
6 | |||
7 | /** | ||
8 | * <!-- begin-user-doc --> | ||
9 | * A representation of the model object '<em><b>Predicate Definition</b></em>'. | ||
10 | * <!-- end-user-doc --> | ||
11 | * | ||
12 | * <p> | ||
13 | * The following features are supported: | ||
14 | * </p> | ||
15 | * <ul> | ||
16 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.PredicateDefinition#isError <em>Error</em>}</li> | ||
17 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.PredicateDefinition#getParameters <em>Parameters</em>}</li> | ||
18 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.PredicateDefinition#getBodies <em>Bodies</em>}</li> | ||
19 | * </ul> | ||
20 | * | ||
21 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getPredicateDefinition() | ||
22 | * @model | ||
23 | * @generated | ||
24 | */ | ||
25 | public interface PredicateDefinition extends Relation, Statement { | ||
26 | /** | ||
27 | * Returns the value of the '<em><b>Error</b></em>' attribute. | ||
28 | * <!-- begin-user-doc --> | ||
29 | * <!-- end-user-doc --> | ||
30 | * @return the value of the '<em>Error</em>' attribute. | ||
31 | * @see #setError(boolean) | ||
32 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getPredicateDefinition_Error() | ||
33 | * @model | ||
34 | * @generated | ||
35 | */ | ||
36 | boolean isError(); | ||
37 | |||
38 | /** | ||
39 | * Sets the value of the '{@link org.eclipse.viatra.solver.language.model.problem.PredicateDefinition#isError <em>Error</em>}' attribute. | ||
40 | * <!-- begin-user-doc --> | ||
41 | * <!-- end-user-doc --> | ||
42 | * @param value the new value of the '<em>Error</em>' attribute. | ||
43 | * @see #isError() | ||
44 | * @generated | ||
45 | */ | ||
46 | void setError(boolean value); | ||
47 | |||
48 | /** | ||
49 | * Returns the value of the '<em><b>Parameters</b></em>' containment reference list. | ||
50 | * The list contents are of type {@link org.eclipse.viatra.solver.language.model.problem.Parameter}. | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @return the value of the '<em>Parameters</em>' containment reference list. | ||
54 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getPredicateDefinition_Parameters() | ||
55 | * @model containment="true" | ||
56 | * @generated | ||
57 | */ | ||
58 | EList<Parameter> getParameters(); | ||
59 | |||
60 | /** | ||
61 | * Returns the value of the '<em><b>Bodies</b></em>' containment reference list. | ||
62 | * The list contents are of type {@link org.eclipse.viatra.solver.language.model.problem.Conjunction}. | ||
63 | * <!-- begin-user-doc --> | ||
64 | * <!-- end-user-doc --> | ||
65 | * @return the value of the '<em>Bodies</em>' containment reference list. | ||
66 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getPredicateDefinition_Bodies() | ||
67 | * @model containment="true" | ||
68 | * @generated | ||
69 | */ | ||
70 | EList<Conjunction> getBodies(); | ||
71 | |||
72 | } // PredicateDefinition | ||
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/Problem.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/Problem.java deleted file mode 100644 index 7e19bd22..00000000 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/Problem.java +++ /dev/null | |||
@@ -1,49 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem; | ||
4 | |||
5 | import org.eclipse.emf.common.util.EList; | ||
6 | |||
7 | /** | ||
8 | * <!-- begin-user-doc --> | ||
9 | * A representation of the model object '<em><b>Problem</b></em>'. | ||
10 | * <!-- end-user-doc --> | ||
11 | * | ||
12 | * <p> | ||
13 | * The following features are supported: | ||
14 | * </p> | ||
15 | * <ul> | ||
16 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.Problem#getNodes <em>Nodes</em>}</li> | ||
17 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.Problem#getStatements <em>Statements</em>}</li> | ||
18 | * </ul> | ||
19 | * | ||
20 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getProblem() | ||
21 | * @model | ||
22 | * @generated | ||
23 | */ | ||
24 | public interface Problem extends NamedElement { | ||
25 | /** | ||
26 | * Returns the value of the '<em><b>Nodes</b></em>' containment reference list. | ||
27 | * The list contents are of type {@link org.eclipse.viatra.solver.language.model.problem.Node}. | ||
28 | * <!-- begin-user-doc --> | ||
29 | * <!-- end-user-doc --> | ||
30 | * @return the value of the '<em>Nodes</em>' containment reference list. | ||
31 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getProblem_Nodes() | ||
32 | * @model containment="true" | ||
33 | * @generated | ||
34 | */ | ||
35 | EList<Node> getNodes(); | ||
36 | |||
37 | /** | ||
38 | * Returns the value of the '<em><b>Statements</b></em>' containment reference list. | ||
39 | * The list contents are of type {@link org.eclipse.viatra.solver.language.model.problem.Statement}. | ||
40 | * <!-- begin-user-doc --> | ||
41 | * <!-- end-user-doc --> | ||
42 | * @return the value of the '<em>Statements</em>' containment reference list. | ||
43 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getProblem_Statements() | ||
44 | * @model containment="true" | ||
45 | * @generated | ||
46 | */ | ||
47 | EList<Statement> getStatements(); | ||
48 | |||
49 | } // Problem | ||
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/ProblemFactory.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/ProblemFactory.java deleted file mode 100644 index e4332d19..00000000 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/ProblemFactory.java +++ /dev/null | |||
@@ -1,195 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EFactory; | ||
6 | |||
7 | /** | ||
8 | * <!-- begin-user-doc --> | ||
9 | * The <b>Factory</b> for the model. | ||
10 | * It provides a create method for each non-abstract class of the model. | ||
11 | * <!-- end-user-doc --> | ||
12 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage | ||
13 | * @generated | ||
14 | */ | ||
15 | public interface ProblemFactory extends EFactory { | ||
16 | /** | ||
17 | * The singleton instance of the factory. | ||
18 | * <!-- begin-user-doc --> | ||
19 | * <!-- end-user-doc --> | ||
20 | * @generated | ||
21 | */ | ||
22 | ProblemFactory eINSTANCE = org.eclipse.viatra.solver.language.model.problem.impl.ProblemFactoryImpl.init(); | ||
23 | |||
24 | /** | ||
25 | * Returns a new object of class '<em>Problem</em>'. | ||
26 | * <!-- begin-user-doc --> | ||
27 | * <!-- end-user-doc --> | ||
28 | * @return a new object of class '<em>Problem</em>'. | ||
29 | * @generated | ||
30 | */ | ||
31 | Problem createProblem(); | ||
32 | |||
33 | /** | ||
34 | * Returns a new object of class '<em>Class Declaration</em>'. | ||
35 | * <!-- begin-user-doc --> | ||
36 | * <!-- end-user-doc --> | ||
37 | * @return a new object of class '<em>Class Declaration</em>'. | ||
38 | * @generated | ||
39 | */ | ||
40 | ClassDeclaration createClassDeclaration(); | ||
41 | |||
42 | /** | ||
43 | * Returns a new object of class '<em>Reference Declaration</em>'. | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @return a new object of class '<em>Reference Declaration</em>'. | ||
47 | * @generated | ||
48 | */ | ||
49 | ReferenceDeclaration createReferenceDeclaration(); | ||
50 | |||
51 | /** | ||
52 | * Returns a new object of class '<em>Predicate Definition</em>'. | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @return a new object of class '<em>Predicate Definition</em>'. | ||
56 | * @generated | ||
57 | */ | ||
58 | PredicateDefinition createPredicateDefinition(); | ||
59 | |||
60 | /** | ||
61 | * Returns a new object of class '<em>Parameter</em>'. | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @return a new object of class '<em>Parameter</em>'. | ||
65 | * @generated | ||
66 | */ | ||
67 | Parameter createParameter(); | ||
68 | |||
69 | /** | ||
70 | * Returns a new object of class '<em>Conjunction</em>'. | ||
71 | * <!-- begin-user-doc --> | ||
72 | * <!-- end-user-doc --> | ||
73 | * @return a new object of class '<em>Conjunction</em>'. | ||
74 | * @generated | ||
75 | */ | ||
76 | Conjunction createConjunction(); | ||
77 | |||
78 | /** | ||
79 | * Returns a new object of class '<em>Atom</em>'. | ||
80 | * <!-- begin-user-doc --> | ||
81 | * <!-- end-user-doc --> | ||
82 | * @return a new object of class '<em>Atom</em>'. | ||
83 | * @generated | ||
84 | */ | ||
85 | Atom createAtom(); | ||
86 | |||
87 | /** | ||
88 | * Returns a new object of class '<em>Implicit Variable</em>'. | ||
89 | * <!-- begin-user-doc --> | ||
90 | * <!-- end-user-doc --> | ||
91 | * @return a new object of class '<em>Implicit Variable</em>'. | ||
92 | * @generated | ||
93 | */ | ||
94 | ImplicitVariable createImplicitVariable(); | ||
95 | |||
96 | /** | ||
97 | * Returns a new object of class '<em>Negative Literal</em>'. | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @return a new object of class '<em>Negative Literal</em>'. | ||
101 | * @generated | ||
102 | */ | ||
103 | NegativeLiteral createNegativeLiteral(); | ||
104 | |||
105 | /** | ||
106 | * Returns a new object of class '<em>Assertion</em>'. | ||
107 | * <!-- begin-user-doc --> | ||
108 | * <!-- end-user-doc --> | ||
109 | * @return a new object of class '<em>Assertion</em>'. | ||
110 | * @generated | ||
111 | */ | ||
112 | Assertion createAssertion(); | ||
113 | |||
114 | /** | ||
115 | * Returns a new object of class '<em>Node</em>'. | ||
116 | * <!-- begin-user-doc --> | ||
117 | * <!-- end-user-doc --> | ||
118 | * @return a new object of class '<em>Node</em>'. | ||
119 | * @generated | ||
120 | */ | ||
121 | Node createNode(); | ||
122 | |||
123 | /** | ||
124 | * Returns a new object of class '<em>Scope Declaration</em>'. | ||
125 | * <!-- begin-user-doc --> | ||
126 | * <!-- end-user-doc --> | ||
127 | * @return a new object of class '<em>Scope Declaration</em>'. | ||
128 | * @generated | ||
129 | */ | ||
130 | ScopeDeclaration createScopeDeclaration(); | ||
131 | |||
132 | /** | ||
133 | * Returns a new object of class '<em>Type Scope</em>'. | ||
134 | * <!-- begin-user-doc --> | ||
135 | * <!-- end-user-doc --> | ||
136 | * @return a new object of class '<em>Type Scope</em>'. | ||
137 | * @generated | ||
138 | */ | ||
139 | TypeScope createTypeScope(); | ||
140 | |||
141 | /** | ||
142 | * Returns a new object of class '<em>Range Multiplicity</em>'. | ||
143 | * <!-- begin-user-doc --> | ||
144 | * <!-- end-user-doc --> | ||
145 | * @return a new object of class '<em>Range Multiplicity</em>'. | ||
146 | * @generated | ||
147 | */ | ||
148 | RangeMultiplicity createRangeMultiplicity(); | ||
149 | |||
150 | /** | ||
151 | * Returns a new object of class '<em>Exact Multiplicity</em>'. | ||
152 | * <!-- begin-user-doc --> | ||
153 | * <!-- end-user-doc --> | ||
154 | * @return a new object of class '<em>Exact Multiplicity</em>'. | ||
155 | * @generated | ||
156 | */ | ||
157 | ExactMultiplicity createExactMultiplicity(); | ||
158 | |||
159 | /** | ||
160 | * Returns a new object of class '<em>Unbounded Multiplicity</em>'. | ||
161 | * <!-- begin-user-doc --> | ||
162 | * <!-- end-user-doc --> | ||
163 | * @return a new object of class '<em>Unbounded Multiplicity</em>'. | ||
164 | * @generated | ||
165 | */ | ||
166 | UnboundedMultiplicity createUnboundedMultiplicity(); | ||
167 | |||
168 | /** | ||
169 | * Returns a new object of class '<em>Argument</em>'. | ||
170 | * <!-- begin-user-doc --> | ||
171 | * <!-- end-user-doc --> | ||
172 | * @return a new object of class '<em>Argument</em>'. | ||
173 | * @generated | ||
174 | */ | ||
175 | Argument createArgument(); | ||
176 | |||
177 | /** | ||
178 | * Returns a new object of class '<em>Enum Declaration</em>'. | ||
179 | * <!-- begin-user-doc --> | ||
180 | * <!-- end-user-doc --> | ||
181 | * @return a new object of class '<em>Enum Declaration</em>'. | ||
182 | * @generated | ||
183 | */ | ||
184 | EnumDeclaration createEnumDeclaration(); | ||
185 | |||
186 | /** | ||
187 | * Returns the package supported by this factory. | ||
188 | * <!-- begin-user-doc --> | ||
189 | * <!-- end-user-doc --> | ||
190 | * @return the package supported by this factory. | ||
191 | * @generated | ||
192 | */ | ||
193 | ProblemPackage getProblemPackage(); | ||
194 | |||
195 | } //ProblemFactory | ||
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/ProblemPackage.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/ProblemPackage.java deleted file mode 100644 index ec96501d..00000000 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/ProblemPackage.java +++ /dev/null | |||
@@ -1,2432 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EAttribute; | ||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | import org.eclipse.emf.ecore.EEnum; | ||
8 | import org.eclipse.emf.ecore.EPackage; | ||
9 | import org.eclipse.emf.ecore.EReference; | ||
10 | |||
11 | /** | ||
12 | * <!-- begin-user-doc --> | ||
13 | * The <b>Package</b> for the model. | ||
14 | * It contains accessors for the meta objects to represent | ||
15 | * <ul> | ||
16 | * <li>each class,</li> | ||
17 | * <li>each feature of each class,</li> | ||
18 | * <li>each operation of each class,</li> | ||
19 | * <li>each enum,</li> | ||
20 | * <li>and each data type</li> | ||
21 | * </ul> | ||
22 | * <!-- end-user-doc --> | ||
23 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemFactory | ||
24 | * @model kind="package" | ||
25 | * @generated | ||
26 | */ | ||
27 | public interface ProblemPackage extends EPackage { | ||
28 | /** | ||
29 | * The package name. | ||
30 | * <!-- begin-user-doc --> | ||
31 | * <!-- end-user-doc --> | ||
32 | * @generated | ||
33 | */ | ||
34 | String eNAME = "problem"; | ||
35 | |||
36 | /** | ||
37 | * The package namespace URI. | ||
38 | * <!-- begin-user-doc --> | ||
39 | * <!-- end-user-doc --> | ||
40 | * @generated | ||
41 | */ | ||
42 | String eNS_URI = "http://www.eclipse.org/viatra/solver/language/model/Problem"; | ||
43 | |||
44 | /** | ||
45 | * The package namespace name. | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @generated | ||
49 | */ | ||
50 | String eNS_PREFIX = "problem"; | ||
51 | |||
52 | /** | ||
53 | * The singleton instance of the package. | ||
54 | * <!-- begin-user-doc --> | ||
55 | * <!-- end-user-doc --> | ||
56 | * @generated | ||
57 | */ | ||
58 | ProblemPackage eINSTANCE = org.eclipse.viatra.solver.language.model.problem.impl.ProblemPackageImpl.init(); | ||
59 | |||
60 | /** | ||
61 | * The meta object id for the '{@link org.eclipse.viatra.solver.language.model.problem.impl.NamedElementImpl <em>Named Element</em>}' class. | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @see org.eclipse.viatra.solver.language.model.problem.impl.NamedElementImpl | ||
65 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ProblemPackageImpl#getNamedElement() | ||
66 | * @generated | ||
67 | */ | ||
68 | int NAMED_ELEMENT = 4; | ||
69 | |||
70 | /** | ||
71 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
72 | * <!-- begin-user-doc --> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @generated | ||
75 | * @ordered | ||
76 | */ | ||
77 | int NAMED_ELEMENT__NAME = 0; | ||
78 | |||
79 | /** | ||
80 | * The number of structural features of the '<em>Named Element</em>' class. | ||
81 | * <!-- begin-user-doc --> | ||
82 | * <!-- end-user-doc --> | ||
83 | * @generated | ||
84 | * @ordered | ||
85 | */ | ||
86 | int NAMED_ELEMENT_FEATURE_COUNT = 1; | ||
87 | |||
88 | /** | ||
89 | * The number of operations of the '<em>Named Element</em>' class. | ||
90 | * <!-- begin-user-doc --> | ||
91 | * <!-- end-user-doc --> | ||
92 | * @generated | ||
93 | * @ordered | ||
94 | */ | ||
95 | int NAMED_ELEMENT_OPERATION_COUNT = 0; | ||
96 | |||
97 | /** | ||
98 | * The meta object id for the '{@link org.eclipse.viatra.solver.language.model.problem.impl.ProblemImpl <em>Problem</em>}' class. | ||
99 | * <!-- begin-user-doc --> | ||
100 | * <!-- end-user-doc --> | ||
101 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ProblemImpl | ||
102 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ProblemPackageImpl#getProblem() | ||
103 | * @generated | ||
104 | */ | ||
105 | int PROBLEM = 0; | ||
106 | |||
107 | /** | ||
108 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
109 | * <!-- begin-user-doc --> | ||
110 | * <!-- end-user-doc --> | ||
111 | * @generated | ||
112 | * @ordered | ||
113 | */ | ||
114 | int PROBLEM__NAME = NAMED_ELEMENT__NAME; | ||
115 | |||
116 | /** | ||
117 | * The feature id for the '<em><b>Nodes</b></em>' containment reference list. | ||
118 | * <!-- begin-user-doc --> | ||
119 | * <!-- end-user-doc --> | ||
120 | * @generated | ||
121 | * @ordered | ||
122 | */ | ||
123 | int PROBLEM__NODES = NAMED_ELEMENT_FEATURE_COUNT + 0; | ||
124 | |||
125 | /** | ||
126 | * The feature id for the '<em><b>Statements</b></em>' containment reference list. | ||
127 | * <!-- begin-user-doc --> | ||
128 | * <!-- end-user-doc --> | ||
129 | * @generated | ||
130 | * @ordered | ||
131 | */ | ||
132 | int PROBLEM__STATEMENTS = NAMED_ELEMENT_FEATURE_COUNT + 1; | ||
133 | |||
134 | /** | ||
135 | * The number of structural features of the '<em>Problem</em>' class. | ||
136 | * <!-- begin-user-doc --> | ||
137 | * <!-- end-user-doc --> | ||
138 | * @generated | ||
139 | * @ordered | ||
140 | */ | ||
141 | int PROBLEM_FEATURE_COUNT = NAMED_ELEMENT_FEATURE_COUNT + 2; | ||
142 | |||
143 | /** | ||
144 | * The number of operations of the '<em>Problem</em>' class. | ||
145 | * <!-- begin-user-doc --> | ||
146 | * <!-- end-user-doc --> | ||
147 | * @generated | ||
148 | * @ordered | ||
149 | */ | ||
150 | int PROBLEM_OPERATION_COUNT = NAMED_ELEMENT_OPERATION_COUNT + 0; | ||
151 | |||
152 | /** | ||
153 | * The meta object id for the '{@link org.eclipse.viatra.solver.language.model.problem.impl.RelationImpl <em>Relation</em>}' class. | ||
154 | * <!-- begin-user-doc --> | ||
155 | * <!-- end-user-doc --> | ||
156 | * @see org.eclipse.viatra.solver.language.model.problem.impl.RelationImpl | ||
157 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ProblemPackageImpl#getRelation() | ||
158 | * @generated | ||
159 | */ | ||
160 | int RELATION = 1; | ||
161 | |||
162 | /** | ||
163 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
164 | * <!-- begin-user-doc --> | ||
165 | * <!-- end-user-doc --> | ||
166 | * @generated | ||
167 | * @ordered | ||
168 | */ | ||
169 | int RELATION__NAME = NAMED_ELEMENT__NAME; | ||
170 | |||
171 | /** | ||
172 | * The number of structural features of the '<em>Relation</em>' class. | ||
173 | * <!-- begin-user-doc --> | ||
174 | * <!-- end-user-doc --> | ||
175 | * @generated | ||
176 | * @ordered | ||
177 | */ | ||
178 | int RELATION_FEATURE_COUNT = NAMED_ELEMENT_FEATURE_COUNT + 0; | ||
179 | |||
180 | /** | ||
181 | * The number of operations of the '<em>Relation</em>' class. | ||
182 | * <!-- begin-user-doc --> | ||
183 | * <!-- end-user-doc --> | ||
184 | * @generated | ||
185 | * @ordered | ||
186 | */ | ||
187 | int RELATION_OPERATION_COUNT = NAMED_ELEMENT_OPERATION_COUNT + 0; | ||
188 | |||
189 | /** | ||
190 | * The meta object id for the '{@link org.eclipse.viatra.solver.language.model.problem.impl.ClassDeclarationImpl <em>Class Declaration</em>}' class. | ||
191 | * <!-- begin-user-doc --> | ||
192 | * <!-- end-user-doc --> | ||
193 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ClassDeclarationImpl | ||
194 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ProblemPackageImpl#getClassDeclaration() | ||
195 | * @generated | ||
196 | */ | ||
197 | int CLASS_DECLARATION = 2; | ||
198 | |||
199 | /** | ||
200 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
201 | * <!-- begin-user-doc --> | ||
202 | * <!-- end-user-doc --> | ||
203 | * @generated | ||
204 | * @ordered | ||
205 | */ | ||
206 | int CLASS_DECLARATION__NAME = RELATION__NAME; | ||
207 | |||
208 | /** | ||
209 | * The feature id for the '<em><b>Abstract</b></em>' attribute. | ||
210 | * <!-- begin-user-doc --> | ||
211 | * <!-- end-user-doc --> | ||
212 | * @generated | ||
213 | * @ordered | ||
214 | */ | ||
215 | int CLASS_DECLARATION__ABSTRACT = RELATION_FEATURE_COUNT + 0; | ||
216 | |||
217 | /** | ||
218 | * The feature id for the '<em><b>Super Types</b></em>' reference list. | ||
219 | * <!-- begin-user-doc --> | ||
220 | * <!-- end-user-doc --> | ||
221 | * @generated | ||
222 | * @ordered | ||
223 | */ | ||
224 | int CLASS_DECLARATION__SUPER_TYPES = RELATION_FEATURE_COUNT + 1; | ||
225 | |||
226 | /** | ||
227 | * The feature id for the '<em><b>Reference Declarations</b></em>' containment reference list. | ||
228 | * <!-- begin-user-doc --> | ||
229 | * <!-- end-user-doc --> | ||
230 | * @generated | ||
231 | * @ordered | ||
232 | */ | ||
233 | int CLASS_DECLARATION__REFERENCE_DECLARATIONS = RELATION_FEATURE_COUNT + 2; | ||
234 | |||
235 | /** | ||
236 | * The feature id for the '<em><b>New Node</b></em>' containment reference. | ||
237 | * <!-- begin-user-doc --> | ||
238 | * <!-- end-user-doc --> | ||
239 | * @generated | ||
240 | * @ordered | ||
241 | */ | ||
242 | int CLASS_DECLARATION__NEW_NODE = RELATION_FEATURE_COUNT + 3; | ||
243 | |||
244 | /** | ||
245 | * The number of structural features of the '<em>Class Declaration</em>' class. | ||
246 | * <!-- begin-user-doc --> | ||
247 | * <!-- end-user-doc --> | ||
248 | * @generated | ||
249 | * @ordered | ||
250 | */ | ||
251 | int CLASS_DECLARATION_FEATURE_COUNT = RELATION_FEATURE_COUNT + 4; | ||
252 | |||
253 | /** | ||
254 | * The number of operations of the '<em>Class Declaration</em>' class. | ||
255 | * <!-- begin-user-doc --> | ||
256 | * <!-- end-user-doc --> | ||
257 | * @generated | ||
258 | * @ordered | ||
259 | */ | ||
260 | int CLASS_DECLARATION_OPERATION_COUNT = RELATION_OPERATION_COUNT + 0; | ||
261 | |||
262 | /** | ||
263 | * The meta object id for the '{@link org.eclipse.viatra.solver.language.model.problem.impl.ReferenceDeclarationImpl <em>Reference Declaration</em>}' class. | ||
264 | * <!-- begin-user-doc --> | ||
265 | * <!-- end-user-doc --> | ||
266 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ReferenceDeclarationImpl | ||
267 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ProblemPackageImpl#getReferenceDeclaration() | ||
268 | * @generated | ||
269 | */ | ||
270 | int REFERENCE_DECLARATION = 3; | ||
271 | |||
272 | /** | ||
273 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
274 | * <!-- begin-user-doc --> | ||
275 | * <!-- end-user-doc --> | ||
276 | * @generated | ||
277 | * @ordered | ||
278 | */ | ||
279 | int REFERENCE_DECLARATION__NAME = RELATION__NAME; | ||
280 | |||
281 | /** | ||
282 | * The feature id for the '<em><b>Reference Type</b></em>' reference. | ||
283 | * <!-- begin-user-doc --> | ||
284 | * <!-- end-user-doc --> | ||
285 | * @generated | ||
286 | * @ordered | ||
287 | */ | ||
288 | int REFERENCE_DECLARATION__REFERENCE_TYPE = RELATION_FEATURE_COUNT + 0; | ||
289 | |||
290 | /** | ||
291 | * The feature id for the '<em><b>Opposite</b></em>' reference. | ||
292 | * <!-- begin-user-doc --> | ||
293 | * <!-- end-user-doc --> | ||
294 | * @generated | ||
295 | * @ordered | ||
296 | */ | ||
297 | int REFERENCE_DECLARATION__OPPOSITE = RELATION_FEATURE_COUNT + 1; | ||
298 | |||
299 | /** | ||
300 | * The feature id for the '<em><b>Containment</b></em>' attribute. | ||
301 | * <!-- begin-user-doc --> | ||
302 | * <!-- end-user-doc --> | ||
303 | * @generated | ||
304 | * @ordered | ||
305 | */ | ||
306 | int REFERENCE_DECLARATION__CONTAINMENT = RELATION_FEATURE_COUNT + 2; | ||
307 | |||
308 | /** | ||
309 | * The feature id for the '<em><b>Multiplicity</b></em>' containment reference. | ||
310 | * <!-- begin-user-doc --> | ||
311 | * <!-- end-user-doc --> | ||
312 | * @generated | ||
313 | * @ordered | ||
314 | */ | ||
315 | int REFERENCE_DECLARATION__MULTIPLICITY = RELATION_FEATURE_COUNT + 3; | ||
316 | |||
317 | /** | ||
318 | * The number of structural features of the '<em>Reference Declaration</em>' class. | ||
319 | * <!-- begin-user-doc --> | ||
320 | * <!-- end-user-doc --> | ||
321 | * @generated | ||
322 | * @ordered | ||
323 | */ | ||
324 | int REFERENCE_DECLARATION_FEATURE_COUNT = RELATION_FEATURE_COUNT + 4; | ||
325 | |||
326 | /** | ||
327 | * The number of operations of the '<em>Reference Declaration</em>' class. | ||
328 | * <!-- begin-user-doc --> | ||
329 | * <!-- end-user-doc --> | ||
330 | * @generated | ||
331 | * @ordered | ||
332 | */ | ||
333 | int REFERENCE_DECLARATION_OPERATION_COUNT = RELATION_OPERATION_COUNT + 0; | ||
334 | |||
335 | /** | ||
336 | * The meta object id for the '{@link org.eclipse.viatra.solver.language.model.problem.impl.PredicateDefinitionImpl <em>Predicate Definition</em>}' class. | ||
337 | * <!-- begin-user-doc --> | ||
338 | * <!-- end-user-doc --> | ||
339 | * @see org.eclipse.viatra.solver.language.model.problem.impl.PredicateDefinitionImpl | ||
340 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ProblemPackageImpl#getPredicateDefinition() | ||
341 | * @generated | ||
342 | */ | ||
343 | int PREDICATE_DEFINITION = 5; | ||
344 | |||
345 | /** | ||
346 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
347 | * <!-- begin-user-doc --> | ||
348 | * <!-- end-user-doc --> | ||
349 | * @generated | ||
350 | * @ordered | ||
351 | */ | ||
352 | int PREDICATE_DEFINITION__NAME = RELATION__NAME; | ||
353 | |||
354 | /** | ||
355 | * The feature id for the '<em><b>Error</b></em>' attribute. | ||
356 | * <!-- begin-user-doc --> | ||
357 | * <!-- end-user-doc --> | ||
358 | * @generated | ||
359 | * @ordered | ||
360 | */ | ||
361 | int PREDICATE_DEFINITION__ERROR = RELATION_FEATURE_COUNT + 0; | ||
362 | |||
363 | /** | ||
364 | * The feature id for the '<em><b>Parameters</b></em>' containment reference list. | ||
365 | * <!-- begin-user-doc --> | ||
366 | * <!-- end-user-doc --> | ||
367 | * @generated | ||
368 | * @ordered | ||
369 | */ | ||
370 | int PREDICATE_DEFINITION__PARAMETERS = RELATION_FEATURE_COUNT + 1; | ||
371 | |||
372 | /** | ||
373 | * The feature id for the '<em><b>Bodies</b></em>' containment reference list. | ||
374 | * <!-- begin-user-doc --> | ||
375 | * <!-- end-user-doc --> | ||
376 | * @generated | ||
377 | * @ordered | ||
378 | */ | ||
379 | int PREDICATE_DEFINITION__BODIES = RELATION_FEATURE_COUNT + 2; | ||
380 | |||
381 | /** | ||
382 | * The number of structural features of the '<em>Predicate Definition</em>' class. | ||
383 | * <!-- begin-user-doc --> | ||
384 | * <!-- end-user-doc --> | ||
385 | * @generated | ||
386 | * @ordered | ||
387 | */ | ||
388 | int PREDICATE_DEFINITION_FEATURE_COUNT = RELATION_FEATURE_COUNT + 3; | ||
389 | |||
390 | /** | ||
391 | * The number of operations of the '<em>Predicate Definition</em>' class. | ||
392 | * <!-- begin-user-doc --> | ||
393 | * <!-- end-user-doc --> | ||
394 | * @generated | ||
395 | * @ordered | ||
396 | */ | ||
397 | int PREDICATE_DEFINITION_OPERATION_COUNT = RELATION_OPERATION_COUNT + 0; | ||
398 | |||
399 | /** | ||
400 | * The meta object id for the '{@link org.eclipse.viatra.solver.language.model.problem.impl.VariableOrNodeImpl <em>Variable Or Node</em>}' class. | ||
401 | * <!-- begin-user-doc --> | ||
402 | * <!-- end-user-doc --> | ||
403 | * @see org.eclipse.viatra.solver.language.model.problem.impl.VariableOrNodeImpl | ||
404 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ProblemPackageImpl#getVariableOrNode() | ||
405 | * @generated | ||
406 | */ | ||
407 | int VARIABLE_OR_NODE = 25; | ||
408 | |||
409 | /** | ||
410 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
411 | * <!-- begin-user-doc --> | ||
412 | * <!-- end-user-doc --> | ||
413 | * @generated | ||
414 | * @ordered | ||
415 | */ | ||
416 | int VARIABLE_OR_NODE__NAME = NAMED_ELEMENT__NAME; | ||
417 | |||
418 | /** | ||
419 | * The number of structural features of the '<em>Variable Or Node</em>' class. | ||
420 | * <!-- begin-user-doc --> | ||
421 | * <!-- end-user-doc --> | ||
422 | * @generated | ||
423 | * @ordered | ||
424 | */ | ||
425 | int VARIABLE_OR_NODE_FEATURE_COUNT = NAMED_ELEMENT_FEATURE_COUNT + 0; | ||
426 | |||
427 | /** | ||
428 | * The number of operations of the '<em>Variable Or Node</em>' class. | ||
429 | * <!-- begin-user-doc --> | ||
430 | * <!-- end-user-doc --> | ||
431 | * @generated | ||
432 | * @ordered | ||
433 | */ | ||
434 | int VARIABLE_OR_NODE_OPERATION_COUNT = NAMED_ELEMENT_OPERATION_COUNT + 0; | ||
435 | |||
436 | /** | ||
437 | * The meta object id for the '{@link org.eclipse.viatra.solver.language.model.problem.impl.VariableImpl <em>Variable</em>}' class. | ||
438 | * <!-- begin-user-doc --> | ||
439 | * <!-- end-user-doc --> | ||
440 | * @see org.eclipse.viatra.solver.language.model.problem.impl.VariableImpl | ||
441 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ProblemPackageImpl#getVariable() | ||
442 | * @generated | ||
443 | */ | ||
444 | int VARIABLE = 7; | ||
445 | |||
446 | /** | ||
447 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
448 | * <!-- begin-user-doc --> | ||
449 | * <!-- end-user-doc --> | ||
450 | * @generated | ||
451 | * @ordered | ||
452 | */ | ||
453 | int VARIABLE__NAME = VARIABLE_OR_NODE__NAME; | ||
454 | |||
455 | /** | ||
456 | * The number of structural features of the '<em>Variable</em>' class. | ||
457 | * <!-- begin-user-doc --> | ||
458 | * <!-- end-user-doc --> | ||
459 | * @generated | ||
460 | * @ordered | ||
461 | */ | ||
462 | int VARIABLE_FEATURE_COUNT = VARIABLE_OR_NODE_FEATURE_COUNT + 0; | ||
463 | |||
464 | /** | ||
465 | * The number of operations of the '<em>Variable</em>' class. | ||
466 | * <!-- begin-user-doc --> | ||
467 | * <!-- end-user-doc --> | ||
468 | * @generated | ||
469 | * @ordered | ||
470 | */ | ||
471 | int VARIABLE_OPERATION_COUNT = VARIABLE_OR_NODE_OPERATION_COUNT + 0; | ||
472 | |||
473 | /** | ||
474 | * The meta object id for the '{@link org.eclipse.viatra.solver.language.model.problem.impl.ParameterImpl <em>Parameter</em>}' class. | ||
475 | * <!-- begin-user-doc --> | ||
476 | * <!-- end-user-doc --> | ||
477 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ParameterImpl | ||
478 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ProblemPackageImpl#getParameter() | ||
479 | * @generated | ||
480 | */ | ||
481 | int PARAMETER = 6; | ||
482 | |||
483 | /** | ||
484 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
485 | * <!-- begin-user-doc --> | ||
486 | * <!-- end-user-doc --> | ||
487 | * @generated | ||
488 | * @ordered | ||
489 | */ | ||
490 | int PARAMETER__NAME = VARIABLE__NAME; | ||
491 | |||
492 | /** | ||
493 | * The feature id for the '<em><b>Parameter Type</b></em>' reference. | ||
494 | * <!-- begin-user-doc --> | ||
495 | * <!-- end-user-doc --> | ||
496 | * @generated | ||
497 | * @ordered | ||
498 | */ | ||
499 | int PARAMETER__PARAMETER_TYPE = VARIABLE_FEATURE_COUNT + 0; | ||
500 | |||
501 | /** | ||
502 | * The number of structural features of the '<em>Parameter</em>' class. | ||
503 | * <!-- begin-user-doc --> | ||
504 | * <!-- end-user-doc --> | ||
505 | * @generated | ||
506 | * @ordered | ||
507 | */ | ||
508 | int PARAMETER_FEATURE_COUNT = VARIABLE_FEATURE_COUNT + 1; | ||
509 | |||
510 | /** | ||
511 | * The number of operations of the '<em>Parameter</em>' class. | ||
512 | * <!-- begin-user-doc --> | ||
513 | * <!-- end-user-doc --> | ||
514 | * @generated | ||
515 | * @ordered | ||
516 | */ | ||
517 | int PARAMETER_OPERATION_COUNT = VARIABLE_OPERATION_COUNT + 0; | ||
518 | |||
519 | /** | ||
520 | * The meta object id for the '{@link org.eclipse.viatra.solver.language.model.problem.ExistentialQuantifier <em>Existential Quantifier</em>}' class. | ||
521 | * <!-- begin-user-doc --> | ||
522 | * <!-- end-user-doc --> | ||
523 | * @see org.eclipse.viatra.solver.language.model.problem.ExistentialQuantifier | ||
524 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ProblemPackageImpl#getExistentialQuantifier() | ||
525 | * @generated | ||
526 | */ | ||
527 | int EXISTENTIAL_QUANTIFIER = 13; | ||
528 | |||
529 | /** | ||
530 | * The feature id for the '<em><b>Implicit Variables</b></em>' containment reference list. | ||
531 | * <!-- begin-user-doc --> | ||
532 | * <!-- end-user-doc --> | ||
533 | * @generated | ||
534 | * @ordered | ||
535 | */ | ||
536 | int EXISTENTIAL_QUANTIFIER__IMPLICIT_VARIABLES = 0; | ||
537 | |||
538 | /** | ||
539 | * The number of structural features of the '<em>Existential Quantifier</em>' class. | ||
540 | * <!-- begin-user-doc --> | ||
541 | * <!-- end-user-doc --> | ||
542 | * @generated | ||
543 | * @ordered | ||
544 | */ | ||
545 | int EXISTENTIAL_QUANTIFIER_FEATURE_COUNT = 1; | ||
546 | |||
547 | /** | ||
548 | * The number of operations of the '<em>Existential Quantifier</em>' class. | ||
549 | * <!-- begin-user-doc --> | ||
550 | * <!-- end-user-doc --> | ||
551 | * @generated | ||
552 | * @ordered | ||
553 | */ | ||
554 | int EXISTENTIAL_QUANTIFIER_OPERATION_COUNT = 0; | ||
555 | |||
556 | /** | ||
557 | * The meta object id for the '{@link org.eclipse.viatra.solver.language.model.problem.impl.ConjunctionImpl <em>Conjunction</em>}' class. | ||
558 | * <!-- begin-user-doc --> | ||
559 | * <!-- end-user-doc --> | ||
560 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ConjunctionImpl | ||
561 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ProblemPackageImpl#getConjunction() | ||
562 | * @generated | ||
563 | */ | ||
564 | int CONJUNCTION = 8; | ||
565 | |||
566 | /** | ||
567 | * The feature id for the '<em><b>Implicit Variables</b></em>' containment reference list. | ||
568 | * <!-- begin-user-doc --> | ||
569 | * <!-- end-user-doc --> | ||
570 | * @generated | ||
571 | * @ordered | ||
572 | */ | ||
573 | int CONJUNCTION__IMPLICIT_VARIABLES = EXISTENTIAL_QUANTIFIER__IMPLICIT_VARIABLES; | ||
574 | |||
575 | /** | ||
576 | * The feature id for the '<em><b>Literals</b></em>' containment reference list. | ||
577 | * <!-- begin-user-doc --> | ||
578 | * <!-- end-user-doc --> | ||
579 | * @generated | ||
580 | * @ordered | ||
581 | */ | ||
582 | int CONJUNCTION__LITERALS = EXISTENTIAL_QUANTIFIER_FEATURE_COUNT + 0; | ||
583 | |||
584 | /** | ||
585 | * The number of structural features of the '<em>Conjunction</em>' class. | ||
586 | * <!-- begin-user-doc --> | ||
587 | * <!-- end-user-doc --> | ||
588 | * @generated | ||
589 | * @ordered | ||
590 | */ | ||
591 | int CONJUNCTION_FEATURE_COUNT = EXISTENTIAL_QUANTIFIER_FEATURE_COUNT + 1; | ||
592 | |||
593 | /** | ||
594 | * The number of operations of the '<em>Conjunction</em>' class. | ||
595 | * <!-- begin-user-doc --> | ||
596 | * <!-- end-user-doc --> | ||
597 | * @generated | ||
598 | * @ordered | ||
599 | */ | ||
600 | int CONJUNCTION_OPERATION_COUNT = EXISTENTIAL_QUANTIFIER_OPERATION_COUNT + 0; | ||
601 | |||
602 | /** | ||
603 | * The meta object id for the '{@link org.eclipse.viatra.solver.language.model.problem.impl.LiteralImpl <em>Literal</em>}' class. | ||
604 | * <!-- begin-user-doc --> | ||
605 | * <!-- end-user-doc --> | ||
606 | * @see org.eclipse.viatra.solver.language.model.problem.impl.LiteralImpl | ||
607 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ProblemPackageImpl#getLiteral() | ||
608 | * @generated | ||
609 | */ | ||
610 | int LITERAL = 9; | ||
611 | |||
612 | /** | ||
613 | * The number of structural features of the '<em>Literal</em>' class. | ||
614 | * <!-- begin-user-doc --> | ||
615 | * <!-- end-user-doc --> | ||
616 | * @generated | ||
617 | * @ordered | ||
618 | */ | ||
619 | int LITERAL_FEATURE_COUNT = 0; | ||
620 | |||
621 | /** | ||
622 | * The number of operations of the '<em>Literal</em>' class. | ||
623 | * <!-- begin-user-doc --> | ||
624 | * <!-- end-user-doc --> | ||
625 | * @generated | ||
626 | * @ordered | ||
627 | */ | ||
628 | int LITERAL_OPERATION_COUNT = 0; | ||
629 | |||
630 | /** | ||
631 | * The meta object id for the '{@link org.eclipse.viatra.solver.language.model.problem.impl.AtomImpl <em>Atom</em>}' class. | ||
632 | * <!-- begin-user-doc --> | ||
633 | * <!-- end-user-doc --> | ||
634 | * @see org.eclipse.viatra.solver.language.model.problem.impl.AtomImpl | ||
635 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ProblemPackageImpl#getAtom() | ||
636 | * @generated | ||
637 | */ | ||
638 | int ATOM = 10; | ||
639 | |||
640 | /** | ||
641 | * The feature id for the '<em><b>Relation</b></em>' reference. | ||
642 | * <!-- begin-user-doc --> | ||
643 | * <!-- end-user-doc --> | ||
644 | * @generated | ||
645 | * @ordered | ||
646 | */ | ||
647 | int ATOM__RELATION = LITERAL_FEATURE_COUNT + 0; | ||
648 | |||
649 | /** | ||
650 | * The feature id for the '<em><b>Transitive Closure</b></em>' attribute. | ||
651 | * <!-- begin-user-doc --> | ||
652 | * <!-- end-user-doc --> | ||
653 | * @generated | ||
654 | * @ordered | ||
655 | */ | ||
656 | int ATOM__TRANSITIVE_CLOSURE = LITERAL_FEATURE_COUNT + 1; | ||
657 | |||
658 | /** | ||
659 | * The feature id for the '<em><b>Arguments</b></em>' containment reference list. | ||
660 | * <!-- begin-user-doc --> | ||
661 | * <!-- end-user-doc --> | ||
662 | * @generated | ||
663 | * @ordered | ||
664 | */ | ||
665 | int ATOM__ARGUMENTS = LITERAL_FEATURE_COUNT + 2; | ||
666 | |||
667 | /** | ||
668 | * The number of structural features of the '<em>Atom</em>' class. | ||
669 | * <!-- begin-user-doc --> | ||
670 | * <!-- end-user-doc --> | ||
671 | * @generated | ||
672 | * @ordered | ||
673 | */ | ||
674 | int ATOM_FEATURE_COUNT = LITERAL_FEATURE_COUNT + 3; | ||
675 | |||
676 | /** | ||
677 | * The number of operations of the '<em>Atom</em>' class. | ||
678 | * <!-- begin-user-doc --> | ||
679 | * <!-- end-user-doc --> | ||
680 | * @generated | ||
681 | * @ordered | ||
682 | */ | ||
683 | int ATOM_OPERATION_COUNT = LITERAL_OPERATION_COUNT + 0; | ||
684 | |||
685 | /** | ||
686 | * The meta object id for the '{@link org.eclipse.viatra.solver.language.model.problem.impl.ImplicitVariableImpl <em>Implicit Variable</em>}' class. | ||
687 | * <!-- begin-user-doc --> | ||
688 | * <!-- end-user-doc --> | ||
689 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ImplicitVariableImpl | ||
690 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ProblemPackageImpl#getImplicitVariable() | ||
691 | * @generated | ||
692 | */ | ||
693 | int IMPLICIT_VARIABLE = 11; | ||
694 | |||
695 | /** | ||
696 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
697 | * <!-- begin-user-doc --> | ||
698 | * <!-- end-user-doc --> | ||
699 | * @generated | ||
700 | * @ordered | ||
701 | */ | ||
702 | int IMPLICIT_VARIABLE__NAME = VARIABLE__NAME; | ||
703 | |||
704 | /** | ||
705 | * The number of structural features of the '<em>Implicit Variable</em>' class. | ||
706 | * <!-- begin-user-doc --> | ||
707 | * <!-- end-user-doc --> | ||
708 | * @generated | ||
709 | * @ordered | ||
710 | */ | ||
711 | int IMPLICIT_VARIABLE_FEATURE_COUNT = VARIABLE_FEATURE_COUNT + 0; | ||
712 | |||
713 | /** | ||
714 | * The number of operations of the '<em>Implicit Variable</em>' class. | ||
715 | * <!-- begin-user-doc --> | ||
716 | * <!-- end-user-doc --> | ||
717 | * @generated | ||
718 | * @ordered | ||
719 | */ | ||
720 | int IMPLICIT_VARIABLE_OPERATION_COUNT = VARIABLE_OPERATION_COUNT + 0; | ||
721 | |||
722 | /** | ||
723 | * The meta object id for the '{@link org.eclipse.viatra.solver.language.model.problem.impl.NegativeLiteralImpl <em>Negative Literal</em>}' class. | ||
724 | * <!-- begin-user-doc --> | ||
725 | * <!-- end-user-doc --> | ||
726 | * @see org.eclipse.viatra.solver.language.model.problem.impl.NegativeLiteralImpl | ||
727 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ProblemPackageImpl#getNegativeLiteral() | ||
728 | * @generated | ||
729 | */ | ||
730 | int NEGATIVE_LITERAL = 12; | ||
731 | |||
732 | /** | ||
733 | * The feature id for the '<em><b>Implicit Variables</b></em>' containment reference list. | ||
734 | * <!-- begin-user-doc --> | ||
735 | * <!-- end-user-doc --> | ||
736 | * @generated | ||
737 | * @ordered | ||
738 | */ | ||
739 | int NEGATIVE_LITERAL__IMPLICIT_VARIABLES = EXISTENTIAL_QUANTIFIER__IMPLICIT_VARIABLES; | ||
740 | |||
741 | /** | ||
742 | * The feature id for the '<em><b>Atom</b></em>' containment reference. | ||
743 | * <!-- begin-user-doc --> | ||
744 | * <!-- end-user-doc --> | ||
745 | * @generated | ||
746 | * @ordered | ||
747 | */ | ||
748 | int NEGATIVE_LITERAL__ATOM = EXISTENTIAL_QUANTIFIER_FEATURE_COUNT + 0; | ||
749 | |||
750 | /** | ||
751 | * The number of structural features of the '<em>Negative Literal</em>' class. | ||
752 | * <!-- begin-user-doc --> | ||
753 | * <!-- end-user-doc --> | ||
754 | * @generated | ||
755 | * @ordered | ||
756 | */ | ||
757 | int NEGATIVE_LITERAL_FEATURE_COUNT = EXISTENTIAL_QUANTIFIER_FEATURE_COUNT + 1; | ||
758 | |||
759 | /** | ||
760 | * The number of operations of the '<em>Negative Literal</em>' class. | ||
761 | * <!-- begin-user-doc --> | ||
762 | * <!-- end-user-doc --> | ||
763 | * @generated | ||
764 | * @ordered | ||
765 | */ | ||
766 | int NEGATIVE_LITERAL_OPERATION_COUNT = EXISTENTIAL_QUANTIFIER_OPERATION_COUNT + 0; | ||
767 | |||
768 | /** | ||
769 | * The meta object id for the '{@link org.eclipse.viatra.solver.language.model.problem.Statement <em>Statement</em>}' class. | ||
770 | * <!-- begin-user-doc --> | ||
771 | * <!-- end-user-doc --> | ||
772 | * @see org.eclipse.viatra.solver.language.model.problem.Statement | ||
773 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ProblemPackageImpl#getStatement() | ||
774 | * @generated | ||
775 | */ | ||
776 | int STATEMENT = 17; | ||
777 | |||
778 | /** | ||
779 | * The number of structural features of the '<em>Statement</em>' class. | ||
780 | * <!-- begin-user-doc --> | ||
781 | * <!-- end-user-doc --> | ||
782 | * @generated | ||
783 | * @ordered | ||
784 | */ | ||
785 | int STATEMENT_FEATURE_COUNT = 0; | ||
786 | |||
787 | /** | ||
788 | * The number of operations of the '<em>Statement</em>' class. | ||
789 | * <!-- begin-user-doc --> | ||
790 | * <!-- end-user-doc --> | ||
791 | * @generated | ||
792 | * @ordered | ||
793 | */ | ||
794 | int STATEMENT_OPERATION_COUNT = 0; | ||
795 | |||
796 | /** | ||
797 | * The meta object id for the '{@link org.eclipse.viatra.solver.language.model.problem.impl.AssertionImpl <em>Assertion</em>}' class. | ||
798 | * <!-- begin-user-doc --> | ||
799 | * <!-- end-user-doc --> | ||
800 | * @see org.eclipse.viatra.solver.language.model.problem.impl.AssertionImpl | ||
801 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ProblemPackageImpl#getAssertion() | ||
802 | * @generated | ||
803 | */ | ||
804 | int ASSERTION = 14; | ||
805 | |||
806 | /** | ||
807 | * The feature id for the '<em><b>Relation</b></em>' reference. | ||
808 | * <!-- begin-user-doc --> | ||
809 | * <!-- end-user-doc --> | ||
810 | * @generated | ||
811 | * @ordered | ||
812 | */ | ||
813 | int ASSERTION__RELATION = STATEMENT_FEATURE_COUNT + 0; | ||
814 | |||
815 | /** | ||
816 | * The feature id for the '<em><b>Arguments</b></em>' reference list. | ||
817 | * <!-- begin-user-doc --> | ||
818 | * <!-- end-user-doc --> | ||
819 | * @generated | ||
820 | * @ordered | ||
821 | */ | ||
822 | int ASSERTION__ARGUMENTS = STATEMENT_FEATURE_COUNT + 1; | ||
823 | |||
824 | /** | ||
825 | * The feature id for the '<em><b>Value</b></em>' attribute. | ||
826 | * <!-- begin-user-doc --> | ||
827 | * <!-- end-user-doc --> | ||
828 | * @generated | ||
829 | * @ordered | ||
830 | */ | ||
831 | int ASSERTION__VALUE = STATEMENT_FEATURE_COUNT + 2; | ||
832 | |||
833 | /** | ||
834 | * The number of structural features of the '<em>Assertion</em>' class. | ||
835 | * <!-- begin-user-doc --> | ||
836 | * <!-- end-user-doc --> | ||
837 | * @generated | ||
838 | * @ordered | ||
839 | */ | ||
840 | int ASSERTION_FEATURE_COUNT = STATEMENT_FEATURE_COUNT + 3; | ||
841 | |||
842 | /** | ||
843 | * The number of operations of the '<em>Assertion</em>' class. | ||
844 | * <!-- begin-user-doc --> | ||
845 | * <!-- end-user-doc --> | ||
846 | * @generated | ||
847 | * @ordered | ||
848 | */ | ||
849 | int ASSERTION_OPERATION_COUNT = STATEMENT_OPERATION_COUNT + 0; | ||
850 | |||
851 | /** | ||
852 | * The meta object id for the '{@link org.eclipse.viatra.solver.language.model.problem.impl.NodeImpl <em>Node</em>}' class. | ||
853 | * <!-- begin-user-doc --> | ||
854 | * <!-- end-user-doc --> | ||
855 | * @see org.eclipse.viatra.solver.language.model.problem.impl.NodeImpl | ||
856 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ProblemPackageImpl#getNode() | ||
857 | * @generated | ||
858 | */ | ||
859 | int NODE = 15; | ||
860 | |||
861 | /** | ||
862 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
863 | * <!-- begin-user-doc --> | ||
864 | * <!-- end-user-doc --> | ||
865 | * @generated | ||
866 | * @ordered | ||
867 | */ | ||
868 | int NODE__NAME = VARIABLE_OR_NODE__NAME; | ||
869 | |||
870 | /** | ||
871 | * The number of structural features of the '<em>Node</em>' class. | ||
872 | * <!-- begin-user-doc --> | ||
873 | * <!-- end-user-doc --> | ||
874 | * @generated | ||
875 | * @ordered | ||
876 | */ | ||
877 | int NODE_FEATURE_COUNT = VARIABLE_OR_NODE_FEATURE_COUNT + 0; | ||
878 | |||
879 | /** | ||
880 | * The number of operations of the '<em>Node</em>' class. | ||
881 | * <!-- begin-user-doc --> | ||
882 | * <!-- end-user-doc --> | ||
883 | * @generated | ||
884 | * @ordered | ||
885 | */ | ||
886 | int NODE_OPERATION_COUNT = VARIABLE_OR_NODE_OPERATION_COUNT + 0; | ||
887 | |||
888 | /** | ||
889 | * The meta object id for the '{@link org.eclipse.viatra.solver.language.model.problem.impl.ScopeDeclarationImpl <em>Scope Declaration</em>}' class. | ||
890 | * <!-- begin-user-doc --> | ||
891 | * <!-- end-user-doc --> | ||
892 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ScopeDeclarationImpl | ||
893 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ProblemPackageImpl#getScopeDeclaration() | ||
894 | * @generated | ||
895 | */ | ||
896 | int SCOPE_DECLARATION = 16; | ||
897 | |||
898 | /** | ||
899 | * The feature id for the '<em><b>Type Scopes</b></em>' containment reference list. | ||
900 | * <!-- begin-user-doc --> | ||
901 | * <!-- end-user-doc --> | ||
902 | * @generated | ||
903 | * @ordered | ||
904 | */ | ||
905 | int SCOPE_DECLARATION__TYPE_SCOPES = STATEMENT_FEATURE_COUNT + 0; | ||
906 | |||
907 | /** | ||
908 | * The number of structural features of the '<em>Scope Declaration</em>' class. | ||
909 | * <!-- begin-user-doc --> | ||
910 | * <!-- end-user-doc --> | ||
911 | * @generated | ||
912 | * @ordered | ||
913 | */ | ||
914 | int SCOPE_DECLARATION_FEATURE_COUNT = STATEMENT_FEATURE_COUNT + 1; | ||
915 | |||
916 | /** | ||
917 | * The number of operations of the '<em>Scope Declaration</em>' class. | ||
918 | * <!-- begin-user-doc --> | ||
919 | * <!-- end-user-doc --> | ||
920 | * @generated | ||
921 | * @ordered | ||
922 | */ | ||
923 | int SCOPE_DECLARATION_OPERATION_COUNT = STATEMENT_OPERATION_COUNT + 0; | ||
924 | |||
925 | /** | ||
926 | * The meta object id for the '{@link org.eclipse.viatra.solver.language.model.problem.impl.TypeScopeImpl <em>Type Scope</em>}' class. | ||
927 | * <!-- begin-user-doc --> | ||
928 | * <!-- end-user-doc --> | ||
929 | * @see org.eclipse.viatra.solver.language.model.problem.impl.TypeScopeImpl | ||
930 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ProblemPackageImpl#getTypeScope() | ||
931 | * @generated | ||
932 | */ | ||
933 | int TYPE_SCOPE = 18; | ||
934 | |||
935 | /** | ||
936 | * The feature id for the '<em><b>Target Type</b></em>' reference. | ||
937 | * <!-- begin-user-doc --> | ||
938 | * <!-- end-user-doc --> | ||
939 | * @generated | ||
940 | * @ordered | ||
941 | */ | ||
942 | int TYPE_SCOPE__TARGET_TYPE = 0; | ||
943 | |||
944 | /** | ||
945 | * The feature id for the '<em><b>Increment</b></em>' attribute. | ||
946 | * <!-- begin-user-doc --> | ||
947 | * <!-- end-user-doc --> | ||
948 | * @generated | ||
949 | * @ordered | ||
950 | */ | ||
951 | int TYPE_SCOPE__INCREMENT = 1; | ||
952 | |||
953 | /** | ||
954 | * The feature id for the '<em><b>Multiplicity</b></em>' containment reference. | ||
955 | * <!-- begin-user-doc --> | ||
956 | * <!-- end-user-doc --> | ||
957 | * @generated | ||
958 | * @ordered | ||
959 | */ | ||
960 | int TYPE_SCOPE__MULTIPLICITY = 2; | ||
961 | |||
962 | /** | ||
963 | * The number of structural features of the '<em>Type Scope</em>' class. | ||
964 | * <!-- begin-user-doc --> | ||
965 | * <!-- end-user-doc --> | ||
966 | * @generated | ||
967 | * @ordered | ||
968 | */ | ||
969 | int TYPE_SCOPE_FEATURE_COUNT = 3; | ||
970 | |||
971 | /** | ||
972 | * The number of operations of the '<em>Type Scope</em>' class. | ||
973 | * <!-- begin-user-doc --> | ||
974 | * <!-- end-user-doc --> | ||
975 | * @generated | ||
976 | * @ordered | ||
977 | */ | ||
978 | int TYPE_SCOPE_OPERATION_COUNT = 0; | ||
979 | |||
980 | /** | ||
981 | * The meta object id for the '{@link org.eclipse.viatra.solver.language.model.problem.impl.MultiplicityImpl <em>Multiplicity</em>}' class. | ||
982 | * <!-- begin-user-doc --> | ||
983 | * <!-- end-user-doc --> | ||
984 | * @see org.eclipse.viatra.solver.language.model.problem.impl.MultiplicityImpl | ||
985 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ProblemPackageImpl#getMultiplicity() | ||
986 | * @generated | ||
987 | */ | ||
988 | int MULTIPLICITY = 19; | ||
989 | |||
990 | /** | ||
991 | * The number of structural features of the '<em>Multiplicity</em>' class. | ||
992 | * <!-- begin-user-doc --> | ||
993 | * <!-- end-user-doc --> | ||
994 | * @generated | ||
995 | * @ordered | ||
996 | */ | ||
997 | int MULTIPLICITY_FEATURE_COUNT = 0; | ||
998 | |||
999 | /** | ||
1000 | * The number of operations of the '<em>Multiplicity</em>' class. | ||
1001 | * <!-- begin-user-doc --> | ||
1002 | * <!-- end-user-doc --> | ||
1003 | * @generated | ||
1004 | * @ordered | ||
1005 | */ | ||
1006 | int MULTIPLICITY_OPERATION_COUNT = 0; | ||
1007 | |||
1008 | /** | ||
1009 | * The meta object id for the '{@link org.eclipse.viatra.solver.language.model.problem.impl.RangeMultiplicityImpl <em>Range Multiplicity</em>}' class. | ||
1010 | * <!-- begin-user-doc --> | ||
1011 | * <!-- end-user-doc --> | ||
1012 | * @see org.eclipse.viatra.solver.language.model.problem.impl.RangeMultiplicityImpl | ||
1013 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ProblemPackageImpl#getRangeMultiplicity() | ||
1014 | * @generated | ||
1015 | */ | ||
1016 | int RANGE_MULTIPLICITY = 20; | ||
1017 | |||
1018 | /** | ||
1019 | * The feature id for the '<em><b>Lower Bound</b></em>' attribute. | ||
1020 | * <!-- begin-user-doc --> | ||
1021 | * <!-- end-user-doc --> | ||
1022 | * @generated | ||
1023 | * @ordered | ||
1024 | */ | ||
1025 | int RANGE_MULTIPLICITY__LOWER_BOUND = MULTIPLICITY_FEATURE_COUNT + 0; | ||
1026 | |||
1027 | /** | ||
1028 | * The feature id for the '<em><b>Upper Bound</b></em>' attribute. | ||
1029 | * <!-- begin-user-doc --> | ||
1030 | * <!-- end-user-doc --> | ||
1031 | * @generated | ||
1032 | * @ordered | ||
1033 | */ | ||
1034 | int RANGE_MULTIPLICITY__UPPER_BOUND = MULTIPLICITY_FEATURE_COUNT + 1; | ||
1035 | |||
1036 | /** | ||
1037 | * The number of structural features of the '<em>Range Multiplicity</em>' class. | ||
1038 | * <!-- begin-user-doc --> | ||
1039 | * <!-- end-user-doc --> | ||
1040 | * @generated | ||
1041 | * @ordered | ||
1042 | */ | ||
1043 | int RANGE_MULTIPLICITY_FEATURE_COUNT = MULTIPLICITY_FEATURE_COUNT + 2; | ||
1044 | |||
1045 | /** | ||
1046 | * The number of operations of the '<em>Range Multiplicity</em>' class. | ||
1047 | * <!-- begin-user-doc --> | ||
1048 | * <!-- end-user-doc --> | ||
1049 | * @generated | ||
1050 | * @ordered | ||
1051 | */ | ||
1052 | int RANGE_MULTIPLICITY_OPERATION_COUNT = MULTIPLICITY_OPERATION_COUNT + 0; | ||
1053 | |||
1054 | /** | ||
1055 | * The meta object id for the '{@link org.eclipse.viatra.solver.language.model.problem.impl.ExactMultiplicityImpl <em>Exact Multiplicity</em>}' class. | ||
1056 | * <!-- begin-user-doc --> | ||
1057 | * <!-- end-user-doc --> | ||
1058 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ExactMultiplicityImpl | ||
1059 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ProblemPackageImpl#getExactMultiplicity() | ||
1060 | * @generated | ||
1061 | */ | ||
1062 | int EXACT_MULTIPLICITY = 21; | ||
1063 | |||
1064 | /** | ||
1065 | * The feature id for the '<em><b>Exact Value</b></em>' attribute. | ||
1066 | * <!-- begin-user-doc --> | ||
1067 | * <!-- end-user-doc --> | ||
1068 | * @generated | ||
1069 | * @ordered | ||
1070 | */ | ||
1071 | int EXACT_MULTIPLICITY__EXACT_VALUE = MULTIPLICITY_FEATURE_COUNT + 0; | ||
1072 | |||
1073 | /** | ||
1074 | * The number of structural features of the '<em>Exact Multiplicity</em>' class. | ||
1075 | * <!-- begin-user-doc --> | ||
1076 | * <!-- end-user-doc --> | ||
1077 | * @generated | ||
1078 | * @ordered | ||
1079 | */ | ||
1080 | int EXACT_MULTIPLICITY_FEATURE_COUNT = MULTIPLICITY_FEATURE_COUNT + 1; | ||
1081 | |||
1082 | /** | ||
1083 | * The number of operations of the '<em>Exact Multiplicity</em>' class. | ||
1084 | * <!-- begin-user-doc --> | ||
1085 | * <!-- end-user-doc --> | ||
1086 | * @generated | ||
1087 | * @ordered | ||
1088 | */ | ||
1089 | int EXACT_MULTIPLICITY_OPERATION_COUNT = MULTIPLICITY_OPERATION_COUNT + 0; | ||
1090 | |||
1091 | /** | ||
1092 | * The meta object id for the '{@link org.eclipse.viatra.solver.language.model.problem.impl.UnboundedMultiplicityImpl <em>Unbounded Multiplicity</em>}' class. | ||
1093 | * <!-- begin-user-doc --> | ||
1094 | * <!-- end-user-doc --> | ||
1095 | * @see org.eclipse.viatra.solver.language.model.problem.impl.UnboundedMultiplicityImpl | ||
1096 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ProblemPackageImpl#getUnboundedMultiplicity() | ||
1097 | * @generated | ||
1098 | */ | ||
1099 | int UNBOUNDED_MULTIPLICITY = 22; | ||
1100 | |||
1101 | /** | ||
1102 | * The number of structural features of the '<em>Unbounded Multiplicity</em>' class. | ||
1103 | * <!-- begin-user-doc --> | ||
1104 | * <!-- end-user-doc --> | ||
1105 | * @generated | ||
1106 | * @ordered | ||
1107 | */ | ||
1108 | int UNBOUNDED_MULTIPLICITY_FEATURE_COUNT = MULTIPLICITY_FEATURE_COUNT + 0; | ||
1109 | |||
1110 | /** | ||
1111 | * The number of operations of the '<em>Unbounded Multiplicity</em>' class. | ||
1112 | * <!-- begin-user-doc --> | ||
1113 | * <!-- end-user-doc --> | ||
1114 | * @generated | ||
1115 | * @ordered | ||
1116 | */ | ||
1117 | int UNBOUNDED_MULTIPLICITY_OPERATION_COUNT = MULTIPLICITY_OPERATION_COUNT + 0; | ||
1118 | |||
1119 | /** | ||
1120 | * The meta object id for the '{@link org.eclipse.viatra.solver.language.model.problem.impl.ArgumentImpl <em>Argument</em>}' class. | ||
1121 | * <!-- begin-user-doc --> | ||
1122 | * <!-- end-user-doc --> | ||
1123 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ArgumentImpl | ||
1124 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ProblemPackageImpl#getArgument() | ||
1125 | * @generated | ||
1126 | */ | ||
1127 | int ARGUMENT = 23; | ||
1128 | |||
1129 | /** | ||
1130 | * The feature id for the '<em><b>Variable Or Node</b></em>' reference. | ||
1131 | * <!-- begin-user-doc --> | ||
1132 | * <!-- end-user-doc --> | ||
1133 | * @generated | ||
1134 | * @ordered | ||
1135 | */ | ||
1136 | int ARGUMENT__VARIABLE_OR_NODE = 0; | ||
1137 | |||
1138 | /** | ||
1139 | * The feature id for the '<em><b>Singleton Variable</b></em>' containment reference. | ||
1140 | * <!-- begin-user-doc --> | ||
1141 | * <!-- end-user-doc --> | ||
1142 | * @generated | ||
1143 | * @ordered | ||
1144 | */ | ||
1145 | int ARGUMENT__SINGLETON_VARIABLE = 1; | ||
1146 | |||
1147 | /** | ||
1148 | * The number of structural features of the '<em>Argument</em>' class. | ||
1149 | * <!-- begin-user-doc --> | ||
1150 | * <!-- end-user-doc --> | ||
1151 | * @generated | ||
1152 | * @ordered | ||
1153 | */ | ||
1154 | int ARGUMENT_FEATURE_COUNT = 2; | ||
1155 | |||
1156 | /** | ||
1157 | * The number of operations of the '<em>Argument</em>' class. | ||
1158 | * <!-- begin-user-doc --> | ||
1159 | * <!-- end-user-doc --> | ||
1160 | * @generated | ||
1161 | * @ordered | ||
1162 | */ | ||
1163 | int ARGUMENT_OPERATION_COUNT = 0; | ||
1164 | |||
1165 | /** | ||
1166 | * The meta object id for the '{@link org.eclipse.viatra.solver.language.model.problem.impl.EnumDeclarationImpl <em>Enum Declaration</em>}' class. | ||
1167 | * <!-- begin-user-doc --> | ||
1168 | * <!-- end-user-doc --> | ||
1169 | * @see org.eclipse.viatra.solver.language.model.problem.impl.EnumDeclarationImpl | ||
1170 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ProblemPackageImpl#getEnumDeclaration() | ||
1171 | * @generated | ||
1172 | */ | ||
1173 | int ENUM_DECLARATION = 24; | ||
1174 | |||
1175 | /** | ||
1176 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
1177 | * <!-- begin-user-doc --> | ||
1178 | * <!-- end-user-doc --> | ||
1179 | * @generated | ||
1180 | * @ordered | ||
1181 | */ | ||
1182 | int ENUM_DECLARATION__NAME = RELATION__NAME; | ||
1183 | |||
1184 | /** | ||
1185 | * The feature id for the '<em><b>Literals</b></em>' containment reference list. | ||
1186 | * <!-- begin-user-doc --> | ||
1187 | * <!-- end-user-doc --> | ||
1188 | * @generated | ||
1189 | * @ordered | ||
1190 | */ | ||
1191 | int ENUM_DECLARATION__LITERALS = RELATION_FEATURE_COUNT + 0; | ||
1192 | |||
1193 | /** | ||
1194 | * The number of structural features of the '<em>Enum Declaration</em>' class. | ||
1195 | * <!-- begin-user-doc --> | ||
1196 | * <!-- end-user-doc --> | ||
1197 | * @generated | ||
1198 | * @ordered | ||
1199 | */ | ||
1200 | int ENUM_DECLARATION_FEATURE_COUNT = RELATION_FEATURE_COUNT + 1; | ||
1201 | |||
1202 | /** | ||
1203 | * The number of operations of the '<em>Enum Declaration</em>' class. | ||
1204 | * <!-- begin-user-doc --> | ||
1205 | * <!-- end-user-doc --> | ||
1206 | * @generated | ||
1207 | * @ordered | ||
1208 | */ | ||
1209 | int ENUM_DECLARATION_OPERATION_COUNT = RELATION_OPERATION_COUNT + 0; | ||
1210 | |||
1211 | /** | ||
1212 | * The meta object id for the '{@link org.eclipse.viatra.solver.language.model.problem.LogicValue <em>Logic Value</em>}' enum. | ||
1213 | * <!-- begin-user-doc --> | ||
1214 | * <!-- end-user-doc --> | ||
1215 | * @see org.eclipse.viatra.solver.language.model.problem.LogicValue | ||
1216 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ProblemPackageImpl#getLogicValue() | ||
1217 | * @generated | ||
1218 | */ | ||
1219 | int LOGIC_VALUE = 26; | ||
1220 | |||
1221 | /** | ||
1222 | * Returns the meta object for class '{@link org.eclipse.viatra.solver.language.model.problem.Problem <em>Problem</em>}'. | ||
1223 | * <!-- begin-user-doc --> | ||
1224 | * <!-- end-user-doc --> | ||
1225 | * @return the meta object for class '<em>Problem</em>'. | ||
1226 | * @see org.eclipse.viatra.solver.language.model.problem.Problem | ||
1227 | * @generated | ||
1228 | */ | ||
1229 | EClass getProblem(); | ||
1230 | |||
1231 | /** | ||
1232 | * Returns the meta object for the containment reference list '{@link org.eclipse.viatra.solver.language.model.problem.Problem#getNodes <em>Nodes</em>}'. | ||
1233 | * <!-- begin-user-doc --> | ||
1234 | * <!-- end-user-doc --> | ||
1235 | * @return the meta object for the containment reference list '<em>Nodes</em>'. | ||
1236 | * @see org.eclipse.viatra.solver.language.model.problem.Problem#getNodes() | ||
1237 | * @see #getProblem() | ||
1238 | * @generated | ||
1239 | */ | ||
1240 | EReference getProblem_Nodes(); | ||
1241 | |||
1242 | /** | ||
1243 | * Returns the meta object for the containment reference list '{@link org.eclipse.viatra.solver.language.model.problem.Problem#getStatements <em>Statements</em>}'. | ||
1244 | * <!-- begin-user-doc --> | ||
1245 | * <!-- end-user-doc --> | ||
1246 | * @return the meta object for the containment reference list '<em>Statements</em>'. | ||
1247 | * @see org.eclipse.viatra.solver.language.model.problem.Problem#getStatements() | ||
1248 | * @see #getProblem() | ||
1249 | * @generated | ||
1250 | */ | ||
1251 | EReference getProblem_Statements(); | ||
1252 | |||
1253 | /** | ||
1254 | * Returns the meta object for class '{@link org.eclipse.viatra.solver.language.model.problem.Relation <em>Relation</em>}'. | ||
1255 | * <!-- begin-user-doc --> | ||
1256 | * <!-- end-user-doc --> | ||
1257 | * @return the meta object for class '<em>Relation</em>'. | ||
1258 | * @see org.eclipse.viatra.solver.language.model.problem.Relation | ||
1259 | * @generated | ||
1260 | */ | ||
1261 | EClass getRelation(); | ||
1262 | |||
1263 | /** | ||
1264 | * Returns the meta object for class '{@link org.eclipse.viatra.solver.language.model.problem.ClassDeclaration <em>Class Declaration</em>}'. | ||
1265 | * <!-- begin-user-doc --> | ||
1266 | * <!-- end-user-doc --> | ||
1267 | * @return the meta object for class '<em>Class Declaration</em>'. | ||
1268 | * @see org.eclipse.viatra.solver.language.model.problem.ClassDeclaration | ||
1269 | * @generated | ||
1270 | */ | ||
1271 | EClass getClassDeclaration(); | ||
1272 | |||
1273 | /** | ||
1274 | * Returns the meta object for the attribute '{@link org.eclipse.viatra.solver.language.model.problem.ClassDeclaration#isAbstract <em>Abstract</em>}'. | ||
1275 | * <!-- begin-user-doc --> | ||
1276 | * <!-- end-user-doc --> | ||
1277 | * @return the meta object for the attribute '<em>Abstract</em>'. | ||
1278 | * @see org.eclipse.viatra.solver.language.model.problem.ClassDeclaration#isAbstract() | ||
1279 | * @see #getClassDeclaration() | ||
1280 | * @generated | ||
1281 | */ | ||
1282 | EAttribute getClassDeclaration_Abstract(); | ||
1283 | |||
1284 | /** | ||
1285 | * Returns the meta object for the reference list '{@link org.eclipse.viatra.solver.language.model.problem.ClassDeclaration#getSuperTypes <em>Super Types</em>}'. | ||
1286 | * <!-- begin-user-doc --> | ||
1287 | * <!-- end-user-doc --> | ||
1288 | * @return the meta object for the reference list '<em>Super Types</em>'. | ||
1289 | * @see org.eclipse.viatra.solver.language.model.problem.ClassDeclaration#getSuperTypes() | ||
1290 | * @see #getClassDeclaration() | ||
1291 | * @generated | ||
1292 | */ | ||
1293 | EReference getClassDeclaration_SuperTypes(); | ||
1294 | |||
1295 | /** | ||
1296 | * Returns the meta object for the containment reference list '{@link org.eclipse.viatra.solver.language.model.problem.ClassDeclaration#getReferenceDeclarations <em>Reference Declarations</em>}'. | ||
1297 | * <!-- begin-user-doc --> | ||
1298 | * <!-- end-user-doc --> | ||
1299 | * @return the meta object for the containment reference list '<em>Reference Declarations</em>'. | ||
1300 | * @see org.eclipse.viatra.solver.language.model.problem.ClassDeclaration#getReferenceDeclarations() | ||
1301 | * @see #getClassDeclaration() | ||
1302 | * @generated | ||
1303 | */ | ||
1304 | EReference getClassDeclaration_ReferenceDeclarations(); | ||
1305 | |||
1306 | /** | ||
1307 | * Returns the meta object for the containment reference '{@link org.eclipse.viatra.solver.language.model.problem.ClassDeclaration#getNewNode <em>New Node</em>}'. | ||
1308 | * <!-- begin-user-doc --> | ||
1309 | * <!-- end-user-doc --> | ||
1310 | * @return the meta object for the containment reference '<em>New Node</em>'. | ||
1311 | * @see org.eclipse.viatra.solver.language.model.problem.ClassDeclaration#getNewNode() | ||
1312 | * @see #getClassDeclaration() | ||
1313 | * @generated | ||
1314 | */ | ||
1315 | EReference getClassDeclaration_NewNode(); | ||
1316 | |||
1317 | /** | ||
1318 | * Returns the meta object for class '{@link org.eclipse.viatra.solver.language.model.problem.ReferenceDeclaration <em>Reference Declaration</em>}'. | ||
1319 | * <!-- begin-user-doc --> | ||
1320 | * <!-- end-user-doc --> | ||
1321 | * @return the meta object for class '<em>Reference Declaration</em>'. | ||
1322 | * @see org.eclipse.viatra.solver.language.model.problem.ReferenceDeclaration | ||
1323 | * @generated | ||
1324 | */ | ||
1325 | EClass getReferenceDeclaration(); | ||
1326 | |||
1327 | /** | ||
1328 | * Returns the meta object for the reference '{@link org.eclipse.viatra.solver.language.model.problem.ReferenceDeclaration#getReferenceType <em>Reference Type</em>}'. | ||
1329 | * <!-- begin-user-doc --> | ||
1330 | * <!-- end-user-doc --> | ||
1331 | * @return the meta object for the reference '<em>Reference Type</em>'. | ||
1332 | * @see org.eclipse.viatra.solver.language.model.problem.ReferenceDeclaration#getReferenceType() | ||
1333 | * @see #getReferenceDeclaration() | ||
1334 | * @generated | ||
1335 | */ | ||
1336 | EReference getReferenceDeclaration_ReferenceType(); | ||
1337 | |||
1338 | /** | ||
1339 | * Returns the meta object for the reference '{@link org.eclipse.viatra.solver.language.model.problem.ReferenceDeclaration#getOpposite <em>Opposite</em>}'. | ||
1340 | * <!-- begin-user-doc --> | ||
1341 | * <!-- end-user-doc --> | ||
1342 | * @return the meta object for the reference '<em>Opposite</em>'. | ||
1343 | * @see org.eclipse.viatra.solver.language.model.problem.ReferenceDeclaration#getOpposite() | ||
1344 | * @see #getReferenceDeclaration() | ||
1345 | * @generated | ||
1346 | */ | ||
1347 | EReference getReferenceDeclaration_Opposite(); | ||
1348 | |||
1349 | /** | ||
1350 | * Returns the meta object for the attribute '{@link org.eclipse.viatra.solver.language.model.problem.ReferenceDeclaration#isContainment <em>Containment</em>}'. | ||
1351 | * <!-- begin-user-doc --> | ||
1352 | * <!-- end-user-doc --> | ||
1353 | * @return the meta object for the attribute '<em>Containment</em>'. | ||
1354 | * @see org.eclipse.viatra.solver.language.model.problem.ReferenceDeclaration#isContainment() | ||
1355 | * @see #getReferenceDeclaration() | ||
1356 | * @generated | ||
1357 | */ | ||
1358 | EAttribute getReferenceDeclaration_Containment(); | ||
1359 | |||
1360 | /** | ||
1361 | * Returns the meta object for the containment reference '{@link org.eclipse.viatra.solver.language.model.problem.ReferenceDeclaration#getMultiplicity <em>Multiplicity</em>}'. | ||
1362 | * <!-- begin-user-doc --> | ||
1363 | * <!-- end-user-doc --> | ||
1364 | * @return the meta object for the containment reference '<em>Multiplicity</em>'. | ||
1365 | * @see org.eclipse.viatra.solver.language.model.problem.ReferenceDeclaration#getMultiplicity() | ||
1366 | * @see #getReferenceDeclaration() | ||
1367 | * @generated | ||
1368 | */ | ||
1369 | EReference getReferenceDeclaration_Multiplicity(); | ||
1370 | |||
1371 | /** | ||
1372 | * Returns the meta object for class '{@link org.eclipse.viatra.solver.language.model.problem.NamedElement <em>Named Element</em>}'. | ||
1373 | * <!-- begin-user-doc --> | ||
1374 | * <!-- end-user-doc --> | ||
1375 | * @return the meta object for class '<em>Named Element</em>'. | ||
1376 | * @see org.eclipse.viatra.solver.language.model.problem.NamedElement | ||
1377 | * @generated | ||
1378 | */ | ||
1379 | EClass getNamedElement(); | ||
1380 | |||
1381 | /** | ||
1382 | * Returns the meta object for the attribute '{@link org.eclipse.viatra.solver.language.model.problem.NamedElement#getName <em>Name</em>}'. | ||
1383 | * <!-- begin-user-doc --> | ||
1384 | * <!-- end-user-doc --> | ||
1385 | * @return the meta object for the attribute '<em>Name</em>'. | ||
1386 | * @see org.eclipse.viatra.solver.language.model.problem.NamedElement#getName() | ||
1387 | * @see #getNamedElement() | ||
1388 | * @generated | ||
1389 | */ | ||
1390 | EAttribute getNamedElement_Name(); | ||
1391 | |||
1392 | /** | ||
1393 | * Returns the meta object for class '{@link org.eclipse.viatra.solver.language.model.problem.PredicateDefinition <em>Predicate Definition</em>}'. | ||
1394 | * <!-- begin-user-doc --> | ||
1395 | * <!-- end-user-doc --> | ||
1396 | * @return the meta object for class '<em>Predicate Definition</em>'. | ||
1397 | * @see org.eclipse.viatra.solver.language.model.problem.PredicateDefinition | ||
1398 | * @generated | ||
1399 | */ | ||
1400 | EClass getPredicateDefinition(); | ||
1401 | |||
1402 | /** | ||
1403 | * Returns the meta object for the attribute '{@link org.eclipse.viatra.solver.language.model.problem.PredicateDefinition#isError <em>Error</em>}'. | ||
1404 | * <!-- begin-user-doc --> | ||
1405 | * <!-- end-user-doc --> | ||
1406 | * @return the meta object for the attribute '<em>Error</em>'. | ||
1407 | * @see org.eclipse.viatra.solver.language.model.problem.PredicateDefinition#isError() | ||
1408 | * @see #getPredicateDefinition() | ||
1409 | * @generated | ||
1410 | */ | ||
1411 | EAttribute getPredicateDefinition_Error(); | ||
1412 | |||
1413 | /** | ||
1414 | * Returns the meta object for the containment reference list '{@link org.eclipse.viatra.solver.language.model.problem.PredicateDefinition#getParameters <em>Parameters</em>}'. | ||
1415 | * <!-- begin-user-doc --> | ||
1416 | * <!-- end-user-doc --> | ||
1417 | * @return the meta object for the containment reference list '<em>Parameters</em>'. | ||
1418 | * @see org.eclipse.viatra.solver.language.model.problem.PredicateDefinition#getParameters() | ||
1419 | * @see #getPredicateDefinition() | ||
1420 | * @generated | ||
1421 | */ | ||
1422 | EReference getPredicateDefinition_Parameters(); | ||
1423 | |||
1424 | /** | ||
1425 | * Returns the meta object for the containment reference list '{@link org.eclipse.viatra.solver.language.model.problem.PredicateDefinition#getBodies <em>Bodies</em>}'. | ||
1426 | * <!-- begin-user-doc --> | ||
1427 | * <!-- end-user-doc --> | ||
1428 | * @return the meta object for the containment reference list '<em>Bodies</em>'. | ||
1429 | * @see org.eclipse.viatra.solver.language.model.problem.PredicateDefinition#getBodies() | ||
1430 | * @see #getPredicateDefinition() | ||
1431 | * @generated | ||
1432 | */ | ||
1433 | EReference getPredicateDefinition_Bodies(); | ||
1434 | |||
1435 | /** | ||
1436 | * Returns the meta object for class '{@link org.eclipse.viatra.solver.language.model.problem.Parameter <em>Parameter</em>}'. | ||
1437 | * <!-- begin-user-doc --> | ||
1438 | * <!-- end-user-doc --> | ||
1439 | * @return the meta object for class '<em>Parameter</em>'. | ||
1440 | * @see org.eclipse.viatra.solver.language.model.problem.Parameter | ||
1441 | * @generated | ||
1442 | */ | ||
1443 | EClass getParameter(); | ||
1444 | |||
1445 | /** | ||
1446 | * Returns the meta object for the reference '{@link org.eclipse.viatra.solver.language.model.problem.Parameter#getParameterType <em>Parameter Type</em>}'. | ||
1447 | * <!-- begin-user-doc --> | ||
1448 | * <!-- end-user-doc --> | ||
1449 | * @return the meta object for the reference '<em>Parameter Type</em>'. | ||
1450 | * @see org.eclipse.viatra.solver.language.model.problem.Parameter#getParameterType() | ||
1451 | * @see #getParameter() | ||
1452 | * @generated | ||
1453 | */ | ||
1454 | EReference getParameter_ParameterType(); | ||
1455 | |||
1456 | /** | ||
1457 | * Returns the meta object for class '{@link org.eclipse.viatra.solver.language.model.problem.Variable <em>Variable</em>}'. | ||
1458 | * <!-- begin-user-doc --> | ||
1459 | * <!-- end-user-doc --> | ||
1460 | * @return the meta object for class '<em>Variable</em>'. | ||
1461 | * @see org.eclipse.viatra.solver.language.model.problem.Variable | ||
1462 | * @generated | ||
1463 | */ | ||
1464 | EClass getVariable(); | ||
1465 | |||
1466 | /** | ||
1467 | * Returns the meta object for class '{@link org.eclipse.viatra.solver.language.model.problem.Conjunction <em>Conjunction</em>}'. | ||
1468 | * <!-- begin-user-doc --> | ||
1469 | * <!-- end-user-doc --> | ||
1470 | * @return the meta object for class '<em>Conjunction</em>'. | ||
1471 | * @see org.eclipse.viatra.solver.language.model.problem.Conjunction | ||
1472 | * @generated | ||
1473 | */ | ||
1474 | EClass getConjunction(); | ||
1475 | |||
1476 | /** | ||
1477 | * Returns the meta object for the containment reference list '{@link org.eclipse.viatra.solver.language.model.problem.Conjunction#getLiterals <em>Literals</em>}'. | ||
1478 | * <!-- begin-user-doc --> | ||
1479 | * <!-- end-user-doc --> | ||
1480 | * @return the meta object for the containment reference list '<em>Literals</em>'. | ||
1481 | * @see org.eclipse.viatra.solver.language.model.problem.Conjunction#getLiterals() | ||
1482 | * @see #getConjunction() | ||
1483 | * @generated | ||
1484 | */ | ||
1485 | EReference getConjunction_Literals(); | ||
1486 | |||
1487 | /** | ||
1488 | * Returns the meta object for class '{@link org.eclipse.viatra.solver.language.model.problem.Literal <em>Literal</em>}'. | ||
1489 | * <!-- begin-user-doc --> | ||
1490 | * <!-- end-user-doc --> | ||
1491 | * @return the meta object for class '<em>Literal</em>'. | ||
1492 | * @see org.eclipse.viatra.solver.language.model.problem.Literal | ||
1493 | * @generated | ||
1494 | */ | ||
1495 | EClass getLiteral(); | ||
1496 | |||
1497 | /** | ||
1498 | * Returns the meta object for class '{@link org.eclipse.viatra.solver.language.model.problem.Atom <em>Atom</em>}'. | ||
1499 | * <!-- begin-user-doc --> | ||
1500 | * <!-- end-user-doc --> | ||
1501 | * @return the meta object for class '<em>Atom</em>'. | ||
1502 | * @see org.eclipse.viatra.solver.language.model.problem.Atom | ||
1503 | * @generated | ||
1504 | */ | ||
1505 | EClass getAtom(); | ||
1506 | |||
1507 | /** | ||
1508 | * Returns the meta object for the reference '{@link org.eclipse.viatra.solver.language.model.problem.Atom#getRelation <em>Relation</em>}'. | ||
1509 | * <!-- begin-user-doc --> | ||
1510 | * <!-- end-user-doc --> | ||
1511 | * @return the meta object for the reference '<em>Relation</em>'. | ||
1512 | * @see org.eclipse.viatra.solver.language.model.problem.Atom#getRelation() | ||
1513 | * @see #getAtom() | ||
1514 | * @generated | ||
1515 | */ | ||
1516 | EReference getAtom_Relation(); | ||
1517 | |||
1518 | /** | ||
1519 | * Returns the meta object for the containment reference list '{@link org.eclipse.viatra.solver.language.model.problem.Atom#getArguments <em>Arguments</em>}'. | ||
1520 | * <!-- begin-user-doc --> | ||
1521 | * <!-- end-user-doc --> | ||
1522 | * @return the meta object for the containment reference list '<em>Arguments</em>'. | ||
1523 | * @see org.eclipse.viatra.solver.language.model.problem.Atom#getArguments() | ||
1524 | * @see #getAtom() | ||
1525 | * @generated | ||
1526 | */ | ||
1527 | EReference getAtom_Arguments(); | ||
1528 | |||
1529 | /** | ||
1530 | * Returns the meta object for the attribute '{@link org.eclipse.viatra.solver.language.model.problem.Atom#isTransitiveClosure <em>Transitive Closure</em>}'. | ||
1531 | * <!-- begin-user-doc --> | ||
1532 | * <!-- end-user-doc --> | ||
1533 | * @return the meta object for the attribute '<em>Transitive Closure</em>'. | ||
1534 | * @see org.eclipse.viatra.solver.language.model.problem.Atom#isTransitiveClosure() | ||
1535 | * @see #getAtom() | ||
1536 | * @generated | ||
1537 | */ | ||
1538 | EAttribute getAtom_TransitiveClosure(); | ||
1539 | |||
1540 | /** | ||
1541 | * Returns the meta object for class '{@link org.eclipse.viatra.solver.language.model.problem.ImplicitVariable <em>Implicit Variable</em>}'. | ||
1542 | * <!-- begin-user-doc --> | ||
1543 | * <!-- end-user-doc --> | ||
1544 | * @return the meta object for class '<em>Implicit Variable</em>'. | ||
1545 | * @see org.eclipse.viatra.solver.language.model.problem.ImplicitVariable | ||
1546 | * @generated | ||
1547 | */ | ||
1548 | EClass getImplicitVariable(); | ||
1549 | |||
1550 | /** | ||
1551 | * Returns the meta object for class '{@link org.eclipse.viatra.solver.language.model.problem.NegativeLiteral <em>Negative Literal</em>}'. | ||
1552 | * <!-- begin-user-doc --> | ||
1553 | * <!-- end-user-doc --> | ||
1554 | * @return the meta object for class '<em>Negative Literal</em>'. | ||
1555 | * @see org.eclipse.viatra.solver.language.model.problem.NegativeLiteral | ||
1556 | * @generated | ||
1557 | */ | ||
1558 | EClass getNegativeLiteral(); | ||
1559 | |||
1560 | /** | ||
1561 | * Returns the meta object for the containment reference '{@link org.eclipse.viatra.solver.language.model.problem.NegativeLiteral#getAtom <em>Atom</em>}'. | ||
1562 | * <!-- begin-user-doc --> | ||
1563 | * <!-- end-user-doc --> | ||
1564 | * @return the meta object for the containment reference '<em>Atom</em>'. | ||
1565 | * @see org.eclipse.viatra.solver.language.model.problem.NegativeLiteral#getAtom() | ||
1566 | * @see #getNegativeLiteral() | ||
1567 | * @generated | ||
1568 | */ | ||
1569 | EReference getNegativeLiteral_Atom(); | ||
1570 | |||
1571 | /** | ||
1572 | * Returns the meta object for class '{@link org.eclipse.viatra.solver.language.model.problem.ExistentialQuantifier <em>Existential Quantifier</em>}'. | ||
1573 | * <!-- begin-user-doc --> | ||
1574 | * <!-- end-user-doc --> | ||
1575 | * @return the meta object for class '<em>Existential Quantifier</em>'. | ||
1576 | * @see org.eclipse.viatra.solver.language.model.problem.ExistentialQuantifier | ||
1577 | * @generated | ||
1578 | */ | ||
1579 | EClass getExistentialQuantifier(); | ||
1580 | |||
1581 | /** | ||
1582 | * Returns the meta object for the containment reference list '{@link org.eclipse.viatra.solver.language.model.problem.ExistentialQuantifier#getImplicitVariables <em>Implicit Variables</em>}'. | ||
1583 | * <!-- begin-user-doc --> | ||
1584 | * <!-- end-user-doc --> | ||
1585 | * @return the meta object for the containment reference list '<em>Implicit Variables</em>'. | ||
1586 | * @see org.eclipse.viatra.solver.language.model.problem.ExistentialQuantifier#getImplicitVariables() | ||
1587 | * @see #getExistentialQuantifier() | ||
1588 | * @generated | ||
1589 | */ | ||
1590 | EReference getExistentialQuantifier_ImplicitVariables(); | ||
1591 | |||
1592 | /** | ||
1593 | * Returns the meta object for class '{@link org.eclipse.viatra.solver.language.model.problem.Assertion <em>Assertion</em>}'. | ||
1594 | * <!-- begin-user-doc --> | ||
1595 | * <!-- end-user-doc --> | ||
1596 | * @return the meta object for class '<em>Assertion</em>'. | ||
1597 | * @see org.eclipse.viatra.solver.language.model.problem.Assertion | ||
1598 | * @generated | ||
1599 | */ | ||
1600 | EClass getAssertion(); | ||
1601 | |||
1602 | /** | ||
1603 | * Returns the meta object for the reference '{@link org.eclipse.viatra.solver.language.model.problem.Assertion#getRelation <em>Relation</em>}'. | ||
1604 | * <!-- begin-user-doc --> | ||
1605 | * <!-- end-user-doc --> | ||
1606 | * @return the meta object for the reference '<em>Relation</em>'. | ||
1607 | * @see org.eclipse.viatra.solver.language.model.problem.Assertion#getRelation() | ||
1608 | * @see #getAssertion() | ||
1609 | * @generated | ||
1610 | */ | ||
1611 | EReference getAssertion_Relation(); | ||
1612 | |||
1613 | /** | ||
1614 | * Returns the meta object for the reference list '{@link org.eclipse.viatra.solver.language.model.problem.Assertion#getArguments <em>Arguments</em>}'. | ||
1615 | * <!-- begin-user-doc --> | ||
1616 | * <!-- end-user-doc --> | ||
1617 | * @return the meta object for the reference list '<em>Arguments</em>'. | ||
1618 | * @see org.eclipse.viatra.solver.language.model.problem.Assertion#getArguments() | ||
1619 | * @see #getAssertion() | ||
1620 | * @generated | ||
1621 | */ | ||
1622 | EReference getAssertion_Arguments(); | ||
1623 | |||
1624 | /** | ||
1625 | * Returns the meta object for the attribute '{@link org.eclipse.viatra.solver.language.model.problem.Assertion#getValue <em>Value</em>}'. | ||
1626 | * <!-- begin-user-doc --> | ||
1627 | * <!-- end-user-doc --> | ||
1628 | * @return the meta object for the attribute '<em>Value</em>'. | ||
1629 | * @see org.eclipse.viatra.solver.language.model.problem.Assertion#getValue() | ||
1630 | * @see #getAssertion() | ||
1631 | * @generated | ||
1632 | */ | ||
1633 | EAttribute getAssertion_Value(); | ||
1634 | |||
1635 | /** | ||
1636 | * Returns the meta object for class '{@link org.eclipse.viatra.solver.language.model.problem.Node <em>Node</em>}'. | ||
1637 | * <!-- begin-user-doc --> | ||
1638 | * <!-- end-user-doc --> | ||
1639 | * @return the meta object for class '<em>Node</em>'. | ||
1640 | * @see org.eclipse.viatra.solver.language.model.problem.Node | ||
1641 | * @generated | ||
1642 | */ | ||
1643 | EClass getNode(); | ||
1644 | |||
1645 | /** | ||
1646 | * Returns the meta object for class '{@link org.eclipse.viatra.solver.language.model.problem.ScopeDeclaration <em>Scope Declaration</em>}'. | ||
1647 | * <!-- begin-user-doc --> | ||
1648 | * <!-- end-user-doc --> | ||
1649 | * @return the meta object for class '<em>Scope Declaration</em>'. | ||
1650 | * @see org.eclipse.viatra.solver.language.model.problem.ScopeDeclaration | ||
1651 | * @generated | ||
1652 | */ | ||
1653 | EClass getScopeDeclaration(); | ||
1654 | |||
1655 | /** | ||
1656 | * Returns the meta object for the containment reference list '{@link org.eclipse.viatra.solver.language.model.problem.ScopeDeclaration#getTypeScopes <em>Type Scopes</em>}'. | ||
1657 | * <!-- begin-user-doc --> | ||
1658 | * <!-- end-user-doc --> | ||
1659 | * @return the meta object for the containment reference list '<em>Type Scopes</em>'. | ||
1660 | * @see org.eclipse.viatra.solver.language.model.problem.ScopeDeclaration#getTypeScopes() | ||
1661 | * @see #getScopeDeclaration() | ||
1662 | * @generated | ||
1663 | */ | ||
1664 | EReference getScopeDeclaration_TypeScopes(); | ||
1665 | |||
1666 | /** | ||
1667 | * Returns the meta object for class '{@link org.eclipse.viatra.solver.language.model.problem.Statement <em>Statement</em>}'. | ||
1668 | * <!-- begin-user-doc --> | ||
1669 | * <!-- end-user-doc --> | ||
1670 | * @return the meta object for class '<em>Statement</em>'. | ||
1671 | * @see org.eclipse.viatra.solver.language.model.problem.Statement | ||
1672 | * @generated | ||
1673 | */ | ||
1674 | EClass getStatement(); | ||
1675 | |||
1676 | /** | ||
1677 | * Returns the meta object for class '{@link org.eclipse.viatra.solver.language.model.problem.TypeScope <em>Type Scope</em>}'. | ||
1678 | * <!-- begin-user-doc --> | ||
1679 | * <!-- end-user-doc --> | ||
1680 | * @return the meta object for class '<em>Type Scope</em>'. | ||
1681 | * @see org.eclipse.viatra.solver.language.model.problem.TypeScope | ||
1682 | * @generated | ||
1683 | */ | ||
1684 | EClass getTypeScope(); | ||
1685 | |||
1686 | /** | ||
1687 | * Returns the meta object for the reference '{@link org.eclipse.viatra.solver.language.model.problem.TypeScope#getTargetType <em>Target Type</em>}'. | ||
1688 | * <!-- begin-user-doc --> | ||
1689 | * <!-- end-user-doc --> | ||
1690 | * @return the meta object for the reference '<em>Target Type</em>'. | ||
1691 | * @see org.eclipse.viatra.solver.language.model.problem.TypeScope#getTargetType() | ||
1692 | * @see #getTypeScope() | ||
1693 | * @generated | ||
1694 | */ | ||
1695 | EReference getTypeScope_TargetType(); | ||
1696 | |||
1697 | /** | ||
1698 | * Returns the meta object for the attribute '{@link org.eclipse.viatra.solver.language.model.problem.TypeScope#isIncrement <em>Increment</em>}'. | ||
1699 | * <!-- begin-user-doc --> | ||
1700 | * <!-- end-user-doc --> | ||
1701 | * @return the meta object for the attribute '<em>Increment</em>'. | ||
1702 | * @see org.eclipse.viatra.solver.language.model.problem.TypeScope#isIncrement() | ||
1703 | * @see #getTypeScope() | ||
1704 | * @generated | ||
1705 | */ | ||
1706 | EAttribute getTypeScope_Increment(); | ||
1707 | |||
1708 | /** | ||
1709 | * Returns the meta object for the containment reference '{@link org.eclipse.viatra.solver.language.model.problem.TypeScope#getMultiplicity <em>Multiplicity</em>}'. | ||
1710 | * <!-- begin-user-doc --> | ||
1711 | * <!-- end-user-doc --> | ||
1712 | * @return the meta object for the containment reference '<em>Multiplicity</em>'. | ||
1713 | * @see org.eclipse.viatra.solver.language.model.problem.TypeScope#getMultiplicity() | ||
1714 | * @see #getTypeScope() | ||
1715 | * @generated | ||
1716 | */ | ||
1717 | EReference getTypeScope_Multiplicity(); | ||
1718 | |||
1719 | /** | ||
1720 | * Returns the meta object for class '{@link org.eclipse.viatra.solver.language.model.problem.Multiplicity <em>Multiplicity</em>}'. | ||
1721 | * <!-- begin-user-doc --> | ||
1722 | * <!-- end-user-doc --> | ||
1723 | * @return the meta object for class '<em>Multiplicity</em>'. | ||
1724 | * @see org.eclipse.viatra.solver.language.model.problem.Multiplicity | ||
1725 | * @generated | ||
1726 | */ | ||
1727 | EClass getMultiplicity(); | ||
1728 | |||
1729 | /** | ||
1730 | * Returns the meta object for class '{@link org.eclipse.viatra.solver.language.model.problem.RangeMultiplicity <em>Range Multiplicity</em>}'. | ||
1731 | * <!-- begin-user-doc --> | ||
1732 | * <!-- end-user-doc --> | ||
1733 | * @return the meta object for class '<em>Range Multiplicity</em>'. | ||
1734 | * @see org.eclipse.viatra.solver.language.model.problem.RangeMultiplicity | ||
1735 | * @generated | ||
1736 | */ | ||
1737 | EClass getRangeMultiplicity(); | ||
1738 | |||
1739 | /** | ||
1740 | * Returns the meta object for the attribute '{@link org.eclipse.viatra.solver.language.model.problem.RangeMultiplicity#getLowerBound <em>Lower Bound</em>}'. | ||
1741 | * <!-- begin-user-doc --> | ||
1742 | * <!-- end-user-doc --> | ||
1743 | * @return the meta object for the attribute '<em>Lower Bound</em>'. | ||
1744 | * @see org.eclipse.viatra.solver.language.model.problem.RangeMultiplicity#getLowerBound() | ||
1745 | * @see #getRangeMultiplicity() | ||
1746 | * @generated | ||
1747 | */ | ||
1748 | EAttribute getRangeMultiplicity_LowerBound(); | ||
1749 | |||
1750 | /** | ||
1751 | * Returns the meta object for the attribute '{@link org.eclipse.viatra.solver.language.model.problem.RangeMultiplicity#getUpperBound <em>Upper Bound</em>}'. | ||
1752 | * <!-- begin-user-doc --> | ||
1753 | * <!-- end-user-doc --> | ||
1754 | * @return the meta object for the attribute '<em>Upper Bound</em>'. | ||
1755 | * @see org.eclipse.viatra.solver.language.model.problem.RangeMultiplicity#getUpperBound() | ||
1756 | * @see #getRangeMultiplicity() | ||
1757 | * @generated | ||
1758 | */ | ||
1759 | EAttribute getRangeMultiplicity_UpperBound(); | ||
1760 | |||
1761 | /** | ||
1762 | * Returns the meta object for class '{@link org.eclipse.viatra.solver.language.model.problem.ExactMultiplicity <em>Exact Multiplicity</em>}'. | ||
1763 | * <!-- begin-user-doc --> | ||
1764 | * <!-- end-user-doc --> | ||
1765 | * @return the meta object for class '<em>Exact Multiplicity</em>'. | ||
1766 | * @see org.eclipse.viatra.solver.language.model.problem.ExactMultiplicity | ||
1767 | * @generated | ||
1768 | */ | ||
1769 | EClass getExactMultiplicity(); | ||
1770 | |||
1771 | /** | ||
1772 | * Returns the meta object for the attribute '{@link org.eclipse.viatra.solver.language.model.problem.ExactMultiplicity#getExactValue <em>Exact Value</em>}'. | ||
1773 | * <!-- begin-user-doc --> | ||
1774 | * <!-- end-user-doc --> | ||
1775 | * @return the meta object for the attribute '<em>Exact Value</em>'. | ||
1776 | * @see org.eclipse.viatra.solver.language.model.problem.ExactMultiplicity#getExactValue() | ||
1777 | * @see #getExactMultiplicity() | ||
1778 | * @generated | ||
1779 | */ | ||
1780 | EAttribute getExactMultiplicity_ExactValue(); | ||
1781 | |||
1782 | /** | ||
1783 | * Returns the meta object for class '{@link org.eclipse.viatra.solver.language.model.problem.UnboundedMultiplicity <em>Unbounded Multiplicity</em>}'. | ||
1784 | * <!-- begin-user-doc --> | ||
1785 | * <!-- end-user-doc --> | ||
1786 | * @return the meta object for class '<em>Unbounded Multiplicity</em>'. | ||
1787 | * @see org.eclipse.viatra.solver.language.model.problem.UnboundedMultiplicity | ||
1788 | * @generated | ||
1789 | */ | ||
1790 | EClass getUnboundedMultiplicity(); | ||
1791 | |||
1792 | /** | ||
1793 | * Returns the meta object for class '{@link org.eclipse.viatra.solver.language.model.problem.Argument <em>Argument</em>}'. | ||
1794 | * <!-- begin-user-doc --> | ||
1795 | * <!-- end-user-doc --> | ||
1796 | * @return the meta object for class '<em>Argument</em>'. | ||
1797 | * @see org.eclipse.viatra.solver.language.model.problem.Argument | ||
1798 | * @generated | ||
1799 | */ | ||
1800 | EClass getArgument(); | ||
1801 | |||
1802 | /** | ||
1803 | * Returns the meta object for the reference '{@link org.eclipse.viatra.solver.language.model.problem.Argument#getVariableOrNode <em>Variable Or Node</em>}'. | ||
1804 | * <!-- begin-user-doc --> | ||
1805 | * <!-- end-user-doc --> | ||
1806 | * @return the meta object for the reference '<em>Variable Or Node</em>'. | ||
1807 | * @see org.eclipse.viatra.solver.language.model.problem.Argument#getVariableOrNode() | ||
1808 | * @see #getArgument() | ||
1809 | * @generated | ||
1810 | */ | ||
1811 | EReference getArgument_VariableOrNode(); | ||
1812 | |||
1813 | /** | ||
1814 | * Returns the meta object for the containment reference '{@link org.eclipse.viatra.solver.language.model.problem.Argument#getSingletonVariable <em>Singleton Variable</em>}'. | ||
1815 | * <!-- begin-user-doc --> | ||
1816 | * <!-- end-user-doc --> | ||
1817 | * @return the meta object for the containment reference '<em>Singleton Variable</em>'. | ||
1818 | * @see org.eclipse.viatra.solver.language.model.problem.Argument#getSingletonVariable() | ||
1819 | * @see #getArgument() | ||
1820 | * @generated | ||
1821 | */ | ||
1822 | EReference getArgument_SingletonVariable(); | ||
1823 | |||
1824 | /** | ||
1825 | * Returns the meta object for class '{@link org.eclipse.viatra.solver.language.model.problem.EnumDeclaration <em>Enum Declaration</em>}'. | ||
1826 | * <!-- begin-user-doc --> | ||
1827 | * <!-- end-user-doc --> | ||
1828 | * @return the meta object for class '<em>Enum Declaration</em>'. | ||
1829 | * @see org.eclipse.viatra.solver.language.model.problem.EnumDeclaration | ||
1830 | * @generated | ||
1831 | */ | ||
1832 | EClass getEnumDeclaration(); | ||
1833 | |||
1834 | /** | ||
1835 | * Returns the meta object for the containment reference list '{@link org.eclipse.viatra.solver.language.model.problem.EnumDeclaration#getLiterals <em>Literals</em>}'. | ||
1836 | * <!-- begin-user-doc --> | ||
1837 | * <!-- end-user-doc --> | ||
1838 | * @return the meta object for the containment reference list '<em>Literals</em>'. | ||
1839 | * @see org.eclipse.viatra.solver.language.model.problem.EnumDeclaration#getLiterals() | ||
1840 | * @see #getEnumDeclaration() | ||
1841 | * @generated | ||
1842 | */ | ||
1843 | EReference getEnumDeclaration_Literals(); | ||
1844 | |||
1845 | /** | ||
1846 | * Returns the meta object for class '{@link org.eclipse.viatra.solver.language.model.problem.VariableOrNode <em>Variable Or Node</em>}'. | ||
1847 | * <!-- begin-user-doc --> | ||
1848 | * <!-- end-user-doc --> | ||
1849 | * @return the meta object for class '<em>Variable Or Node</em>'. | ||
1850 | * @see org.eclipse.viatra.solver.language.model.problem.VariableOrNode | ||
1851 | * @generated | ||
1852 | */ | ||
1853 | EClass getVariableOrNode(); | ||
1854 | |||
1855 | /** | ||
1856 | * Returns the meta object for enum '{@link org.eclipse.viatra.solver.language.model.problem.LogicValue <em>Logic Value</em>}'. | ||
1857 | * <!-- begin-user-doc --> | ||
1858 | * <!-- end-user-doc --> | ||
1859 | * @return the meta object for enum '<em>Logic Value</em>'. | ||
1860 | * @see org.eclipse.viatra.solver.language.model.problem.LogicValue | ||
1861 | * @generated | ||
1862 | */ | ||
1863 | EEnum getLogicValue(); | ||
1864 | |||
1865 | /** | ||
1866 | * Returns the factory that creates the instances of the model. | ||
1867 | * <!-- begin-user-doc --> | ||
1868 | * <!-- end-user-doc --> | ||
1869 | * @return the factory that creates the instances of the model. | ||
1870 | * @generated | ||
1871 | */ | ||
1872 | ProblemFactory getProblemFactory(); | ||
1873 | |||
1874 | /** | ||
1875 | * <!-- begin-user-doc --> | ||
1876 | * Defines literals for the meta objects that represent | ||
1877 | * <ul> | ||
1878 | * <li>each class,</li> | ||
1879 | * <li>each feature of each class,</li> | ||
1880 | * <li>each operation of each class,</li> | ||
1881 | * <li>each enum,</li> | ||
1882 | * <li>and each data type</li> | ||
1883 | * </ul> | ||
1884 | * <!-- end-user-doc --> | ||
1885 | * @generated | ||
1886 | */ | ||
1887 | interface Literals { | ||
1888 | /** | ||
1889 | * The meta object literal for the '{@link org.eclipse.viatra.solver.language.model.problem.impl.ProblemImpl <em>Problem</em>}' class. | ||
1890 | * <!-- begin-user-doc --> | ||
1891 | * <!-- end-user-doc --> | ||
1892 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ProblemImpl | ||
1893 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ProblemPackageImpl#getProblem() | ||
1894 | * @generated | ||
1895 | */ | ||
1896 | EClass PROBLEM = eINSTANCE.getProblem(); | ||
1897 | |||
1898 | /** | ||
1899 | * The meta object literal for the '<em><b>Nodes</b></em>' containment reference list feature. | ||
1900 | * <!-- begin-user-doc --> | ||
1901 | * <!-- end-user-doc --> | ||
1902 | * @generated | ||
1903 | */ | ||
1904 | EReference PROBLEM__NODES = eINSTANCE.getProblem_Nodes(); | ||
1905 | |||
1906 | /** | ||
1907 | * The meta object literal for the '<em><b>Statements</b></em>' containment reference list feature. | ||
1908 | * <!-- begin-user-doc --> | ||
1909 | * <!-- end-user-doc --> | ||
1910 | * @generated | ||
1911 | */ | ||
1912 | EReference PROBLEM__STATEMENTS = eINSTANCE.getProblem_Statements(); | ||
1913 | |||
1914 | /** | ||
1915 | * The meta object literal for the '{@link org.eclipse.viatra.solver.language.model.problem.impl.RelationImpl <em>Relation</em>}' class. | ||
1916 | * <!-- begin-user-doc --> | ||
1917 | * <!-- end-user-doc --> | ||
1918 | * @see org.eclipse.viatra.solver.language.model.problem.impl.RelationImpl | ||
1919 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ProblemPackageImpl#getRelation() | ||
1920 | * @generated | ||
1921 | */ | ||
1922 | EClass RELATION = eINSTANCE.getRelation(); | ||
1923 | |||
1924 | /** | ||
1925 | * The meta object literal for the '{@link org.eclipse.viatra.solver.language.model.problem.impl.ClassDeclarationImpl <em>Class Declaration</em>}' class. | ||
1926 | * <!-- begin-user-doc --> | ||
1927 | * <!-- end-user-doc --> | ||
1928 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ClassDeclarationImpl | ||
1929 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ProblemPackageImpl#getClassDeclaration() | ||
1930 | * @generated | ||
1931 | */ | ||
1932 | EClass CLASS_DECLARATION = eINSTANCE.getClassDeclaration(); | ||
1933 | |||
1934 | /** | ||
1935 | * The meta object literal for the '<em><b>Abstract</b></em>' attribute feature. | ||
1936 | * <!-- begin-user-doc --> | ||
1937 | * <!-- end-user-doc --> | ||
1938 | * @generated | ||
1939 | */ | ||
1940 | EAttribute CLASS_DECLARATION__ABSTRACT = eINSTANCE.getClassDeclaration_Abstract(); | ||
1941 | |||
1942 | /** | ||
1943 | * The meta object literal for the '<em><b>Super Types</b></em>' reference list feature. | ||
1944 | * <!-- begin-user-doc --> | ||
1945 | * <!-- end-user-doc --> | ||
1946 | * @generated | ||
1947 | */ | ||
1948 | EReference CLASS_DECLARATION__SUPER_TYPES = eINSTANCE.getClassDeclaration_SuperTypes(); | ||
1949 | |||
1950 | /** | ||
1951 | * The meta object literal for the '<em><b>Reference Declarations</b></em>' containment reference list feature. | ||
1952 | * <!-- begin-user-doc --> | ||
1953 | * <!-- end-user-doc --> | ||
1954 | * @generated | ||
1955 | */ | ||
1956 | EReference CLASS_DECLARATION__REFERENCE_DECLARATIONS = eINSTANCE.getClassDeclaration_ReferenceDeclarations(); | ||
1957 | |||
1958 | /** | ||
1959 | * The meta object literal for the '<em><b>New Node</b></em>' containment reference feature. | ||
1960 | * <!-- begin-user-doc --> | ||
1961 | * <!-- end-user-doc --> | ||
1962 | * @generated | ||
1963 | */ | ||
1964 | EReference CLASS_DECLARATION__NEW_NODE = eINSTANCE.getClassDeclaration_NewNode(); | ||
1965 | |||
1966 | /** | ||
1967 | * The meta object literal for the '{@link org.eclipse.viatra.solver.language.model.problem.impl.ReferenceDeclarationImpl <em>Reference Declaration</em>}' class. | ||
1968 | * <!-- begin-user-doc --> | ||
1969 | * <!-- end-user-doc --> | ||
1970 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ReferenceDeclarationImpl | ||
1971 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ProblemPackageImpl#getReferenceDeclaration() | ||
1972 | * @generated | ||
1973 | */ | ||
1974 | EClass REFERENCE_DECLARATION = eINSTANCE.getReferenceDeclaration(); | ||
1975 | |||
1976 | /** | ||
1977 | * The meta object literal for the '<em><b>Reference Type</b></em>' reference feature. | ||
1978 | * <!-- begin-user-doc --> | ||
1979 | * <!-- end-user-doc --> | ||
1980 | * @generated | ||
1981 | */ | ||
1982 | EReference REFERENCE_DECLARATION__REFERENCE_TYPE = eINSTANCE.getReferenceDeclaration_ReferenceType(); | ||
1983 | |||
1984 | /** | ||
1985 | * The meta object literal for the '<em><b>Opposite</b></em>' reference feature. | ||
1986 | * <!-- begin-user-doc --> | ||
1987 | * <!-- end-user-doc --> | ||
1988 | * @generated | ||
1989 | */ | ||
1990 | EReference REFERENCE_DECLARATION__OPPOSITE = eINSTANCE.getReferenceDeclaration_Opposite(); | ||
1991 | |||
1992 | /** | ||
1993 | * The meta object literal for the '<em><b>Containment</b></em>' attribute feature. | ||
1994 | * <!-- begin-user-doc --> | ||
1995 | * <!-- end-user-doc --> | ||
1996 | * @generated | ||
1997 | */ | ||
1998 | EAttribute REFERENCE_DECLARATION__CONTAINMENT = eINSTANCE.getReferenceDeclaration_Containment(); | ||
1999 | |||
2000 | /** | ||
2001 | * The meta object literal for the '<em><b>Multiplicity</b></em>' containment reference feature. | ||
2002 | * <!-- begin-user-doc --> | ||
2003 | * <!-- end-user-doc --> | ||
2004 | * @generated | ||
2005 | */ | ||
2006 | EReference REFERENCE_DECLARATION__MULTIPLICITY = eINSTANCE.getReferenceDeclaration_Multiplicity(); | ||
2007 | |||
2008 | /** | ||
2009 | * The meta object literal for the '{@link org.eclipse.viatra.solver.language.model.problem.impl.NamedElementImpl <em>Named Element</em>}' class. | ||
2010 | * <!-- begin-user-doc --> | ||
2011 | * <!-- end-user-doc --> | ||
2012 | * @see org.eclipse.viatra.solver.language.model.problem.impl.NamedElementImpl | ||
2013 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ProblemPackageImpl#getNamedElement() | ||
2014 | * @generated | ||
2015 | */ | ||
2016 | EClass NAMED_ELEMENT = eINSTANCE.getNamedElement(); | ||
2017 | |||
2018 | /** | ||
2019 | * The meta object literal for the '<em><b>Name</b></em>' attribute feature. | ||
2020 | * <!-- begin-user-doc --> | ||
2021 | * <!-- end-user-doc --> | ||
2022 | * @generated | ||
2023 | */ | ||
2024 | EAttribute NAMED_ELEMENT__NAME = eINSTANCE.getNamedElement_Name(); | ||
2025 | |||
2026 | /** | ||
2027 | * The meta object literal for the '{@link org.eclipse.viatra.solver.language.model.problem.impl.PredicateDefinitionImpl <em>Predicate Definition</em>}' class. | ||
2028 | * <!-- begin-user-doc --> | ||
2029 | * <!-- end-user-doc --> | ||
2030 | * @see org.eclipse.viatra.solver.language.model.problem.impl.PredicateDefinitionImpl | ||
2031 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ProblemPackageImpl#getPredicateDefinition() | ||
2032 | * @generated | ||
2033 | */ | ||
2034 | EClass PREDICATE_DEFINITION = eINSTANCE.getPredicateDefinition(); | ||
2035 | |||
2036 | /** | ||
2037 | * The meta object literal for the '<em><b>Error</b></em>' attribute feature. | ||
2038 | * <!-- begin-user-doc --> | ||
2039 | * <!-- end-user-doc --> | ||
2040 | * @generated | ||
2041 | */ | ||
2042 | EAttribute PREDICATE_DEFINITION__ERROR = eINSTANCE.getPredicateDefinition_Error(); | ||
2043 | |||
2044 | /** | ||
2045 | * The meta object literal for the '<em><b>Parameters</b></em>' containment reference list feature. | ||
2046 | * <!-- begin-user-doc --> | ||
2047 | * <!-- end-user-doc --> | ||
2048 | * @generated | ||
2049 | */ | ||
2050 | EReference PREDICATE_DEFINITION__PARAMETERS = eINSTANCE.getPredicateDefinition_Parameters(); | ||
2051 | |||
2052 | /** | ||
2053 | * The meta object literal for the '<em><b>Bodies</b></em>' containment reference list feature. | ||
2054 | * <!-- begin-user-doc --> | ||
2055 | * <!-- end-user-doc --> | ||
2056 | * @generated | ||
2057 | */ | ||
2058 | EReference PREDICATE_DEFINITION__BODIES = eINSTANCE.getPredicateDefinition_Bodies(); | ||
2059 | |||
2060 | /** | ||
2061 | * The meta object literal for the '{@link org.eclipse.viatra.solver.language.model.problem.impl.ParameterImpl <em>Parameter</em>}' class. | ||
2062 | * <!-- begin-user-doc --> | ||
2063 | * <!-- end-user-doc --> | ||
2064 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ParameterImpl | ||
2065 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ProblemPackageImpl#getParameter() | ||
2066 | * @generated | ||
2067 | */ | ||
2068 | EClass PARAMETER = eINSTANCE.getParameter(); | ||
2069 | |||
2070 | /** | ||
2071 | * The meta object literal for the '<em><b>Parameter Type</b></em>' reference feature. | ||
2072 | * <!-- begin-user-doc --> | ||
2073 | * <!-- end-user-doc --> | ||
2074 | * @generated | ||
2075 | */ | ||
2076 | EReference PARAMETER__PARAMETER_TYPE = eINSTANCE.getParameter_ParameterType(); | ||
2077 | |||
2078 | /** | ||
2079 | * The meta object literal for the '{@link org.eclipse.viatra.solver.language.model.problem.impl.VariableImpl <em>Variable</em>}' class. | ||
2080 | * <!-- begin-user-doc --> | ||
2081 | * <!-- end-user-doc --> | ||
2082 | * @see org.eclipse.viatra.solver.language.model.problem.impl.VariableImpl | ||
2083 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ProblemPackageImpl#getVariable() | ||
2084 | * @generated | ||
2085 | */ | ||
2086 | EClass VARIABLE = eINSTANCE.getVariable(); | ||
2087 | |||
2088 | /** | ||
2089 | * The meta object literal for the '{@link org.eclipse.viatra.solver.language.model.problem.impl.ConjunctionImpl <em>Conjunction</em>}' class. | ||
2090 | * <!-- begin-user-doc --> | ||
2091 | * <!-- end-user-doc --> | ||
2092 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ConjunctionImpl | ||
2093 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ProblemPackageImpl#getConjunction() | ||
2094 | * @generated | ||
2095 | */ | ||
2096 | EClass CONJUNCTION = eINSTANCE.getConjunction(); | ||
2097 | |||
2098 | /** | ||
2099 | * The meta object literal for the '<em><b>Literals</b></em>' containment reference list feature. | ||
2100 | * <!-- begin-user-doc --> | ||
2101 | * <!-- end-user-doc --> | ||
2102 | * @generated | ||
2103 | */ | ||
2104 | EReference CONJUNCTION__LITERALS = eINSTANCE.getConjunction_Literals(); | ||
2105 | |||
2106 | /** | ||
2107 | * The meta object literal for the '{@link org.eclipse.viatra.solver.language.model.problem.impl.LiteralImpl <em>Literal</em>}' class. | ||
2108 | * <!-- begin-user-doc --> | ||
2109 | * <!-- end-user-doc --> | ||
2110 | * @see org.eclipse.viatra.solver.language.model.problem.impl.LiteralImpl | ||
2111 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ProblemPackageImpl#getLiteral() | ||
2112 | * @generated | ||
2113 | */ | ||
2114 | EClass LITERAL = eINSTANCE.getLiteral(); | ||
2115 | |||
2116 | /** | ||
2117 | * The meta object literal for the '{@link org.eclipse.viatra.solver.language.model.problem.impl.AtomImpl <em>Atom</em>}' class. | ||
2118 | * <!-- begin-user-doc --> | ||
2119 | * <!-- end-user-doc --> | ||
2120 | * @see org.eclipse.viatra.solver.language.model.problem.impl.AtomImpl | ||
2121 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ProblemPackageImpl#getAtom() | ||
2122 | * @generated | ||
2123 | */ | ||
2124 | EClass ATOM = eINSTANCE.getAtom(); | ||
2125 | |||
2126 | /** | ||
2127 | * The meta object literal for the '<em><b>Relation</b></em>' reference feature. | ||
2128 | * <!-- begin-user-doc --> | ||
2129 | * <!-- end-user-doc --> | ||
2130 | * @generated | ||
2131 | */ | ||
2132 | EReference ATOM__RELATION = eINSTANCE.getAtom_Relation(); | ||
2133 | |||
2134 | /** | ||
2135 | * The meta object literal for the '<em><b>Arguments</b></em>' containment reference list feature. | ||
2136 | * <!-- begin-user-doc --> | ||
2137 | * <!-- end-user-doc --> | ||
2138 | * @generated | ||
2139 | */ | ||
2140 | EReference ATOM__ARGUMENTS = eINSTANCE.getAtom_Arguments(); | ||
2141 | |||
2142 | /** | ||
2143 | * The meta object literal for the '<em><b>Transitive Closure</b></em>' attribute feature. | ||
2144 | * <!-- begin-user-doc --> | ||
2145 | * <!-- end-user-doc --> | ||
2146 | * @generated | ||
2147 | */ | ||
2148 | EAttribute ATOM__TRANSITIVE_CLOSURE = eINSTANCE.getAtom_TransitiveClosure(); | ||
2149 | |||
2150 | /** | ||
2151 | * The meta object literal for the '{@link org.eclipse.viatra.solver.language.model.problem.impl.ImplicitVariableImpl <em>Implicit Variable</em>}' class. | ||
2152 | * <!-- begin-user-doc --> | ||
2153 | * <!-- end-user-doc --> | ||
2154 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ImplicitVariableImpl | ||
2155 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ProblemPackageImpl#getImplicitVariable() | ||
2156 | * @generated | ||
2157 | */ | ||
2158 | EClass IMPLICIT_VARIABLE = eINSTANCE.getImplicitVariable(); | ||
2159 | |||
2160 | /** | ||
2161 | * The meta object literal for the '{@link org.eclipse.viatra.solver.language.model.problem.impl.NegativeLiteralImpl <em>Negative Literal</em>}' class. | ||
2162 | * <!-- begin-user-doc --> | ||
2163 | * <!-- end-user-doc --> | ||
2164 | * @see org.eclipse.viatra.solver.language.model.problem.impl.NegativeLiteralImpl | ||
2165 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ProblemPackageImpl#getNegativeLiteral() | ||
2166 | * @generated | ||
2167 | */ | ||
2168 | EClass NEGATIVE_LITERAL = eINSTANCE.getNegativeLiteral(); | ||
2169 | |||
2170 | /** | ||
2171 | * The meta object literal for the '<em><b>Atom</b></em>' containment reference feature. | ||
2172 | * <!-- begin-user-doc --> | ||
2173 | * <!-- end-user-doc --> | ||
2174 | * @generated | ||
2175 | */ | ||
2176 | EReference NEGATIVE_LITERAL__ATOM = eINSTANCE.getNegativeLiteral_Atom(); | ||
2177 | |||
2178 | /** | ||
2179 | * The meta object literal for the '{@link org.eclipse.viatra.solver.language.model.problem.ExistentialQuantifier <em>Existential Quantifier</em>}' class. | ||
2180 | * <!-- begin-user-doc --> | ||
2181 | * <!-- end-user-doc --> | ||
2182 | * @see org.eclipse.viatra.solver.language.model.problem.ExistentialQuantifier | ||
2183 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ProblemPackageImpl#getExistentialQuantifier() | ||
2184 | * @generated | ||
2185 | */ | ||
2186 | EClass EXISTENTIAL_QUANTIFIER = eINSTANCE.getExistentialQuantifier(); | ||
2187 | |||
2188 | /** | ||
2189 | * The meta object literal for the '<em><b>Implicit Variables</b></em>' containment reference list feature. | ||
2190 | * <!-- begin-user-doc --> | ||
2191 | * <!-- end-user-doc --> | ||
2192 | * @generated | ||
2193 | */ | ||
2194 | EReference EXISTENTIAL_QUANTIFIER__IMPLICIT_VARIABLES = eINSTANCE.getExistentialQuantifier_ImplicitVariables(); | ||
2195 | |||
2196 | /** | ||
2197 | * The meta object literal for the '{@link org.eclipse.viatra.solver.language.model.problem.impl.AssertionImpl <em>Assertion</em>}' class. | ||
2198 | * <!-- begin-user-doc --> | ||
2199 | * <!-- end-user-doc --> | ||
2200 | * @see org.eclipse.viatra.solver.language.model.problem.impl.AssertionImpl | ||
2201 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ProblemPackageImpl#getAssertion() | ||
2202 | * @generated | ||
2203 | */ | ||
2204 | EClass ASSERTION = eINSTANCE.getAssertion(); | ||
2205 | |||
2206 | /** | ||
2207 | * The meta object literal for the '<em><b>Relation</b></em>' reference feature. | ||
2208 | * <!-- begin-user-doc --> | ||
2209 | * <!-- end-user-doc --> | ||
2210 | * @generated | ||
2211 | */ | ||
2212 | EReference ASSERTION__RELATION = eINSTANCE.getAssertion_Relation(); | ||
2213 | |||
2214 | /** | ||
2215 | * The meta object literal for the '<em><b>Arguments</b></em>' reference list feature. | ||
2216 | * <!-- begin-user-doc --> | ||
2217 | * <!-- end-user-doc --> | ||
2218 | * @generated | ||
2219 | */ | ||
2220 | EReference ASSERTION__ARGUMENTS = eINSTANCE.getAssertion_Arguments(); | ||
2221 | |||
2222 | /** | ||
2223 | * The meta object literal for the '<em><b>Value</b></em>' attribute feature. | ||
2224 | * <!-- begin-user-doc --> | ||
2225 | * <!-- end-user-doc --> | ||
2226 | * @generated | ||
2227 | */ | ||
2228 | EAttribute ASSERTION__VALUE = eINSTANCE.getAssertion_Value(); | ||
2229 | |||
2230 | /** | ||
2231 | * The meta object literal for the '{@link org.eclipse.viatra.solver.language.model.problem.impl.NodeImpl <em>Node</em>}' class. | ||
2232 | * <!-- begin-user-doc --> | ||
2233 | * <!-- end-user-doc --> | ||
2234 | * @see org.eclipse.viatra.solver.language.model.problem.impl.NodeImpl | ||
2235 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ProblemPackageImpl#getNode() | ||
2236 | * @generated | ||
2237 | */ | ||
2238 | EClass NODE = eINSTANCE.getNode(); | ||
2239 | |||
2240 | /** | ||
2241 | * The meta object literal for the '{@link org.eclipse.viatra.solver.language.model.problem.impl.ScopeDeclarationImpl <em>Scope Declaration</em>}' class. | ||
2242 | * <!-- begin-user-doc --> | ||
2243 | * <!-- end-user-doc --> | ||
2244 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ScopeDeclarationImpl | ||
2245 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ProblemPackageImpl#getScopeDeclaration() | ||
2246 | * @generated | ||
2247 | */ | ||
2248 | EClass SCOPE_DECLARATION = eINSTANCE.getScopeDeclaration(); | ||
2249 | |||
2250 | /** | ||
2251 | * The meta object literal for the '<em><b>Type Scopes</b></em>' containment reference list feature. | ||
2252 | * <!-- begin-user-doc --> | ||
2253 | * <!-- end-user-doc --> | ||
2254 | * @generated | ||
2255 | */ | ||
2256 | EReference SCOPE_DECLARATION__TYPE_SCOPES = eINSTANCE.getScopeDeclaration_TypeScopes(); | ||
2257 | |||
2258 | /** | ||
2259 | * The meta object literal for the '{@link org.eclipse.viatra.solver.language.model.problem.Statement <em>Statement</em>}' class. | ||
2260 | * <!-- begin-user-doc --> | ||
2261 | * <!-- end-user-doc --> | ||
2262 | * @see org.eclipse.viatra.solver.language.model.problem.Statement | ||
2263 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ProblemPackageImpl#getStatement() | ||
2264 | * @generated | ||
2265 | */ | ||
2266 | EClass STATEMENT = eINSTANCE.getStatement(); | ||
2267 | |||
2268 | /** | ||
2269 | * The meta object literal for the '{@link org.eclipse.viatra.solver.language.model.problem.impl.TypeScopeImpl <em>Type Scope</em>}' class. | ||
2270 | * <!-- begin-user-doc --> | ||
2271 | * <!-- end-user-doc --> | ||
2272 | * @see org.eclipse.viatra.solver.language.model.problem.impl.TypeScopeImpl | ||
2273 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ProblemPackageImpl#getTypeScope() | ||
2274 | * @generated | ||
2275 | */ | ||
2276 | EClass TYPE_SCOPE = eINSTANCE.getTypeScope(); | ||
2277 | |||
2278 | /** | ||
2279 | * The meta object literal for the '<em><b>Target Type</b></em>' reference feature. | ||
2280 | * <!-- begin-user-doc --> | ||
2281 | * <!-- end-user-doc --> | ||
2282 | * @generated | ||
2283 | */ | ||
2284 | EReference TYPE_SCOPE__TARGET_TYPE = eINSTANCE.getTypeScope_TargetType(); | ||
2285 | |||
2286 | /** | ||
2287 | * The meta object literal for the '<em><b>Increment</b></em>' attribute feature. | ||
2288 | * <!-- begin-user-doc --> | ||
2289 | * <!-- end-user-doc --> | ||
2290 | * @generated | ||
2291 | */ | ||
2292 | EAttribute TYPE_SCOPE__INCREMENT = eINSTANCE.getTypeScope_Increment(); | ||
2293 | |||
2294 | /** | ||
2295 | * The meta object literal for the '<em><b>Multiplicity</b></em>' containment reference feature. | ||
2296 | * <!-- begin-user-doc --> | ||
2297 | * <!-- end-user-doc --> | ||
2298 | * @generated | ||
2299 | */ | ||
2300 | EReference TYPE_SCOPE__MULTIPLICITY = eINSTANCE.getTypeScope_Multiplicity(); | ||
2301 | |||
2302 | /** | ||
2303 | * The meta object literal for the '{@link org.eclipse.viatra.solver.language.model.problem.impl.MultiplicityImpl <em>Multiplicity</em>}' class. | ||
2304 | * <!-- begin-user-doc --> | ||
2305 | * <!-- end-user-doc --> | ||
2306 | * @see org.eclipse.viatra.solver.language.model.problem.impl.MultiplicityImpl | ||
2307 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ProblemPackageImpl#getMultiplicity() | ||
2308 | * @generated | ||
2309 | */ | ||
2310 | EClass MULTIPLICITY = eINSTANCE.getMultiplicity(); | ||
2311 | |||
2312 | /** | ||
2313 | * The meta object literal for the '{@link org.eclipse.viatra.solver.language.model.problem.impl.RangeMultiplicityImpl <em>Range Multiplicity</em>}' class. | ||
2314 | * <!-- begin-user-doc --> | ||
2315 | * <!-- end-user-doc --> | ||
2316 | * @see org.eclipse.viatra.solver.language.model.problem.impl.RangeMultiplicityImpl | ||
2317 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ProblemPackageImpl#getRangeMultiplicity() | ||
2318 | * @generated | ||
2319 | */ | ||
2320 | EClass RANGE_MULTIPLICITY = eINSTANCE.getRangeMultiplicity(); | ||
2321 | |||
2322 | /** | ||
2323 | * The meta object literal for the '<em><b>Lower Bound</b></em>' attribute feature. | ||
2324 | * <!-- begin-user-doc --> | ||
2325 | * <!-- end-user-doc --> | ||
2326 | * @generated | ||
2327 | */ | ||
2328 | EAttribute RANGE_MULTIPLICITY__LOWER_BOUND = eINSTANCE.getRangeMultiplicity_LowerBound(); | ||
2329 | |||
2330 | /** | ||
2331 | * The meta object literal for the '<em><b>Upper Bound</b></em>' attribute feature. | ||
2332 | * <!-- begin-user-doc --> | ||
2333 | * <!-- end-user-doc --> | ||
2334 | * @generated | ||
2335 | */ | ||
2336 | EAttribute RANGE_MULTIPLICITY__UPPER_BOUND = eINSTANCE.getRangeMultiplicity_UpperBound(); | ||
2337 | |||
2338 | /** | ||
2339 | * The meta object literal for the '{@link org.eclipse.viatra.solver.language.model.problem.impl.ExactMultiplicityImpl <em>Exact Multiplicity</em>}' class. | ||
2340 | * <!-- begin-user-doc --> | ||
2341 | * <!-- end-user-doc --> | ||
2342 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ExactMultiplicityImpl | ||
2343 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ProblemPackageImpl#getExactMultiplicity() | ||
2344 | * @generated | ||
2345 | */ | ||
2346 | EClass EXACT_MULTIPLICITY = eINSTANCE.getExactMultiplicity(); | ||
2347 | |||
2348 | /** | ||
2349 | * The meta object literal for the '<em><b>Exact Value</b></em>' attribute feature. | ||
2350 | * <!-- begin-user-doc --> | ||
2351 | * <!-- end-user-doc --> | ||
2352 | * @generated | ||
2353 | */ | ||
2354 | EAttribute EXACT_MULTIPLICITY__EXACT_VALUE = eINSTANCE.getExactMultiplicity_ExactValue(); | ||
2355 | |||
2356 | /** | ||
2357 | * The meta object literal for the '{@link org.eclipse.viatra.solver.language.model.problem.impl.UnboundedMultiplicityImpl <em>Unbounded Multiplicity</em>}' class. | ||
2358 | * <!-- begin-user-doc --> | ||
2359 | * <!-- end-user-doc --> | ||
2360 | * @see org.eclipse.viatra.solver.language.model.problem.impl.UnboundedMultiplicityImpl | ||
2361 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ProblemPackageImpl#getUnboundedMultiplicity() | ||
2362 | * @generated | ||
2363 | */ | ||
2364 | EClass UNBOUNDED_MULTIPLICITY = eINSTANCE.getUnboundedMultiplicity(); | ||
2365 | |||
2366 | /** | ||
2367 | * The meta object literal for the '{@link org.eclipse.viatra.solver.language.model.problem.impl.ArgumentImpl <em>Argument</em>}' class. | ||
2368 | * <!-- begin-user-doc --> | ||
2369 | * <!-- end-user-doc --> | ||
2370 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ArgumentImpl | ||
2371 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ProblemPackageImpl#getArgument() | ||
2372 | * @generated | ||
2373 | */ | ||
2374 | EClass ARGUMENT = eINSTANCE.getArgument(); | ||
2375 | |||
2376 | /** | ||
2377 | * The meta object literal for the '<em><b>Variable Or Node</b></em>' reference feature. | ||
2378 | * <!-- begin-user-doc --> | ||
2379 | * <!-- end-user-doc --> | ||
2380 | * @generated | ||
2381 | */ | ||
2382 | EReference ARGUMENT__VARIABLE_OR_NODE = eINSTANCE.getArgument_VariableOrNode(); | ||
2383 | |||
2384 | /** | ||
2385 | * The meta object literal for the '<em><b>Singleton Variable</b></em>' containment reference feature. | ||
2386 | * <!-- begin-user-doc --> | ||
2387 | * <!-- end-user-doc --> | ||
2388 | * @generated | ||
2389 | */ | ||
2390 | EReference ARGUMENT__SINGLETON_VARIABLE = eINSTANCE.getArgument_SingletonVariable(); | ||
2391 | |||
2392 | /** | ||
2393 | * The meta object literal for the '{@link org.eclipse.viatra.solver.language.model.problem.impl.EnumDeclarationImpl <em>Enum Declaration</em>}' class. | ||
2394 | * <!-- begin-user-doc --> | ||
2395 | * <!-- end-user-doc --> | ||
2396 | * @see org.eclipse.viatra.solver.language.model.problem.impl.EnumDeclarationImpl | ||
2397 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ProblemPackageImpl#getEnumDeclaration() | ||
2398 | * @generated | ||
2399 | */ | ||
2400 | EClass ENUM_DECLARATION = eINSTANCE.getEnumDeclaration(); | ||
2401 | |||
2402 | /** | ||
2403 | * The meta object literal for the '<em><b>Literals</b></em>' containment reference list feature. | ||
2404 | * <!-- begin-user-doc --> | ||
2405 | * <!-- end-user-doc --> | ||
2406 | * @generated | ||
2407 | */ | ||
2408 | EReference ENUM_DECLARATION__LITERALS = eINSTANCE.getEnumDeclaration_Literals(); | ||
2409 | |||
2410 | /** | ||
2411 | * The meta object literal for the '{@link org.eclipse.viatra.solver.language.model.problem.impl.VariableOrNodeImpl <em>Variable Or Node</em>}' class. | ||
2412 | * <!-- begin-user-doc --> | ||
2413 | * <!-- end-user-doc --> | ||
2414 | * @see org.eclipse.viatra.solver.language.model.problem.impl.VariableOrNodeImpl | ||
2415 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ProblemPackageImpl#getVariableOrNode() | ||
2416 | * @generated | ||
2417 | */ | ||
2418 | EClass VARIABLE_OR_NODE = eINSTANCE.getVariableOrNode(); | ||
2419 | |||
2420 | /** | ||
2421 | * The meta object literal for the '{@link org.eclipse.viatra.solver.language.model.problem.LogicValue <em>Logic Value</em>}' enum. | ||
2422 | * <!-- begin-user-doc --> | ||
2423 | * <!-- end-user-doc --> | ||
2424 | * @see org.eclipse.viatra.solver.language.model.problem.LogicValue | ||
2425 | * @see org.eclipse.viatra.solver.language.model.problem.impl.ProblemPackageImpl#getLogicValue() | ||
2426 | * @generated | ||
2427 | */ | ||
2428 | EEnum LOGIC_VALUE = eINSTANCE.getLogicValue(); | ||
2429 | |||
2430 | } | ||
2431 | |||
2432 | } //ProblemPackage | ||
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/RangeMultiplicity.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/RangeMultiplicity.java deleted file mode 100644 index 65bcc440..00000000 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/RangeMultiplicity.java +++ /dev/null | |||
@@ -1,69 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem; | ||
4 | |||
5 | /** | ||
6 | * <!-- begin-user-doc --> | ||
7 | * A representation of the model object '<em><b>Range Multiplicity</b></em>'. | ||
8 | * <!-- end-user-doc --> | ||
9 | * | ||
10 | * <p> | ||
11 | * The following features are supported: | ||
12 | * </p> | ||
13 | * <ul> | ||
14 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.RangeMultiplicity#getLowerBound <em>Lower Bound</em>}</li> | ||
15 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.RangeMultiplicity#getUpperBound <em>Upper Bound</em>}</li> | ||
16 | * </ul> | ||
17 | * | ||
18 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getRangeMultiplicity() | ||
19 | * @model | ||
20 | * @generated | ||
21 | */ | ||
22 | public interface RangeMultiplicity extends Multiplicity { | ||
23 | /** | ||
24 | * Returns the value of the '<em><b>Lower Bound</b></em>' attribute. | ||
25 | * The default value is <code>"0"</code>. | ||
26 | * <!-- begin-user-doc --> | ||
27 | * <!-- end-user-doc --> | ||
28 | * @return the value of the '<em>Lower Bound</em>' attribute. | ||
29 | * @see #setLowerBound(int) | ||
30 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getRangeMultiplicity_LowerBound() | ||
31 | * @model default="0" | ||
32 | * @generated | ||
33 | */ | ||
34 | int getLowerBound(); | ||
35 | |||
36 | /** | ||
37 | * Sets the value of the '{@link org.eclipse.viatra.solver.language.model.problem.RangeMultiplicity#getLowerBound <em>Lower Bound</em>}' attribute. | ||
38 | * <!-- begin-user-doc --> | ||
39 | * <!-- end-user-doc --> | ||
40 | * @param value the new value of the '<em>Lower Bound</em>' attribute. | ||
41 | * @see #getLowerBound() | ||
42 | * @generated | ||
43 | */ | ||
44 | void setLowerBound(int value); | ||
45 | |||
46 | /** | ||
47 | * Returns the value of the '<em><b>Upper Bound</b></em>' attribute. | ||
48 | * The default value is <code>"-1"</code>. | ||
49 | * <!-- begin-user-doc --> | ||
50 | * <!-- end-user-doc --> | ||
51 | * @return the value of the '<em>Upper Bound</em>' attribute. | ||
52 | * @see #setUpperBound(int) | ||
53 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getRangeMultiplicity_UpperBound() | ||
54 | * @model default="-1" | ||
55 | * @generated | ||
56 | */ | ||
57 | int getUpperBound(); | ||
58 | |||
59 | /** | ||
60 | * Sets the value of the '{@link org.eclipse.viatra.solver.language.model.problem.RangeMultiplicity#getUpperBound <em>Upper Bound</em>}' attribute. | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @param value the new value of the '<em>Upper Bound</em>' attribute. | ||
64 | * @see #getUpperBound() | ||
65 | * @generated | ||
66 | */ | ||
67 | void setUpperBound(int value); | ||
68 | |||
69 | } // RangeMultiplicity | ||
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/ReferenceDeclaration.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/ReferenceDeclaration.java deleted file mode 100644 index 38650d66..00000000 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/ReferenceDeclaration.java +++ /dev/null | |||
@@ -1,113 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem; | ||
4 | |||
5 | /** | ||
6 | * <!-- begin-user-doc --> | ||
7 | * A representation of the model object '<em><b>Reference Declaration</b></em>'. | ||
8 | * <!-- end-user-doc --> | ||
9 | * | ||
10 | * <p> | ||
11 | * The following features are supported: | ||
12 | * </p> | ||
13 | * <ul> | ||
14 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.ReferenceDeclaration#getReferenceType <em>Reference Type</em>}</li> | ||
15 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.ReferenceDeclaration#getOpposite <em>Opposite</em>}</li> | ||
16 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.ReferenceDeclaration#isContainment <em>Containment</em>}</li> | ||
17 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.ReferenceDeclaration#getMultiplicity <em>Multiplicity</em>}</li> | ||
18 | * </ul> | ||
19 | * | ||
20 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getReferenceDeclaration() | ||
21 | * @model | ||
22 | * @generated | ||
23 | */ | ||
24 | public interface ReferenceDeclaration extends Relation { | ||
25 | /** | ||
26 | * Returns the value of the '<em><b>Reference Type</b></em>' reference. | ||
27 | * <!-- begin-user-doc --> | ||
28 | * <!-- end-user-doc --> | ||
29 | * @return the value of the '<em>Reference Type</em>' reference. | ||
30 | * @see #setReferenceType(Relation) | ||
31 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getReferenceDeclaration_ReferenceType() | ||
32 | * @model | ||
33 | * @generated | ||
34 | */ | ||
35 | Relation getReferenceType(); | ||
36 | |||
37 | /** | ||
38 | * Sets the value of the '{@link org.eclipse.viatra.solver.language.model.problem.ReferenceDeclaration#getReferenceType <em>Reference Type</em>}' reference. | ||
39 | * <!-- begin-user-doc --> | ||
40 | * <!-- end-user-doc --> | ||
41 | * @param value the new value of the '<em>Reference Type</em>' reference. | ||
42 | * @see #getReferenceType() | ||
43 | * @generated | ||
44 | */ | ||
45 | void setReferenceType(Relation value); | ||
46 | |||
47 | /** | ||
48 | * Returns the value of the '<em><b>Opposite</b></em>' reference. | ||
49 | * <!-- begin-user-doc --> | ||
50 | * <!-- end-user-doc --> | ||
51 | * @return the value of the '<em>Opposite</em>' reference. | ||
52 | * @see #setOpposite(ReferenceDeclaration) | ||
53 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getReferenceDeclaration_Opposite() | ||
54 | * @model | ||
55 | * @generated | ||
56 | */ | ||
57 | ReferenceDeclaration getOpposite(); | ||
58 | |||
59 | /** | ||
60 | * Sets the value of the '{@link org.eclipse.viatra.solver.language.model.problem.ReferenceDeclaration#getOpposite <em>Opposite</em>}' reference. | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @param value the new value of the '<em>Opposite</em>' reference. | ||
64 | * @see #getOpposite() | ||
65 | * @generated | ||
66 | */ | ||
67 | void setOpposite(ReferenceDeclaration value); | ||
68 | |||
69 | /** | ||
70 | * Returns the value of the '<em><b>Containment</b></em>' attribute. | ||
71 | * <!-- begin-user-doc --> | ||
72 | * <!-- end-user-doc --> | ||
73 | * @return the value of the '<em>Containment</em>' attribute. | ||
74 | * @see #setContainment(boolean) | ||
75 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getReferenceDeclaration_Containment() | ||
76 | * @model | ||
77 | * @generated | ||
78 | */ | ||
79 | boolean isContainment(); | ||
80 | |||
81 | /** | ||
82 | * Sets the value of the '{@link org.eclipse.viatra.solver.language.model.problem.ReferenceDeclaration#isContainment <em>Containment</em>}' attribute. | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @param value the new value of the '<em>Containment</em>' attribute. | ||
86 | * @see #isContainment() | ||
87 | * @generated | ||
88 | */ | ||
89 | void setContainment(boolean value); | ||
90 | |||
91 | /** | ||
92 | * Returns the value of the '<em><b>Multiplicity</b></em>' containment reference. | ||
93 | * <!-- begin-user-doc --> | ||
94 | * <!-- end-user-doc --> | ||
95 | * @return the value of the '<em>Multiplicity</em>' containment reference. | ||
96 | * @see #setMultiplicity(Multiplicity) | ||
97 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getReferenceDeclaration_Multiplicity() | ||
98 | * @model containment="true" | ||
99 | * @generated | ||
100 | */ | ||
101 | Multiplicity getMultiplicity(); | ||
102 | |||
103 | /** | ||
104 | * Sets the value of the '{@link org.eclipse.viatra.solver.language.model.problem.ReferenceDeclaration#getMultiplicity <em>Multiplicity</em>}' containment reference. | ||
105 | * <!-- begin-user-doc --> | ||
106 | * <!-- end-user-doc --> | ||
107 | * @param value the new value of the '<em>Multiplicity</em>' containment reference. | ||
108 | * @see #getMultiplicity() | ||
109 | * @generated | ||
110 | */ | ||
111 | void setMultiplicity(Multiplicity value); | ||
112 | |||
113 | } // ReferenceDeclaration | ||
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/Relation.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/Relation.java deleted file mode 100644 index 2754e9d0..00000000 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/Relation.java +++ /dev/null | |||
@@ -1,16 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem; | ||
4 | |||
5 | /** | ||
6 | * <!-- begin-user-doc --> | ||
7 | * A representation of the model object '<em><b>Relation</b></em>'. | ||
8 | * <!-- end-user-doc --> | ||
9 | * | ||
10 | * | ||
11 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getRelation() | ||
12 | * @model abstract="true" | ||
13 | * @generated | ||
14 | */ | ||
15 | public interface Relation extends NamedElement { | ||
16 | } // Relation | ||
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/ScopeDeclaration.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/ScopeDeclaration.java deleted file mode 100644 index f728589d..00000000 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/ScopeDeclaration.java +++ /dev/null | |||
@@ -1,36 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem; | ||
4 | |||
5 | import org.eclipse.emf.common.util.EList; | ||
6 | |||
7 | /** | ||
8 | * <!-- begin-user-doc --> | ||
9 | * A representation of the model object '<em><b>Scope Declaration</b></em>'. | ||
10 | * <!-- end-user-doc --> | ||
11 | * | ||
12 | * <p> | ||
13 | * The following features are supported: | ||
14 | * </p> | ||
15 | * <ul> | ||
16 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.ScopeDeclaration#getTypeScopes <em>Type Scopes</em>}</li> | ||
17 | * </ul> | ||
18 | * | ||
19 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getScopeDeclaration() | ||
20 | * @model | ||
21 | * @generated | ||
22 | */ | ||
23 | public interface ScopeDeclaration extends Statement { | ||
24 | /** | ||
25 | * Returns the value of the '<em><b>Type Scopes</b></em>' containment reference list. | ||
26 | * The list contents are of type {@link org.eclipse.viatra.solver.language.model.problem.TypeScope}. | ||
27 | * <!-- begin-user-doc --> | ||
28 | * <!-- end-user-doc --> | ||
29 | * @return the value of the '<em>Type Scopes</em>' containment reference list. | ||
30 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getScopeDeclaration_TypeScopes() | ||
31 | * @model containment="true" | ||
32 | * @generated | ||
33 | */ | ||
34 | EList<TypeScope> getTypeScopes(); | ||
35 | |||
36 | } // ScopeDeclaration | ||
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/Statement.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/Statement.java deleted file mode 100644 index 90303639..00000000 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/Statement.java +++ /dev/null | |||
@@ -1,18 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EObject; | ||
6 | |||
7 | /** | ||
8 | * <!-- begin-user-doc --> | ||
9 | * A representation of the model object '<em><b>Statement</b></em>'. | ||
10 | * <!-- end-user-doc --> | ||
11 | * | ||
12 | * | ||
13 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getStatement() | ||
14 | * @model interface="true" abstract="true" | ||
15 | * @generated | ||
16 | */ | ||
17 | public interface Statement extends EObject { | ||
18 | } // Statement | ||
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/TypeScope.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/TypeScope.java deleted file mode 100644 index 76a95dd5..00000000 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/TypeScope.java +++ /dev/null | |||
@@ -1,92 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EObject; | ||
6 | |||
7 | /** | ||
8 | * <!-- begin-user-doc --> | ||
9 | * A representation of the model object '<em><b>Type Scope</b></em>'. | ||
10 | * <!-- end-user-doc --> | ||
11 | * | ||
12 | * <p> | ||
13 | * The following features are supported: | ||
14 | * </p> | ||
15 | * <ul> | ||
16 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.TypeScope#getTargetType <em>Target Type</em>}</li> | ||
17 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.TypeScope#isIncrement <em>Increment</em>}</li> | ||
18 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.TypeScope#getMultiplicity <em>Multiplicity</em>}</li> | ||
19 | * </ul> | ||
20 | * | ||
21 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getTypeScope() | ||
22 | * @model | ||
23 | * @generated | ||
24 | */ | ||
25 | public interface TypeScope extends EObject { | ||
26 | /** | ||
27 | * Returns the value of the '<em><b>Target Type</b></em>' reference. | ||
28 | * <!-- begin-user-doc --> | ||
29 | * <!-- end-user-doc --> | ||
30 | * @return the value of the '<em>Target Type</em>' reference. | ||
31 | * @see #setTargetType(ClassDeclaration) | ||
32 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getTypeScope_TargetType() | ||
33 | * @model | ||
34 | * @generated | ||
35 | */ | ||
36 | ClassDeclaration getTargetType(); | ||
37 | |||
38 | /** | ||
39 | * Sets the value of the '{@link org.eclipse.viatra.solver.language.model.problem.TypeScope#getTargetType <em>Target Type</em>}' reference. | ||
40 | * <!-- begin-user-doc --> | ||
41 | * <!-- end-user-doc --> | ||
42 | * @param value the new value of the '<em>Target Type</em>' reference. | ||
43 | * @see #getTargetType() | ||
44 | * @generated | ||
45 | */ | ||
46 | void setTargetType(ClassDeclaration value); | ||
47 | |||
48 | /** | ||
49 | * Returns the value of the '<em><b>Increment</b></em>' attribute. | ||
50 | * <!-- begin-user-doc --> | ||
51 | * <!-- end-user-doc --> | ||
52 | * @return the value of the '<em>Increment</em>' attribute. | ||
53 | * @see #setIncrement(boolean) | ||
54 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getTypeScope_Increment() | ||
55 | * @model | ||
56 | * @generated | ||
57 | */ | ||
58 | boolean isIncrement(); | ||
59 | |||
60 | /** | ||
61 | * Sets the value of the '{@link org.eclipse.viatra.solver.language.model.problem.TypeScope#isIncrement <em>Increment</em>}' attribute. | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @param value the new value of the '<em>Increment</em>' attribute. | ||
65 | * @see #isIncrement() | ||
66 | * @generated | ||
67 | */ | ||
68 | void setIncrement(boolean value); | ||
69 | |||
70 | /** | ||
71 | * Returns the value of the '<em><b>Multiplicity</b></em>' containment reference. | ||
72 | * <!-- begin-user-doc --> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @return the value of the '<em>Multiplicity</em>' containment reference. | ||
75 | * @see #setMultiplicity(Multiplicity) | ||
76 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getTypeScope_Multiplicity() | ||
77 | * @model containment="true" | ||
78 | * @generated | ||
79 | */ | ||
80 | Multiplicity getMultiplicity(); | ||
81 | |||
82 | /** | ||
83 | * Sets the value of the '{@link org.eclipse.viatra.solver.language.model.problem.TypeScope#getMultiplicity <em>Multiplicity</em>}' containment reference. | ||
84 | * <!-- begin-user-doc --> | ||
85 | * <!-- end-user-doc --> | ||
86 | * @param value the new value of the '<em>Multiplicity</em>' containment reference. | ||
87 | * @see #getMultiplicity() | ||
88 | * @generated | ||
89 | */ | ||
90 | void setMultiplicity(Multiplicity value); | ||
91 | |||
92 | } // TypeScope | ||
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/UnboundedMultiplicity.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/UnboundedMultiplicity.java deleted file mode 100644 index 725311a4..00000000 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/UnboundedMultiplicity.java +++ /dev/null | |||
@@ -1,16 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem; | ||
4 | |||
5 | /** | ||
6 | * <!-- begin-user-doc --> | ||
7 | * A representation of the model object '<em><b>Unbounded Multiplicity</b></em>'. | ||
8 | * <!-- end-user-doc --> | ||
9 | * | ||
10 | * | ||
11 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getUnboundedMultiplicity() | ||
12 | * @model | ||
13 | * @generated | ||
14 | */ | ||
15 | public interface UnboundedMultiplicity extends Multiplicity { | ||
16 | } // UnboundedMultiplicity | ||
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/Variable.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/Variable.java deleted file mode 100644 index cba5740c..00000000 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/Variable.java +++ /dev/null | |||
@@ -1,16 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem; | ||
4 | |||
5 | /** | ||
6 | * <!-- begin-user-doc --> | ||
7 | * A representation of the model object '<em><b>Variable</b></em>'. | ||
8 | * <!-- end-user-doc --> | ||
9 | * | ||
10 | * | ||
11 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getVariable() | ||
12 | * @model abstract="true" | ||
13 | * @generated | ||
14 | */ | ||
15 | public interface Variable extends VariableOrNode { | ||
16 | } // Variable | ||
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/VariableOrNode.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/VariableOrNode.java deleted file mode 100644 index 65c315e2..00000000 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/VariableOrNode.java +++ /dev/null | |||
@@ -1,16 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem; | ||
4 | |||
5 | /** | ||
6 | * <!-- begin-user-doc --> | ||
7 | * A representation of the model object '<em><b>Variable Or Node</b></em>'. | ||
8 | * <!-- end-user-doc --> | ||
9 | * | ||
10 | * | ||
11 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#getVariableOrNode() | ||
12 | * @model abstract="true" | ||
13 | * @generated | ||
14 | */ | ||
15 | public interface VariableOrNode extends NamedElement { | ||
16 | } // VariableOrNode | ||
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ArgumentImpl.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ArgumentImpl.java deleted file mode 100644 index f7d045ca..00000000 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ArgumentImpl.java +++ /dev/null | |||
@@ -1,247 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import org.eclipse.emf.common.notify.Notification; | ||
6 | import org.eclipse.emf.common.notify.NotificationChain; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | import org.eclipse.emf.ecore.InternalEObject; | ||
10 | |||
11 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
12 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
13 | |||
14 | import org.eclipse.viatra.solver.language.model.problem.Argument; | ||
15 | import org.eclipse.viatra.solver.language.model.problem.ImplicitVariable; | ||
16 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
17 | import org.eclipse.viatra.solver.language.model.problem.VariableOrNode; | ||
18 | |||
19 | /** | ||
20 | * <!-- begin-user-doc --> | ||
21 | * An implementation of the model object '<em><b>Argument</b></em>'. | ||
22 | * <!-- end-user-doc --> | ||
23 | * <p> | ||
24 | * The following features are implemented: | ||
25 | * </p> | ||
26 | * <ul> | ||
27 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.ArgumentImpl#getVariableOrNode <em>Variable Or Node</em>}</li> | ||
28 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.ArgumentImpl#getSingletonVariable <em>Singleton Variable</em>}</li> | ||
29 | * </ul> | ||
30 | * | ||
31 | * @generated | ||
32 | */ | ||
33 | public class ArgumentImpl extends MinimalEObjectImpl.Container implements Argument { | ||
34 | /** | ||
35 | * The cached value of the '{@link #getVariableOrNode() <em>Variable Or Node</em>}' reference. | ||
36 | * <!-- begin-user-doc --> | ||
37 | * <!-- end-user-doc --> | ||
38 | * @see #getVariableOrNode() | ||
39 | * @generated | ||
40 | * @ordered | ||
41 | */ | ||
42 | protected VariableOrNode variableOrNode; | ||
43 | |||
44 | /** | ||
45 | * The cached value of the '{@link #getSingletonVariable() <em>Singleton Variable</em>}' containment reference. | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @see #getSingletonVariable() | ||
49 | * @generated | ||
50 | * @ordered | ||
51 | */ | ||
52 | protected ImplicitVariable singletonVariable; | ||
53 | |||
54 | /** | ||
55 | * <!-- begin-user-doc --> | ||
56 | * <!-- end-user-doc --> | ||
57 | * @generated | ||
58 | */ | ||
59 | protected ArgumentImpl() { | ||
60 | super(); | ||
61 | } | ||
62 | |||
63 | /** | ||
64 | * <!-- begin-user-doc --> | ||
65 | * <!-- end-user-doc --> | ||
66 | * @generated | ||
67 | */ | ||
68 | @Override | ||
69 | protected EClass eStaticClass() { | ||
70 | return ProblemPackage.Literals.ARGUMENT; | ||
71 | } | ||
72 | |||
73 | /** | ||
74 | * <!-- begin-user-doc --> | ||
75 | * <!-- end-user-doc --> | ||
76 | * @generated | ||
77 | */ | ||
78 | public VariableOrNode getVariableOrNode() { | ||
79 | if (variableOrNode != null && variableOrNode.eIsProxy()) { | ||
80 | InternalEObject oldVariableOrNode = (InternalEObject) variableOrNode; | ||
81 | variableOrNode = (VariableOrNode) eResolveProxy(oldVariableOrNode); | ||
82 | if (variableOrNode != oldVariableOrNode) { | ||
83 | if (eNotificationRequired()) | ||
84 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, ProblemPackage.ARGUMENT__VARIABLE_OR_NODE, | ||
85 | oldVariableOrNode, variableOrNode)); | ||
86 | } | ||
87 | } | ||
88 | return variableOrNode; | ||
89 | } | ||
90 | |||
91 | /** | ||
92 | * <!-- begin-user-doc --> | ||
93 | * <!-- end-user-doc --> | ||
94 | * @generated | ||
95 | */ | ||
96 | public VariableOrNode basicGetVariableOrNode() { | ||
97 | return variableOrNode; | ||
98 | } | ||
99 | |||
100 | /** | ||
101 | * <!-- begin-user-doc --> | ||
102 | * <!-- end-user-doc --> | ||
103 | * @generated | ||
104 | */ | ||
105 | public void setVariableOrNode(VariableOrNode newVariableOrNode) { | ||
106 | VariableOrNode oldVariableOrNode = variableOrNode; | ||
107 | variableOrNode = newVariableOrNode; | ||
108 | if (eNotificationRequired()) | ||
109 | eNotify(new ENotificationImpl(this, Notification.SET, ProblemPackage.ARGUMENT__VARIABLE_OR_NODE, | ||
110 | oldVariableOrNode, variableOrNode)); | ||
111 | } | ||
112 | |||
113 | /** | ||
114 | * <!-- begin-user-doc --> | ||
115 | * <!-- end-user-doc --> | ||
116 | * @generated | ||
117 | */ | ||
118 | public ImplicitVariable getSingletonVariable() { | ||
119 | return singletonVariable; | ||
120 | } | ||
121 | |||
122 | /** | ||
123 | * <!-- begin-user-doc --> | ||
124 | * <!-- end-user-doc --> | ||
125 | * @generated | ||
126 | */ | ||
127 | public NotificationChain basicSetSingletonVariable(ImplicitVariable newSingletonVariable, NotificationChain msgs) { | ||
128 | ImplicitVariable oldSingletonVariable = singletonVariable; | ||
129 | singletonVariable = newSingletonVariable; | ||
130 | if (eNotificationRequired()) { | ||
131 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, | ||
132 | ProblemPackage.ARGUMENT__SINGLETON_VARIABLE, oldSingletonVariable, newSingletonVariable); | ||
133 | if (msgs == null) | ||
134 | msgs = notification; | ||
135 | else | ||
136 | msgs.add(notification); | ||
137 | } | ||
138 | return msgs; | ||
139 | } | ||
140 | |||
141 | /** | ||
142 | * <!-- begin-user-doc --> | ||
143 | * <!-- end-user-doc --> | ||
144 | * @generated | ||
145 | */ | ||
146 | public void setSingletonVariable(ImplicitVariable newSingletonVariable) { | ||
147 | if (newSingletonVariable != singletonVariable) { | ||
148 | NotificationChain msgs = null; | ||
149 | if (singletonVariable != null) | ||
150 | msgs = ((InternalEObject) singletonVariable).eInverseRemove(this, | ||
151 | EOPPOSITE_FEATURE_BASE - ProblemPackage.ARGUMENT__SINGLETON_VARIABLE, null, msgs); | ||
152 | if (newSingletonVariable != null) | ||
153 | msgs = ((InternalEObject) newSingletonVariable).eInverseAdd(this, | ||
154 | EOPPOSITE_FEATURE_BASE - ProblemPackage.ARGUMENT__SINGLETON_VARIABLE, null, msgs); | ||
155 | msgs = basicSetSingletonVariable(newSingletonVariable, msgs); | ||
156 | if (msgs != null) | ||
157 | msgs.dispatch(); | ||
158 | } else if (eNotificationRequired()) | ||
159 | eNotify(new ENotificationImpl(this, Notification.SET, ProblemPackage.ARGUMENT__SINGLETON_VARIABLE, | ||
160 | newSingletonVariable, newSingletonVariable)); | ||
161 | } | ||
162 | |||
163 | /** | ||
164 | * <!-- begin-user-doc --> | ||
165 | * <!-- end-user-doc --> | ||
166 | * @generated | ||
167 | */ | ||
168 | @Override | ||
169 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
170 | switch (featureID) { | ||
171 | case ProblemPackage.ARGUMENT__SINGLETON_VARIABLE: | ||
172 | return basicSetSingletonVariable(null, msgs); | ||
173 | } | ||
174 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
175 | } | ||
176 | |||
177 | /** | ||
178 | * <!-- begin-user-doc --> | ||
179 | * <!-- end-user-doc --> | ||
180 | * @generated | ||
181 | */ | ||
182 | @Override | ||
183 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
184 | switch (featureID) { | ||
185 | case ProblemPackage.ARGUMENT__VARIABLE_OR_NODE: | ||
186 | if (resolve) | ||
187 | return getVariableOrNode(); | ||
188 | return basicGetVariableOrNode(); | ||
189 | case ProblemPackage.ARGUMENT__SINGLETON_VARIABLE: | ||
190 | return getSingletonVariable(); | ||
191 | } | ||
192 | return super.eGet(featureID, resolve, coreType); | ||
193 | } | ||
194 | |||
195 | /** | ||
196 | * <!-- begin-user-doc --> | ||
197 | * <!-- end-user-doc --> | ||
198 | * @generated | ||
199 | */ | ||
200 | @Override | ||
201 | public void eSet(int featureID, Object newValue) { | ||
202 | switch (featureID) { | ||
203 | case ProblemPackage.ARGUMENT__VARIABLE_OR_NODE: | ||
204 | setVariableOrNode((VariableOrNode) newValue); | ||
205 | return; | ||
206 | case ProblemPackage.ARGUMENT__SINGLETON_VARIABLE: | ||
207 | setSingletonVariable((ImplicitVariable) newValue); | ||
208 | return; | ||
209 | } | ||
210 | super.eSet(featureID, newValue); | ||
211 | } | ||
212 | |||
213 | /** | ||
214 | * <!-- begin-user-doc --> | ||
215 | * <!-- end-user-doc --> | ||
216 | * @generated | ||
217 | */ | ||
218 | @Override | ||
219 | public void eUnset(int featureID) { | ||
220 | switch (featureID) { | ||
221 | case ProblemPackage.ARGUMENT__VARIABLE_OR_NODE: | ||
222 | setVariableOrNode((VariableOrNode) null); | ||
223 | return; | ||
224 | case ProblemPackage.ARGUMENT__SINGLETON_VARIABLE: | ||
225 | setSingletonVariable((ImplicitVariable) null); | ||
226 | return; | ||
227 | } | ||
228 | super.eUnset(featureID); | ||
229 | } | ||
230 | |||
231 | /** | ||
232 | * <!-- begin-user-doc --> | ||
233 | * <!-- end-user-doc --> | ||
234 | * @generated | ||
235 | */ | ||
236 | @Override | ||
237 | public boolean eIsSet(int featureID) { | ||
238 | switch (featureID) { | ||
239 | case ProblemPackage.ARGUMENT__VARIABLE_OR_NODE: | ||
240 | return variableOrNode != null; | ||
241 | case ProblemPackage.ARGUMENT__SINGLETON_VARIABLE: | ||
242 | return singletonVariable != null; | ||
243 | } | ||
244 | return super.eIsSet(featureID); | ||
245 | } | ||
246 | |||
247 | } //ArgumentImpl | ||
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/AssertionImpl.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/AssertionImpl.java deleted file mode 100644 index 5856a276..00000000 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/AssertionImpl.java +++ /dev/null | |||
@@ -1,272 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import java.util.Collection; | ||
6 | |||
7 | import org.eclipse.emf.common.notify.Notification; | ||
8 | |||
9 | import org.eclipse.emf.common.util.EList; | ||
10 | |||
11 | import org.eclipse.emf.ecore.EClass; | ||
12 | import org.eclipse.emf.ecore.InternalEObject; | ||
13 | |||
14 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
15 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
16 | |||
17 | import org.eclipse.emf.ecore.util.EObjectResolvingEList; | ||
18 | |||
19 | import org.eclipse.viatra.solver.language.model.problem.Assertion; | ||
20 | import org.eclipse.viatra.solver.language.model.problem.LogicValue; | ||
21 | import org.eclipse.viatra.solver.language.model.problem.Node; | ||
22 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
23 | import org.eclipse.viatra.solver.language.model.problem.Relation; | ||
24 | |||
25 | /** | ||
26 | * <!-- begin-user-doc --> | ||
27 | * An implementation of the model object '<em><b>Assertion</b></em>'. | ||
28 | * <!-- end-user-doc --> | ||
29 | * <p> | ||
30 | * The following features are implemented: | ||
31 | * </p> | ||
32 | * <ul> | ||
33 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.AssertionImpl#getRelation <em>Relation</em>}</li> | ||
34 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.AssertionImpl#getArguments <em>Arguments</em>}</li> | ||
35 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.AssertionImpl#getValue <em>Value</em>}</li> | ||
36 | * </ul> | ||
37 | * | ||
38 | * @generated | ||
39 | */ | ||
40 | public class AssertionImpl extends MinimalEObjectImpl.Container implements Assertion { | ||
41 | /** | ||
42 | * The cached value of the '{@link #getRelation() <em>Relation</em>}' reference. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @see #getRelation() | ||
46 | * @generated | ||
47 | * @ordered | ||
48 | */ | ||
49 | protected Relation relation; | ||
50 | |||
51 | /** | ||
52 | * The cached value of the '{@link #getArguments() <em>Arguments</em>}' reference list. | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @see #getArguments() | ||
56 | * @generated | ||
57 | * @ordered | ||
58 | */ | ||
59 | protected EList<Node> arguments; | ||
60 | |||
61 | /** | ||
62 | * The default value of the '{@link #getValue() <em>Value</em>}' attribute. | ||
63 | * <!-- begin-user-doc --> | ||
64 | * <!-- end-user-doc --> | ||
65 | * @see #getValue() | ||
66 | * @generated | ||
67 | * @ordered | ||
68 | */ | ||
69 | protected static final LogicValue VALUE_EDEFAULT = LogicValue.TRUE; | ||
70 | |||
71 | /** | ||
72 | * The cached value of the '{@link #getValue() <em>Value</em>}' attribute. | ||
73 | * <!-- begin-user-doc --> | ||
74 | * <!-- end-user-doc --> | ||
75 | * @see #getValue() | ||
76 | * @generated | ||
77 | * @ordered | ||
78 | */ | ||
79 | protected LogicValue value = VALUE_EDEFAULT; | ||
80 | |||
81 | /** | ||
82 | * <!-- begin-user-doc --> | ||
83 | * <!-- end-user-doc --> | ||
84 | * @generated | ||
85 | */ | ||
86 | protected AssertionImpl() { | ||
87 | super(); | ||
88 | } | ||
89 | |||
90 | /** | ||
91 | * <!-- begin-user-doc --> | ||
92 | * <!-- end-user-doc --> | ||
93 | * @generated | ||
94 | */ | ||
95 | @Override | ||
96 | protected EClass eStaticClass() { | ||
97 | return ProblemPackage.Literals.ASSERTION; | ||
98 | } | ||
99 | |||
100 | /** | ||
101 | * <!-- begin-user-doc --> | ||
102 | * <!-- end-user-doc --> | ||
103 | * @generated | ||
104 | */ | ||
105 | public Relation getRelation() { | ||
106 | if (relation != null && relation.eIsProxy()) { | ||
107 | InternalEObject oldRelation = (InternalEObject) relation; | ||
108 | relation = (Relation) eResolveProxy(oldRelation); | ||
109 | if (relation != oldRelation) { | ||
110 | if (eNotificationRequired()) | ||
111 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, ProblemPackage.ASSERTION__RELATION, | ||
112 | oldRelation, relation)); | ||
113 | } | ||
114 | } | ||
115 | return relation; | ||
116 | } | ||
117 | |||
118 | /** | ||
119 | * <!-- begin-user-doc --> | ||
120 | * <!-- end-user-doc --> | ||
121 | * @generated | ||
122 | */ | ||
123 | public Relation basicGetRelation() { | ||
124 | return relation; | ||
125 | } | ||
126 | |||
127 | /** | ||
128 | * <!-- begin-user-doc --> | ||
129 | * <!-- end-user-doc --> | ||
130 | * @generated | ||
131 | */ | ||
132 | public void setRelation(Relation newRelation) { | ||
133 | Relation oldRelation = relation; | ||
134 | relation = newRelation; | ||
135 | if (eNotificationRequired()) | ||
136 | eNotify(new ENotificationImpl(this, Notification.SET, ProblemPackage.ASSERTION__RELATION, oldRelation, | ||
137 | relation)); | ||
138 | } | ||
139 | |||
140 | /** | ||
141 | * <!-- begin-user-doc --> | ||
142 | * <!-- end-user-doc --> | ||
143 | * @generated | ||
144 | */ | ||
145 | public EList<Node> getArguments() { | ||
146 | if (arguments == null) { | ||
147 | arguments = new EObjectResolvingEList<Node>(Node.class, this, ProblemPackage.ASSERTION__ARGUMENTS); | ||
148 | } | ||
149 | return arguments; | ||
150 | } | ||
151 | |||
152 | /** | ||
153 | * <!-- begin-user-doc --> | ||
154 | * <!-- end-user-doc --> | ||
155 | * @generated | ||
156 | */ | ||
157 | public LogicValue getValue() { | ||
158 | return value; | ||
159 | } | ||
160 | |||
161 | /** | ||
162 | * <!-- begin-user-doc --> | ||
163 | * <!-- end-user-doc --> | ||
164 | * @generated | ||
165 | */ | ||
166 | public void setValue(LogicValue newValue) { | ||
167 | LogicValue oldValue = value; | ||
168 | value = newValue == null ? VALUE_EDEFAULT : newValue; | ||
169 | if (eNotificationRequired()) | ||
170 | eNotify(new ENotificationImpl(this, Notification.SET, ProblemPackage.ASSERTION__VALUE, oldValue, value)); | ||
171 | } | ||
172 | |||
173 | /** | ||
174 | * <!-- begin-user-doc --> | ||
175 | * <!-- end-user-doc --> | ||
176 | * @generated | ||
177 | */ | ||
178 | @Override | ||
179 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
180 | switch (featureID) { | ||
181 | case ProblemPackage.ASSERTION__RELATION: | ||
182 | if (resolve) | ||
183 | return getRelation(); | ||
184 | return basicGetRelation(); | ||
185 | case ProblemPackage.ASSERTION__ARGUMENTS: | ||
186 | return getArguments(); | ||
187 | case ProblemPackage.ASSERTION__VALUE: | ||
188 | return getValue(); | ||
189 | } | ||
190 | return super.eGet(featureID, resolve, coreType); | ||
191 | } | ||
192 | |||
193 | /** | ||
194 | * <!-- begin-user-doc --> | ||
195 | * <!-- end-user-doc --> | ||
196 | * @generated | ||
197 | */ | ||
198 | @SuppressWarnings("unchecked") | ||
199 | @Override | ||
200 | public void eSet(int featureID, Object newValue) { | ||
201 | switch (featureID) { | ||
202 | case ProblemPackage.ASSERTION__RELATION: | ||
203 | setRelation((Relation) newValue); | ||
204 | return; | ||
205 | case ProblemPackage.ASSERTION__ARGUMENTS: | ||
206 | getArguments().clear(); | ||
207 | getArguments().addAll((Collection<? extends Node>) newValue); | ||
208 | return; | ||
209 | case ProblemPackage.ASSERTION__VALUE: | ||
210 | setValue((LogicValue) newValue); | ||
211 | return; | ||
212 | } | ||
213 | super.eSet(featureID, newValue); | ||
214 | } | ||
215 | |||
216 | /** | ||
217 | * <!-- begin-user-doc --> | ||
218 | * <!-- end-user-doc --> | ||
219 | * @generated | ||
220 | */ | ||
221 | @Override | ||
222 | public void eUnset(int featureID) { | ||
223 | switch (featureID) { | ||
224 | case ProblemPackage.ASSERTION__RELATION: | ||
225 | setRelation((Relation) null); | ||
226 | return; | ||
227 | case ProblemPackage.ASSERTION__ARGUMENTS: | ||
228 | getArguments().clear(); | ||
229 | return; | ||
230 | case ProblemPackage.ASSERTION__VALUE: | ||
231 | setValue(VALUE_EDEFAULT); | ||
232 | return; | ||
233 | } | ||
234 | super.eUnset(featureID); | ||
235 | } | ||
236 | |||
237 | /** | ||
238 | * <!-- begin-user-doc --> | ||
239 | * <!-- end-user-doc --> | ||
240 | * @generated | ||
241 | */ | ||
242 | @Override | ||
243 | public boolean eIsSet(int featureID) { | ||
244 | switch (featureID) { | ||
245 | case ProblemPackage.ASSERTION__RELATION: | ||
246 | return relation != null; | ||
247 | case ProblemPackage.ASSERTION__ARGUMENTS: | ||
248 | return arguments != null && !arguments.isEmpty(); | ||
249 | case ProblemPackage.ASSERTION__VALUE: | ||
250 | return value != VALUE_EDEFAULT; | ||
251 | } | ||
252 | return super.eIsSet(featureID); | ||
253 | } | ||
254 | |||
255 | /** | ||
256 | * <!-- begin-user-doc --> | ||
257 | * <!-- end-user-doc --> | ||
258 | * @generated | ||
259 | */ | ||
260 | @Override | ||
261 | public String toString() { | ||
262 | if (eIsProxy()) | ||
263 | return super.toString(); | ||
264 | |||
265 | StringBuilder result = new StringBuilder(super.toString()); | ||
266 | result.append(" (value: "); | ||
267 | result.append(value); | ||
268 | result.append(')'); | ||
269 | return result.toString(); | ||
270 | } | ||
271 | |||
272 | } //AssertionImpl | ||
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/AtomImpl.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/AtomImpl.java deleted file mode 100644 index d70fe90b..00000000 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/AtomImpl.java +++ /dev/null | |||
@@ -1,286 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import java.util.Collection; | ||
6 | |||
7 | import org.eclipse.emf.common.notify.Notification; | ||
8 | |||
9 | import org.eclipse.emf.common.notify.NotificationChain; | ||
10 | import org.eclipse.emf.common.util.EList; | ||
11 | |||
12 | import org.eclipse.emf.ecore.EClass; | ||
13 | import org.eclipse.emf.ecore.InternalEObject; | ||
14 | |||
15 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
16 | |||
17 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
18 | import org.eclipse.emf.ecore.util.InternalEList; | ||
19 | import org.eclipse.viatra.solver.language.model.problem.Argument; | ||
20 | import org.eclipse.viatra.solver.language.model.problem.Atom; | ||
21 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
22 | import org.eclipse.viatra.solver.language.model.problem.Relation; | ||
23 | |||
24 | /** | ||
25 | * <!-- begin-user-doc --> | ||
26 | * An implementation of the model object '<em><b>Atom</b></em>'. | ||
27 | * <!-- end-user-doc --> | ||
28 | * <p> | ||
29 | * The following features are implemented: | ||
30 | * </p> | ||
31 | * <ul> | ||
32 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.AtomImpl#getRelation <em>Relation</em>}</li> | ||
33 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.AtomImpl#isTransitiveClosure <em>Transitive Closure</em>}</li> | ||
34 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.AtomImpl#getArguments <em>Arguments</em>}</li> | ||
35 | * </ul> | ||
36 | * | ||
37 | * @generated | ||
38 | */ | ||
39 | public class AtomImpl extends LiteralImpl implements Atom { | ||
40 | /** | ||
41 | * The cached value of the '{@link #getRelation() <em>Relation</em>}' reference. | ||
42 | * <!-- begin-user-doc --> | ||
43 | * <!-- end-user-doc --> | ||
44 | * @see #getRelation() | ||
45 | * @generated | ||
46 | * @ordered | ||
47 | */ | ||
48 | protected Relation relation; | ||
49 | |||
50 | /** | ||
51 | * The default value of the '{@link #isTransitiveClosure() <em>Transitive Closure</em>}' attribute. | ||
52 | * <!-- begin-user-doc --> | ||
53 | * <!-- end-user-doc --> | ||
54 | * @see #isTransitiveClosure() | ||
55 | * @generated | ||
56 | * @ordered | ||
57 | */ | ||
58 | protected static final boolean TRANSITIVE_CLOSURE_EDEFAULT = false; | ||
59 | |||
60 | /** | ||
61 | * The cached value of the '{@link #isTransitiveClosure() <em>Transitive Closure</em>}' attribute. | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @see #isTransitiveClosure() | ||
65 | * @generated | ||
66 | * @ordered | ||
67 | */ | ||
68 | protected boolean transitiveClosure = TRANSITIVE_CLOSURE_EDEFAULT; | ||
69 | |||
70 | /** | ||
71 | * The cached value of the '{@link #getArguments() <em>Arguments</em>}' containment reference list. | ||
72 | * <!-- begin-user-doc --> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @see #getArguments() | ||
75 | * @generated | ||
76 | * @ordered | ||
77 | */ | ||
78 | protected EList<Argument> arguments; | ||
79 | |||
80 | /** | ||
81 | * <!-- begin-user-doc --> | ||
82 | * <!-- end-user-doc --> | ||
83 | * @generated | ||
84 | */ | ||
85 | protected AtomImpl() { | ||
86 | super(); | ||
87 | } | ||
88 | |||
89 | /** | ||
90 | * <!-- begin-user-doc --> | ||
91 | * <!-- end-user-doc --> | ||
92 | * @generated | ||
93 | */ | ||
94 | @Override | ||
95 | protected EClass eStaticClass() { | ||
96 | return ProblemPackage.Literals.ATOM; | ||
97 | } | ||
98 | |||
99 | /** | ||
100 | * <!-- begin-user-doc --> | ||
101 | * <!-- end-user-doc --> | ||
102 | * @generated | ||
103 | */ | ||
104 | public Relation getRelation() { | ||
105 | if (relation != null && relation.eIsProxy()) { | ||
106 | InternalEObject oldRelation = (InternalEObject) relation; | ||
107 | relation = (Relation) eResolveProxy(oldRelation); | ||
108 | if (relation != oldRelation) { | ||
109 | if (eNotificationRequired()) | ||
110 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, ProblemPackage.ATOM__RELATION, | ||
111 | oldRelation, relation)); | ||
112 | } | ||
113 | } | ||
114 | return relation; | ||
115 | } | ||
116 | |||
117 | /** | ||
118 | * <!-- begin-user-doc --> | ||
119 | * <!-- end-user-doc --> | ||
120 | * @generated | ||
121 | */ | ||
122 | public Relation basicGetRelation() { | ||
123 | return relation; | ||
124 | } | ||
125 | |||
126 | /** | ||
127 | * <!-- begin-user-doc --> | ||
128 | * <!-- end-user-doc --> | ||
129 | * @generated | ||
130 | */ | ||
131 | public void setRelation(Relation newRelation) { | ||
132 | Relation oldRelation = relation; | ||
133 | relation = newRelation; | ||
134 | if (eNotificationRequired()) | ||
135 | eNotify(new ENotificationImpl(this, Notification.SET, ProblemPackage.ATOM__RELATION, oldRelation, | ||
136 | relation)); | ||
137 | } | ||
138 | |||
139 | /** | ||
140 | * <!-- begin-user-doc --> | ||
141 | * <!-- end-user-doc --> | ||
142 | * @generated | ||
143 | */ | ||
144 | public EList<Argument> getArguments() { | ||
145 | if (arguments == null) { | ||
146 | arguments = new EObjectContainmentEList<Argument>(Argument.class, this, ProblemPackage.ATOM__ARGUMENTS); | ||
147 | } | ||
148 | return arguments; | ||
149 | } | ||
150 | |||
151 | /** | ||
152 | * <!-- begin-user-doc --> | ||
153 | * <!-- end-user-doc --> | ||
154 | * @generated | ||
155 | */ | ||
156 | public boolean isTransitiveClosure() { | ||
157 | return transitiveClosure; | ||
158 | } | ||
159 | |||
160 | /** | ||
161 | * <!-- begin-user-doc --> | ||
162 | * <!-- end-user-doc --> | ||
163 | * @generated | ||
164 | */ | ||
165 | public void setTransitiveClosure(boolean newTransitiveClosure) { | ||
166 | boolean oldTransitiveClosure = transitiveClosure; | ||
167 | transitiveClosure = newTransitiveClosure; | ||
168 | if (eNotificationRequired()) | ||
169 | eNotify(new ENotificationImpl(this, Notification.SET, ProblemPackage.ATOM__TRANSITIVE_CLOSURE, | ||
170 | oldTransitiveClosure, transitiveClosure)); | ||
171 | } | ||
172 | |||
173 | /** | ||
174 | * <!-- begin-user-doc --> | ||
175 | * <!-- end-user-doc --> | ||
176 | * @generated | ||
177 | */ | ||
178 | @Override | ||
179 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
180 | switch (featureID) { | ||
181 | case ProblemPackage.ATOM__ARGUMENTS: | ||
182 | return ((InternalEList<?>) getArguments()).basicRemove(otherEnd, msgs); | ||
183 | } | ||
184 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
185 | } | ||
186 | |||
187 | /** | ||
188 | * <!-- begin-user-doc --> | ||
189 | * <!-- end-user-doc --> | ||
190 | * @generated | ||
191 | */ | ||
192 | @Override | ||
193 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
194 | switch (featureID) { | ||
195 | case ProblemPackage.ATOM__RELATION: | ||
196 | if (resolve) | ||
197 | return getRelation(); | ||
198 | return basicGetRelation(); | ||
199 | case ProblemPackage.ATOM__TRANSITIVE_CLOSURE: | ||
200 | return isTransitiveClosure(); | ||
201 | case ProblemPackage.ATOM__ARGUMENTS: | ||
202 | return getArguments(); | ||
203 | } | ||
204 | return super.eGet(featureID, resolve, coreType); | ||
205 | } | ||
206 | |||
207 | /** | ||
208 | * <!-- begin-user-doc --> | ||
209 | * <!-- end-user-doc --> | ||
210 | * @generated | ||
211 | */ | ||
212 | @SuppressWarnings("unchecked") | ||
213 | @Override | ||
214 | public void eSet(int featureID, Object newValue) { | ||
215 | switch (featureID) { | ||
216 | case ProblemPackage.ATOM__RELATION: | ||
217 | setRelation((Relation) newValue); | ||
218 | return; | ||
219 | case ProblemPackage.ATOM__TRANSITIVE_CLOSURE: | ||
220 | setTransitiveClosure((Boolean) newValue); | ||
221 | return; | ||
222 | case ProblemPackage.ATOM__ARGUMENTS: | ||
223 | getArguments().clear(); | ||
224 | getArguments().addAll((Collection<? extends Argument>) newValue); | ||
225 | return; | ||
226 | } | ||
227 | super.eSet(featureID, newValue); | ||
228 | } | ||
229 | |||
230 | /** | ||
231 | * <!-- begin-user-doc --> | ||
232 | * <!-- end-user-doc --> | ||
233 | * @generated | ||
234 | */ | ||
235 | @Override | ||
236 | public void eUnset(int featureID) { | ||
237 | switch (featureID) { | ||
238 | case ProblemPackage.ATOM__RELATION: | ||
239 | setRelation((Relation) null); | ||
240 | return; | ||
241 | case ProblemPackage.ATOM__TRANSITIVE_CLOSURE: | ||
242 | setTransitiveClosure(TRANSITIVE_CLOSURE_EDEFAULT); | ||
243 | return; | ||
244 | case ProblemPackage.ATOM__ARGUMENTS: | ||
245 | getArguments().clear(); | ||
246 | return; | ||
247 | } | ||
248 | super.eUnset(featureID); | ||
249 | } | ||
250 | |||
251 | /** | ||
252 | * <!-- begin-user-doc --> | ||
253 | * <!-- end-user-doc --> | ||
254 | * @generated | ||
255 | */ | ||
256 | @Override | ||
257 | public boolean eIsSet(int featureID) { | ||
258 | switch (featureID) { | ||
259 | case ProblemPackage.ATOM__RELATION: | ||
260 | return relation != null; | ||
261 | case ProblemPackage.ATOM__TRANSITIVE_CLOSURE: | ||
262 | return transitiveClosure != TRANSITIVE_CLOSURE_EDEFAULT; | ||
263 | case ProblemPackage.ATOM__ARGUMENTS: | ||
264 | return arguments != null && !arguments.isEmpty(); | ||
265 | } | ||
266 | return super.eIsSet(featureID); | ||
267 | } | ||
268 | |||
269 | /** | ||
270 | * <!-- begin-user-doc --> | ||
271 | * <!-- end-user-doc --> | ||
272 | * @generated | ||
273 | */ | ||
274 | @Override | ||
275 | public String toString() { | ||
276 | if (eIsProxy()) | ||
277 | return super.toString(); | ||
278 | |||
279 | StringBuilder result = new StringBuilder(super.toString()); | ||
280 | result.append(" (transitiveClosure: "); | ||
281 | result.append(transitiveClosure); | ||
282 | result.append(')'); | ||
283 | return result.toString(); | ||
284 | } | ||
285 | |||
286 | } //AtomImpl | ||
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ClassDeclarationImpl.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ClassDeclarationImpl.java deleted file mode 100644 index 774a6e33..00000000 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ClassDeclarationImpl.java +++ /dev/null | |||
@@ -1,335 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import java.util.Collection; | ||
6 | |||
7 | import org.eclipse.emf.common.notify.Notification; | ||
8 | import org.eclipse.emf.common.notify.NotificationChain; | ||
9 | |||
10 | import org.eclipse.emf.common.util.EList; | ||
11 | |||
12 | import org.eclipse.emf.ecore.EClass; | ||
13 | import org.eclipse.emf.ecore.InternalEObject; | ||
14 | |||
15 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
16 | |||
17 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
18 | import org.eclipse.emf.ecore.util.EObjectResolvingEList; | ||
19 | import org.eclipse.emf.ecore.util.InternalEList; | ||
20 | |||
21 | import org.eclipse.viatra.solver.language.model.problem.ClassDeclaration; | ||
22 | import org.eclipse.viatra.solver.language.model.problem.Node; | ||
23 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
24 | import org.eclipse.viatra.solver.language.model.problem.ReferenceDeclaration; | ||
25 | import org.eclipse.viatra.solver.language.model.problem.Relation; | ||
26 | |||
27 | /** | ||
28 | * <!-- begin-user-doc --> | ||
29 | * An implementation of the model object '<em><b>Class Declaration</b></em>'. | ||
30 | * <!-- end-user-doc --> | ||
31 | * <p> | ||
32 | * The following features are implemented: | ||
33 | * </p> | ||
34 | * <ul> | ||
35 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.ClassDeclarationImpl#isAbstract <em>Abstract</em>}</li> | ||
36 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.ClassDeclarationImpl#getSuperTypes <em>Super Types</em>}</li> | ||
37 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.ClassDeclarationImpl#getReferenceDeclarations <em>Reference Declarations</em>}</li> | ||
38 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.ClassDeclarationImpl#getNewNode <em>New Node</em>}</li> | ||
39 | * </ul> | ||
40 | * | ||
41 | * @generated | ||
42 | */ | ||
43 | public class ClassDeclarationImpl extends RelationImpl implements ClassDeclaration { | ||
44 | /** | ||
45 | * The default value of the '{@link #isAbstract() <em>Abstract</em>}' attribute. | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @see #isAbstract() | ||
49 | * @generated | ||
50 | * @ordered | ||
51 | */ | ||
52 | protected static final boolean ABSTRACT_EDEFAULT = false; | ||
53 | |||
54 | /** | ||
55 | * The cached value of the '{@link #isAbstract() <em>Abstract</em>}' attribute. | ||
56 | * <!-- begin-user-doc --> | ||
57 | * <!-- end-user-doc --> | ||
58 | * @see #isAbstract() | ||
59 | * @generated | ||
60 | * @ordered | ||
61 | */ | ||
62 | protected boolean abstract_ = ABSTRACT_EDEFAULT; | ||
63 | |||
64 | /** | ||
65 | * The cached value of the '{@link #getSuperTypes() <em>Super Types</em>}' reference list. | ||
66 | * <!-- begin-user-doc --> | ||
67 | * <!-- end-user-doc --> | ||
68 | * @see #getSuperTypes() | ||
69 | * @generated | ||
70 | * @ordered | ||
71 | */ | ||
72 | protected EList<Relation> superTypes; | ||
73 | |||
74 | /** | ||
75 | * The cached value of the '{@link #getReferenceDeclarations() <em>Reference Declarations</em>}' containment reference list. | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <!-- end-user-doc --> | ||
78 | * @see #getReferenceDeclarations() | ||
79 | * @generated | ||
80 | * @ordered | ||
81 | */ | ||
82 | protected EList<ReferenceDeclaration> referenceDeclarations; | ||
83 | |||
84 | /** | ||
85 | * The cached value of the '{@link #getNewNode() <em>New Node</em>}' containment reference. | ||
86 | * <!-- begin-user-doc --> | ||
87 | * <!-- end-user-doc --> | ||
88 | * @see #getNewNode() | ||
89 | * @generated | ||
90 | * @ordered | ||
91 | */ | ||
92 | protected Node newNode; | ||
93 | |||
94 | /** | ||
95 | * <!-- begin-user-doc --> | ||
96 | * <!-- end-user-doc --> | ||
97 | * @generated | ||
98 | */ | ||
99 | protected ClassDeclarationImpl() { | ||
100 | super(); | ||
101 | } | ||
102 | |||
103 | /** | ||
104 | * <!-- begin-user-doc --> | ||
105 | * <!-- end-user-doc --> | ||
106 | * @generated | ||
107 | */ | ||
108 | @Override | ||
109 | protected EClass eStaticClass() { | ||
110 | return ProblemPackage.Literals.CLASS_DECLARATION; | ||
111 | } | ||
112 | |||
113 | /** | ||
114 | * <!-- begin-user-doc --> | ||
115 | * <!-- end-user-doc --> | ||
116 | * @generated | ||
117 | */ | ||
118 | public boolean isAbstract() { | ||
119 | return abstract_; | ||
120 | } | ||
121 | |||
122 | /** | ||
123 | * <!-- begin-user-doc --> | ||
124 | * <!-- end-user-doc --> | ||
125 | * @generated | ||
126 | */ | ||
127 | public void setAbstract(boolean newAbstract) { | ||
128 | boolean oldAbstract = abstract_; | ||
129 | abstract_ = newAbstract; | ||
130 | if (eNotificationRequired()) | ||
131 | eNotify(new ENotificationImpl(this, Notification.SET, ProblemPackage.CLASS_DECLARATION__ABSTRACT, | ||
132 | oldAbstract, abstract_)); | ||
133 | } | ||
134 | |||
135 | /** | ||
136 | * <!-- begin-user-doc --> | ||
137 | * <!-- end-user-doc --> | ||
138 | * @generated | ||
139 | */ | ||
140 | public EList<Relation> getSuperTypes() { | ||
141 | if (superTypes == null) { | ||
142 | superTypes = new EObjectResolvingEList<Relation>(Relation.class, this, | ||
143 | ProblemPackage.CLASS_DECLARATION__SUPER_TYPES); | ||
144 | } | ||
145 | return superTypes; | ||
146 | } | ||
147 | |||
148 | /** | ||
149 | * <!-- begin-user-doc --> | ||
150 | * <!-- end-user-doc --> | ||
151 | * @generated | ||
152 | */ | ||
153 | public EList<ReferenceDeclaration> getReferenceDeclarations() { | ||
154 | if (referenceDeclarations == null) { | ||
155 | referenceDeclarations = new EObjectContainmentEList<ReferenceDeclaration>(ReferenceDeclaration.class, this, | ||
156 | ProblemPackage.CLASS_DECLARATION__REFERENCE_DECLARATIONS); | ||
157 | } | ||
158 | return referenceDeclarations; | ||
159 | } | ||
160 | |||
161 | /** | ||
162 | * <!-- begin-user-doc --> | ||
163 | * <!-- end-user-doc --> | ||
164 | * @generated | ||
165 | */ | ||
166 | public Node getNewNode() { | ||
167 | return newNode; | ||
168 | } | ||
169 | |||
170 | /** | ||
171 | * <!-- begin-user-doc --> | ||
172 | * <!-- end-user-doc --> | ||
173 | * @generated | ||
174 | */ | ||
175 | public NotificationChain basicSetNewNode(Node newNewNode, NotificationChain msgs) { | ||
176 | Node oldNewNode = newNode; | ||
177 | newNode = newNewNode; | ||
178 | if (eNotificationRequired()) { | ||
179 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, | ||
180 | ProblemPackage.CLASS_DECLARATION__NEW_NODE, oldNewNode, newNewNode); | ||
181 | if (msgs == null) | ||
182 | msgs = notification; | ||
183 | else | ||
184 | msgs.add(notification); | ||
185 | } | ||
186 | return msgs; | ||
187 | } | ||
188 | |||
189 | /** | ||
190 | * <!-- begin-user-doc --> | ||
191 | * <!-- end-user-doc --> | ||
192 | * @generated | ||
193 | */ | ||
194 | public void setNewNode(Node newNewNode) { | ||
195 | if (newNewNode != newNode) { | ||
196 | NotificationChain msgs = null; | ||
197 | if (newNode != null) | ||
198 | msgs = ((InternalEObject) newNode).eInverseRemove(this, | ||
199 | EOPPOSITE_FEATURE_BASE - ProblemPackage.CLASS_DECLARATION__NEW_NODE, null, msgs); | ||
200 | if (newNewNode != null) | ||
201 | msgs = ((InternalEObject) newNewNode).eInverseAdd(this, | ||
202 | EOPPOSITE_FEATURE_BASE - ProblemPackage.CLASS_DECLARATION__NEW_NODE, null, msgs); | ||
203 | msgs = basicSetNewNode(newNewNode, msgs); | ||
204 | if (msgs != null) | ||
205 | msgs.dispatch(); | ||
206 | } else if (eNotificationRequired()) | ||
207 | eNotify(new ENotificationImpl(this, Notification.SET, ProblemPackage.CLASS_DECLARATION__NEW_NODE, | ||
208 | newNewNode, newNewNode)); | ||
209 | } | ||
210 | |||
211 | /** | ||
212 | * <!-- begin-user-doc --> | ||
213 | * <!-- end-user-doc --> | ||
214 | * @generated | ||
215 | */ | ||
216 | @Override | ||
217 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
218 | switch (featureID) { | ||
219 | case ProblemPackage.CLASS_DECLARATION__REFERENCE_DECLARATIONS: | ||
220 | return ((InternalEList<?>) getReferenceDeclarations()).basicRemove(otherEnd, msgs); | ||
221 | case ProblemPackage.CLASS_DECLARATION__NEW_NODE: | ||
222 | return basicSetNewNode(null, msgs); | ||
223 | } | ||
224 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
225 | } | ||
226 | |||
227 | /** | ||
228 | * <!-- begin-user-doc --> | ||
229 | * <!-- end-user-doc --> | ||
230 | * @generated | ||
231 | */ | ||
232 | @Override | ||
233 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
234 | switch (featureID) { | ||
235 | case ProblemPackage.CLASS_DECLARATION__ABSTRACT: | ||
236 | return isAbstract(); | ||
237 | case ProblemPackage.CLASS_DECLARATION__SUPER_TYPES: | ||
238 | return getSuperTypes(); | ||
239 | case ProblemPackage.CLASS_DECLARATION__REFERENCE_DECLARATIONS: | ||
240 | return getReferenceDeclarations(); | ||
241 | case ProblemPackage.CLASS_DECLARATION__NEW_NODE: | ||
242 | return getNewNode(); | ||
243 | } | ||
244 | return super.eGet(featureID, resolve, coreType); | ||
245 | } | ||
246 | |||
247 | /** | ||
248 | * <!-- begin-user-doc --> | ||
249 | * <!-- end-user-doc --> | ||
250 | * @generated | ||
251 | */ | ||
252 | @SuppressWarnings("unchecked") | ||
253 | @Override | ||
254 | public void eSet(int featureID, Object newValue) { | ||
255 | switch (featureID) { | ||
256 | case ProblemPackage.CLASS_DECLARATION__ABSTRACT: | ||
257 | setAbstract((Boolean) newValue); | ||
258 | return; | ||
259 | case ProblemPackage.CLASS_DECLARATION__SUPER_TYPES: | ||
260 | getSuperTypes().clear(); | ||
261 | getSuperTypes().addAll((Collection<? extends Relation>) newValue); | ||
262 | return; | ||
263 | case ProblemPackage.CLASS_DECLARATION__REFERENCE_DECLARATIONS: | ||
264 | getReferenceDeclarations().clear(); | ||
265 | getReferenceDeclarations().addAll((Collection<? extends ReferenceDeclaration>) newValue); | ||
266 | return; | ||
267 | case ProblemPackage.CLASS_DECLARATION__NEW_NODE: | ||
268 | setNewNode((Node) newValue); | ||
269 | return; | ||
270 | } | ||
271 | super.eSet(featureID, newValue); | ||
272 | } | ||
273 | |||
274 | /** | ||
275 | * <!-- begin-user-doc --> | ||
276 | * <!-- end-user-doc --> | ||
277 | * @generated | ||
278 | */ | ||
279 | @Override | ||
280 | public void eUnset(int featureID) { | ||
281 | switch (featureID) { | ||
282 | case ProblemPackage.CLASS_DECLARATION__ABSTRACT: | ||
283 | setAbstract(ABSTRACT_EDEFAULT); | ||
284 | return; | ||
285 | case ProblemPackage.CLASS_DECLARATION__SUPER_TYPES: | ||
286 | getSuperTypes().clear(); | ||
287 | return; | ||
288 | case ProblemPackage.CLASS_DECLARATION__REFERENCE_DECLARATIONS: | ||
289 | getReferenceDeclarations().clear(); | ||
290 | return; | ||
291 | case ProblemPackage.CLASS_DECLARATION__NEW_NODE: | ||
292 | setNewNode((Node) null); | ||
293 | return; | ||
294 | } | ||
295 | super.eUnset(featureID); | ||
296 | } | ||
297 | |||
298 | /** | ||
299 | * <!-- begin-user-doc --> | ||
300 | * <!-- end-user-doc --> | ||
301 | * @generated | ||
302 | */ | ||
303 | @Override | ||
304 | public boolean eIsSet(int featureID) { | ||
305 | switch (featureID) { | ||
306 | case ProblemPackage.CLASS_DECLARATION__ABSTRACT: | ||
307 | return abstract_ != ABSTRACT_EDEFAULT; | ||
308 | case ProblemPackage.CLASS_DECLARATION__SUPER_TYPES: | ||
309 | return superTypes != null && !superTypes.isEmpty(); | ||
310 | case ProblemPackage.CLASS_DECLARATION__REFERENCE_DECLARATIONS: | ||
311 | return referenceDeclarations != null && !referenceDeclarations.isEmpty(); | ||
312 | case ProblemPackage.CLASS_DECLARATION__NEW_NODE: | ||
313 | return newNode != null; | ||
314 | } | ||
315 | return super.eIsSet(featureID); | ||
316 | } | ||
317 | |||
318 | /** | ||
319 | * <!-- begin-user-doc --> | ||
320 | * <!-- end-user-doc --> | ||
321 | * @generated | ||
322 | */ | ||
323 | @Override | ||
324 | public String toString() { | ||
325 | if (eIsProxy()) | ||
326 | return super.toString(); | ||
327 | |||
328 | StringBuilder result = new StringBuilder(super.toString()); | ||
329 | result.append(" (abstract: "); | ||
330 | result.append(abstract_); | ||
331 | result.append(')'); | ||
332 | return result.toString(); | ||
333 | } | ||
334 | |||
335 | } //ClassDeclarationImpl | ||
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ConjunctionImpl.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ConjunctionImpl.java deleted file mode 100644 index 72258cc1..00000000 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ConjunctionImpl.java +++ /dev/null | |||
@@ -1,190 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import java.util.Collection; | ||
6 | |||
7 | import org.eclipse.emf.common.notify.NotificationChain; | ||
8 | |||
9 | import org.eclipse.emf.common.util.EList; | ||
10 | |||
11 | import org.eclipse.emf.ecore.EClass; | ||
12 | import org.eclipse.emf.ecore.InternalEObject; | ||
13 | |||
14 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
15 | |||
16 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
17 | import org.eclipse.emf.ecore.util.InternalEList; | ||
18 | |||
19 | import org.eclipse.viatra.solver.language.model.problem.Conjunction; | ||
20 | import org.eclipse.viatra.solver.language.model.problem.ImplicitVariable; | ||
21 | import org.eclipse.viatra.solver.language.model.problem.Literal; | ||
22 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
23 | |||
24 | /** | ||
25 | * <!-- begin-user-doc --> | ||
26 | * An implementation of the model object '<em><b>Conjunction</b></em>'. | ||
27 | * <!-- end-user-doc --> | ||
28 | * <p> | ||
29 | * The following features are implemented: | ||
30 | * </p> | ||
31 | * <ul> | ||
32 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.ConjunctionImpl#getImplicitVariables <em>Implicit Variables</em>}</li> | ||
33 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.ConjunctionImpl#getLiterals <em>Literals</em>}</li> | ||
34 | * </ul> | ||
35 | * | ||
36 | * @generated | ||
37 | */ | ||
38 | public class ConjunctionImpl extends MinimalEObjectImpl.Container implements Conjunction { | ||
39 | /** | ||
40 | * The cached value of the '{@link #getImplicitVariables() <em>Implicit Variables</em>}' containment reference list. | ||
41 | * <!-- begin-user-doc --> | ||
42 | * <!-- end-user-doc --> | ||
43 | * @see #getImplicitVariables() | ||
44 | * @generated | ||
45 | * @ordered | ||
46 | */ | ||
47 | protected EList<ImplicitVariable> implicitVariables; | ||
48 | |||
49 | /** | ||
50 | * The cached value of the '{@link #getLiterals() <em>Literals</em>}' containment reference list. | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @see #getLiterals() | ||
54 | * @generated | ||
55 | * @ordered | ||
56 | */ | ||
57 | protected EList<Literal> literals; | ||
58 | |||
59 | /** | ||
60 | * <!-- begin-user-doc --> | ||
61 | * <!-- end-user-doc --> | ||
62 | * @generated | ||
63 | */ | ||
64 | protected ConjunctionImpl() { | ||
65 | super(); | ||
66 | } | ||
67 | |||
68 | /** | ||
69 | * <!-- begin-user-doc --> | ||
70 | * <!-- end-user-doc --> | ||
71 | * @generated | ||
72 | */ | ||
73 | @Override | ||
74 | protected EClass eStaticClass() { | ||
75 | return ProblemPackage.Literals.CONJUNCTION; | ||
76 | } | ||
77 | |||
78 | /** | ||
79 | * <!-- begin-user-doc --> | ||
80 | * <!-- end-user-doc --> | ||
81 | * @generated | ||
82 | */ | ||
83 | public EList<ImplicitVariable> getImplicitVariables() { | ||
84 | if (implicitVariables == null) { | ||
85 | implicitVariables = new EObjectContainmentEList<ImplicitVariable>(ImplicitVariable.class, this, | ||
86 | ProblemPackage.CONJUNCTION__IMPLICIT_VARIABLES); | ||
87 | } | ||
88 | return implicitVariables; | ||
89 | } | ||
90 | |||
91 | /** | ||
92 | * <!-- begin-user-doc --> | ||
93 | * <!-- end-user-doc --> | ||
94 | * @generated | ||
95 | */ | ||
96 | public EList<Literal> getLiterals() { | ||
97 | if (literals == null) { | ||
98 | literals = new EObjectContainmentEList<Literal>(Literal.class, this, ProblemPackage.CONJUNCTION__LITERALS); | ||
99 | } | ||
100 | return literals; | ||
101 | } | ||
102 | |||
103 | /** | ||
104 | * <!-- begin-user-doc --> | ||
105 | * <!-- end-user-doc --> | ||
106 | * @generated | ||
107 | */ | ||
108 | @Override | ||
109 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
110 | switch (featureID) { | ||
111 | case ProblemPackage.CONJUNCTION__IMPLICIT_VARIABLES: | ||
112 | return ((InternalEList<?>) getImplicitVariables()).basicRemove(otherEnd, msgs); | ||
113 | case ProblemPackage.CONJUNCTION__LITERALS: | ||
114 | return ((InternalEList<?>) getLiterals()).basicRemove(otherEnd, msgs); | ||
115 | } | ||
116 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
117 | } | ||
118 | |||
119 | /** | ||
120 | * <!-- begin-user-doc --> | ||
121 | * <!-- end-user-doc --> | ||
122 | * @generated | ||
123 | */ | ||
124 | @Override | ||
125 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
126 | switch (featureID) { | ||
127 | case ProblemPackage.CONJUNCTION__IMPLICIT_VARIABLES: | ||
128 | return getImplicitVariables(); | ||
129 | case ProblemPackage.CONJUNCTION__LITERALS: | ||
130 | return getLiterals(); | ||
131 | } | ||
132 | return super.eGet(featureID, resolve, coreType); | ||
133 | } | ||
134 | |||
135 | /** | ||
136 | * <!-- begin-user-doc --> | ||
137 | * <!-- end-user-doc --> | ||
138 | * @generated | ||
139 | */ | ||
140 | @SuppressWarnings("unchecked") | ||
141 | @Override | ||
142 | public void eSet(int featureID, Object newValue) { | ||
143 | switch (featureID) { | ||
144 | case ProblemPackage.CONJUNCTION__IMPLICIT_VARIABLES: | ||
145 | getImplicitVariables().clear(); | ||
146 | getImplicitVariables().addAll((Collection<? extends ImplicitVariable>) newValue); | ||
147 | return; | ||
148 | case ProblemPackage.CONJUNCTION__LITERALS: | ||
149 | getLiterals().clear(); | ||
150 | getLiterals().addAll((Collection<? extends Literal>) newValue); | ||
151 | return; | ||
152 | } | ||
153 | super.eSet(featureID, newValue); | ||
154 | } | ||
155 | |||
156 | /** | ||
157 | * <!-- begin-user-doc --> | ||
158 | * <!-- end-user-doc --> | ||
159 | * @generated | ||
160 | */ | ||
161 | @Override | ||
162 | public void eUnset(int featureID) { | ||
163 | switch (featureID) { | ||
164 | case ProblemPackage.CONJUNCTION__IMPLICIT_VARIABLES: | ||
165 | getImplicitVariables().clear(); | ||
166 | return; | ||
167 | case ProblemPackage.CONJUNCTION__LITERALS: | ||
168 | getLiterals().clear(); | ||
169 | return; | ||
170 | } | ||
171 | super.eUnset(featureID); | ||
172 | } | ||
173 | |||
174 | /** | ||
175 | * <!-- begin-user-doc --> | ||
176 | * <!-- end-user-doc --> | ||
177 | * @generated | ||
178 | */ | ||
179 | @Override | ||
180 | public boolean eIsSet(int featureID) { | ||
181 | switch (featureID) { | ||
182 | case ProblemPackage.CONJUNCTION__IMPLICIT_VARIABLES: | ||
183 | return implicitVariables != null && !implicitVariables.isEmpty(); | ||
184 | case ProblemPackage.CONJUNCTION__LITERALS: | ||
185 | return literals != null && !literals.isEmpty(); | ||
186 | } | ||
187 | return super.eIsSet(featureID); | ||
188 | } | ||
189 | |||
190 | } //ConjunctionImpl | ||
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/EnumDeclarationImpl.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/EnumDeclarationImpl.java deleted file mode 100644 index aac00423..00000000 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/EnumDeclarationImpl.java +++ /dev/null | |||
@@ -1,150 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import java.util.Collection; | ||
6 | |||
7 | import org.eclipse.emf.common.notify.NotificationChain; | ||
8 | |||
9 | import org.eclipse.emf.common.util.EList; | ||
10 | |||
11 | import org.eclipse.emf.ecore.EClass; | ||
12 | import org.eclipse.emf.ecore.InternalEObject; | ||
13 | |||
14 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
15 | import org.eclipse.emf.ecore.util.InternalEList; | ||
16 | |||
17 | import org.eclipse.viatra.solver.language.model.problem.EnumDeclaration; | ||
18 | import org.eclipse.viatra.solver.language.model.problem.Node; | ||
19 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
20 | |||
21 | /** | ||
22 | * <!-- begin-user-doc --> | ||
23 | * An implementation of the model object '<em><b>Enum Declaration</b></em>'. | ||
24 | * <!-- end-user-doc --> | ||
25 | * <p> | ||
26 | * The following features are implemented: | ||
27 | * </p> | ||
28 | * <ul> | ||
29 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.EnumDeclarationImpl#getLiterals <em>Literals</em>}</li> | ||
30 | * </ul> | ||
31 | * | ||
32 | * @generated | ||
33 | */ | ||
34 | public class EnumDeclarationImpl extends RelationImpl implements EnumDeclaration { | ||
35 | /** | ||
36 | * The cached value of the '{@link #getLiterals() <em>Literals</em>}' containment reference list. | ||
37 | * <!-- begin-user-doc --> | ||
38 | * <!-- end-user-doc --> | ||
39 | * @see #getLiterals() | ||
40 | * @generated | ||
41 | * @ordered | ||
42 | */ | ||
43 | protected EList<Node> literals; | ||
44 | |||
45 | /** | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @generated | ||
49 | */ | ||
50 | protected EnumDeclarationImpl() { | ||
51 | super(); | ||
52 | } | ||
53 | |||
54 | /** | ||
55 | * <!-- begin-user-doc --> | ||
56 | * <!-- end-user-doc --> | ||
57 | * @generated | ||
58 | */ | ||
59 | @Override | ||
60 | protected EClass eStaticClass() { | ||
61 | return ProblemPackage.Literals.ENUM_DECLARATION; | ||
62 | } | ||
63 | |||
64 | /** | ||
65 | * <!-- begin-user-doc --> | ||
66 | * <!-- end-user-doc --> | ||
67 | * @generated | ||
68 | */ | ||
69 | public EList<Node> getLiterals() { | ||
70 | if (literals == null) { | ||
71 | literals = new EObjectContainmentEList<Node>(Node.class, this, ProblemPackage.ENUM_DECLARATION__LITERALS); | ||
72 | } | ||
73 | return literals; | ||
74 | } | ||
75 | |||
76 | /** | ||
77 | * <!-- begin-user-doc --> | ||
78 | * <!-- end-user-doc --> | ||
79 | * @generated | ||
80 | */ | ||
81 | @Override | ||
82 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
83 | switch (featureID) { | ||
84 | case ProblemPackage.ENUM_DECLARATION__LITERALS: | ||
85 | return ((InternalEList<?>) getLiterals()).basicRemove(otherEnd, msgs); | ||
86 | } | ||
87 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
88 | } | ||
89 | |||
90 | /** | ||
91 | * <!-- begin-user-doc --> | ||
92 | * <!-- end-user-doc --> | ||
93 | * @generated | ||
94 | */ | ||
95 | @Override | ||
96 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
97 | switch (featureID) { | ||
98 | case ProblemPackage.ENUM_DECLARATION__LITERALS: | ||
99 | return getLiterals(); | ||
100 | } | ||
101 | return super.eGet(featureID, resolve, coreType); | ||
102 | } | ||
103 | |||
104 | /** | ||
105 | * <!-- begin-user-doc --> | ||
106 | * <!-- end-user-doc --> | ||
107 | * @generated | ||
108 | */ | ||
109 | @SuppressWarnings("unchecked") | ||
110 | @Override | ||
111 | public void eSet(int featureID, Object newValue) { | ||
112 | switch (featureID) { | ||
113 | case ProblemPackage.ENUM_DECLARATION__LITERALS: | ||
114 | getLiterals().clear(); | ||
115 | getLiterals().addAll((Collection<? extends Node>) newValue); | ||
116 | return; | ||
117 | } | ||
118 | super.eSet(featureID, newValue); | ||
119 | } | ||
120 | |||
121 | /** | ||
122 | * <!-- begin-user-doc --> | ||
123 | * <!-- end-user-doc --> | ||
124 | * @generated | ||
125 | */ | ||
126 | @Override | ||
127 | public void eUnset(int featureID) { | ||
128 | switch (featureID) { | ||
129 | case ProblemPackage.ENUM_DECLARATION__LITERALS: | ||
130 | getLiterals().clear(); | ||
131 | return; | ||
132 | } | ||
133 | super.eUnset(featureID); | ||
134 | } | ||
135 | |||
136 | /** | ||
137 | * <!-- begin-user-doc --> | ||
138 | * <!-- end-user-doc --> | ||
139 | * @generated | ||
140 | */ | ||
141 | @Override | ||
142 | public boolean eIsSet(int featureID) { | ||
143 | switch (featureID) { | ||
144 | case ProblemPackage.ENUM_DECLARATION__LITERALS: | ||
145 | return literals != null && !literals.isEmpty(); | ||
146 | } | ||
147 | return super.eIsSet(featureID); | ||
148 | } | ||
149 | |||
150 | } //EnumDeclarationImpl | ||
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ExactMultiplicityImpl.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ExactMultiplicityImpl.java deleted file mode 100644 index b3896ac2..00000000 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ExactMultiplicityImpl.java +++ /dev/null | |||
@@ -1,164 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import org.eclipse.emf.common.notify.Notification; | ||
6 | |||
7 | import org.eclipse.emf.ecore.EClass; | ||
8 | |||
9 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
10 | |||
11 | import org.eclipse.viatra.solver.language.model.problem.ExactMultiplicity; | ||
12 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
13 | |||
14 | /** | ||
15 | * <!-- begin-user-doc --> | ||
16 | * An implementation of the model object '<em><b>Exact Multiplicity</b></em>'. | ||
17 | * <!-- end-user-doc --> | ||
18 | * <p> | ||
19 | * The following features are implemented: | ||
20 | * </p> | ||
21 | * <ul> | ||
22 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.ExactMultiplicityImpl#getExactValue <em>Exact Value</em>}</li> | ||
23 | * </ul> | ||
24 | * | ||
25 | * @generated | ||
26 | */ | ||
27 | public class ExactMultiplicityImpl extends MultiplicityImpl implements ExactMultiplicity { | ||
28 | /** | ||
29 | * The default value of the '{@link #getExactValue() <em>Exact Value</em>}' attribute. | ||
30 | * <!-- begin-user-doc --> | ||
31 | * <!-- end-user-doc --> | ||
32 | * @see #getExactValue() | ||
33 | * @generated | ||
34 | * @ordered | ||
35 | */ | ||
36 | protected static final int EXACT_VALUE_EDEFAULT = 1; | ||
37 | |||
38 | /** | ||
39 | * The cached value of the '{@link #getExactValue() <em>Exact Value</em>}' attribute. | ||
40 | * <!-- begin-user-doc --> | ||
41 | * <!-- end-user-doc --> | ||
42 | * @see #getExactValue() | ||
43 | * @generated | ||
44 | * @ordered | ||
45 | */ | ||
46 | protected int exactValue = EXACT_VALUE_EDEFAULT; | ||
47 | |||
48 | /** | ||
49 | * <!-- begin-user-doc --> | ||
50 | * <!-- end-user-doc --> | ||
51 | * @generated | ||
52 | */ | ||
53 | protected ExactMultiplicityImpl() { | ||
54 | super(); | ||
55 | } | ||
56 | |||
57 | /** | ||
58 | * <!-- begin-user-doc --> | ||
59 | * <!-- end-user-doc --> | ||
60 | * @generated | ||
61 | */ | ||
62 | @Override | ||
63 | protected EClass eStaticClass() { | ||
64 | return ProblemPackage.Literals.EXACT_MULTIPLICITY; | ||
65 | } | ||
66 | |||
67 | /** | ||
68 | * <!-- begin-user-doc --> | ||
69 | * <!-- end-user-doc --> | ||
70 | * @generated | ||
71 | */ | ||
72 | public int getExactValue() { | ||
73 | return exactValue; | ||
74 | } | ||
75 | |||
76 | /** | ||
77 | * <!-- begin-user-doc --> | ||
78 | * <!-- end-user-doc --> | ||
79 | * @generated | ||
80 | */ | ||
81 | public void setExactValue(int newExactValue) { | ||
82 | int oldExactValue = exactValue; | ||
83 | exactValue = newExactValue; | ||
84 | if (eNotificationRequired()) | ||
85 | eNotify(new ENotificationImpl(this, Notification.SET, ProblemPackage.EXACT_MULTIPLICITY__EXACT_VALUE, | ||
86 | oldExactValue, exactValue)); | ||
87 | } | ||
88 | |||
89 | /** | ||
90 | * <!-- begin-user-doc --> | ||
91 | * <!-- end-user-doc --> | ||
92 | * @generated | ||
93 | */ | ||
94 | @Override | ||
95 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
96 | switch (featureID) { | ||
97 | case ProblemPackage.EXACT_MULTIPLICITY__EXACT_VALUE: | ||
98 | return getExactValue(); | ||
99 | } | ||
100 | return super.eGet(featureID, resolve, coreType); | ||
101 | } | ||
102 | |||
103 | /** | ||
104 | * <!-- begin-user-doc --> | ||
105 | * <!-- end-user-doc --> | ||
106 | * @generated | ||
107 | */ | ||
108 | @Override | ||
109 | public void eSet(int featureID, Object newValue) { | ||
110 | switch (featureID) { | ||
111 | case ProblemPackage.EXACT_MULTIPLICITY__EXACT_VALUE: | ||
112 | setExactValue((Integer) newValue); | ||
113 | return; | ||
114 | } | ||
115 | super.eSet(featureID, newValue); | ||
116 | } | ||
117 | |||
118 | /** | ||
119 | * <!-- begin-user-doc --> | ||
120 | * <!-- end-user-doc --> | ||
121 | * @generated | ||
122 | */ | ||
123 | @Override | ||
124 | public void eUnset(int featureID) { | ||
125 | switch (featureID) { | ||
126 | case ProblemPackage.EXACT_MULTIPLICITY__EXACT_VALUE: | ||
127 | setExactValue(EXACT_VALUE_EDEFAULT); | ||
128 | return; | ||
129 | } | ||
130 | super.eUnset(featureID); | ||
131 | } | ||
132 | |||
133 | /** | ||
134 | * <!-- begin-user-doc --> | ||
135 | * <!-- end-user-doc --> | ||
136 | * @generated | ||
137 | */ | ||
138 | @Override | ||
139 | public boolean eIsSet(int featureID) { | ||
140 | switch (featureID) { | ||
141 | case ProblemPackage.EXACT_MULTIPLICITY__EXACT_VALUE: | ||
142 | return exactValue != EXACT_VALUE_EDEFAULT; | ||
143 | } | ||
144 | return super.eIsSet(featureID); | ||
145 | } | ||
146 | |||
147 | /** | ||
148 | * <!-- begin-user-doc --> | ||
149 | * <!-- end-user-doc --> | ||
150 | * @generated | ||
151 | */ | ||
152 | @Override | ||
153 | public String toString() { | ||
154 | if (eIsProxy()) | ||
155 | return super.toString(); | ||
156 | |||
157 | StringBuilder result = new StringBuilder(super.toString()); | ||
158 | result.append(" (exactValue: "); | ||
159 | result.append(exactValue); | ||
160 | result.append(')'); | ||
161 | return result.toString(); | ||
162 | } | ||
163 | |||
164 | } //ExactMultiplicityImpl | ||
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ImplicitVariableImpl.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ImplicitVariableImpl.java deleted file mode 100644 index 03a31a16..00000000 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ImplicitVariableImpl.java +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EClass; | ||
6 | |||
7 | import org.eclipse.viatra.solver.language.model.problem.ImplicitVariable; | ||
8 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
9 | |||
10 | /** | ||
11 | * <!-- begin-user-doc --> | ||
12 | * An implementation of the model object '<em><b>Implicit Variable</b></em>'. | ||
13 | * <!-- end-user-doc --> | ||
14 | * | ||
15 | * @generated | ||
16 | */ | ||
17 | public class ImplicitVariableImpl extends VariableImpl implements ImplicitVariable { | ||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * <!-- end-user-doc --> | ||
21 | * @generated | ||
22 | */ | ||
23 | protected ImplicitVariableImpl() { | ||
24 | super(); | ||
25 | } | ||
26 | |||
27 | /** | ||
28 | * <!-- begin-user-doc --> | ||
29 | * <!-- end-user-doc --> | ||
30 | * @generated | ||
31 | */ | ||
32 | @Override | ||
33 | protected EClass eStaticClass() { | ||
34 | return ProblemPackage.Literals.IMPLICIT_VARIABLE; | ||
35 | } | ||
36 | |||
37 | } //ImplicitVariableImpl | ||
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/LiteralImpl.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/LiteralImpl.java deleted file mode 100644 index c48bdb0b..00000000 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/LiteralImpl.java +++ /dev/null | |||
@@ -1,39 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EClass; | ||
6 | |||
7 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
8 | |||
9 | import org.eclipse.viatra.solver.language.model.problem.Literal; | ||
10 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
11 | |||
12 | /** | ||
13 | * <!-- begin-user-doc --> | ||
14 | * An implementation of the model object '<em><b>Literal</b></em>'. | ||
15 | * <!-- end-user-doc --> | ||
16 | * | ||
17 | * @generated | ||
18 | */ | ||
19 | public abstract class LiteralImpl extends MinimalEObjectImpl.Container implements Literal { | ||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * <!-- end-user-doc --> | ||
23 | * @generated | ||
24 | */ | ||
25 | protected LiteralImpl() { | ||
26 | super(); | ||
27 | } | ||
28 | |||
29 | /** | ||
30 | * <!-- begin-user-doc --> | ||
31 | * <!-- end-user-doc --> | ||
32 | * @generated | ||
33 | */ | ||
34 | @Override | ||
35 | protected EClass eStaticClass() { | ||
36 | return ProblemPackage.Literals.LITERAL; | ||
37 | } | ||
38 | |||
39 | } //LiteralImpl | ||
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/MultiplicityImpl.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/MultiplicityImpl.java deleted file mode 100644 index 8d769eb0..00000000 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/MultiplicityImpl.java +++ /dev/null | |||
@@ -1,39 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EClass; | ||
6 | |||
7 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
8 | |||
9 | import org.eclipse.viatra.solver.language.model.problem.Multiplicity; | ||
10 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
11 | |||
12 | /** | ||
13 | * <!-- begin-user-doc --> | ||
14 | * An implementation of the model object '<em><b>Multiplicity</b></em>'. | ||
15 | * <!-- end-user-doc --> | ||
16 | * | ||
17 | * @generated | ||
18 | */ | ||
19 | public abstract class MultiplicityImpl extends MinimalEObjectImpl.Container implements Multiplicity { | ||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * <!-- end-user-doc --> | ||
23 | * @generated | ||
24 | */ | ||
25 | protected MultiplicityImpl() { | ||
26 | super(); | ||
27 | } | ||
28 | |||
29 | /** | ||
30 | * <!-- begin-user-doc --> | ||
31 | * <!-- end-user-doc --> | ||
32 | * @generated | ||
33 | */ | ||
34 | @Override | ||
35 | protected EClass eStaticClass() { | ||
36 | return ProblemPackage.Literals.MULTIPLICITY; | ||
37 | } | ||
38 | |||
39 | } //MultiplicityImpl | ||
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/NamedElementImpl.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/NamedElementImpl.java deleted file mode 100644 index b414013b..00000000 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/NamedElementImpl.java +++ /dev/null | |||
@@ -1,164 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import org.eclipse.emf.common.notify.Notification; | ||
6 | |||
7 | import org.eclipse.emf.ecore.EClass; | ||
8 | |||
9 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
10 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
11 | |||
12 | import org.eclipse.viatra.solver.language.model.problem.NamedElement; | ||
13 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
14 | |||
15 | /** | ||
16 | * <!-- begin-user-doc --> | ||
17 | * An implementation of the model object '<em><b>Named Element</b></em>'. | ||
18 | * <!-- end-user-doc --> | ||
19 | * <p> | ||
20 | * The following features are implemented: | ||
21 | * </p> | ||
22 | * <ul> | ||
23 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.NamedElementImpl#getName <em>Name</em>}</li> | ||
24 | * </ul> | ||
25 | * | ||
26 | * @generated | ||
27 | */ | ||
28 | public abstract class NamedElementImpl extends MinimalEObjectImpl.Container implements NamedElement { | ||
29 | /** | ||
30 | * The default value of the '{@link #getName() <em>Name</em>}' attribute. | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @see #getName() | ||
34 | * @generated | ||
35 | * @ordered | ||
36 | */ | ||
37 | protected static final String NAME_EDEFAULT = null; | ||
38 | |||
39 | /** | ||
40 | * The cached value of the '{@link #getName() <em>Name</em>}' attribute. | ||
41 | * <!-- begin-user-doc --> | ||
42 | * <!-- end-user-doc --> | ||
43 | * @see #getName() | ||
44 | * @generated | ||
45 | * @ordered | ||
46 | */ | ||
47 | protected String name = NAME_EDEFAULT; | ||
48 | |||
49 | /** | ||
50 | * <!-- begin-user-doc --> | ||
51 | * <!-- end-user-doc --> | ||
52 | * @generated | ||
53 | */ | ||
54 | protected NamedElementImpl() { | ||
55 | super(); | ||
56 | } | ||
57 | |||
58 | /** | ||
59 | * <!-- begin-user-doc --> | ||
60 | * <!-- end-user-doc --> | ||
61 | * @generated | ||
62 | */ | ||
63 | @Override | ||
64 | protected EClass eStaticClass() { | ||
65 | return ProblemPackage.Literals.NAMED_ELEMENT; | ||
66 | } | ||
67 | |||
68 | /** | ||
69 | * <!-- begin-user-doc --> | ||
70 | * <!-- end-user-doc --> | ||
71 | * @generated | ||
72 | */ | ||
73 | public String getName() { | ||
74 | return name; | ||
75 | } | ||
76 | |||
77 | /** | ||
78 | * <!-- begin-user-doc --> | ||
79 | * <!-- end-user-doc --> | ||
80 | * @generated | ||
81 | */ | ||
82 | public void setName(String newName) { | ||
83 | String oldName = name; | ||
84 | name = newName; | ||
85 | if (eNotificationRequired()) | ||
86 | eNotify(new ENotificationImpl(this, Notification.SET, ProblemPackage.NAMED_ELEMENT__NAME, oldName, name)); | ||
87 | } | ||
88 | |||
89 | /** | ||
90 | * <!-- begin-user-doc --> | ||
91 | * <!-- end-user-doc --> | ||
92 | * @generated | ||
93 | */ | ||
94 | @Override | ||
95 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
96 | switch (featureID) { | ||
97 | case ProblemPackage.NAMED_ELEMENT__NAME: | ||
98 | return getName(); | ||
99 | } | ||
100 | return super.eGet(featureID, resolve, coreType); | ||
101 | } | ||
102 | |||
103 | /** | ||
104 | * <!-- begin-user-doc --> | ||
105 | * <!-- end-user-doc --> | ||
106 | * @generated | ||
107 | */ | ||
108 | @Override | ||
109 | public void eSet(int featureID, Object newValue) { | ||
110 | switch (featureID) { | ||
111 | case ProblemPackage.NAMED_ELEMENT__NAME: | ||
112 | setName((String) newValue); | ||
113 | return; | ||
114 | } | ||
115 | super.eSet(featureID, newValue); | ||
116 | } | ||
117 | |||
118 | /** | ||
119 | * <!-- begin-user-doc --> | ||
120 | * <!-- end-user-doc --> | ||
121 | * @generated | ||
122 | */ | ||
123 | @Override | ||
124 | public void eUnset(int featureID) { | ||
125 | switch (featureID) { | ||
126 | case ProblemPackage.NAMED_ELEMENT__NAME: | ||
127 | setName(NAME_EDEFAULT); | ||
128 | return; | ||
129 | } | ||
130 | super.eUnset(featureID); | ||
131 | } | ||
132 | |||
133 | /** | ||
134 | * <!-- begin-user-doc --> | ||
135 | * <!-- end-user-doc --> | ||
136 | * @generated | ||
137 | */ | ||
138 | @Override | ||
139 | public boolean eIsSet(int featureID) { | ||
140 | switch (featureID) { | ||
141 | case ProblemPackage.NAMED_ELEMENT__NAME: | ||
142 | return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); | ||
143 | } | ||
144 | return super.eIsSet(featureID); | ||
145 | } | ||
146 | |||
147 | /** | ||
148 | * <!-- begin-user-doc --> | ||
149 | * <!-- end-user-doc --> | ||
150 | * @generated | ||
151 | */ | ||
152 | @Override | ||
153 | public String toString() { | ||
154 | if (eIsProxy()) | ||
155 | return super.toString(); | ||
156 | |||
157 | StringBuilder result = new StringBuilder(super.toString()); | ||
158 | result.append(" (name: "); | ||
159 | result.append(name); | ||
160 | result.append(')'); | ||
161 | return result.toString(); | ||
162 | } | ||
163 | |||
164 | } //NamedElementImpl | ||
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/NegativeLiteralImpl.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/NegativeLiteralImpl.java deleted file mode 100644 index 857a779d..00000000 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/NegativeLiteralImpl.java +++ /dev/null | |||
@@ -1,229 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import java.util.Collection; | ||
6 | |||
7 | import org.eclipse.emf.common.notify.Notification; | ||
8 | import org.eclipse.emf.common.notify.NotificationChain; | ||
9 | |||
10 | import org.eclipse.emf.common.util.EList; | ||
11 | |||
12 | import org.eclipse.emf.ecore.EClass; | ||
13 | import org.eclipse.emf.ecore.InternalEObject; | ||
14 | |||
15 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
16 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
17 | |||
18 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
19 | import org.eclipse.emf.ecore.util.InternalEList; | ||
20 | |||
21 | import org.eclipse.viatra.solver.language.model.problem.Atom; | ||
22 | import org.eclipse.viatra.solver.language.model.problem.ImplicitVariable; | ||
23 | import org.eclipse.viatra.solver.language.model.problem.NegativeLiteral; | ||
24 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
25 | |||
26 | /** | ||
27 | * <!-- begin-user-doc --> | ||
28 | * An implementation of the model object '<em><b>Negative Literal</b></em>'. | ||
29 | * <!-- end-user-doc --> | ||
30 | * <p> | ||
31 | * The following features are implemented: | ||
32 | * </p> | ||
33 | * <ul> | ||
34 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.NegativeLiteralImpl#getImplicitVariables <em>Implicit Variables</em>}</li> | ||
35 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.NegativeLiteralImpl#getAtom <em>Atom</em>}</li> | ||
36 | * </ul> | ||
37 | * | ||
38 | * @generated | ||
39 | */ | ||
40 | public class NegativeLiteralImpl extends MinimalEObjectImpl.Container implements NegativeLiteral { | ||
41 | /** | ||
42 | * The cached value of the '{@link #getImplicitVariables() <em>Implicit Variables</em>}' containment reference list. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @see #getImplicitVariables() | ||
46 | * @generated | ||
47 | * @ordered | ||
48 | */ | ||
49 | protected EList<ImplicitVariable> implicitVariables; | ||
50 | |||
51 | /** | ||
52 | * The cached value of the '{@link #getAtom() <em>Atom</em>}' containment reference. | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @see #getAtom() | ||
56 | * @generated | ||
57 | * @ordered | ||
58 | */ | ||
59 | protected Atom atom; | ||
60 | |||
61 | /** | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @generated | ||
65 | */ | ||
66 | protected NegativeLiteralImpl() { | ||
67 | super(); | ||
68 | } | ||
69 | |||
70 | /** | ||
71 | * <!-- begin-user-doc --> | ||
72 | * <!-- end-user-doc --> | ||
73 | * @generated | ||
74 | */ | ||
75 | @Override | ||
76 | protected EClass eStaticClass() { | ||
77 | return ProblemPackage.Literals.NEGATIVE_LITERAL; | ||
78 | } | ||
79 | |||
80 | /** | ||
81 | * <!-- begin-user-doc --> | ||
82 | * <!-- end-user-doc --> | ||
83 | * @generated | ||
84 | */ | ||
85 | public EList<ImplicitVariable> getImplicitVariables() { | ||
86 | if (implicitVariables == null) { | ||
87 | implicitVariables = new EObjectContainmentEList<ImplicitVariable>(ImplicitVariable.class, this, | ||
88 | ProblemPackage.NEGATIVE_LITERAL__IMPLICIT_VARIABLES); | ||
89 | } | ||
90 | return implicitVariables; | ||
91 | } | ||
92 | |||
93 | /** | ||
94 | * <!-- begin-user-doc --> | ||
95 | * <!-- end-user-doc --> | ||
96 | * @generated | ||
97 | */ | ||
98 | public Atom getAtom() { | ||
99 | return atom; | ||
100 | } | ||
101 | |||
102 | /** | ||
103 | * <!-- begin-user-doc --> | ||
104 | * <!-- end-user-doc --> | ||
105 | * @generated | ||
106 | */ | ||
107 | public NotificationChain basicSetAtom(Atom newAtom, NotificationChain msgs) { | ||
108 | Atom oldAtom = atom; | ||
109 | atom = newAtom; | ||
110 | if (eNotificationRequired()) { | ||
111 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, | ||
112 | ProblemPackage.NEGATIVE_LITERAL__ATOM, oldAtom, newAtom); | ||
113 | if (msgs == null) | ||
114 | msgs = notification; | ||
115 | else | ||
116 | msgs.add(notification); | ||
117 | } | ||
118 | return msgs; | ||
119 | } | ||
120 | |||
121 | /** | ||
122 | * <!-- begin-user-doc --> | ||
123 | * <!-- end-user-doc --> | ||
124 | * @generated | ||
125 | */ | ||
126 | public void setAtom(Atom newAtom) { | ||
127 | if (newAtom != atom) { | ||
128 | NotificationChain msgs = null; | ||
129 | if (atom != null) | ||
130 | msgs = ((InternalEObject) atom).eInverseRemove(this, | ||
131 | EOPPOSITE_FEATURE_BASE - ProblemPackage.NEGATIVE_LITERAL__ATOM, null, msgs); | ||
132 | if (newAtom != null) | ||
133 | msgs = ((InternalEObject) newAtom).eInverseAdd(this, | ||
134 | EOPPOSITE_FEATURE_BASE - ProblemPackage.NEGATIVE_LITERAL__ATOM, null, msgs); | ||
135 | msgs = basicSetAtom(newAtom, msgs); | ||
136 | if (msgs != null) | ||
137 | msgs.dispatch(); | ||
138 | } else if (eNotificationRequired()) | ||
139 | eNotify(new ENotificationImpl(this, Notification.SET, ProblemPackage.NEGATIVE_LITERAL__ATOM, newAtom, | ||
140 | newAtom)); | ||
141 | } | ||
142 | |||
143 | /** | ||
144 | * <!-- begin-user-doc --> | ||
145 | * <!-- end-user-doc --> | ||
146 | * @generated | ||
147 | */ | ||
148 | @Override | ||
149 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
150 | switch (featureID) { | ||
151 | case ProblemPackage.NEGATIVE_LITERAL__IMPLICIT_VARIABLES: | ||
152 | return ((InternalEList<?>) getImplicitVariables()).basicRemove(otherEnd, msgs); | ||
153 | case ProblemPackage.NEGATIVE_LITERAL__ATOM: | ||
154 | return basicSetAtom(null, msgs); | ||
155 | } | ||
156 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
157 | } | ||
158 | |||
159 | /** | ||
160 | * <!-- begin-user-doc --> | ||
161 | * <!-- end-user-doc --> | ||
162 | * @generated | ||
163 | */ | ||
164 | @Override | ||
165 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
166 | switch (featureID) { | ||
167 | case ProblemPackage.NEGATIVE_LITERAL__IMPLICIT_VARIABLES: | ||
168 | return getImplicitVariables(); | ||
169 | case ProblemPackage.NEGATIVE_LITERAL__ATOM: | ||
170 | return getAtom(); | ||
171 | } | ||
172 | return super.eGet(featureID, resolve, coreType); | ||
173 | } | ||
174 | |||
175 | /** | ||
176 | * <!-- begin-user-doc --> | ||
177 | * <!-- end-user-doc --> | ||
178 | * @generated | ||
179 | */ | ||
180 | @SuppressWarnings("unchecked") | ||
181 | @Override | ||
182 | public void eSet(int featureID, Object newValue) { | ||
183 | switch (featureID) { | ||
184 | case ProblemPackage.NEGATIVE_LITERAL__IMPLICIT_VARIABLES: | ||
185 | getImplicitVariables().clear(); | ||
186 | getImplicitVariables().addAll((Collection<? extends ImplicitVariable>) newValue); | ||
187 | return; | ||
188 | case ProblemPackage.NEGATIVE_LITERAL__ATOM: | ||
189 | setAtom((Atom) newValue); | ||
190 | return; | ||
191 | } | ||
192 | super.eSet(featureID, newValue); | ||
193 | } | ||
194 | |||
195 | /** | ||
196 | * <!-- begin-user-doc --> | ||
197 | * <!-- end-user-doc --> | ||
198 | * @generated | ||
199 | */ | ||
200 | @Override | ||
201 | public void eUnset(int featureID) { | ||
202 | switch (featureID) { | ||
203 | case ProblemPackage.NEGATIVE_LITERAL__IMPLICIT_VARIABLES: | ||
204 | getImplicitVariables().clear(); | ||
205 | return; | ||
206 | case ProblemPackage.NEGATIVE_LITERAL__ATOM: | ||
207 | setAtom((Atom) null); | ||
208 | return; | ||
209 | } | ||
210 | super.eUnset(featureID); | ||
211 | } | ||
212 | |||
213 | /** | ||
214 | * <!-- begin-user-doc --> | ||
215 | * <!-- end-user-doc --> | ||
216 | * @generated | ||
217 | */ | ||
218 | @Override | ||
219 | public boolean eIsSet(int featureID) { | ||
220 | switch (featureID) { | ||
221 | case ProblemPackage.NEGATIVE_LITERAL__IMPLICIT_VARIABLES: | ||
222 | return implicitVariables != null && !implicitVariables.isEmpty(); | ||
223 | case ProblemPackage.NEGATIVE_LITERAL__ATOM: | ||
224 | return atom != null; | ||
225 | } | ||
226 | return super.eIsSet(featureID); | ||
227 | } | ||
228 | |||
229 | } //NegativeLiteralImpl | ||
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/NodeImpl.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/NodeImpl.java deleted file mode 100644 index 0c08bb1b..00000000 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/NodeImpl.java +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EClass; | ||
6 | |||
7 | import org.eclipse.viatra.solver.language.model.problem.Node; | ||
8 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
9 | |||
10 | /** | ||
11 | * <!-- begin-user-doc --> | ||
12 | * An implementation of the model object '<em><b>Node</b></em>'. | ||
13 | * <!-- end-user-doc --> | ||
14 | * | ||
15 | * @generated | ||
16 | */ | ||
17 | public class NodeImpl extends VariableOrNodeImpl implements Node { | ||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * <!-- end-user-doc --> | ||
21 | * @generated | ||
22 | */ | ||
23 | protected NodeImpl() { | ||
24 | super(); | ||
25 | } | ||
26 | |||
27 | /** | ||
28 | * <!-- begin-user-doc --> | ||
29 | * <!-- end-user-doc --> | ||
30 | * @generated | ||
31 | */ | ||
32 | @Override | ||
33 | protected EClass eStaticClass() { | ||
34 | return ProblemPackage.Literals.NODE; | ||
35 | } | ||
36 | |||
37 | } //NodeImpl | ||
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ParameterImpl.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ParameterImpl.java deleted file mode 100644 index 06eea3f3..00000000 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ParameterImpl.java +++ /dev/null | |||
@@ -1,158 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import org.eclipse.emf.common.notify.Notification; | ||
6 | |||
7 | import org.eclipse.emf.ecore.EClass; | ||
8 | import org.eclipse.emf.ecore.InternalEObject; | ||
9 | |||
10 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
11 | import org.eclipse.viatra.solver.language.model.problem.Parameter; | ||
12 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
13 | import org.eclipse.viatra.solver.language.model.problem.Relation; | ||
14 | |||
15 | /** | ||
16 | * <!-- begin-user-doc --> | ||
17 | * An implementation of the model object '<em><b>Parameter</b></em>'. | ||
18 | * <!-- end-user-doc --> | ||
19 | * <p> | ||
20 | * The following features are implemented: | ||
21 | * </p> | ||
22 | * <ul> | ||
23 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.ParameterImpl#getParameterType <em>Parameter Type</em>}</li> | ||
24 | * </ul> | ||
25 | * | ||
26 | * @generated | ||
27 | */ | ||
28 | public class ParameterImpl extends VariableImpl implements Parameter { | ||
29 | /** | ||
30 | * The cached value of the '{@link #getParameterType() <em>Parameter Type</em>}' reference. | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @see #getParameterType() | ||
34 | * @generated | ||
35 | * @ordered | ||
36 | */ | ||
37 | protected Relation parameterType; | ||
38 | |||
39 | /** | ||
40 | * <!-- begin-user-doc --> | ||
41 | * <!-- end-user-doc --> | ||
42 | * @generated | ||
43 | */ | ||
44 | protected ParameterImpl() { | ||
45 | super(); | ||
46 | } | ||
47 | |||
48 | /** | ||
49 | * <!-- begin-user-doc --> | ||
50 | * <!-- end-user-doc --> | ||
51 | * @generated | ||
52 | */ | ||
53 | @Override | ||
54 | protected EClass eStaticClass() { | ||
55 | return ProblemPackage.Literals.PARAMETER; | ||
56 | } | ||
57 | |||
58 | /** | ||
59 | * <!-- begin-user-doc --> | ||
60 | * <!-- end-user-doc --> | ||
61 | * @generated | ||
62 | */ | ||
63 | public Relation getParameterType() { | ||
64 | if (parameterType != null && parameterType.eIsProxy()) { | ||
65 | InternalEObject oldParameterType = (InternalEObject) parameterType; | ||
66 | parameterType = (Relation) eResolveProxy(oldParameterType); | ||
67 | if (parameterType != oldParameterType) { | ||
68 | if (eNotificationRequired()) | ||
69 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, ProblemPackage.PARAMETER__PARAMETER_TYPE, | ||
70 | oldParameterType, parameterType)); | ||
71 | } | ||
72 | } | ||
73 | return parameterType; | ||
74 | } | ||
75 | |||
76 | /** | ||
77 | * <!-- begin-user-doc --> | ||
78 | * <!-- end-user-doc --> | ||
79 | * @generated | ||
80 | */ | ||
81 | public Relation basicGetParameterType() { | ||
82 | return parameterType; | ||
83 | } | ||
84 | |||
85 | /** | ||
86 | * <!-- begin-user-doc --> | ||
87 | * <!-- end-user-doc --> | ||
88 | * @generated | ||
89 | */ | ||
90 | public void setParameterType(Relation newParameterType) { | ||
91 | Relation oldParameterType = parameterType; | ||
92 | parameterType = newParameterType; | ||
93 | if (eNotificationRequired()) | ||
94 | eNotify(new ENotificationImpl(this, Notification.SET, ProblemPackage.PARAMETER__PARAMETER_TYPE, | ||
95 | oldParameterType, parameterType)); | ||
96 | } | ||
97 | |||
98 | /** | ||
99 | * <!-- begin-user-doc --> | ||
100 | * <!-- end-user-doc --> | ||
101 | * @generated | ||
102 | */ | ||
103 | @Override | ||
104 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
105 | switch (featureID) { | ||
106 | case ProblemPackage.PARAMETER__PARAMETER_TYPE: | ||
107 | if (resolve) | ||
108 | return getParameterType(); | ||
109 | return basicGetParameterType(); | ||
110 | } | ||
111 | return super.eGet(featureID, resolve, coreType); | ||
112 | } | ||
113 | |||
114 | /** | ||
115 | * <!-- begin-user-doc --> | ||
116 | * <!-- end-user-doc --> | ||
117 | * @generated | ||
118 | */ | ||
119 | @Override | ||
120 | public void eSet(int featureID, Object newValue) { | ||
121 | switch (featureID) { | ||
122 | case ProblemPackage.PARAMETER__PARAMETER_TYPE: | ||
123 | setParameterType((Relation) newValue); | ||
124 | return; | ||
125 | } | ||
126 | super.eSet(featureID, newValue); | ||
127 | } | ||
128 | |||
129 | /** | ||
130 | * <!-- begin-user-doc --> | ||
131 | * <!-- end-user-doc --> | ||
132 | * @generated | ||
133 | */ | ||
134 | @Override | ||
135 | public void eUnset(int featureID) { | ||
136 | switch (featureID) { | ||
137 | case ProblemPackage.PARAMETER__PARAMETER_TYPE: | ||
138 | setParameterType((Relation) null); | ||
139 | return; | ||
140 | } | ||
141 | super.eUnset(featureID); | ||
142 | } | ||
143 | |||
144 | /** | ||
145 | * <!-- begin-user-doc --> | ||
146 | * <!-- end-user-doc --> | ||
147 | * @generated | ||
148 | */ | ||
149 | @Override | ||
150 | public boolean eIsSet(int featureID) { | ||
151 | switch (featureID) { | ||
152 | case ProblemPackage.PARAMETER__PARAMETER_TYPE: | ||
153 | return parameterType != null; | ||
154 | } | ||
155 | return super.eIsSet(featureID); | ||
156 | } | ||
157 | |||
158 | } //ParameterImpl | ||
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/PredicateDefinitionImpl.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/PredicateDefinitionImpl.java deleted file mode 100644 index 968b6de1..00000000 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/PredicateDefinitionImpl.java +++ /dev/null | |||
@@ -1,262 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import java.util.Collection; | ||
6 | |||
7 | import org.eclipse.emf.common.notify.Notification; | ||
8 | import org.eclipse.emf.common.notify.NotificationChain; | ||
9 | |||
10 | import org.eclipse.emf.common.util.EList; | ||
11 | |||
12 | import org.eclipse.emf.ecore.EClass; | ||
13 | import org.eclipse.emf.ecore.InternalEObject; | ||
14 | |||
15 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
16 | |||
17 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
18 | import org.eclipse.emf.ecore.util.InternalEList; | ||
19 | |||
20 | import org.eclipse.viatra.solver.language.model.problem.Conjunction; | ||
21 | import org.eclipse.viatra.solver.language.model.problem.Parameter; | ||
22 | import org.eclipse.viatra.solver.language.model.problem.PredicateDefinition; | ||
23 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
24 | |||
25 | /** | ||
26 | * <!-- begin-user-doc --> | ||
27 | * An implementation of the model object '<em><b>Predicate Definition</b></em>'. | ||
28 | * <!-- end-user-doc --> | ||
29 | * <p> | ||
30 | * The following features are implemented: | ||
31 | * </p> | ||
32 | * <ul> | ||
33 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.PredicateDefinitionImpl#isError <em>Error</em>}</li> | ||
34 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.PredicateDefinitionImpl#getParameters <em>Parameters</em>}</li> | ||
35 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.PredicateDefinitionImpl#getBodies <em>Bodies</em>}</li> | ||
36 | * </ul> | ||
37 | * | ||
38 | * @generated | ||
39 | */ | ||
40 | public class PredicateDefinitionImpl extends RelationImpl implements PredicateDefinition { | ||
41 | /** | ||
42 | * The default value of the '{@link #isError() <em>Error</em>}' attribute. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @see #isError() | ||
46 | * @generated | ||
47 | * @ordered | ||
48 | */ | ||
49 | protected static final boolean ERROR_EDEFAULT = false; | ||
50 | |||
51 | /** | ||
52 | * The cached value of the '{@link #isError() <em>Error</em>}' attribute. | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @see #isError() | ||
56 | * @generated | ||
57 | * @ordered | ||
58 | */ | ||
59 | protected boolean error = ERROR_EDEFAULT; | ||
60 | |||
61 | /** | ||
62 | * The cached value of the '{@link #getParameters() <em>Parameters</em>}' containment reference list. | ||
63 | * <!-- begin-user-doc --> | ||
64 | * <!-- end-user-doc --> | ||
65 | * @see #getParameters() | ||
66 | * @generated | ||
67 | * @ordered | ||
68 | */ | ||
69 | protected EList<Parameter> parameters; | ||
70 | |||
71 | /** | ||
72 | * The cached value of the '{@link #getBodies() <em>Bodies</em>}' containment reference list. | ||
73 | * <!-- begin-user-doc --> | ||
74 | * <!-- end-user-doc --> | ||
75 | * @see #getBodies() | ||
76 | * @generated | ||
77 | * @ordered | ||
78 | */ | ||
79 | protected EList<Conjunction> bodies; | ||
80 | |||
81 | /** | ||
82 | * <!-- begin-user-doc --> | ||
83 | * <!-- end-user-doc --> | ||
84 | * @generated | ||
85 | */ | ||
86 | protected PredicateDefinitionImpl() { | ||
87 | super(); | ||
88 | } | ||
89 | |||
90 | /** | ||
91 | * <!-- begin-user-doc --> | ||
92 | * <!-- end-user-doc --> | ||
93 | * @generated | ||
94 | */ | ||
95 | @Override | ||
96 | protected EClass eStaticClass() { | ||
97 | return ProblemPackage.Literals.PREDICATE_DEFINITION; | ||
98 | } | ||
99 | |||
100 | /** | ||
101 | * <!-- begin-user-doc --> | ||
102 | * <!-- end-user-doc --> | ||
103 | * @generated | ||
104 | */ | ||
105 | public boolean isError() { | ||
106 | return error; | ||
107 | } | ||
108 | |||
109 | /** | ||
110 | * <!-- begin-user-doc --> | ||
111 | * <!-- end-user-doc --> | ||
112 | * @generated | ||
113 | */ | ||
114 | public void setError(boolean newError) { | ||
115 | boolean oldError = error; | ||
116 | error = newError; | ||
117 | if (eNotificationRequired()) | ||
118 | eNotify(new ENotificationImpl(this, Notification.SET, ProblemPackage.PREDICATE_DEFINITION__ERROR, oldError, | ||
119 | error)); | ||
120 | } | ||
121 | |||
122 | /** | ||
123 | * <!-- begin-user-doc --> | ||
124 | * <!-- end-user-doc --> | ||
125 | * @generated | ||
126 | */ | ||
127 | public EList<Parameter> getParameters() { | ||
128 | if (parameters == null) { | ||
129 | parameters = new EObjectContainmentEList<Parameter>(Parameter.class, this, | ||
130 | ProblemPackage.PREDICATE_DEFINITION__PARAMETERS); | ||
131 | } | ||
132 | return parameters; | ||
133 | } | ||
134 | |||
135 | /** | ||
136 | * <!-- begin-user-doc --> | ||
137 | * <!-- end-user-doc --> | ||
138 | * @generated | ||
139 | */ | ||
140 | public EList<Conjunction> getBodies() { | ||
141 | if (bodies == null) { | ||
142 | bodies = new EObjectContainmentEList<Conjunction>(Conjunction.class, this, | ||
143 | ProblemPackage.PREDICATE_DEFINITION__BODIES); | ||
144 | } | ||
145 | return bodies; | ||
146 | } | ||
147 | |||
148 | /** | ||
149 | * <!-- begin-user-doc --> | ||
150 | * <!-- end-user-doc --> | ||
151 | * @generated | ||
152 | */ | ||
153 | @Override | ||
154 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
155 | switch (featureID) { | ||
156 | case ProblemPackage.PREDICATE_DEFINITION__PARAMETERS: | ||
157 | return ((InternalEList<?>) getParameters()).basicRemove(otherEnd, msgs); | ||
158 | case ProblemPackage.PREDICATE_DEFINITION__BODIES: | ||
159 | return ((InternalEList<?>) getBodies()).basicRemove(otherEnd, msgs); | ||
160 | } | ||
161 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
162 | } | ||
163 | |||
164 | /** | ||
165 | * <!-- begin-user-doc --> | ||
166 | * <!-- end-user-doc --> | ||
167 | * @generated | ||
168 | */ | ||
169 | @Override | ||
170 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
171 | switch (featureID) { | ||
172 | case ProblemPackage.PREDICATE_DEFINITION__ERROR: | ||
173 | return isError(); | ||
174 | case ProblemPackage.PREDICATE_DEFINITION__PARAMETERS: | ||
175 | return getParameters(); | ||
176 | case ProblemPackage.PREDICATE_DEFINITION__BODIES: | ||
177 | return getBodies(); | ||
178 | } | ||
179 | return super.eGet(featureID, resolve, coreType); | ||
180 | } | ||
181 | |||
182 | /** | ||
183 | * <!-- begin-user-doc --> | ||
184 | * <!-- end-user-doc --> | ||
185 | * @generated | ||
186 | */ | ||
187 | @SuppressWarnings("unchecked") | ||
188 | @Override | ||
189 | public void eSet(int featureID, Object newValue) { | ||
190 | switch (featureID) { | ||
191 | case ProblemPackage.PREDICATE_DEFINITION__ERROR: | ||
192 | setError((Boolean) newValue); | ||
193 | return; | ||
194 | case ProblemPackage.PREDICATE_DEFINITION__PARAMETERS: | ||
195 | getParameters().clear(); | ||
196 | getParameters().addAll((Collection<? extends Parameter>) newValue); | ||
197 | return; | ||
198 | case ProblemPackage.PREDICATE_DEFINITION__BODIES: | ||
199 | getBodies().clear(); | ||
200 | getBodies().addAll((Collection<? extends Conjunction>) newValue); | ||
201 | return; | ||
202 | } | ||
203 | super.eSet(featureID, newValue); | ||
204 | } | ||
205 | |||
206 | /** | ||
207 | * <!-- begin-user-doc --> | ||
208 | * <!-- end-user-doc --> | ||
209 | * @generated | ||
210 | */ | ||
211 | @Override | ||
212 | public void eUnset(int featureID) { | ||
213 | switch (featureID) { | ||
214 | case ProblemPackage.PREDICATE_DEFINITION__ERROR: | ||
215 | setError(ERROR_EDEFAULT); | ||
216 | return; | ||
217 | case ProblemPackage.PREDICATE_DEFINITION__PARAMETERS: | ||
218 | getParameters().clear(); | ||
219 | return; | ||
220 | case ProblemPackage.PREDICATE_DEFINITION__BODIES: | ||
221 | getBodies().clear(); | ||
222 | return; | ||
223 | } | ||
224 | super.eUnset(featureID); | ||
225 | } | ||
226 | |||
227 | /** | ||
228 | * <!-- begin-user-doc --> | ||
229 | * <!-- end-user-doc --> | ||
230 | * @generated | ||
231 | */ | ||
232 | @Override | ||
233 | public boolean eIsSet(int featureID) { | ||
234 | switch (featureID) { | ||
235 | case ProblemPackage.PREDICATE_DEFINITION__ERROR: | ||
236 | return error != ERROR_EDEFAULT; | ||
237 | case ProblemPackage.PREDICATE_DEFINITION__PARAMETERS: | ||
238 | return parameters != null && !parameters.isEmpty(); | ||
239 | case ProblemPackage.PREDICATE_DEFINITION__BODIES: | ||
240 | return bodies != null && !bodies.isEmpty(); | ||
241 | } | ||
242 | return super.eIsSet(featureID); | ||
243 | } | ||
244 | |||
245 | /** | ||
246 | * <!-- begin-user-doc --> | ||
247 | * <!-- end-user-doc --> | ||
248 | * @generated | ||
249 | */ | ||
250 | @Override | ||
251 | public String toString() { | ||
252 | if (eIsProxy()) | ||
253 | return super.toString(); | ||
254 | |||
255 | StringBuilder result = new StringBuilder(super.toString()); | ||
256 | result.append(" (error: "); | ||
257 | result.append(error); | ||
258 | result.append(')'); | ||
259 | return result.toString(); | ||
260 | } | ||
261 | |||
262 | } //PredicateDefinitionImpl | ||
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ProblemFactoryImpl.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ProblemFactoryImpl.java deleted file mode 100644 index 2f4144b9..00000000 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ProblemFactoryImpl.java +++ /dev/null | |||
@@ -1,353 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EClass; | ||
6 | import org.eclipse.emf.ecore.EDataType; | ||
7 | import org.eclipse.emf.ecore.EObject; | ||
8 | import org.eclipse.emf.ecore.EPackage; | ||
9 | |||
10 | import org.eclipse.emf.ecore.impl.EFactoryImpl; | ||
11 | |||
12 | import org.eclipse.emf.ecore.plugin.EcorePlugin; | ||
13 | |||
14 | import org.eclipse.viatra.solver.language.model.problem.*; | ||
15 | |||
16 | /** | ||
17 | * <!-- begin-user-doc --> | ||
18 | * An implementation of the model <b>Factory</b>. | ||
19 | * <!-- end-user-doc --> | ||
20 | * @generated | ||
21 | */ | ||
22 | public class ProblemFactoryImpl extends EFactoryImpl implements ProblemFactory { | ||
23 | /** | ||
24 | * Creates the default factory implementation. | ||
25 | * <!-- begin-user-doc --> | ||
26 | * <!-- end-user-doc --> | ||
27 | * @generated | ||
28 | */ | ||
29 | public static ProblemFactory init() { | ||
30 | try { | ||
31 | ProblemFactory theProblemFactory = (ProblemFactory) EPackage.Registry.INSTANCE | ||
32 | .getEFactory(ProblemPackage.eNS_URI); | ||
33 | if (theProblemFactory != null) { | ||
34 | return theProblemFactory; | ||
35 | } | ||
36 | } catch (Exception exception) { | ||
37 | EcorePlugin.INSTANCE.log(exception); | ||
38 | } | ||
39 | return new ProblemFactoryImpl(); | ||
40 | } | ||
41 | |||
42 | /** | ||
43 | * Creates an instance of the factory. | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @generated | ||
47 | */ | ||
48 | public ProblemFactoryImpl() { | ||
49 | super(); | ||
50 | } | ||
51 | |||
52 | /** | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @generated | ||
56 | */ | ||
57 | @Override | ||
58 | public EObject create(EClass eClass) { | ||
59 | switch (eClass.getClassifierID()) { | ||
60 | case ProblemPackage.PROBLEM: | ||
61 | return createProblem(); | ||
62 | case ProblemPackage.CLASS_DECLARATION: | ||
63 | return createClassDeclaration(); | ||
64 | case ProblemPackage.REFERENCE_DECLARATION: | ||
65 | return createReferenceDeclaration(); | ||
66 | case ProblemPackage.PREDICATE_DEFINITION: | ||
67 | return createPredicateDefinition(); | ||
68 | case ProblemPackage.PARAMETER: | ||
69 | return createParameter(); | ||
70 | case ProblemPackage.CONJUNCTION: | ||
71 | return createConjunction(); | ||
72 | case ProblemPackage.ATOM: | ||
73 | return createAtom(); | ||
74 | case ProblemPackage.IMPLICIT_VARIABLE: | ||
75 | return createImplicitVariable(); | ||
76 | case ProblemPackage.NEGATIVE_LITERAL: | ||
77 | return createNegativeLiteral(); | ||
78 | case ProblemPackage.ASSERTION: | ||
79 | return createAssertion(); | ||
80 | case ProblemPackage.NODE: | ||
81 | return createNode(); | ||
82 | case ProblemPackage.SCOPE_DECLARATION: | ||
83 | return createScopeDeclaration(); | ||
84 | case ProblemPackage.TYPE_SCOPE: | ||
85 | return createTypeScope(); | ||
86 | case ProblemPackage.RANGE_MULTIPLICITY: | ||
87 | return createRangeMultiplicity(); | ||
88 | case ProblemPackage.EXACT_MULTIPLICITY: | ||
89 | return createExactMultiplicity(); | ||
90 | case ProblemPackage.UNBOUNDED_MULTIPLICITY: | ||
91 | return createUnboundedMultiplicity(); | ||
92 | case ProblemPackage.ARGUMENT: | ||
93 | return createArgument(); | ||
94 | case ProblemPackage.ENUM_DECLARATION: | ||
95 | return createEnumDeclaration(); | ||
96 | default: | ||
97 | throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); | ||
98 | } | ||
99 | } | ||
100 | |||
101 | /** | ||
102 | * <!-- begin-user-doc --> | ||
103 | * <!-- end-user-doc --> | ||
104 | * @generated | ||
105 | */ | ||
106 | @Override | ||
107 | public Object createFromString(EDataType eDataType, String initialValue) { | ||
108 | switch (eDataType.getClassifierID()) { | ||
109 | case ProblemPackage.LOGIC_VALUE: | ||
110 | return createLogicValueFromString(eDataType, initialValue); | ||
111 | default: | ||
112 | throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); | ||
113 | } | ||
114 | } | ||
115 | |||
116 | /** | ||
117 | * <!-- begin-user-doc --> | ||
118 | * <!-- end-user-doc --> | ||
119 | * @generated | ||
120 | */ | ||
121 | @Override | ||
122 | public String convertToString(EDataType eDataType, Object instanceValue) { | ||
123 | switch (eDataType.getClassifierID()) { | ||
124 | case ProblemPackage.LOGIC_VALUE: | ||
125 | return convertLogicValueToString(eDataType, instanceValue); | ||
126 | default: | ||
127 | throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); | ||
128 | } | ||
129 | } | ||
130 | |||
131 | /** | ||
132 | * <!-- begin-user-doc --> | ||
133 | * <!-- end-user-doc --> | ||
134 | * @generated | ||
135 | */ | ||
136 | public Problem createProblem() { | ||
137 | ProblemImpl problem = new ProblemImpl(); | ||
138 | return problem; | ||
139 | } | ||
140 | |||
141 | /** | ||
142 | * <!-- begin-user-doc --> | ||
143 | * <!-- end-user-doc --> | ||
144 | * @generated | ||
145 | */ | ||
146 | public ClassDeclaration createClassDeclaration() { | ||
147 | ClassDeclarationImpl classDeclaration = new ClassDeclarationImpl(); | ||
148 | return classDeclaration; | ||
149 | } | ||
150 | |||
151 | /** | ||
152 | * <!-- begin-user-doc --> | ||
153 | * <!-- end-user-doc --> | ||
154 | * @generated | ||
155 | */ | ||
156 | public ReferenceDeclaration createReferenceDeclaration() { | ||
157 | ReferenceDeclarationImpl referenceDeclaration = new ReferenceDeclarationImpl(); | ||
158 | return referenceDeclaration; | ||
159 | } | ||
160 | |||
161 | /** | ||
162 | * <!-- begin-user-doc --> | ||
163 | * <!-- end-user-doc --> | ||
164 | * @generated | ||
165 | */ | ||
166 | public PredicateDefinition createPredicateDefinition() { | ||
167 | PredicateDefinitionImpl predicateDefinition = new PredicateDefinitionImpl(); | ||
168 | return predicateDefinition; | ||
169 | } | ||
170 | |||
171 | /** | ||
172 | * <!-- begin-user-doc --> | ||
173 | * <!-- end-user-doc --> | ||
174 | * @generated | ||
175 | */ | ||
176 | public Parameter createParameter() { | ||
177 | ParameterImpl parameter = new ParameterImpl(); | ||
178 | return parameter; | ||
179 | } | ||
180 | |||
181 | /** | ||
182 | * <!-- begin-user-doc --> | ||
183 | * <!-- end-user-doc --> | ||
184 | * @generated | ||
185 | */ | ||
186 | public Conjunction createConjunction() { | ||
187 | ConjunctionImpl conjunction = new ConjunctionImpl(); | ||
188 | return conjunction; | ||
189 | } | ||
190 | |||
191 | /** | ||
192 | * <!-- begin-user-doc --> | ||
193 | * <!-- end-user-doc --> | ||
194 | * @generated | ||
195 | */ | ||
196 | public Atom createAtom() { | ||
197 | AtomImpl atom = new AtomImpl(); | ||
198 | return atom; | ||
199 | } | ||
200 | |||
201 | /** | ||
202 | * <!-- begin-user-doc --> | ||
203 | * <!-- end-user-doc --> | ||
204 | * @generated | ||
205 | */ | ||
206 | public ImplicitVariable createImplicitVariable() { | ||
207 | ImplicitVariableImpl implicitVariable = new ImplicitVariableImpl(); | ||
208 | return implicitVariable; | ||
209 | } | ||
210 | |||
211 | /** | ||
212 | * <!-- begin-user-doc --> | ||
213 | * <!-- end-user-doc --> | ||
214 | * @generated | ||
215 | */ | ||
216 | public NegativeLiteral createNegativeLiteral() { | ||
217 | NegativeLiteralImpl negativeLiteral = new NegativeLiteralImpl(); | ||
218 | return negativeLiteral; | ||
219 | } | ||
220 | |||
221 | /** | ||
222 | * <!-- begin-user-doc --> | ||
223 | * <!-- end-user-doc --> | ||
224 | * @generated | ||
225 | */ | ||
226 | public Assertion createAssertion() { | ||
227 | AssertionImpl assertion = new AssertionImpl(); | ||
228 | return assertion; | ||
229 | } | ||
230 | |||
231 | /** | ||
232 | * <!-- begin-user-doc --> | ||
233 | * <!-- end-user-doc --> | ||
234 | * @generated | ||
235 | */ | ||
236 | public Node createNode() { | ||
237 | NodeImpl node = new NodeImpl(); | ||
238 | return node; | ||
239 | } | ||
240 | |||
241 | /** | ||
242 | * <!-- begin-user-doc --> | ||
243 | * <!-- end-user-doc --> | ||
244 | * @generated | ||
245 | */ | ||
246 | public ScopeDeclaration createScopeDeclaration() { | ||
247 | ScopeDeclarationImpl scopeDeclaration = new ScopeDeclarationImpl(); | ||
248 | return scopeDeclaration; | ||
249 | } | ||
250 | |||
251 | /** | ||
252 | * <!-- begin-user-doc --> | ||
253 | * <!-- end-user-doc --> | ||
254 | * @generated | ||
255 | */ | ||
256 | public TypeScope createTypeScope() { | ||
257 | TypeScopeImpl typeScope = new TypeScopeImpl(); | ||
258 | return typeScope; | ||
259 | } | ||
260 | |||
261 | /** | ||
262 | * <!-- begin-user-doc --> | ||
263 | * <!-- end-user-doc --> | ||
264 | * @generated | ||
265 | */ | ||
266 | public RangeMultiplicity createRangeMultiplicity() { | ||
267 | RangeMultiplicityImpl rangeMultiplicity = new RangeMultiplicityImpl(); | ||
268 | return rangeMultiplicity; | ||
269 | } | ||
270 | |||
271 | /** | ||
272 | * <!-- begin-user-doc --> | ||
273 | * <!-- end-user-doc --> | ||
274 | * @generated | ||
275 | */ | ||
276 | public ExactMultiplicity createExactMultiplicity() { | ||
277 | ExactMultiplicityImpl exactMultiplicity = new ExactMultiplicityImpl(); | ||
278 | return exactMultiplicity; | ||
279 | } | ||
280 | |||
281 | /** | ||
282 | * <!-- begin-user-doc --> | ||
283 | * <!-- end-user-doc --> | ||
284 | * @generated | ||
285 | */ | ||
286 | public UnboundedMultiplicity createUnboundedMultiplicity() { | ||
287 | UnboundedMultiplicityImpl unboundedMultiplicity = new UnboundedMultiplicityImpl(); | ||
288 | return unboundedMultiplicity; | ||
289 | } | ||
290 | |||
291 | /** | ||
292 | * <!-- begin-user-doc --> | ||
293 | * <!-- end-user-doc --> | ||
294 | * @generated | ||
295 | */ | ||
296 | public Argument createArgument() { | ||
297 | ArgumentImpl argument = new ArgumentImpl(); | ||
298 | return argument; | ||
299 | } | ||
300 | |||
301 | /** | ||
302 | * <!-- begin-user-doc --> | ||
303 | * <!-- end-user-doc --> | ||
304 | * @generated | ||
305 | */ | ||
306 | public EnumDeclaration createEnumDeclaration() { | ||
307 | EnumDeclarationImpl enumDeclaration = new EnumDeclarationImpl(); | ||
308 | return enumDeclaration; | ||
309 | } | ||
310 | |||
311 | /** | ||
312 | * <!-- begin-user-doc --> | ||
313 | * <!-- end-user-doc --> | ||
314 | * @generated | ||
315 | */ | ||
316 | public LogicValue createLogicValueFromString(EDataType eDataType, String initialValue) { | ||
317 | LogicValue result = LogicValue.get(initialValue); | ||
318 | if (result == null) | ||
319 | throw new IllegalArgumentException( | ||
320 | "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); | ||
321 | return result; | ||
322 | } | ||
323 | |||
324 | /** | ||
325 | * <!-- begin-user-doc --> | ||
326 | * <!-- end-user-doc --> | ||
327 | * @generated | ||
328 | */ | ||
329 | public String convertLogicValueToString(EDataType eDataType, Object instanceValue) { | ||
330 | return instanceValue == null ? null : instanceValue.toString(); | ||
331 | } | ||
332 | |||
333 | /** | ||
334 | * <!-- begin-user-doc --> | ||
335 | * <!-- end-user-doc --> | ||
336 | * @generated | ||
337 | */ | ||
338 | public ProblemPackage getProblemPackage() { | ||
339 | return (ProblemPackage) getEPackage(); | ||
340 | } | ||
341 | |||
342 | /** | ||
343 | * <!-- begin-user-doc --> | ||
344 | * <!-- end-user-doc --> | ||
345 | * @deprecated | ||
346 | * @generated | ||
347 | */ | ||
348 | @Deprecated | ||
349 | public static ProblemPackage getPackage() { | ||
350 | return ProblemPackage.eINSTANCE; | ||
351 | } | ||
352 | |||
353 | } //ProblemFactoryImpl | ||
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ProblemImpl.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ProblemImpl.java deleted file mode 100644 index 191021c4..00000000 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ProblemImpl.java +++ /dev/null | |||
@@ -1,188 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import java.util.Collection; | ||
6 | |||
7 | import org.eclipse.emf.common.notify.NotificationChain; | ||
8 | |||
9 | import org.eclipse.emf.common.util.EList; | ||
10 | |||
11 | import org.eclipse.emf.ecore.EClass; | ||
12 | import org.eclipse.emf.ecore.InternalEObject; | ||
13 | |||
14 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
15 | import org.eclipse.emf.ecore.util.InternalEList; | ||
16 | |||
17 | import org.eclipse.viatra.solver.language.model.problem.Node; | ||
18 | import org.eclipse.viatra.solver.language.model.problem.Problem; | ||
19 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
20 | import org.eclipse.viatra.solver.language.model.problem.Statement; | ||
21 | |||
22 | /** | ||
23 | * <!-- begin-user-doc --> | ||
24 | * An implementation of the model object '<em><b>Problem</b></em>'. | ||
25 | * <!-- end-user-doc --> | ||
26 | * <p> | ||
27 | * The following features are implemented: | ||
28 | * </p> | ||
29 | * <ul> | ||
30 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.ProblemImpl#getNodes <em>Nodes</em>}</li> | ||
31 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.ProblemImpl#getStatements <em>Statements</em>}</li> | ||
32 | * </ul> | ||
33 | * | ||
34 | * @generated | ||
35 | */ | ||
36 | public class ProblemImpl extends NamedElementImpl implements Problem { | ||
37 | /** | ||
38 | * The cached value of the '{@link #getNodes() <em>Nodes</em>}' containment reference list. | ||
39 | * <!-- begin-user-doc --> | ||
40 | * <!-- end-user-doc --> | ||
41 | * @see #getNodes() | ||
42 | * @generated | ||
43 | * @ordered | ||
44 | */ | ||
45 | protected EList<Node> nodes; | ||
46 | |||
47 | /** | ||
48 | * The cached value of the '{@link #getStatements() <em>Statements</em>}' containment reference list. | ||
49 | * <!-- begin-user-doc --> | ||
50 | * <!-- end-user-doc --> | ||
51 | * @see #getStatements() | ||
52 | * @generated | ||
53 | * @ordered | ||
54 | */ | ||
55 | protected EList<Statement> statements; | ||
56 | |||
57 | /** | ||
58 | * <!-- begin-user-doc --> | ||
59 | * <!-- end-user-doc --> | ||
60 | * @generated | ||
61 | */ | ||
62 | protected ProblemImpl() { | ||
63 | super(); | ||
64 | } | ||
65 | |||
66 | /** | ||
67 | * <!-- begin-user-doc --> | ||
68 | * <!-- end-user-doc --> | ||
69 | * @generated | ||
70 | */ | ||
71 | @Override | ||
72 | protected EClass eStaticClass() { | ||
73 | return ProblemPackage.Literals.PROBLEM; | ||
74 | } | ||
75 | |||
76 | /** | ||
77 | * <!-- begin-user-doc --> | ||
78 | * <!-- end-user-doc --> | ||
79 | * @generated | ||
80 | */ | ||
81 | public EList<Node> getNodes() { | ||
82 | if (nodes == null) { | ||
83 | nodes = new EObjectContainmentEList<Node>(Node.class, this, ProblemPackage.PROBLEM__NODES); | ||
84 | } | ||
85 | return nodes; | ||
86 | } | ||
87 | |||
88 | /** | ||
89 | * <!-- begin-user-doc --> | ||
90 | * <!-- end-user-doc --> | ||
91 | * @generated | ||
92 | */ | ||
93 | public EList<Statement> getStatements() { | ||
94 | if (statements == null) { | ||
95 | statements = new EObjectContainmentEList<Statement>(Statement.class, this, | ||
96 | ProblemPackage.PROBLEM__STATEMENTS); | ||
97 | } | ||
98 | return statements; | ||
99 | } | ||
100 | |||
101 | /** | ||
102 | * <!-- begin-user-doc --> | ||
103 | * <!-- end-user-doc --> | ||
104 | * @generated | ||
105 | */ | ||
106 | @Override | ||
107 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
108 | switch (featureID) { | ||
109 | case ProblemPackage.PROBLEM__NODES: | ||
110 | return ((InternalEList<?>) getNodes()).basicRemove(otherEnd, msgs); | ||
111 | case ProblemPackage.PROBLEM__STATEMENTS: | ||
112 | return ((InternalEList<?>) getStatements()).basicRemove(otherEnd, msgs); | ||
113 | } | ||
114 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
115 | } | ||
116 | |||
117 | /** | ||
118 | * <!-- begin-user-doc --> | ||
119 | * <!-- end-user-doc --> | ||
120 | * @generated | ||
121 | */ | ||
122 | @Override | ||
123 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
124 | switch (featureID) { | ||
125 | case ProblemPackage.PROBLEM__NODES: | ||
126 | return getNodes(); | ||
127 | case ProblemPackage.PROBLEM__STATEMENTS: | ||
128 | return getStatements(); | ||
129 | } | ||
130 | return super.eGet(featureID, resolve, coreType); | ||
131 | } | ||
132 | |||
133 | /** | ||
134 | * <!-- begin-user-doc --> | ||
135 | * <!-- end-user-doc --> | ||
136 | * @generated | ||
137 | */ | ||
138 | @SuppressWarnings("unchecked") | ||
139 | @Override | ||
140 | public void eSet(int featureID, Object newValue) { | ||
141 | switch (featureID) { | ||
142 | case ProblemPackage.PROBLEM__NODES: | ||
143 | getNodes().clear(); | ||
144 | getNodes().addAll((Collection<? extends Node>) newValue); | ||
145 | return; | ||
146 | case ProblemPackage.PROBLEM__STATEMENTS: | ||
147 | getStatements().clear(); | ||
148 | getStatements().addAll((Collection<? extends Statement>) newValue); | ||
149 | return; | ||
150 | } | ||
151 | super.eSet(featureID, newValue); | ||
152 | } | ||
153 | |||
154 | /** | ||
155 | * <!-- begin-user-doc --> | ||
156 | * <!-- end-user-doc --> | ||
157 | * @generated | ||
158 | */ | ||
159 | @Override | ||
160 | public void eUnset(int featureID) { | ||
161 | switch (featureID) { | ||
162 | case ProblemPackage.PROBLEM__NODES: | ||
163 | getNodes().clear(); | ||
164 | return; | ||
165 | case ProblemPackage.PROBLEM__STATEMENTS: | ||
166 | getStatements().clear(); | ||
167 | return; | ||
168 | } | ||
169 | super.eUnset(featureID); | ||
170 | } | ||
171 | |||
172 | /** | ||
173 | * <!-- begin-user-doc --> | ||
174 | * <!-- end-user-doc --> | ||
175 | * @generated | ||
176 | */ | ||
177 | @Override | ||
178 | public boolean eIsSet(int featureID) { | ||
179 | switch (featureID) { | ||
180 | case ProblemPackage.PROBLEM__NODES: | ||
181 | return nodes != null && !nodes.isEmpty(); | ||
182 | case ProblemPackage.PROBLEM__STATEMENTS: | ||
183 | return statements != null && !statements.isEmpty(); | ||
184 | } | ||
185 | return super.eIsSet(featureID); | ||
186 | } | ||
187 | |||
188 | } //ProblemImpl | ||
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ProblemPackageImpl.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ProblemPackageImpl.java deleted file mode 100644 index d10ff2f0..00000000 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ProblemPackageImpl.java +++ /dev/null | |||
@@ -1,1206 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EAttribute; | ||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | import org.eclipse.emf.ecore.EEnum; | ||
8 | import org.eclipse.emf.ecore.EPackage; | ||
9 | import org.eclipse.emf.ecore.EReference; | ||
10 | |||
11 | import org.eclipse.emf.ecore.impl.EPackageImpl; | ||
12 | |||
13 | import org.eclipse.viatra.solver.language.model.problem.Argument; | ||
14 | import org.eclipse.viatra.solver.language.model.problem.Assertion; | ||
15 | import org.eclipse.viatra.solver.language.model.problem.Atom; | ||
16 | import org.eclipse.viatra.solver.language.model.problem.ClassDeclaration; | ||
17 | import org.eclipse.viatra.solver.language.model.problem.Conjunction; | ||
18 | import org.eclipse.viatra.solver.language.model.problem.EnumDeclaration; | ||
19 | import org.eclipse.viatra.solver.language.model.problem.ExactMultiplicity; | ||
20 | import org.eclipse.viatra.solver.language.model.problem.ExistentialQuantifier; | ||
21 | import org.eclipse.viatra.solver.language.model.problem.ImplicitVariable; | ||
22 | import org.eclipse.viatra.solver.language.model.problem.Literal; | ||
23 | import org.eclipse.viatra.solver.language.model.problem.LogicValue; | ||
24 | import org.eclipse.viatra.solver.language.model.problem.Multiplicity; | ||
25 | import org.eclipse.viatra.solver.language.model.problem.NamedElement; | ||
26 | import org.eclipse.viatra.solver.language.model.problem.NegativeLiteral; | ||
27 | import org.eclipse.viatra.solver.language.model.problem.Node; | ||
28 | import org.eclipse.viatra.solver.language.model.problem.Parameter; | ||
29 | import org.eclipse.viatra.solver.language.model.problem.PredicateDefinition; | ||
30 | import org.eclipse.viatra.solver.language.model.problem.Problem; | ||
31 | import org.eclipse.viatra.solver.language.model.problem.ProblemFactory; | ||
32 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
33 | import org.eclipse.viatra.solver.language.model.problem.RangeMultiplicity; | ||
34 | import org.eclipse.viatra.solver.language.model.problem.ReferenceDeclaration; | ||
35 | import org.eclipse.viatra.solver.language.model.problem.Relation; | ||
36 | import org.eclipse.viatra.solver.language.model.problem.ScopeDeclaration; | ||
37 | import org.eclipse.viatra.solver.language.model.problem.Statement; | ||
38 | import org.eclipse.viatra.solver.language.model.problem.TypeScope; | ||
39 | import org.eclipse.viatra.solver.language.model.problem.UnboundedMultiplicity; | ||
40 | import org.eclipse.viatra.solver.language.model.problem.Variable; | ||
41 | import org.eclipse.viatra.solver.language.model.problem.VariableOrNode; | ||
42 | |||
43 | /** | ||
44 | * <!-- begin-user-doc --> | ||
45 | * An implementation of the model <b>Package</b>. | ||
46 | * <!-- end-user-doc --> | ||
47 | * @generated | ||
48 | */ | ||
49 | public class ProblemPackageImpl extends EPackageImpl implements ProblemPackage { | ||
50 | /** | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @generated | ||
54 | */ | ||
55 | private EClass problemEClass = null; | ||
56 | |||
57 | /** | ||
58 | * <!-- begin-user-doc --> | ||
59 | * <!-- end-user-doc --> | ||
60 | * @generated | ||
61 | */ | ||
62 | private EClass relationEClass = null; | ||
63 | |||
64 | /** | ||
65 | * <!-- begin-user-doc --> | ||
66 | * <!-- end-user-doc --> | ||
67 | * @generated | ||
68 | */ | ||
69 | private EClass classDeclarationEClass = null; | ||
70 | |||
71 | /** | ||
72 | * <!-- begin-user-doc --> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @generated | ||
75 | */ | ||
76 | private EClass referenceDeclarationEClass = null; | ||
77 | |||
78 | /** | ||
79 | * <!-- begin-user-doc --> | ||
80 | * <!-- end-user-doc --> | ||
81 | * @generated | ||
82 | */ | ||
83 | private EClass namedElementEClass = null; | ||
84 | |||
85 | /** | ||
86 | * <!-- begin-user-doc --> | ||
87 | * <!-- end-user-doc --> | ||
88 | * @generated | ||
89 | */ | ||
90 | private EClass predicateDefinitionEClass = null; | ||
91 | |||
92 | /** | ||
93 | * <!-- begin-user-doc --> | ||
94 | * <!-- end-user-doc --> | ||
95 | * @generated | ||
96 | */ | ||
97 | private EClass parameterEClass = null; | ||
98 | |||
99 | /** | ||
100 | * <!-- begin-user-doc --> | ||
101 | * <!-- end-user-doc --> | ||
102 | * @generated | ||
103 | */ | ||
104 | private EClass variableEClass = null; | ||
105 | |||
106 | /** | ||
107 | * <!-- begin-user-doc --> | ||
108 | * <!-- end-user-doc --> | ||
109 | * @generated | ||
110 | */ | ||
111 | private EClass conjunctionEClass = null; | ||
112 | |||
113 | /** | ||
114 | * <!-- begin-user-doc --> | ||
115 | * <!-- end-user-doc --> | ||
116 | * @generated | ||
117 | */ | ||
118 | private EClass literalEClass = null; | ||
119 | |||
120 | /** | ||
121 | * <!-- begin-user-doc --> | ||
122 | * <!-- end-user-doc --> | ||
123 | * @generated | ||
124 | */ | ||
125 | private EClass atomEClass = null; | ||
126 | |||
127 | /** | ||
128 | * <!-- begin-user-doc --> | ||
129 | * <!-- end-user-doc --> | ||
130 | * @generated | ||
131 | */ | ||
132 | private EClass implicitVariableEClass = null; | ||
133 | |||
134 | /** | ||
135 | * <!-- begin-user-doc --> | ||
136 | * <!-- end-user-doc --> | ||
137 | * @generated | ||
138 | */ | ||
139 | private EClass negativeLiteralEClass = null; | ||
140 | |||
141 | /** | ||
142 | * <!-- begin-user-doc --> | ||
143 | * <!-- end-user-doc --> | ||
144 | * @generated | ||
145 | */ | ||
146 | private EClass existentialQuantifierEClass = null; | ||
147 | |||
148 | /** | ||
149 | * <!-- begin-user-doc --> | ||
150 | * <!-- end-user-doc --> | ||
151 | * @generated | ||
152 | */ | ||
153 | private EClass assertionEClass = null; | ||
154 | |||
155 | /** | ||
156 | * <!-- begin-user-doc --> | ||
157 | * <!-- end-user-doc --> | ||
158 | * @generated | ||
159 | */ | ||
160 | private EClass nodeEClass = null; | ||
161 | |||
162 | /** | ||
163 | * <!-- begin-user-doc --> | ||
164 | * <!-- end-user-doc --> | ||
165 | * @generated | ||
166 | */ | ||
167 | private EClass scopeDeclarationEClass = null; | ||
168 | |||
169 | /** | ||
170 | * <!-- begin-user-doc --> | ||
171 | * <!-- end-user-doc --> | ||
172 | * @generated | ||
173 | */ | ||
174 | private EClass statementEClass = null; | ||
175 | |||
176 | /** | ||
177 | * <!-- begin-user-doc --> | ||
178 | * <!-- end-user-doc --> | ||
179 | * @generated | ||
180 | */ | ||
181 | private EClass typeScopeEClass = null; | ||
182 | |||
183 | /** | ||
184 | * <!-- begin-user-doc --> | ||
185 | * <!-- end-user-doc --> | ||
186 | * @generated | ||
187 | */ | ||
188 | private EClass multiplicityEClass = null; | ||
189 | |||
190 | /** | ||
191 | * <!-- begin-user-doc --> | ||
192 | * <!-- end-user-doc --> | ||
193 | * @generated | ||
194 | */ | ||
195 | private EClass rangeMultiplicityEClass = null; | ||
196 | |||
197 | /** | ||
198 | * <!-- begin-user-doc --> | ||
199 | * <!-- end-user-doc --> | ||
200 | * @generated | ||
201 | */ | ||
202 | private EClass exactMultiplicityEClass = null; | ||
203 | |||
204 | /** | ||
205 | * <!-- begin-user-doc --> | ||
206 | * <!-- end-user-doc --> | ||
207 | * @generated | ||
208 | */ | ||
209 | private EClass unboundedMultiplicityEClass = null; | ||
210 | |||
211 | /** | ||
212 | * <!-- begin-user-doc --> | ||
213 | * <!-- end-user-doc --> | ||
214 | * @generated | ||
215 | */ | ||
216 | private EClass argumentEClass = null; | ||
217 | |||
218 | /** | ||
219 | * <!-- begin-user-doc --> | ||
220 | * <!-- end-user-doc --> | ||
221 | * @generated | ||
222 | */ | ||
223 | private EClass enumDeclarationEClass = null; | ||
224 | |||
225 | /** | ||
226 | * <!-- begin-user-doc --> | ||
227 | * <!-- end-user-doc --> | ||
228 | * @generated | ||
229 | */ | ||
230 | private EClass variableOrNodeEClass = null; | ||
231 | |||
232 | /** | ||
233 | * <!-- begin-user-doc --> | ||
234 | * <!-- end-user-doc --> | ||
235 | * @generated | ||
236 | */ | ||
237 | private EEnum logicValueEEnum = null; | ||
238 | |||
239 | /** | ||
240 | * Creates an instance of the model <b>Package</b>, registered with | ||
241 | * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package | ||
242 | * package URI value. | ||
243 | * <p>Note: the correct way to create the package is via the static | ||
244 | * factory method {@link #init init()}, which also performs | ||
245 | * initialization of the package, or returns the registered package, | ||
246 | * if one already exists. | ||
247 | * <!-- begin-user-doc --> | ||
248 | * <!-- end-user-doc --> | ||
249 | * @see org.eclipse.emf.ecore.EPackage.Registry | ||
250 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage#eNS_URI | ||
251 | * @see #init() | ||
252 | * @generated | ||
253 | */ | ||
254 | private ProblemPackageImpl() { | ||
255 | super(eNS_URI, ProblemFactory.eINSTANCE); | ||
256 | } | ||
257 | |||
258 | /** | ||
259 | * <!-- begin-user-doc --> | ||
260 | * <!-- end-user-doc --> | ||
261 | * @generated | ||
262 | */ | ||
263 | private static boolean isInited = false; | ||
264 | |||
265 | /** | ||
266 | * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. | ||
267 | * | ||
268 | * <p>This method is used to initialize {@link ProblemPackage#eINSTANCE} when that field is accessed. | ||
269 | * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. | ||
270 | * <!-- begin-user-doc --> | ||
271 | * <!-- end-user-doc --> | ||
272 | * @see #eNS_URI | ||
273 | * @see #createPackageContents() | ||
274 | * @see #initializePackageContents() | ||
275 | * @generated | ||
276 | */ | ||
277 | public static ProblemPackage init() { | ||
278 | if (isInited) | ||
279 | return (ProblemPackage) EPackage.Registry.INSTANCE.getEPackage(ProblemPackage.eNS_URI); | ||
280 | |||
281 | // Obtain or create and register package | ||
282 | Object registeredProblemPackage = EPackage.Registry.INSTANCE.get(eNS_URI); | ||
283 | ProblemPackageImpl theProblemPackage = registeredProblemPackage instanceof ProblemPackageImpl | ||
284 | ? (ProblemPackageImpl) registeredProblemPackage | ||
285 | : new ProblemPackageImpl(); | ||
286 | |||
287 | isInited = true; | ||
288 | |||
289 | // Create package meta-data objects | ||
290 | theProblemPackage.createPackageContents(); | ||
291 | |||
292 | // Initialize created meta-data | ||
293 | theProblemPackage.initializePackageContents(); | ||
294 | |||
295 | // Mark meta-data to indicate it can't be changed | ||
296 | theProblemPackage.freeze(); | ||
297 | |||
298 | // Update the registry and return the package | ||
299 | EPackage.Registry.INSTANCE.put(ProblemPackage.eNS_URI, theProblemPackage); | ||
300 | return theProblemPackage; | ||
301 | } | ||
302 | |||
303 | /** | ||
304 | * <!-- begin-user-doc --> | ||
305 | * <!-- end-user-doc --> | ||
306 | * @generated | ||
307 | */ | ||
308 | public EClass getProblem() { | ||
309 | return problemEClass; | ||
310 | } | ||
311 | |||
312 | /** | ||
313 | * <!-- begin-user-doc --> | ||
314 | * <!-- end-user-doc --> | ||
315 | * @generated | ||
316 | */ | ||
317 | public EReference getProblem_Nodes() { | ||
318 | return (EReference) problemEClass.getEStructuralFeatures().get(0); | ||
319 | } | ||
320 | |||
321 | /** | ||
322 | * <!-- begin-user-doc --> | ||
323 | * <!-- end-user-doc --> | ||
324 | * @generated | ||
325 | */ | ||
326 | public EReference getProblem_Statements() { | ||
327 | return (EReference) problemEClass.getEStructuralFeatures().get(1); | ||
328 | } | ||
329 | |||
330 | /** | ||
331 | * <!-- begin-user-doc --> | ||
332 | * <!-- end-user-doc --> | ||
333 | * @generated | ||
334 | */ | ||
335 | public EClass getRelation() { | ||
336 | return relationEClass; | ||
337 | } | ||
338 | |||
339 | /** | ||
340 | * <!-- begin-user-doc --> | ||
341 | * <!-- end-user-doc --> | ||
342 | * @generated | ||
343 | */ | ||
344 | public EClass getClassDeclaration() { | ||
345 | return classDeclarationEClass; | ||
346 | } | ||
347 | |||
348 | /** | ||
349 | * <!-- begin-user-doc --> | ||
350 | * <!-- end-user-doc --> | ||
351 | * @generated | ||
352 | */ | ||
353 | public EAttribute getClassDeclaration_Abstract() { | ||
354 | return (EAttribute) classDeclarationEClass.getEStructuralFeatures().get(0); | ||
355 | } | ||
356 | |||
357 | /** | ||
358 | * <!-- begin-user-doc --> | ||
359 | * <!-- end-user-doc --> | ||
360 | * @generated | ||
361 | */ | ||
362 | public EReference getClassDeclaration_SuperTypes() { | ||
363 | return (EReference) classDeclarationEClass.getEStructuralFeatures().get(1); | ||
364 | } | ||
365 | |||
366 | /** | ||
367 | * <!-- begin-user-doc --> | ||
368 | * <!-- end-user-doc --> | ||
369 | * @generated | ||
370 | */ | ||
371 | public EReference getClassDeclaration_ReferenceDeclarations() { | ||
372 | return (EReference) classDeclarationEClass.getEStructuralFeatures().get(2); | ||
373 | } | ||
374 | |||
375 | /** | ||
376 | * <!-- begin-user-doc --> | ||
377 | * <!-- end-user-doc --> | ||
378 | * @generated | ||
379 | */ | ||
380 | public EReference getClassDeclaration_NewNode() { | ||
381 | return (EReference) classDeclarationEClass.getEStructuralFeatures().get(3); | ||
382 | } | ||
383 | |||
384 | /** | ||
385 | * <!-- begin-user-doc --> | ||
386 | * <!-- end-user-doc --> | ||
387 | * @generated | ||
388 | */ | ||
389 | public EClass getReferenceDeclaration() { | ||
390 | return referenceDeclarationEClass; | ||
391 | } | ||
392 | |||
393 | /** | ||
394 | * <!-- begin-user-doc --> | ||
395 | * <!-- end-user-doc --> | ||
396 | * @generated | ||
397 | */ | ||
398 | public EReference getReferenceDeclaration_ReferenceType() { | ||
399 | return (EReference) referenceDeclarationEClass.getEStructuralFeatures().get(0); | ||
400 | } | ||
401 | |||
402 | /** | ||
403 | * <!-- begin-user-doc --> | ||
404 | * <!-- end-user-doc --> | ||
405 | * @generated | ||
406 | */ | ||
407 | public EReference getReferenceDeclaration_Opposite() { | ||
408 | return (EReference) referenceDeclarationEClass.getEStructuralFeatures().get(1); | ||
409 | } | ||
410 | |||
411 | /** | ||
412 | * <!-- begin-user-doc --> | ||
413 | * <!-- end-user-doc --> | ||
414 | * @generated | ||
415 | */ | ||
416 | public EAttribute getReferenceDeclaration_Containment() { | ||
417 | return (EAttribute) referenceDeclarationEClass.getEStructuralFeatures().get(2); | ||
418 | } | ||
419 | |||
420 | /** | ||
421 | * <!-- begin-user-doc --> | ||
422 | * <!-- end-user-doc --> | ||
423 | * @generated | ||
424 | */ | ||
425 | public EReference getReferenceDeclaration_Multiplicity() { | ||
426 | return (EReference) referenceDeclarationEClass.getEStructuralFeatures().get(3); | ||
427 | } | ||
428 | |||
429 | /** | ||
430 | * <!-- begin-user-doc --> | ||
431 | * <!-- end-user-doc --> | ||
432 | * @generated | ||
433 | */ | ||
434 | public EClass getNamedElement() { | ||
435 | return namedElementEClass; | ||
436 | } | ||
437 | |||
438 | /** | ||
439 | * <!-- begin-user-doc --> | ||
440 | * <!-- end-user-doc --> | ||
441 | * @generated | ||
442 | */ | ||
443 | public EAttribute getNamedElement_Name() { | ||
444 | return (EAttribute) namedElementEClass.getEStructuralFeatures().get(0); | ||
445 | } | ||
446 | |||
447 | /** | ||
448 | * <!-- begin-user-doc --> | ||
449 | * <!-- end-user-doc --> | ||
450 | * @generated | ||
451 | */ | ||
452 | public EClass getPredicateDefinition() { | ||
453 | return predicateDefinitionEClass; | ||
454 | } | ||
455 | |||
456 | /** | ||
457 | * <!-- begin-user-doc --> | ||
458 | * <!-- end-user-doc --> | ||
459 | * @generated | ||
460 | */ | ||
461 | public EAttribute getPredicateDefinition_Error() { | ||
462 | return (EAttribute) predicateDefinitionEClass.getEStructuralFeatures().get(0); | ||
463 | } | ||
464 | |||
465 | /** | ||
466 | * <!-- begin-user-doc --> | ||
467 | * <!-- end-user-doc --> | ||
468 | * @generated | ||
469 | */ | ||
470 | public EReference getPredicateDefinition_Parameters() { | ||
471 | return (EReference) predicateDefinitionEClass.getEStructuralFeatures().get(1); | ||
472 | } | ||
473 | |||
474 | /** | ||
475 | * <!-- begin-user-doc --> | ||
476 | * <!-- end-user-doc --> | ||
477 | * @generated | ||
478 | */ | ||
479 | public EReference getPredicateDefinition_Bodies() { | ||
480 | return (EReference) predicateDefinitionEClass.getEStructuralFeatures().get(2); | ||
481 | } | ||
482 | |||
483 | /** | ||
484 | * <!-- begin-user-doc --> | ||
485 | * <!-- end-user-doc --> | ||
486 | * @generated | ||
487 | */ | ||
488 | public EClass getParameter() { | ||
489 | return parameterEClass; | ||
490 | } | ||
491 | |||
492 | /** | ||
493 | * <!-- begin-user-doc --> | ||
494 | * <!-- end-user-doc --> | ||
495 | * @generated | ||
496 | */ | ||
497 | public EReference getParameter_ParameterType() { | ||
498 | return (EReference) parameterEClass.getEStructuralFeatures().get(0); | ||
499 | } | ||
500 | |||
501 | /** | ||
502 | * <!-- begin-user-doc --> | ||
503 | * <!-- end-user-doc --> | ||
504 | * @generated | ||
505 | */ | ||
506 | public EClass getVariable() { | ||
507 | return variableEClass; | ||
508 | } | ||
509 | |||
510 | /** | ||
511 | * <!-- begin-user-doc --> | ||
512 | * <!-- end-user-doc --> | ||
513 | * @generated | ||
514 | */ | ||
515 | public EClass getConjunction() { | ||
516 | return conjunctionEClass; | ||
517 | } | ||
518 | |||
519 | /** | ||
520 | * <!-- begin-user-doc --> | ||
521 | * <!-- end-user-doc --> | ||
522 | * @generated | ||
523 | */ | ||
524 | public EReference getConjunction_Literals() { | ||
525 | return (EReference) conjunctionEClass.getEStructuralFeatures().get(0); | ||
526 | } | ||
527 | |||
528 | /** | ||
529 | * <!-- begin-user-doc --> | ||
530 | * <!-- end-user-doc --> | ||
531 | * @generated | ||
532 | */ | ||
533 | public EClass getLiteral() { | ||
534 | return literalEClass; | ||
535 | } | ||
536 | |||
537 | /** | ||
538 | * <!-- begin-user-doc --> | ||
539 | * <!-- end-user-doc --> | ||
540 | * @generated | ||
541 | */ | ||
542 | public EClass getAtom() { | ||
543 | return atomEClass; | ||
544 | } | ||
545 | |||
546 | /** | ||
547 | * <!-- begin-user-doc --> | ||
548 | * <!-- end-user-doc --> | ||
549 | * @generated | ||
550 | */ | ||
551 | public EReference getAtom_Relation() { | ||
552 | return (EReference) atomEClass.getEStructuralFeatures().get(0); | ||
553 | } | ||
554 | |||
555 | /** | ||
556 | * <!-- begin-user-doc --> | ||
557 | * <!-- end-user-doc --> | ||
558 | * @generated | ||
559 | */ | ||
560 | public EReference getAtom_Arguments() { | ||
561 | return (EReference) atomEClass.getEStructuralFeatures().get(2); | ||
562 | } | ||
563 | |||
564 | /** | ||
565 | * <!-- begin-user-doc --> | ||
566 | * <!-- end-user-doc --> | ||
567 | * @generated | ||
568 | */ | ||
569 | public EAttribute getAtom_TransitiveClosure() { | ||
570 | return (EAttribute) atomEClass.getEStructuralFeatures().get(1); | ||
571 | } | ||
572 | |||
573 | /** | ||
574 | * <!-- begin-user-doc --> | ||
575 | * <!-- end-user-doc --> | ||
576 | * @generated | ||
577 | */ | ||
578 | public EClass getImplicitVariable() { | ||
579 | return implicitVariableEClass; | ||
580 | } | ||
581 | |||
582 | /** | ||
583 | * <!-- begin-user-doc --> | ||
584 | * <!-- end-user-doc --> | ||
585 | * @generated | ||
586 | */ | ||
587 | public EClass getNegativeLiteral() { | ||
588 | return negativeLiteralEClass; | ||
589 | } | ||
590 | |||
591 | /** | ||
592 | * <!-- begin-user-doc --> | ||
593 | * <!-- end-user-doc --> | ||
594 | * @generated | ||
595 | */ | ||
596 | public EReference getNegativeLiteral_Atom() { | ||
597 | return (EReference) negativeLiteralEClass.getEStructuralFeatures().get(0); | ||
598 | } | ||
599 | |||
600 | /** | ||
601 | * <!-- begin-user-doc --> | ||
602 | * <!-- end-user-doc --> | ||
603 | * @generated | ||
604 | */ | ||
605 | public EClass getExistentialQuantifier() { | ||
606 | return existentialQuantifierEClass; | ||
607 | } | ||
608 | |||
609 | /** | ||
610 | * <!-- begin-user-doc --> | ||
611 | * <!-- end-user-doc --> | ||
612 | * @generated | ||
613 | */ | ||
614 | public EReference getExistentialQuantifier_ImplicitVariables() { | ||
615 | return (EReference) existentialQuantifierEClass.getEStructuralFeatures().get(0); | ||
616 | } | ||
617 | |||
618 | /** | ||
619 | * <!-- begin-user-doc --> | ||
620 | * <!-- end-user-doc --> | ||
621 | * @generated | ||
622 | */ | ||
623 | public EClass getAssertion() { | ||
624 | return assertionEClass; | ||
625 | } | ||
626 | |||
627 | /** | ||
628 | * <!-- begin-user-doc --> | ||
629 | * <!-- end-user-doc --> | ||
630 | * @generated | ||
631 | */ | ||
632 | public EReference getAssertion_Relation() { | ||
633 | return (EReference) assertionEClass.getEStructuralFeatures().get(0); | ||
634 | } | ||
635 | |||
636 | /** | ||
637 | * <!-- begin-user-doc --> | ||
638 | * <!-- end-user-doc --> | ||
639 | * @generated | ||
640 | */ | ||
641 | public EReference getAssertion_Arguments() { | ||
642 | return (EReference) assertionEClass.getEStructuralFeatures().get(1); | ||
643 | } | ||
644 | |||
645 | /** | ||
646 | * <!-- begin-user-doc --> | ||
647 | * <!-- end-user-doc --> | ||
648 | * @generated | ||
649 | */ | ||
650 | public EAttribute getAssertion_Value() { | ||
651 | return (EAttribute) assertionEClass.getEStructuralFeatures().get(2); | ||
652 | } | ||
653 | |||
654 | /** | ||
655 | * <!-- begin-user-doc --> | ||
656 | * <!-- end-user-doc --> | ||
657 | * @generated | ||
658 | */ | ||
659 | public EClass getNode() { | ||
660 | return nodeEClass; | ||
661 | } | ||
662 | |||
663 | /** | ||
664 | * <!-- begin-user-doc --> | ||
665 | * <!-- end-user-doc --> | ||
666 | * @generated | ||
667 | */ | ||
668 | public EClass getScopeDeclaration() { | ||
669 | return scopeDeclarationEClass; | ||
670 | } | ||
671 | |||
672 | /** | ||
673 | * <!-- begin-user-doc --> | ||
674 | * <!-- end-user-doc --> | ||
675 | * @generated | ||
676 | */ | ||
677 | public EReference getScopeDeclaration_TypeScopes() { | ||
678 | return (EReference) scopeDeclarationEClass.getEStructuralFeatures().get(0); | ||
679 | } | ||
680 | |||
681 | /** | ||
682 | * <!-- begin-user-doc --> | ||
683 | * <!-- end-user-doc --> | ||
684 | * @generated | ||
685 | */ | ||
686 | public EClass getStatement() { | ||
687 | return statementEClass; | ||
688 | } | ||
689 | |||
690 | /** | ||
691 | * <!-- begin-user-doc --> | ||
692 | * <!-- end-user-doc --> | ||
693 | * @generated | ||
694 | */ | ||
695 | public EClass getTypeScope() { | ||
696 | return typeScopeEClass; | ||
697 | } | ||
698 | |||
699 | /** | ||
700 | * <!-- begin-user-doc --> | ||
701 | * <!-- end-user-doc --> | ||
702 | * @generated | ||
703 | */ | ||
704 | public EReference getTypeScope_TargetType() { | ||
705 | return (EReference) typeScopeEClass.getEStructuralFeatures().get(0); | ||
706 | } | ||
707 | |||
708 | /** | ||
709 | * <!-- begin-user-doc --> | ||
710 | * <!-- end-user-doc --> | ||
711 | * @generated | ||
712 | */ | ||
713 | public EAttribute getTypeScope_Increment() { | ||
714 | return (EAttribute) typeScopeEClass.getEStructuralFeatures().get(1); | ||
715 | } | ||
716 | |||
717 | /** | ||
718 | * <!-- begin-user-doc --> | ||
719 | * <!-- end-user-doc --> | ||
720 | * @generated | ||
721 | */ | ||
722 | public EReference getTypeScope_Multiplicity() { | ||
723 | return (EReference) typeScopeEClass.getEStructuralFeatures().get(2); | ||
724 | } | ||
725 | |||
726 | /** | ||
727 | * <!-- begin-user-doc --> | ||
728 | * <!-- end-user-doc --> | ||
729 | * @generated | ||
730 | */ | ||
731 | public EClass getMultiplicity() { | ||
732 | return multiplicityEClass; | ||
733 | } | ||
734 | |||
735 | /** | ||
736 | * <!-- begin-user-doc --> | ||
737 | * <!-- end-user-doc --> | ||
738 | * @generated | ||
739 | */ | ||
740 | public EClass getRangeMultiplicity() { | ||
741 | return rangeMultiplicityEClass; | ||
742 | } | ||
743 | |||
744 | /** | ||
745 | * <!-- begin-user-doc --> | ||
746 | * <!-- end-user-doc --> | ||
747 | * @generated | ||
748 | */ | ||
749 | public EAttribute getRangeMultiplicity_LowerBound() { | ||
750 | return (EAttribute) rangeMultiplicityEClass.getEStructuralFeatures().get(0); | ||
751 | } | ||
752 | |||
753 | /** | ||
754 | * <!-- begin-user-doc --> | ||
755 | * <!-- end-user-doc --> | ||
756 | * @generated | ||
757 | */ | ||
758 | public EAttribute getRangeMultiplicity_UpperBound() { | ||
759 | return (EAttribute) rangeMultiplicityEClass.getEStructuralFeatures().get(1); | ||
760 | } | ||
761 | |||
762 | /** | ||
763 | * <!-- begin-user-doc --> | ||
764 | * <!-- end-user-doc --> | ||
765 | * @generated | ||
766 | */ | ||
767 | public EClass getExactMultiplicity() { | ||
768 | return exactMultiplicityEClass; | ||
769 | } | ||
770 | |||
771 | /** | ||
772 | * <!-- begin-user-doc --> | ||
773 | * <!-- end-user-doc --> | ||
774 | * @generated | ||
775 | */ | ||
776 | public EAttribute getExactMultiplicity_ExactValue() { | ||
777 | return (EAttribute) exactMultiplicityEClass.getEStructuralFeatures().get(0); | ||
778 | } | ||
779 | |||
780 | /** | ||
781 | * <!-- begin-user-doc --> | ||
782 | * <!-- end-user-doc --> | ||
783 | * @generated | ||
784 | */ | ||
785 | public EClass getUnboundedMultiplicity() { | ||
786 | return unboundedMultiplicityEClass; | ||
787 | } | ||
788 | |||
789 | /** | ||
790 | * <!-- begin-user-doc --> | ||
791 | * <!-- end-user-doc --> | ||
792 | * @generated | ||
793 | */ | ||
794 | public EClass getArgument() { | ||
795 | return argumentEClass; | ||
796 | } | ||
797 | |||
798 | /** | ||
799 | * <!-- begin-user-doc --> | ||
800 | * <!-- end-user-doc --> | ||
801 | * @generated | ||
802 | */ | ||
803 | public EReference getArgument_VariableOrNode() { | ||
804 | return (EReference) argumentEClass.getEStructuralFeatures().get(0); | ||
805 | } | ||
806 | |||
807 | /** | ||
808 | * <!-- begin-user-doc --> | ||
809 | * <!-- end-user-doc --> | ||
810 | * @generated | ||
811 | */ | ||
812 | public EReference getArgument_SingletonVariable() { | ||
813 | return (EReference) argumentEClass.getEStructuralFeatures().get(1); | ||
814 | } | ||
815 | |||
816 | /** | ||
817 | * <!-- begin-user-doc --> | ||
818 | * <!-- end-user-doc --> | ||
819 | * @generated | ||
820 | */ | ||
821 | public EClass getEnumDeclaration() { | ||
822 | return enumDeclarationEClass; | ||
823 | } | ||
824 | |||
825 | /** | ||
826 | * <!-- begin-user-doc --> | ||
827 | * <!-- end-user-doc --> | ||
828 | * @generated | ||
829 | */ | ||
830 | public EReference getEnumDeclaration_Literals() { | ||
831 | return (EReference) enumDeclarationEClass.getEStructuralFeatures().get(0); | ||
832 | } | ||
833 | |||
834 | /** | ||
835 | * <!-- begin-user-doc --> | ||
836 | * <!-- end-user-doc --> | ||
837 | * @generated | ||
838 | */ | ||
839 | public EClass getVariableOrNode() { | ||
840 | return variableOrNodeEClass; | ||
841 | } | ||
842 | |||
843 | /** | ||
844 | * <!-- begin-user-doc --> | ||
845 | * <!-- end-user-doc --> | ||
846 | * @generated | ||
847 | */ | ||
848 | public EEnum getLogicValue() { | ||
849 | return logicValueEEnum; | ||
850 | } | ||
851 | |||
852 | /** | ||
853 | * <!-- begin-user-doc --> | ||
854 | * <!-- end-user-doc --> | ||
855 | * @generated | ||
856 | */ | ||
857 | public ProblemFactory getProblemFactory() { | ||
858 | return (ProblemFactory) getEFactoryInstance(); | ||
859 | } | ||
860 | |||
861 | /** | ||
862 | * <!-- begin-user-doc --> | ||
863 | * <!-- end-user-doc --> | ||
864 | * @generated | ||
865 | */ | ||
866 | private boolean isCreated = false; | ||
867 | |||
868 | /** | ||
869 | * Creates the meta-model objects for the package. This method is | ||
870 | * guarded to have no affect on any invocation but its first. | ||
871 | * <!-- begin-user-doc --> | ||
872 | * <!-- end-user-doc --> | ||
873 | * @generated | ||
874 | */ | ||
875 | public void createPackageContents() { | ||
876 | if (isCreated) | ||
877 | return; | ||
878 | isCreated = true; | ||
879 | |||
880 | // Create classes and their features | ||
881 | problemEClass = createEClass(PROBLEM); | ||
882 | createEReference(problemEClass, PROBLEM__NODES); | ||
883 | createEReference(problemEClass, PROBLEM__STATEMENTS); | ||
884 | |||
885 | relationEClass = createEClass(RELATION); | ||
886 | |||
887 | classDeclarationEClass = createEClass(CLASS_DECLARATION); | ||
888 | createEAttribute(classDeclarationEClass, CLASS_DECLARATION__ABSTRACT); | ||
889 | createEReference(classDeclarationEClass, CLASS_DECLARATION__SUPER_TYPES); | ||
890 | createEReference(classDeclarationEClass, CLASS_DECLARATION__REFERENCE_DECLARATIONS); | ||
891 | createEReference(classDeclarationEClass, CLASS_DECLARATION__NEW_NODE); | ||
892 | |||
893 | referenceDeclarationEClass = createEClass(REFERENCE_DECLARATION); | ||
894 | createEReference(referenceDeclarationEClass, REFERENCE_DECLARATION__REFERENCE_TYPE); | ||
895 | createEReference(referenceDeclarationEClass, REFERENCE_DECLARATION__OPPOSITE); | ||
896 | createEAttribute(referenceDeclarationEClass, REFERENCE_DECLARATION__CONTAINMENT); | ||
897 | createEReference(referenceDeclarationEClass, REFERENCE_DECLARATION__MULTIPLICITY); | ||
898 | |||
899 | namedElementEClass = createEClass(NAMED_ELEMENT); | ||
900 | createEAttribute(namedElementEClass, NAMED_ELEMENT__NAME); | ||
901 | |||
902 | predicateDefinitionEClass = createEClass(PREDICATE_DEFINITION); | ||
903 | createEAttribute(predicateDefinitionEClass, PREDICATE_DEFINITION__ERROR); | ||
904 | createEReference(predicateDefinitionEClass, PREDICATE_DEFINITION__PARAMETERS); | ||
905 | createEReference(predicateDefinitionEClass, PREDICATE_DEFINITION__BODIES); | ||
906 | |||
907 | parameterEClass = createEClass(PARAMETER); | ||
908 | createEReference(parameterEClass, PARAMETER__PARAMETER_TYPE); | ||
909 | |||
910 | variableEClass = createEClass(VARIABLE); | ||
911 | |||
912 | conjunctionEClass = createEClass(CONJUNCTION); | ||
913 | createEReference(conjunctionEClass, CONJUNCTION__LITERALS); | ||
914 | |||
915 | literalEClass = createEClass(LITERAL); | ||
916 | |||
917 | atomEClass = createEClass(ATOM); | ||
918 | createEReference(atomEClass, ATOM__RELATION); | ||
919 | createEAttribute(atomEClass, ATOM__TRANSITIVE_CLOSURE); | ||
920 | createEReference(atomEClass, ATOM__ARGUMENTS); | ||
921 | |||
922 | implicitVariableEClass = createEClass(IMPLICIT_VARIABLE); | ||
923 | |||
924 | negativeLiteralEClass = createEClass(NEGATIVE_LITERAL); | ||
925 | createEReference(negativeLiteralEClass, NEGATIVE_LITERAL__ATOM); | ||
926 | |||
927 | existentialQuantifierEClass = createEClass(EXISTENTIAL_QUANTIFIER); | ||
928 | createEReference(existentialQuantifierEClass, EXISTENTIAL_QUANTIFIER__IMPLICIT_VARIABLES); | ||
929 | |||
930 | assertionEClass = createEClass(ASSERTION); | ||
931 | createEReference(assertionEClass, ASSERTION__RELATION); | ||
932 | createEReference(assertionEClass, ASSERTION__ARGUMENTS); | ||
933 | createEAttribute(assertionEClass, ASSERTION__VALUE); | ||
934 | |||
935 | nodeEClass = createEClass(NODE); | ||
936 | |||
937 | scopeDeclarationEClass = createEClass(SCOPE_DECLARATION); | ||
938 | createEReference(scopeDeclarationEClass, SCOPE_DECLARATION__TYPE_SCOPES); | ||
939 | |||
940 | statementEClass = createEClass(STATEMENT); | ||
941 | |||
942 | typeScopeEClass = createEClass(TYPE_SCOPE); | ||
943 | createEReference(typeScopeEClass, TYPE_SCOPE__TARGET_TYPE); | ||
944 | createEAttribute(typeScopeEClass, TYPE_SCOPE__INCREMENT); | ||
945 | createEReference(typeScopeEClass, TYPE_SCOPE__MULTIPLICITY); | ||
946 | |||
947 | multiplicityEClass = createEClass(MULTIPLICITY); | ||
948 | |||
949 | rangeMultiplicityEClass = createEClass(RANGE_MULTIPLICITY); | ||
950 | createEAttribute(rangeMultiplicityEClass, RANGE_MULTIPLICITY__LOWER_BOUND); | ||
951 | createEAttribute(rangeMultiplicityEClass, RANGE_MULTIPLICITY__UPPER_BOUND); | ||
952 | |||
953 | exactMultiplicityEClass = createEClass(EXACT_MULTIPLICITY); | ||
954 | createEAttribute(exactMultiplicityEClass, EXACT_MULTIPLICITY__EXACT_VALUE); | ||
955 | |||
956 | unboundedMultiplicityEClass = createEClass(UNBOUNDED_MULTIPLICITY); | ||
957 | |||
958 | argumentEClass = createEClass(ARGUMENT); | ||
959 | createEReference(argumentEClass, ARGUMENT__VARIABLE_OR_NODE); | ||
960 | createEReference(argumentEClass, ARGUMENT__SINGLETON_VARIABLE); | ||
961 | |||
962 | enumDeclarationEClass = createEClass(ENUM_DECLARATION); | ||
963 | createEReference(enumDeclarationEClass, ENUM_DECLARATION__LITERALS); | ||
964 | |||
965 | variableOrNodeEClass = createEClass(VARIABLE_OR_NODE); | ||
966 | |||
967 | // Create enums | ||
968 | logicValueEEnum = createEEnum(LOGIC_VALUE); | ||
969 | } | ||
970 | |||
971 | /** | ||
972 | * <!-- begin-user-doc --> | ||
973 | * <!-- end-user-doc --> | ||
974 | * @generated | ||
975 | */ | ||
976 | private boolean isInitialized = false; | ||
977 | |||
978 | /** | ||
979 | * Complete the initialization of the package and its meta-model. This | ||
980 | * method is guarded to have no affect on any invocation but its first. | ||
981 | * <!-- begin-user-doc --> | ||
982 | * <!-- end-user-doc --> | ||
983 | * @generated | ||
984 | */ | ||
985 | public void initializePackageContents() { | ||
986 | if (isInitialized) | ||
987 | return; | ||
988 | isInitialized = true; | ||
989 | |||
990 | // Initialize package | ||
991 | setName(eNAME); | ||
992 | setNsPrefix(eNS_PREFIX); | ||
993 | setNsURI(eNS_URI); | ||
994 | |||
995 | // Create type parameters | ||
996 | |||
997 | // Set bounds for type parameters | ||
998 | |||
999 | // Add supertypes to classes | ||
1000 | problemEClass.getESuperTypes().add(this.getNamedElement()); | ||
1001 | relationEClass.getESuperTypes().add(this.getNamedElement()); | ||
1002 | classDeclarationEClass.getESuperTypes().add(this.getRelation()); | ||
1003 | classDeclarationEClass.getESuperTypes().add(this.getStatement()); | ||
1004 | referenceDeclarationEClass.getESuperTypes().add(this.getRelation()); | ||
1005 | predicateDefinitionEClass.getESuperTypes().add(this.getRelation()); | ||
1006 | predicateDefinitionEClass.getESuperTypes().add(this.getStatement()); | ||
1007 | parameterEClass.getESuperTypes().add(this.getVariable()); | ||
1008 | variableEClass.getESuperTypes().add(this.getVariableOrNode()); | ||
1009 | conjunctionEClass.getESuperTypes().add(this.getExistentialQuantifier()); | ||
1010 | atomEClass.getESuperTypes().add(this.getLiteral()); | ||
1011 | implicitVariableEClass.getESuperTypes().add(this.getVariable()); | ||
1012 | negativeLiteralEClass.getESuperTypes().add(this.getExistentialQuantifier()); | ||
1013 | negativeLiteralEClass.getESuperTypes().add(this.getLiteral()); | ||
1014 | assertionEClass.getESuperTypes().add(this.getStatement()); | ||
1015 | nodeEClass.getESuperTypes().add(this.getVariableOrNode()); | ||
1016 | scopeDeclarationEClass.getESuperTypes().add(this.getStatement()); | ||
1017 | rangeMultiplicityEClass.getESuperTypes().add(this.getMultiplicity()); | ||
1018 | exactMultiplicityEClass.getESuperTypes().add(this.getMultiplicity()); | ||
1019 | unboundedMultiplicityEClass.getESuperTypes().add(this.getMultiplicity()); | ||
1020 | enumDeclarationEClass.getESuperTypes().add(this.getRelation()); | ||
1021 | enumDeclarationEClass.getESuperTypes().add(this.getStatement()); | ||
1022 | variableOrNodeEClass.getESuperTypes().add(this.getNamedElement()); | ||
1023 | |||
1024 | // Initialize classes, features, and operations; add parameters | ||
1025 | initEClass(problemEClass, Problem.class, "Problem", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1026 | initEReference(getProblem_Nodes(), this.getNode(), null, "nodes", null, 0, -1, Problem.class, !IS_TRANSIENT, | ||
1027 | !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, | ||
1028 | IS_ORDERED); | ||
1029 | initEReference(getProblem_Statements(), this.getStatement(), null, "statements", null, 0, -1, Problem.class, | ||
1030 | !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, | ||
1031 | IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1032 | |||
1033 | initEClass(relationEClass, Relation.class, "Relation", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1034 | |||
1035 | initEClass(classDeclarationEClass, ClassDeclaration.class, "ClassDeclaration", !IS_ABSTRACT, !IS_INTERFACE, | ||
1036 | IS_GENERATED_INSTANCE_CLASS); | ||
1037 | initEAttribute(getClassDeclaration_Abstract(), ecorePackage.getEBoolean(), "abstract", null, 0, 1, | ||
1038 | ClassDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, | ||
1039 | !IS_DERIVED, IS_ORDERED); | ||
1040 | initEReference(getClassDeclaration_SuperTypes(), this.getRelation(), null, "superTypes", null, 0, -1, | ||
1041 | ClassDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, | ||
1042 | !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1043 | initEReference(getClassDeclaration_ReferenceDeclarations(), this.getReferenceDeclaration(), null, | ||
1044 | "referenceDeclarations", null, 0, -1, ClassDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, | ||
1045 | IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1046 | initEReference(getClassDeclaration_NewNode(), this.getNode(), null, "newNode", null, 0, 1, | ||
1047 | ClassDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, | ||
1048 | !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1049 | |||
1050 | initEClass(referenceDeclarationEClass, ReferenceDeclaration.class, "ReferenceDeclaration", !IS_ABSTRACT, | ||
1051 | !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1052 | initEReference(getReferenceDeclaration_ReferenceType(), this.getRelation(), null, "referenceType", null, 0, 1, | ||
1053 | ReferenceDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, | ||
1054 | IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1055 | initEReference(getReferenceDeclaration_Opposite(), this.getReferenceDeclaration(), null, "opposite", null, 0, 1, | ||
1056 | ReferenceDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, | ||
1057 | IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1058 | initEAttribute(getReferenceDeclaration_Containment(), ecorePackage.getEBoolean(), "containment", null, 0, 1, | ||
1059 | ReferenceDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, | ||
1060 | IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1061 | initEReference(getReferenceDeclaration_Multiplicity(), this.getMultiplicity(), null, "multiplicity", null, 0, 1, | ||
1062 | ReferenceDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, | ||
1063 | !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1064 | |||
1065 | initEClass(namedElementEClass, NamedElement.class, "NamedElement", IS_ABSTRACT, !IS_INTERFACE, | ||
1066 | IS_GENERATED_INSTANCE_CLASS); | ||
1067 | initEAttribute(getNamedElement_Name(), ecorePackage.getEString(), "name", null, 0, 1, NamedElement.class, | ||
1068 | !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1069 | |||
1070 | initEClass(predicateDefinitionEClass, PredicateDefinition.class, "PredicateDefinition", !IS_ABSTRACT, | ||
1071 | !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1072 | initEAttribute(getPredicateDefinition_Error(), ecorePackage.getEBoolean(), "error", null, 0, 1, | ||
1073 | PredicateDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, | ||
1074 | IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1075 | initEReference(getPredicateDefinition_Parameters(), this.getParameter(), null, "parameters", null, 0, -1, | ||
1076 | PredicateDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, | ||
1077 | !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1078 | initEReference(getPredicateDefinition_Bodies(), this.getConjunction(), null, "bodies", null, 0, -1, | ||
1079 | PredicateDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, | ||
1080 | !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1081 | |||
1082 | initEClass(parameterEClass, Parameter.class, "Parameter", !IS_ABSTRACT, !IS_INTERFACE, | ||
1083 | IS_GENERATED_INSTANCE_CLASS); | ||
1084 | initEReference(getParameter_ParameterType(), this.getRelation(), null, "parameterType", null, 0, 1, | ||
1085 | Parameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, | ||
1086 | !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1087 | |||
1088 | initEClass(variableEClass, Variable.class, "Variable", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1089 | |||
1090 | initEClass(conjunctionEClass, Conjunction.class, "Conjunction", !IS_ABSTRACT, !IS_INTERFACE, | ||
1091 | IS_GENERATED_INSTANCE_CLASS); | ||
1092 | initEReference(getConjunction_Literals(), this.getLiteral(), null, "literals", null, 0, -1, Conjunction.class, | ||
1093 | !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, | ||
1094 | IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1095 | |||
1096 | initEClass(literalEClass, Literal.class, "Literal", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1097 | |||
1098 | initEClass(atomEClass, Atom.class, "Atom", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1099 | initEReference(getAtom_Relation(), this.getRelation(), null, "relation", null, 0, 1, Atom.class, !IS_TRANSIENT, | ||
1100 | !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, | ||
1101 | IS_ORDERED); | ||
1102 | initEAttribute(getAtom_TransitiveClosure(), ecorePackage.getEBoolean(), "transitiveClosure", null, 0, 1, | ||
1103 | Atom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, | ||
1104 | IS_ORDERED); | ||
1105 | initEReference(getAtom_Arguments(), this.getArgument(), null, "arguments", null, 0, -1, Atom.class, | ||
1106 | !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, | ||
1107 | IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1108 | |||
1109 | initEClass(implicitVariableEClass, ImplicitVariable.class, "ImplicitVariable", !IS_ABSTRACT, !IS_INTERFACE, | ||
1110 | IS_GENERATED_INSTANCE_CLASS); | ||
1111 | |||
1112 | initEClass(negativeLiteralEClass, NegativeLiteral.class, "NegativeLiteral", !IS_ABSTRACT, !IS_INTERFACE, | ||
1113 | IS_GENERATED_INSTANCE_CLASS); | ||
1114 | initEReference(getNegativeLiteral_Atom(), this.getAtom(), null, "atom", null, 0, 1, NegativeLiteral.class, | ||
1115 | !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, | ||
1116 | IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1117 | |||
1118 | initEClass(existentialQuantifierEClass, ExistentialQuantifier.class, "ExistentialQuantifier", IS_ABSTRACT, | ||
1119 | IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1120 | initEReference(getExistentialQuantifier_ImplicitVariables(), this.getImplicitVariable(), null, | ||
1121 | "implicitVariables", null, 0, -1, ExistentialQuantifier.class, !IS_TRANSIENT, !IS_VOLATILE, | ||
1122 | IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1123 | |||
1124 | initEClass(assertionEClass, Assertion.class, "Assertion", !IS_ABSTRACT, !IS_INTERFACE, | ||
1125 | IS_GENERATED_INSTANCE_CLASS); | ||
1126 | initEReference(getAssertion_Relation(), this.getRelation(), null, "relation", null, 0, 1, Assertion.class, | ||
1127 | !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, | ||
1128 | IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1129 | initEReference(getAssertion_Arguments(), this.getNode(), null, "arguments", null, 0, -1, Assertion.class, | ||
1130 | !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, | ||
1131 | IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1132 | initEAttribute(getAssertion_Value(), this.getLogicValue(), "value", null, 0, 1, Assertion.class, !IS_TRANSIENT, | ||
1133 | !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1134 | |||
1135 | initEClass(nodeEClass, Node.class, "Node", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1136 | |||
1137 | initEClass(scopeDeclarationEClass, ScopeDeclaration.class, "ScopeDeclaration", !IS_ABSTRACT, !IS_INTERFACE, | ||
1138 | IS_GENERATED_INSTANCE_CLASS); | ||
1139 | initEReference(getScopeDeclaration_TypeScopes(), this.getTypeScope(), null, "typeScopes", null, 0, -1, | ||
1140 | ScopeDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, | ||
1141 | !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1142 | |||
1143 | initEClass(statementEClass, Statement.class, "Statement", IS_ABSTRACT, IS_INTERFACE, | ||
1144 | IS_GENERATED_INSTANCE_CLASS); | ||
1145 | |||
1146 | initEClass(typeScopeEClass, TypeScope.class, "TypeScope", !IS_ABSTRACT, !IS_INTERFACE, | ||
1147 | IS_GENERATED_INSTANCE_CLASS); | ||
1148 | initEReference(getTypeScope_TargetType(), this.getClassDeclaration(), null, "targetType", null, 0, 1, | ||
1149 | TypeScope.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, | ||
1150 | !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1151 | initEAttribute(getTypeScope_Increment(), ecorePackage.getEBoolean(), "increment", null, 0, 1, TypeScope.class, | ||
1152 | !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1153 | initEReference(getTypeScope_Multiplicity(), this.getMultiplicity(), null, "multiplicity", null, 0, 1, | ||
1154 | TypeScope.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, | ||
1155 | !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1156 | |||
1157 | initEClass(multiplicityEClass, Multiplicity.class, "Multiplicity", IS_ABSTRACT, !IS_INTERFACE, | ||
1158 | IS_GENERATED_INSTANCE_CLASS); | ||
1159 | |||
1160 | initEClass(rangeMultiplicityEClass, RangeMultiplicity.class, "RangeMultiplicity", !IS_ABSTRACT, !IS_INTERFACE, | ||
1161 | IS_GENERATED_INSTANCE_CLASS); | ||
1162 | initEAttribute(getRangeMultiplicity_LowerBound(), ecorePackage.getEInt(), "lowerBound", "0", 0, 1, | ||
1163 | RangeMultiplicity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, | ||
1164 | !IS_DERIVED, IS_ORDERED); | ||
1165 | initEAttribute(getRangeMultiplicity_UpperBound(), ecorePackage.getEInt(), "upperBound", "-1", 0, 1, | ||
1166 | RangeMultiplicity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, | ||
1167 | !IS_DERIVED, IS_ORDERED); | ||
1168 | |||
1169 | initEClass(exactMultiplicityEClass, ExactMultiplicity.class, "ExactMultiplicity", !IS_ABSTRACT, !IS_INTERFACE, | ||
1170 | IS_GENERATED_INSTANCE_CLASS); | ||
1171 | initEAttribute(getExactMultiplicity_ExactValue(), ecorePackage.getEInt(), "exactValue", "1", 0, 1, | ||
1172 | ExactMultiplicity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, | ||
1173 | !IS_DERIVED, IS_ORDERED); | ||
1174 | |||
1175 | initEClass(unboundedMultiplicityEClass, UnboundedMultiplicity.class, "UnboundedMultiplicity", !IS_ABSTRACT, | ||
1176 | !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1177 | |||
1178 | initEClass(argumentEClass, Argument.class, "Argument", !IS_ABSTRACT, !IS_INTERFACE, | ||
1179 | IS_GENERATED_INSTANCE_CLASS); | ||
1180 | initEReference(getArgument_VariableOrNode(), this.getVariableOrNode(), null, "variableOrNode", null, 0, 1, | ||
1181 | Argument.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, | ||
1182 | !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1183 | initEReference(getArgument_SingletonVariable(), this.getImplicitVariable(), null, "singletonVariable", null, 0, | ||
1184 | 1, Argument.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, | ||
1185 | !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1186 | |||
1187 | initEClass(enumDeclarationEClass, EnumDeclaration.class, "EnumDeclaration", !IS_ABSTRACT, !IS_INTERFACE, | ||
1188 | IS_GENERATED_INSTANCE_CLASS); | ||
1189 | initEReference(getEnumDeclaration_Literals(), this.getNode(), null, "literals", null, 0, -1, | ||
1190 | EnumDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, | ||
1191 | !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1192 | |||
1193 | initEClass(variableOrNodeEClass, VariableOrNode.class, "VariableOrNode", IS_ABSTRACT, !IS_INTERFACE, | ||
1194 | IS_GENERATED_INSTANCE_CLASS); | ||
1195 | |||
1196 | // Initialize enums and add enum literals | ||
1197 | initEEnum(logicValueEEnum, LogicValue.class, "LogicValue"); | ||
1198 | addEEnumLiteral(logicValueEEnum, LogicValue.TRUE); | ||
1199 | addEEnumLiteral(logicValueEEnum, LogicValue.FALSE); | ||
1200 | addEEnumLiteral(logicValueEEnum, LogicValue.UNKNOWN); | ||
1201 | |||
1202 | // Create resource | ||
1203 | createResource(eNS_URI); | ||
1204 | } | ||
1205 | |||
1206 | } //ProblemPackageImpl | ||
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/RangeMultiplicityImpl.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/RangeMultiplicityImpl.java deleted file mode 100644 index 1122b5be..00000000 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/RangeMultiplicityImpl.java +++ /dev/null | |||
@@ -1,219 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import org.eclipse.emf.common.notify.Notification; | ||
6 | |||
7 | import org.eclipse.emf.ecore.EClass; | ||
8 | |||
9 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
10 | |||
11 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
12 | import org.eclipse.viatra.solver.language.model.problem.RangeMultiplicity; | ||
13 | |||
14 | /** | ||
15 | * <!-- begin-user-doc --> | ||
16 | * An implementation of the model object '<em><b>Range Multiplicity</b></em>'. | ||
17 | * <!-- end-user-doc --> | ||
18 | * <p> | ||
19 | * The following features are implemented: | ||
20 | * </p> | ||
21 | * <ul> | ||
22 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.RangeMultiplicityImpl#getLowerBound <em>Lower Bound</em>}</li> | ||
23 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.RangeMultiplicityImpl#getUpperBound <em>Upper Bound</em>}</li> | ||
24 | * </ul> | ||
25 | * | ||
26 | * @generated | ||
27 | */ | ||
28 | public class RangeMultiplicityImpl extends MultiplicityImpl implements RangeMultiplicity { | ||
29 | /** | ||
30 | * The default value of the '{@link #getLowerBound() <em>Lower Bound</em>}' attribute. | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @see #getLowerBound() | ||
34 | * @generated | ||
35 | * @ordered | ||
36 | */ | ||
37 | protected static final int LOWER_BOUND_EDEFAULT = 0; | ||
38 | |||
39 | /** | ||
40 | * The cached value of the '{@link #getLowerBound() <em>Lower Bound</em>}' attribute. | ||
41 | * <!-- begin-user-doc --> | ||
42 | * <!-- end-user-doc --> | ||
43 | * @see #getLowerBound() | ||
44 | * @generated | ||
45 | * @ordered | ||
46 | */ | ||
47 | protected int lowerBound = LOWER_BOUND_EDEFAULT; | ||
48 | |||
49 | /** | ||
50 | * The default value of the '{@link #getUpperBound() <em>Upper Bound</em>}' attribute. | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @see #getUpperBound() | ||
54 | * @generated | ||
55 | * @ordered | ||
56 | */ | ||
57 | protected static final int UPPER_BOUND_EDEFAULT = -1; | ||
58 | |||
59 | /** | ||
60 | * The cached value of the '{@link #getUpperBound() <em>Upper Bound</em>}' attribute. | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @see #getUpperBound() | ||
64 | * @generated | ||
65 | * @ordered | ||
66 | */ | ||
67 | protected int upperBound = UPPER_BOUND_EDEFAULT; | ||
68 | |||
69 | /** | ||
70 | * <!-- begin-user-doc --> | ||
71 | * <!-- end-user-doc --> | ||
72 | * @generated | ||
73 | */ | ||
74 | protected RangeMultiplicityImpl() { | ||
75 | super(); | ||
76 | } | ||
77 | |||
78 | /** | ||
79 | * <!-- begin-user-doc --> | ||
80 | * <!-- end-user-doc --> | ||
81 | * @generated | ||
82 | */ | ||
83 | @Override | ||
84 | protected EClass eStaticClass() { | ||
85 | return ProblemPackage.Literals.RANGE_MULTIPLICITY; | ||
86 | } | ||
87 | |||
88 | /** | ||
89 | * <!-- begin-user-doc --> | ||
90 | * <!-- end-user-doc --> | ||
91 | * @generated | ||
92 | */ | ||
93 | public int getLowerBound() { | ||
94 | return lowerBound; | ||
95 | } | ||
96 | |||
97 | /** | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @generated | ||
101 | */ | ||
102 | public void setLowerBound(int newLowerBound) { | ||
103 | int oldLowerBound = lowerBound; | ||
104 | lowerBound = newLowerBound; | ||
105 | if (eNotificationRequired()) | ||
106 | eNotify(new ENotificationImpl(this, Notification.SET, ProblemPackage.RANGE_MULTIPLICITY__LOWER_BOUND, | ||
107 | oldLowerBound, lowerBound)); | ||
108 | } | ||
109 | |||
110 | /** | ||
111 | * <!-- begin-user-doc --> | ||
112 | * <!-- end-user-doc --> | ||
113 | * @generated | ||
114 | */ | ||
115 | public int getUpperBound() { | ||
116 | return upperBound; | ||
117 | } | ||
118 | |||
119 | /** | ||
120 | * <!-- begin-user-doc --> | ||
121 | * <!-- end-user-doc --> | ||
122 | * @generated | ||
123 | */ | ||
124 | public void setUpperBound(int newUpperBound) { | ||
125 | int oldUpperBound = upperBound; | ||
126 | upperBound = newUpperBound; | ||
127 | if (eNotificationRequired()) | ||
128 | eNotify(new ENotificationImpl(this, Notification.SET, ProblemPackage.RANGE_MULTIPLICITY__UPPER_BOUND, | ||
129 | oldUpperBound, upperBound)); | ||
130 | } | ||
131 | |||
132 | /** | ||
133 | * <!-- begin-user-doc --> | ||
134 | * <!-- end-user-doc --> | ||
135 | * @generated | ||
136 | */ | ||
137 | @Override | ||
138 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
139 | switch (featureID) { | ||
140 | case ProblemPackage.RANGE_MULTIPLICITY__LOWER_BOUND: | ||
141 | return getLowerBound(); | ||
142 | case ProblemPackage.RANGE_MULTIPLICITY__UPPER_BOUND: | ||
143 | return getUpperBound(); | ||
144 | } | ||
145 | return super.eGet(featureID, resolve, coreType); | ||
146 | } | ||
147 | |||
148 | /** | ||
149 | * <!-- begin-user-doc --> | ||
150 | * <!-- end-user-doc --> | ||
151 | * @generated | ||
152 | */ | ||
153 | @Override | ||
154 | public void eSet(int featureID, Object newValue) { | ||
155 | switch (featureID) { | ||
156 | case ProblemPackage.RANGE_MULTIPLICITY__LOWER_BOUND: | ||
157 | setLowerBound((Integer) newValue); | ||
158 | return; | ||
159 | case ProblemPackage.RANGE_MULTIPLICITY__UPPER_BOUND: | ||
160 | setUpperBound((Integer) newValue); | ||
161 | return; | ||
162 | } | ||
163 | super.eSet(featureID, newValue); | ||
164 | } | ||
165 | |||
166 | /** | ||
167 | * <!-- begin-user-doc --> | ||
168 | * <!-- end-user-doc --> | ||
169 | * @generated | ||
170 | */ | ||
171 | @Override | ||
172 | public void eUnset(int featureID) { | ||
173 | switch (featureID) { | ||
174 | case ProblemPackage.RANGE_MULTIPLICITY__LOWER_BOUND: | ||
175 | setLowerBound(LOWER_BOUND_EDEFAULT); | ||
176 | return; | ||
177 | case ProblemPackage.RANGE_MULTIPLICITY__UPPER_BOUND: | ||
178 | setUpperBound(UPPER_BOUND_EDEFAULT); | ||
179 | return; | ||
180 | } | ||
181 | super.eUnset(featureID); | ||
182 | } | ||
183 | |||
184 | /** | ||
185 | * <!-- begin-user-doc --> | ||
186 | * <!-- end-user-doc --> | ||
187 | * @generated | ||
188 | */ | ||
189 | @Override | ||
190 | public boolean eIsSet(int featureID) { | ||
191 | switch (featureID) { | ||
192 | case ProblemPackage.RANGE_MULTIPLICITY__LOWER_BOUND: | ||
193 | return lowerBound != LOWER_BOUND_EDEFAULT; | ||
194 | case ProblemPackage.RANGE_MULTIPLICITY__UPPER_BOUND: | ||
195 | return upperBound != UPPER_BOUND_EDEFAULT; | ||
196 | } | ||
197 | return super.eIsSet(featureID); | ||
198 | } | ||
199 | |||
200 | /** | ||
201 | * <!-- begin-user-doc --> | ||
202 | * <!-- end-user-doc --> | ||
203 | * @generated | ||
204 | */ | ||
205 | @Override | ||
206 | public String toString() { | ||
207 | if (eIsProxy()) | ||
208 | return super.toString(); | ||
209 | |||
210 | StringBuilder result = new StringBuilder(super.toString()); | ||
211 | result.append(" (lowerBound: "); | ||
212 | result.append(lowerBound); | ||
213 | result.append(", upperBound: "); | ||
214 | result.append(upperBound); | ||
215 | result.append(')'); | ||
216 | return result.toString(); | ||
217 | } | ||
218 | |||
219 | } //RangeMultiplicityImpl | ||
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ReferenceDeclarationImpl.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ReferenceDeclarationImpl.java deleted file mode 100644 index 8df2715f..00000000 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ReferenceDeclarationImpl.java +++ /dev/null | |||
@@ -1,378 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import org.eclipse.emf.common.notify.Notification; | ||
6 | import org.eclipse.emf.common.notify.NotificationChain; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | import org.eclipse.emf.ecore.InternalEObject; | ||
10 | |||
11 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
12 | import org.eclipse.viatra.solver.language.model.problem.Multiplicity; | ||
13 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
14 | import org.eclipse.viatra.solver.language.model.problem.ReferenceDeclaration; | ||
15 | import org.eclipse.viatra.solver.language.model.problem.Relation; | ||
16 | |||
17 | /** | ||
18 | * <!-- begin-user-doc --> | ||
19 | * An implementation of the model object '<em><b>Reference Declaration</b></em>'. | ||
20 | * <!-- end-user-doc --> | ||
21 | * <p> | ||
22 | * The following features are implemented: | ||
23 | * </p> | ||
24 | * <ul> | ||
25 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.ReferenceDeclarationImpl#getReferenceType <em>Reference Type</em>}</li> | ||
26 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.ReferenceDeclarationImpl#getOpposite <em>Opposite</em>}</li> | ||
27 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.ReferenceDeclarationImpl#isContainment <em>Containment</em>}</li> | ||
28 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.ReferenceDeclarationImpl#getMultiplicity <em>Multiplicity</em>}</li> | ||
29 | * </ul> | ||
30 | * | ||
31 | * @generated | ||
32 | */ | ||
33 | public class ReferenceDeclarationImpl extends RelationImpl implements ReferenceDeclaration { | ||
34 | /** | ||
35 | * The cached value of the '{@link #getReferenceType() <em>Reference Type</em>}' reference. | ||
36 | * <!-- begin-user-doc --> | ||
37 | * <!-- end-user-doc --> | ||
38 | * @see #getReferenceType() | ||
39 | * @generated | ||
40 | * @ordered | ||
41 | */ | ||
42 | protected Relation referenceType; | ||
43 | |||
44 | /** | ||
45 | * The cached value of the '{@link #getOpposite() <em>Opposite</em>}' reference. | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @see #getOpposite() | ||
49 | * @generated | ||
50 | * @ordered | ||
51 | */ | ||
52 | protected ReferenceDeclaration opposite; | ||
53 | |||
54 | /** | ||
55 | * The default value of the '{@link #isContainment() <em>Containment</em>}' attribute. | ||
56 | * <!-- begin-user-doc --> | ||
57 | * <!-- end-user-doc --> | ||
58 | * @see #isContainment() | ||
59 | * @generated | ||
60 | * @ordered | ||
61 | */ | ||
62 | protected static final boolean CONTAINMENT_EDEFAULT = false; | ||
63 | |||
64 | /** | ||
65 | * The cached value of the '{@link #isContainment() <em>Containment</em>}' attribute. | ||
66 | * <!-- begin-user-doc --> | ||
67 | * <!-- end-user-doc --> | ||
68 | * @see #isContainment() | ||
69 | * @generated | ||
70 | * @ordered | ||
71 | */ | ||
72 | protected boolean containment = CONTAINMENT_EDEFAULT; | ||
73 | |||
74 | /** | ||
75 | * The cached value of the '{@link #getMultiplicity() <em>Multiplicity</em>}' containment reference. | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <!-- end-user-doc --> | ||
78 | * @see #getMultiplicity() | ||
79 | * @generated | ||
80 | * @ordered | ||
81 | */ | ||
82 | protected Multiplicity multiplicity; | ||
83 | |||
84 | /** | ||
85 | * <!-- begin-user-doc --> | ||
86 | * <!-- end-user-doc --> | ||
87 | * @generated | ||
88 | */ | ||
89 | protected ReferenceDeclarationImpl() { | ||
90 | super(); | ||
91 | } | ||
92 | |||
93 | /** | ||
94 | * <!-- begin-user-doc --> | ||
95 | * <!-- end-user-doc --> | ||
96 | * @generated | ||
97 | */ | ||
98 | @Override | ||
99 | protected EClass eStaticClass() { | ||
100 | return ProblemPackage.Literals.REFERENCE_DECLARATION; | ||
101 | } | ||
102 | |||
103 | /** | ||
104 | * <!-- begin-user-doc --> | ||
105 | * <!-- end-user-doc --> | ||
106 | * @generated | ||
107 | */ | ||
108 | public Relation getReferenceType() { | ||
109 | if (referenceType != null && referenceType.eIsProxy()) { | ||
110 | InternalEObject oldReferenceType = (InternalEObject) referenceType; | ||
111 | referenceType = (Relation) eResolveProxy(oldReferenceType); | ||
112 | if (referenceType != oldReferenceType) { | ||
113 | if (eNotificationRequired()) | ||
114 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, | ||
115 | ProblemPackage.REFERENCE_DECLARATION__REFERENCE_TYPE, oldReferenceType, referenceType)); | ||
116 | } | ||
117 | } | ||
118 | return referenceType; | ||
119 | } | ||
120 | |||
121 | /** | ||
122 | * <!-- begin-user-doc --> | ||
123 | * <!-- end-user-doc --> | ||
124 | * @generated | ||
125 | */ | ||
126 | public Relation basicGetReferenceType() { | ||
127 | return referenceType; | ||
128 | } | ||
129 | |||
130 | /** | ||
131 | * <!-- begin-user-doc --> | ||
132 | * <!-- end-user-doc --> | ||
133 | * @generated | ||
134 | */ | ||
135 | public void setReferenceType(Relation newReferenceType) { | ||
136 | Relation oldReferenceType = referenceType; | ||
137 | referenceType = newReferenceType; | ||
138 | if (eNotificationRequired()) | ||
139 | eNotify(new ENotificationImpl(this, Notification.SET, ProblemPackage.REFERENCE_DECLARATION__REFERENCE_TYPE, | ||
140 | oldReferenceType, referenceType)); | ||
141 | } | ||
142 | |||
143 | /** | ||
144 | * <!-- begin-user-doc --> | ||
145 | * <!-- end-user-doc --> | ||
146 | * @generated | ||
147 | */ | ||
148 | public ReferenceDeclaration getOpposite() { | ||
149 | if (opposite != null && opposite.eIsProxy()) { | ||
150 | InternalEObject oldOpposite = (InternalEObject) opposite; | ||
151 | opposite = (ReferenceDeclaration) eResolveProxy(oldOpposite); | ||
152 | if (opposite != oldOpposite) { | ||
153 | if (eNotificationRequired()) | ||
154 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, | ||
155 | ProblemPackage.REFERENCE_DECLARATION__OPPOSITE, oldOpposite, opposite)); | ||
156 | } | ||
157 | } | ||
158 | return opposite; | ||
159 | } | ||
160 | |||
161 | /** | ||
162 | * <!-- begin-user-doc --> | ||
163 | * <!-- end-user-doc --> | ||
164 | * @generated | ||
165 | */ | ||
166 | public ReferenceDeclaration basicGetOpposite() { | ||
167 | return opposite; | ||
168 | } | ||
169 | |||
170 | /** | ||
171 | * <!-- begin-user-doc --> | ||
172 | * <!-- end-user-doc --> | ||
173 | * @generated | ||
174 | */ | ||
175 | public void setOpposite(ReferenceDeclaration newOpposite) { | ||
176 | ReferenceDeclaration oldOpposite = opposite; | ||
177 | opposite = newOpposite; | ||
178 | if (eNotificationRequired()) | ||
179 | eNotify(new ENotificationImpl(this, Notification.SET, ProblemPackage.REFERENCE_DECLARATION__OPPOSITE, | ||
180 | oldOpposite, opposite)); | ||
181 | } | ||
182 | |||
183 | /** | ||
184 | * <!-- begin-user-doc --> | ||
185 | * <!-- end-user-doc --> | ||
186 | * @generated | ||
187 | */ | ||
188 | public boolean isContainment() { | ||
189 | return containment; | ||
190 | } | ||
191 | |||
192 | /** | ||
193 | * <!-- begin-user-doc --> | ||
194 | * <!-- end-user-doc --> | ||
195 | * @generated | ||
196 | */ | ||
197 | public void setContainment(boolean newContainment) { | ||
198 | boolean oldContainment = containment; | ||
199 | containment = newContainment; | ||
200 | if (eNotificationRequired()) | ||
201 | eNotify(new ENotificationImpl(this, Notification.SET, ProblemPackage.REFERENCE_DECLARATION__CONTAINMENT, | ||
202 | oldContainment, containment)); | ||
203 | } | ||
204 | |||
205 | /** | ||
206 | * <!-- begin-user-doc --> | ||
207 | * <!-- end-user-doc --> | ||
208 | * @generated | ||
209 | */ | ||
210 | public Multiplicity getMultiplicity() { | ||
211 | return multiplicity; | ||
212 | } | ||
213 | |||
214 | /** | ||
215 | * <!-- begin-user-doc --> | ||
216 | * <!-- end-user-doc --> | ||
217 | * @generated | ||
218 | */ | ||
219 | public NotificationChain basicSetMultiplicity(Multiplicity newMultiplicity, NotificationChain msgs) { | ||
220 | Multiplicity oldMultiplicity = multiplicity; | ||
221 | multiplicity = newMultiplicity; | ||
222 | if (eNotificationRequired()) { | ||
223 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, | ||
224 | ProblemPackage.REFERENCE_DECLARATION__MULTIPLICITY, oldMultiplicity, newMultiplicity); | ||
225 | if (msgs == null) | ||
226 | msgs = notification; | ||
227 | else | ||
228 | msgs.add(notification); | ||
229 | } | ||
230 | return msgs; | ||
231 | } | ||
232 | |||
233 | /** | ||
234 | * <!-- begin-user-doc --> | ||
235 | * <!-- end-user-doc --> | ||
236 | * @generated | ||
237 | */ | ||
238 | public void setMultiplicity(Multiplicity newMultiplicity) { | ||
239 | if (newMultiplicity != multiplicity) { | ||
240 | NotificationChain msgs = null; | ||
241 | if (multiplicity != null) | ||
242 | msgs = ((InternalEObject) multiplicity).eInverseRemove(this, | ||
243 | EOPPOSITE_FEATURE_BASE - ProblemPackage.REFERENCE_DECLARATION__MULTIPLICITY, null, msgs); | ||
244 | if (newMultiplicity != null) | ||
245 | msgs = ((InternalEObject) newMultiplicity).eInverseAdd(this, | ||
246 | EOPPOSITE_FEATURE_BASE - ProblemPackage.REFERENCE_DECLARATION__MULTIPLICITY, null, msgs); | ||
247 | msgs = basicSetMultiplicity(newMultiplicity, msgs); | ||
248 | if (msgs != null) | ||
249 | msgs.dispatch(); | ||
250 | } else if (eNotificationRequired()) | ||
251 | eNotify(new ENotificationImpl(this, Notification.SET, ProblemPackage.REFERENCE_DECLARATION__MULTIPLICITY, | ||
252 | newMultiplicity, newMultiplicity)); | ||
253 | } | ||
254 | |||
255 | /** | ||
256 | * <!-- begin-user-doc --> | ||
257 | * <!-- end-user-doc --> | ||
258 | * @generated | ||
259 | */ | ||
260 | @Override | ||
261 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
262 | switch (featureID) { | ||
263 | case ProblemPackage.REFERENCE_DECLARATION__MULTIPLICITY: | ||
264 | return basicSetMultiplicity(null, msgs); | ||
265 | } | ||
266 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
267 | } | ||
268 | |||
269 | /** | ||
270 | * <!-- begin-user-doc --> | ||
271 | * <!-- end-user-doc --> | ||
272 | * @generated | ||
273 | */ | ||
274 | @Override | ||
275 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
276 | switch (featureID) { | ||
277 | case ProblemPackage.REFERENCE_DECLARATION__REFERENCE_TYPE: | ||
278 | if (resolve) | ||
279 | return getReferenceType(); | ||
280 | return basicGetReferenceType(); | ||
281 | case ProblemPackage.REFERENCE_DECLARATION__OPPOSITE: | ||
282 | if (resolve) | ||
283 | return getOpposite(); | ||
284 | return basicGetOpposite(); | ||
285 | case ProblemPackage.REFERENCE_DECLARATION__CONTAINMENT: | ||
286 | return isContainment(); | ||
287 | case ProblemPackage.REFERENCE_DECLARATION__MULTIPLICITY: | ||
288 | return getMultiplicity(); | ||
289 | } | ||
290 | return super.eGet(featureID, resolve, coreType); | ||
291 | } | ||
292 | |||
293 | /** | ||
294 | * <!-- begin-user-doc --> | ||
295 | * <!-- end-user-doc --> | ||
296 | * @generated | ||
297 | */ | ||
298 | @Override | ||
299 | public void eSet(int featureID, Object newValue) { | ||
300 | switch (featureID) { | ||
301 | case ProblemPackage.REFERENCE_DECLARATION__REFERENCE_TYPE: | ||
302 | setReferenceType((Relation) newValue); | ||
303 | return; | ||
304 | case ProblemPackage.REFERENCE_DECLARATION__OPPOSITE: | ||
305 | setOpposite((ReferenceDeclaration) newValue); | ||
306 | return; | ||
307 | case ProblemPackage.REFERENCE_DECLARATION__CONTAINMENT: | ||
308 | setContainment((Boolean) newValue); | ||
309 | return; | ||
310 | case ProblemPackage.REFERENCE_DECLARATION__MULTIPLICITY: | ||
311 | setMultiplicity((Multiplicity) newValue); | ||
312 | return; | ||
313 | } | ||
314 | super.eSet(featureID, newValue); | ||
315 | } | ||
316 | |||
317 | /** | ||
318 | * <!-- begin-user-doc --> | ||
319 | * <!-- end-user-doc --> | ||
320 | * @generated | ||
321 | */ | ||
322 | @Override | ||
323 | public void eUnset(int featureID) { | ||
324 | switch (featureID) { | ||
325 | case ProblemPackage.REFERENCE_DECLARATION__REFERENCE_TYPE: | ||
326 | setReferenceType((Relation) null); | ||
327 | return; | ||
328 | case ProblemPackage.REFERENCE_DECLARATION__OPPOSITE: | ||
329 | setOpposite((ReferenceDeclaration) null); | ||
330 | return; | ||
331 | case ProblemPackage.REFERENCE_DECLARATION__CONTAINMENT: | ||
332 | setContainment(CONTAINMENT_EDEFAULT); | ||
333 | return; | ||
334 | case ProblemPackage.REFERENCE_DECLARATION__MULTIPLICITY: | ||
335 | setMultiplicity((Multiplicity) null); | ||
336 | return; | ||
337 | } | ||
338 | super.eUnset(featureID); | ||
339 | } | ||
340 | |||
341 | /** | ||
342 | * <!-- begin-user-doc --> | ||
343 | * <!-- end-user-doc --> | ||
344 | * @generated | ||
345 | */ | ||
346 | @Override | ||
347 | public boolean eIsSet(int featureID) { | ||
348 | switch (featureID) { | ||
349 | case ProblemPackage.REFERENCE_DECLARATION__REFERENCE_TYPE: | ||
350 | return referenceType != null; | ||
351 | case ProblemPackage.REFERENCE_DECLARATION__OPPOSITE: | ||
352 | return opposite != null; | ||
353 | case ProblemPackage.REFERENCE_DECLARATION__CONTAINMENT: | ||
354 | return containment != CONTAINMENT_EDEFAULT; | ||
355 | case ProblemPackage.REFERENCE_DECLARATION__MULTIPLICITY: | ||
356 | return multiplicity != null; | ||
357 | } | ||
358 | return super.eIsSet(featureID); | ||
359 | } | ||
360 | |||
361 | /** | ||
362 | * <!-- begin-user-doc --> | ||
363 | * <!-- end-user-doc --> | ||
364 | * @generated | ||
365 | */ | ||
366 | @Override | ||
367 | public String toString() { | ||
368 | if (eIsProxy()) | ||
369 | return super.toString(); | ||
370 | |||
371 | StringBuilder result = new StringBuilder(super.toString()); | ||
372 | result.append(" (containment: "); | ||
373 | result.append(containment); | ||
374 | result.append(')'); | ||
375 | return result.toString(); | ||
376 | } | ||
377 | |||
378 | } //ReferenceDeclarationImpl | ||
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/RelationImpl.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/RelationImpl.java deleted file mode 100644 index 20d43043..00000000 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/RelationImpl.java +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EClass; | ||
6 | |||
7 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
8 | import org.eclipse.viatra.solver.language.model.problem.Relation; | ||
9 | |||
10 | /** | ||
11 | * <!-- begin-user-doc --> | ||
12 | * An implementation of the model object '<em><b>Relation</b></em>'. | ||
13 | * <!-- end-user-doc --> | ||
14 | * | ||
15 | * @generated | ||
16 | */ | ||
17 | public abstract class RelationImpl extends NamedElementImpl implements Relation { | ||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * <!-- end-user-doc --> | ||
21 | * @generated | ||
22 | */ | ||
23 | protected RelationImpl() { | ||
24 | super(); | ||
25 | } | ||
26 | |||
27 | /** | ||
28 | * <!-- begin-user-doc --> | ||
29 | * <!-- end-user-doc --> | ||
30 | * @generated | ||
31 | */ | ||
32 | @Override | ||
33 | protected EClass eStaticClass() { | ||
34 | return ProblemPackage.Literals.RELATION; | ||
35 | } | ||
36 | |||
37 | } //RelationImpl | ||
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ScopeDeclarationImpl.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ScopeDeclarationImpl.java deleted file mode 100644 index f178d9e0..00000000 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ScopeDeclarationImpl.java +++ /dev/null | |||
@@ -1,153 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import java.util.Collection; | ||
6 | |||
7 | import org.eclipse.emf.common.notify.NotificationChain; | ||
8 | |||
9 | import org.eclipse.emf.common.util.EList; | ||
10 | |||
11 | import org.eclipse.emf.ecore.EClass; | ||
12 | import org.eclipse.emf.ecore.InternalEObject; | ||
13 | |||
14 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
15 | |||
16 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
17 | import org.eclipse.emf.ecore.util.InternalEList; | ||
18 | |||
19 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
20 | import org.eclipse.viatra.solver.language.model.problem.ScopeDeclaration; | ||
21 | import org.eclipse.viatra.solver.language.model.problem.TypeScope; | ||
22 | |||
23 | /** | ||
24 | * <!-- begin-user-doc --> | ||
25 | * An implementation of the model object '<em><b>Scope Declaration</b></em>'. | ||
26 | * <!-- end-user-doc --> | ||
27 | * <p> | ||
28 | * The following features are implemented: | ||
29 | * </p> | ||
30 | * <ul> | ||
31 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.ScopeDeclarationImpl#getTypeScopes <em>Type Scopes</em>}</li> | ||
32 | * </ul> | ||
33 | * | ||
34 | * @generated | ||
35 | */ | ||
36 | public class ScopeDeclarationImpl extends MinimalEObjectImpl.Container implements ScopeDeclaration { | ||
37 | /** | ||
38 | * The cached value of the '{@link #getTypeScopes() <em>Type Scopes</em>}' containment reference list. | ||
39 | * <!-- begin-user-doc --> | ||
40 | * <!-- end-user-doc --> | ||
41 | * @see #getTypeScopes() | ||
42 | * @generated | ||
43 | * @ordered | ||
44 | */ | ||
45 | protected EList<TypeScope> typeScopes; | ||
46 | |||
47 | /** | ||
48 | * <!-- begin-user-doc --> | ||
49 | * <!-- end-user-doc --> | ||
50 | * @generated | ||
51 | */ | ||
52 | protected ScopeDeclarationImpl() { | ||
53 | super(); | ||
54 | } | ||
55 | |||
56 | /** | ||
57 | * <!-- begin-user-doc --> | ||
58 | * <!-- end-user-doc --> | ||
59 | * @generated | ||
60 | */ | ||
61 | @Override | ||
62 | protected EClass eStaticClass() { | ||
63 | return ProblemPackage.Literals.SCOPE_DECLARATION; | ||
64 | } | ||
65 | |||
66 | /** | ||
67 | * <!-- begin-user-doc --> | ||
68 | * <!-- end-user-doc --> | ||
69 | * @generated | ||
70 | */ | ||
71 | public EList<TypeScope> getTypeScopes() { | ||
72 | if (typeScopes == null) { | ||
73 | typeScopes = new EObjectContainmentEList<TypeScope>(TypeScope.class, this, | ||
74 | ProblemPackage.SCOPE_DECLARATION__TYPE_SCOPES); | ||
75 | } | ||
76 | return typeScopes; | ||
77 | } | ||
78 | |||
79 | /** | ||
80 | * <!-- begin-user-doc --> | ||
81 | * <!-- end-user-doc --> | ||
82 | * @generated | ||
83 | */ | ||
84 | @Override | ||
85 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
86 | switch (featureID) { | ||
87 | case ProblemPackage.SCOPE_DECLARATION__TYPE_SCOPES: | ||
88 | return ((InternalEList<?>) getTypeScopes()).basicRemove(otherEnd, msgs); | ||
89 | } | ||
90 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
91 | } | ||
92 | |||
93 | /** | ||
94 | * <!-- begin-user-doc --> | ||
95 | * <!-- end-user-doc --> | ||
96 | * @generated | ||
97 | */ | ||
98 | @Override | ||
99 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
100 | switch (featureID) { | ||
101 | case ProblemPackage.SCOPE_DECLARATION__TYPE_SCOPES: | ||
102 | return getTypeScopes(); | ||
103 | } | ||
104 | return super.eGet(featureID, resolve, coreType); | ||
105 | } | ||
106 | |||
107 | /** | ||
108 | * <!-- begin-user-doc --> | ||
109 | * <!-- end-user-doc --> | ||
110 | * @generated | ||
111 | */ | ||
112 | @SuppressWarnings("unchecked") | ||
113 | @Override | ||
114 | public void eSet(int featureID, Object newValue) { | ||
115 | switch (featureID) { | ||
116 | case ProblemPackage.SCOPE_DECLARATION__TYPE_SCOPES: | ||
117 | getTypeScopes().clear(); | ||
118 | getTypeScopes().addAll((Collection<? extends TypeScope>) newValue); | ||
119 | return; | ||
120 | } | ||
121 | super.eSet(featureID, newValue); | ||
122 | } | ||
123 | |||
124 | /** | ||
125 | * <!-- begin-user-doc --> | ||
126 | * <!-- end-user-doc --> | ||
127 | * @generated | ||
128 | */ | ||
129 | @Override | ||
130 | public void eUnset(int featureID) { | ||
131 | switch (featureID) { | ||
132 | case ProblemPackage.SCOPE_DECLARATION__TYPE_SCOPES: | ||
133 | getTypeScopes().clear(); | ||
134 | return; | ||
135 | } | ||
136 | super.eUnset(featureID); | ||
137 | } | ||
138 | |||
139 | /** | ||
140 | * <!-- begin-user-doc --> | ||
141 | * <!-- end-user-doc --> | ||
142 | * @generated | ||
143 | */ | ||
144 | @Override | ||
145 | public boolean eIsSet(int featureID) { | ||
146 | switch (featureID) { | ||
147 | case ProblemPackage.SCOPE_DECLARATION__TYPE_SCOPES: | ||
148 | return typeScopes != null && !typeScopes.isEmpty(); | ||
149 | } | ||
150 | return super.eIsSet(featureID); | ||
151 | } | ||
152 | |||
153 | } //ScopeDeclarationImpl | ||
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/TypeScopeImpl.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/TypeScopeImpl.java deleted file mode 100644 index 608cc015..00000000 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/TypeScopeImpl.java +++ /dev/null | |||
@@ -1,317 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import org.eclipse.emf.common.notify.Notification; | ||
6 | import org.eclipse.emf.common.notify.NotificationChain; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | import org.eclipse.emf.ecore.InternalEObject; | ||
10 | |||
11 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
12 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
13 | |||
14 | import org.eclipse.viatra.solver.language.model.problem.ClassDeclaration; | ||
15 | import org.eclipse.viatra.solver.language.model.problem.Multiplicity; | ||
16 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
17 | import org.eclipse.viatra.solver.language.model.problem.TypeScope; | ||
18 | |||
19 | /** | ||
20 | * <!-- begin-user-doc --> | ||
21 | * An implementation of the model object '<em><b>Type Scope</b></em>'. | ||
22 | * <!-- end-user-doc --> | ||
23 | * <p> | ||
24 | * The following features are implemented: | ||
25 | * </p> | ||
26 | * <ul> | ||
27 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.TypeScopeImpl#getTargetType <em>Target Type</em>}</li> | ||
28 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.TypeScopeImpl#isIncrement <em>Increment</em>}</li> | ||
29 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.TypeScopeImpl#getMultiplicity <em>Multiplicity</em>}</li> | ||
30 | * </ul> | ||
31 | * | ||
32 | * @generated | ||
33 | */ | ||
34 | public class TypeScopeImpl extends MinimalEObjectImpl.Container implements TypeScope { | ||
35 | /** | ||
36 | * The cached value of the '{@link #getTargetType() <em>Target Type</em>}' reference. | ||
37 | * <!-- begin-user-doc --> | ||
38 | * <!-- end-user-doc --> | ||
39 | * @see #getTargetType() | ||
40 | * @generated | ||
41 | * @ordered | ||
42 | */ | ||
43 | protected ClassDeclaration targetType; | ||
44 | |||
45 | /** | ||
46 | * The default value of the '{@link #isIncrement() <em>Increment</em>}' attribute. | ||
47 | * <!-- begin-user-doc --> | ||
48 | * <!-- end-user-doc --> | ||
49 | * @see #isIncrement() | ||
50 | * @generated | ||
51 | * @ordered | ||
52 | */ | ||
53 | protected static final boolean INCREMENT_EDEFAULT = false; | ||
54 | |||
55 | /** | ||
56 | * The cached value of the '{@link #isIncrement() <em>Increment</em>}' attribute. | ||
57 | * <!-- begin-user-doc --> | ||
58 | * <!-- end-user-doc --> | ||
59 | * @see #isIncrement() | ||
60 | * @generated | ||
61 | * @ordered | ||
62 | */ | ||
63 | protected boolean increment = INCREMENT_EDEFAULT; | ||
64 | |||
65 | /** | ||
66 | * The cached value of the '{@link #getMultiplicity() <em>Multiplicity</em>}' containment reference. | ||
67 | * <!-- begin-user-doc --> | ||
68 | * <!-- end-user-doc --> | ||
69 | * @see #getMultiplicity() | ||
70 | * @generated | ||
71 | * @ordered | ||
72 | */ | ||
73 | protected Multiplicity multiplicity; | ||
74 | |||
75 | /** | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <!-- end-user-doc --> | ||
78 | * @generated | ||
79 | */ | ||
80 | protected TypeScopeImpl() { | ||
81 | super(); | ||
82 | } | ||
83 | |||
84 | /** | ||
85 | * <!-- begin-user-doc --> | ||
86 | * <!-- end-user-doc --> | ||
87 | * @generated | ||
88 | */ | ||
89 | @Override | ||
90 | protected EClass eStaticClass() { | ||
91 | return ProblemPackage.Literals.TYPE_SCOPE; | ||
92 | } | ||
93 | |||
94 | /** | ||
95 | * <!-- begin-user-doc --> | ||
96 | * <!-- end-user-doc --> | ||
97 | * @generated | ||
98 | */ | ||
99 | public ClassDeclaration getTargetType() { | ||
100 | if (targetType != null && targetType.eIsProxy()) { | ||
101 | InternalEObject oldTargetType = (InternalEObject) targetType; | ||
102 | targetType = (ClassDeclaration) eResolveProxy(oldTargetType); | ||
103 | if (targetType != oldTargetType) { | ||
104 | if (eNotificationRequired()) | ||
105 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, ProblemPackage.TYPE_SCOPE__TARGET_TYPE, | ||
106 | oldTargetType, targetType)); | ||
107 | } | ||
108 | } | ||
109 | return targetType; | ||
110 | } | ||
111 | |||
112 | /** | ||
113 | * <!-- begin-user-doc --> | ||
114 | * <!-- end-user-doc --> | ||
115 | * @generated | ||
116 | */ | ||
117 | public ClassDeclaration basicGetTargetType() { | ||
118 | return targetType; | ||
119 | } | ||
120 | |||
121 | /** | ||
122 | * <!-- begin-user-doc --> | ||
123 | * <!-- end-user-doc --> | ||
124 | * @generated | ||
125 | */ | ||
126 | public void setTargetType(ClassDeclaration newTargetType) { | ||
127 | ClassDeclaration oldTargetType = targetType; | ||
128 | targetType = newTargetType; | ||
129 | if (eNotificationRequired()) | ||
130 | eNotify(new ENotificationImpl(this, Notification.SET, ProblemPackage.TYPE_SCOPE__TARGET_TYPE, oldTargetType, | ||
131 | targetType)); | ||
132 | } | ||
133 | |||
134 | /** | ||
135 | * <!-- begin-user-doc --> | ||
136 | * <!-- end-user-doc --> | ||
137 | * @generated | ||
138 | */ | ||
139 | public boolean isIncrement() { | ||
140 | return increment; | ||
141 | } | ||
142 | |||
143 | /** | ||
144 | * <!-- begin-user-doc --> | ||
145 | * <!-- end-user-doc --> | ||
146 | * @generated | ||
147 | */ | ||
148 | public void setIncrement(boolean newIncrement) { | ||
149 | boolean oldIncrement = increment; | ||
150 | increment = newIncrement; | ||
151 | if (eNotificationRequired()) | ||
152 | eNotify(new ENotificationImpl(this, Notification.SET, ProblemPackage.TYPE_SCOPE__INCREMENT, oldIncrement, | ||
153 | increment)); | ||
154 | } | ||
155 | |||
156 | /** | ||
157 | * <!-- begin-user-doc --> | ||
158 | * <!-- end-user-doc --> | ||
159 | * @generated | ||
160 | */ | ||
161 | public Multiplicity getMultiplicity() { | ||
162 | return multiplicity; | ||
163 | } | ||
164 | |||
165 | /** | ||
166 | * <!-- begin-user-doc --> | ||
167 | * <!-- end-user-doc --> | ||
168 | * @generated | ||
169 | */ | ||
170 | public NotificationChain basicSetMultiplicity(Multiplicity newMultiplicity, NotificationChain msgs) { | ||
171 | Multiplicity oldMultiplicity = multiplicity; | ||
172 | multiplicity = newMultiplicity; | ||
173 | if (eNotificationRequired()) { | ||
174 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, | ||
175 | ProblemPackage.TYPE_SCOPE__MULTIPLICITY, oldMultiplicity, newMultiplicity); | ||
176 | if (msgs == null) | ||
177 | msgs = notification; | ||
178 | else | ||
179 | msgs.add(notification); | ||
180 | } | ||
181 | return msgs; | ||
182 | } | ||
183 | |||
184 | /** | ||
185 | * <!-- begin-user-doc --> | ||
186 | * <!-- end-user-doc --> | ||
187 | * @generated | ||
188 | */ | ||
189 | public void setMultiplicity(Multiplicity newMultiplicity) { | ||
190 | if (newMultiplicity != multiplicity) { | ||
191 | NotificationChain msgs = null; | ||
192 | if (multiplicity != null) | ||
193 | msgs = ((InternalEObject) multiplicity).eInverseRemove(this, | ||
194 | EOPPOSITE_FEATURE_BASE - ProblemPackage.TYPE_SCOPE__MULTIPLICITY, null, msgs); | ||
195 | if (newMultiplicity != null) | ||
196 | msgs = ((InternalEObject) newMultiplicity).eInverseAdd(this, | ||
197 | EOPPOSITE_FEATURE_BASE - ProblemPackage.TYPE_SCOPE__MULTIPLICITY, null, msgs); | ||
198 | msgs = basicSetMultiplicity(newMultiplicity, msgs); | ||
199 | if (msgs != null) | ||
200 | msgs.dispatch(); | ||
201 | } else if (eNotificationRequired()) | ||
202 | eNotify(new ENotificationImpl(this, Notification.SET, ProblemPackage.TYPE_SCOPE__MULTIPLICITY, | ||
203 | newMultiplicity, newMultiplicity)); | ||
204 | } | ||
205 | |||
206 | /** | ||
207 | * <!-- begin-user-doc --> | ||
208 | * <!-- end-user-doc --> | ||
209 | * @generated | ||
210 | */ | ||
211 | @Override | ||
212 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
213 | switch (featureID) { | ||
214 | case ProblemPackage.TYPE_SCOPE__MULTIPLICITY: | ||
215 | return basicSetMultiplicity(null, msgs); | ||
216 | } | ||
217 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
218 | } | ||
219 | |||
220 | /** | ||
221 | * <!-- begin-user-doc --> | ||
222 | * <!-- end-user-doc --> | ||
223 | * @generated | ||
224 | */ | ||
225 | @Override | ||
226 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
227 | switch (featureID) { | ||
228 | case ProblemPackage.TYPE_SCOPE__TARGET_TYPE: | ||
229 | if (resolve) | ||
230 | return getTargetType(); | ||
231 | return basicGetTargetType(); | ||
232 | case ProblemPackage.TYPE_SCOPE__INCREMENT: | ||
233 | return isIncrement(); | ||
234 | case ProblemPackage.TYPE_SCOPE__MULTIPLICITY: | ||
235 | return getMultiplicity(); | ||
236 | } | ||
237 | return super.eGet(featureID, resolve, coreType); | ||
238 | } | ||
239 | |||
240 | /** | ||
241 | * <!-- begin-user-doc --> | ||
242 | * <!-- end-user-doc --> | ||
243 | * @generated | ||
244 | */ | ||
245 | @Override | ||
246 | public void eSet(int featureID, Object newValue) { | ||
247 | switch (featureID) { | ||
248 | case ProblemPackage.TYPE_SCOPE__TARGET_TYPE: | ||
249 | setTargetType((ClassDeclaration) newValue); | ||
250 | return; | ||
251 | case ProblemPackage.TYPE_SCOPE__INCREMENT: | ||
252 | setIncrement((Boolean) newValue); | ||
253 | return; | ||
254 | case ProblemPackage.TYPE_SCOPE__MULTIPLICITY: | ||
255 | setMultiplicity((Multiplicity) newValue); | ||
256 | return; | ||
257 | } | ||
258 | super.eSet(featureID, newValue); | ||
259 | } | ||
260 | |||
261 | /** | ||
262 | * <!-- begin-user-doc --> | ||
263 | * <!-- end-user-doc --> | ||
264 | * @generated | ||
265 | */ | ||
266 | @Override | ||
267 | public void eUnset(int featureID) { | ||
268 | switch (featureID) { | ||
269 | case ProblemPackage.TYPE_SCOPE__TARGET_TYPE: | ||
270 | setTargetType((ClassDeclaration) null); | ||
271 | return; | ||
272 | case ProblemPackage.TYPE_SCOPE__INCREMENT: | ||
273 | setIncrement(INCREMENT_EDEFAULT); | ||
274 | return; | ||
275 | case ProblemPackage.TYPE_SCOPE__MULTIPLICITY: | ||
276 | setMultiplicity((Multiplicity) null); | ||
277 | return; | ||
278 | } | ||
279 | super.eUnset(featureID); | ||
280 | } | ||
281 | |||
282 | /** | ||
283 | * <!-- begin-user-doc --> | ||
284 | * <!-- end-user-doc --> | ||
285 | * @generated | ||
286 | */ | ||
287 | @Override | ||
288 | public boolean eIsSet(int featureID) { | ||
289 | switch (featureID) { | ||
290 | case ProblemPackage.TYPE_SCOPE__TARGET_TYPE: | ||
291 | return targetType != null; | ||
292 | case ProblemPackage.TYPE_SCOPE__INCREMENT: | ||
293 | return increment != INCREMENT_EDEFAULT; | ||
294 | case ProblemPackage.TYPE_SCOPE__MULTIPLICITY: | ||
295 | return multiplicity != null; | ||
296 | } | ||
297 | return super.eIsSet(featureID); | ||
298 | } | ||
299 | |||
300 | /** | ||
301 | * <!-- begin-user-doc --> | ||
302 | * <!-- end-user-doc --> | ||
303 | * @generated | ||
304 | */ | ||
305 | @Override | ||
306 | public String toString() { | ||
307 | if (eIsProxy()) | ||
308 | return super.toString(); | ||
309 | |||
310 | StringBuilder result = new StringBuilder(super.toString()); | ||
311 | result.append(" (increment: "); | ||
312 | result.append(increment); | ||
313 | result.append(')'); | ||
314 | return result.toString(); | ||
315 | } | ||
316 | |||
317 | } //TypeScopeImpl | ||
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/UnboundedMultiplicityImpl.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/UnboundedMultiplicityImpl.java deleted file mode 100644 index 34283189..00000000 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/UnboundedMultiplicityImpl.java +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EClass; | ||
6 | |||
7 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
8 | import org.eclipse.viatra.solver.language.model.problem.UnboundedMultiplicity; | ||
9 | |||
10 | /** | ||
11 | * <!-- begin-user-doc --> | ||
12 | * An implementation of the model object '<em><b>Unbounded Multiplicity</b></em>'. | ||
13 | * <!-- end-user-doc --> | ||
14 | * | ||
15 | * @generated | ||
16 | */ | ||
17 | public class UnboundedMultiplicityImpl extends MultiplicityImpl implements UnboundedMultiplicity { | ||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * <!-- end-user-doc --> | ||
21 | * @generated | ||
22 | */ | ||
23 | protected UnboundedMultiplicityImpl() { | ||
24 | super(); | ||
25 | } | ||
26 | |||
27 | /** | ||
28 | * <!-- begin-user-doc --> | ||
29 | * <!-- end-user-doc --> | ||
30 | * @generated | ||
31 | */ | ||
32 | @Override | ||
33 | protected EClass eStaticClass() { | ||
34 | return ProblemPackage.Literals.UNBOUNDED_MULTIPLICITY; | ||
35 | } | ||
36 | |||
37 | } //UnboundedMultiplicityImpl | ||
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/VariableImpl.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/VariableImpl.java deleted file mode 100644 index 645ac39c..00000000 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/VariableImpl.java +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EClass; | ||
6 | |||
7 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
8 | import org.eclipse.viatra.solver.language.model.problem.Variable; | ||
9 | |||
10 | /** | ||
11 | * <!-- begin-user-doc --> | ||
12 | * An implementation of the model object '<em><b>Variable</b></em>'. | ||
13 | * <!-- end-user-doc --> | ||
14 | * | ||
15 | * @generated | ||
16 | */ | ||
17 | public abstract class VariableImpl extends VariableOrNodeImpl implements Variable { | ||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * <!-- end-user-doc --> | ||
21 | * @generated | ||
22 | */ | ||
23 | protected VariableImpl() { | ||
24 | super(); | ||
25 | } | ||
26 | |||
27 | /** | ||
28 | * <!-- begin-user-doc --> | ||
29 | * <!-- end-user-doc --> | ||
30 | * @generated | ||
31 | */ | ||
32 | @Override | ||
33 | protected EClass eStaticClass() { | ||
34 | return ProblemPackage.Literals.VARIABLE; | ||
35 | } | ||
36 | |||
37 | } //VariableImpl | ||
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/VariableOrNodeImpl.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/VariableOrNodeImpl.java deleted file mode 100644 index 4964a019..00000000 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/VariableOrNodeImpl.java +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EClass; | ||
6 | |||
7 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
8 | import org.eclipse.viatra.solver.language.model.problem.VariableOrNode; | ||
9 | |||
10 | /** | ||
11 | * <!-- begin-user-doc --> | ||
12 | * An implementation of the model object '<em><b>Variable Or Node</b></em>'. | ||
13 | * <!-- end-user-doc --> | ||
14 | * | ||
15 | * @generated | ||
16 | */ | ||
17 | public abstract class VariableOrNodeImpl extends NamedElementImpl implements VariableOrNode { | ||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * <!-- end-user-doc --> | ||
21 | * @generated | ||
22 | */ | ||
23 | protected VariableOrNodeImpl() { | ||
24 | super(); | ||
25 | } | ||
26 | |||
27 | /** | ||
28 | * <!-- begin-user-doc --> | ||
29 | * <!-- end-user-doc --> | ||
30 | * @generated | ||
31 | */ | ||
32 | @Override | ||
33 | protected EClass eStaticClass() { | ||
34 | return ProblemPackage.Literals.VARIABLE_OR_NODE; | ||
35 | } | ||
36 | |||
37 | } //VariableOrNodeImpl | ||
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/util/ProblemAdapterFactory.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/util/ProblemAdapterFactory.java deleted file mode 100644 index 3fc3ca75..00000000 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/util/ProblemAdapterFactory.java +++ /dev/null | |||
@@ -1,594 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.util; | ||
4 | |||
5 | import org.eclipse.emf.common.notify.Adapter; | ||
6 | import org.eclipse.emf.common.notify.Notifier; | ||
7 | |||
8 | import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; | ||
9 | |||
10 | import org.eclipse.emf.ecore.EObject; | ||
11 | |||
12 | import org.eclipse.viatra.solver.language.model.problem.*; | ||
13 | |||
14 | /** | ||
15 | * <!-- begin-user-doc --> | ||
16 | * The <b>Adapter Factory</b> for the model. | ||
17 | * It provides an adapter <code>createXXX</code> method for each class of the model. | ||
18 | * <!-- end-user-doc --> | ||
19 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage | ||
20 | * @generated | ||
21 | */ | ||
22 | public class ProblemAdapterFactory extends AdapterFactoryImpl { | ||
23 | /** | ||
24 | * The cached model package. | ||
25 | * <!-- begin-user-doc --> | ||
26 | * <!-- end-user-doc --> | ||
27 | * @generated | ||
28 | */ | ||
29 | protected static ProblemPackage modelPackage; | ||
30 | |||
31 | /** | ||
32 | * Creates an instance of the adapter factory. | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @generated | ||
36 | */ | ||
37 | public ProblemAdapterFactory() { | ||
38 | if (modelPackage == null) { | ||
39 | modelPackage = ProblemPackage.eINSTANCE; | ||
40 | } | ||
41 | } | ||
42 | |||
43 | /** | ||
44 | * Returns whether this factory is applicable for the type of the object. | ||
45 | * <!-- begin-user-doc --> | ||
46 | * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. | ||
47 | * <!-- end-user-doc --> | ||
48 | * @return whether this factory is applicable for the type of the object. | ||
49 | * @generated | ||
50 | */ | ||
51 | @Override | ||
52 | public boolean isFactoryForType(Object object) { | ||
53 | if (object == modelPackage) { | ||
54 | return true; | ||
55 | } | ||
56 | if (object instanceof EObject) { | ||
57 | return ((EObject) object).eClass().getEPackage() == modelPackage; | ||
58 | } | ||
59 | return false; | ||
60 | } | ||
61 | |||
62 | /** | ||
63 | * The switch that delegates to the <code>createXXX</code> methods. | ||
64 | * <!-- begin-user-doc --> | ||
65 | * <!-- end-user-doc --> | ||
66 | * @generated | ||
67 | */ | ||
68 | protected ProblemSwitch<Adapter> modelSwitch = new ProblemSwitch<Adapter>() { | ||
69 | @Override | ||
70 | public Adapter caseProblem(Problem object) { | ||
71 | return createProblemAdapter(); | ||
72 | } | ||
73 | |||
74 | @Override | ||
75 | public Adapter caseRelation(Relation object) { | ||
76 | return createRelationAdapter(); | ||
77 | } | ||
78 | |||
79 | @Override | ||
80 | public Adapter caseClassDeclaration(ClassDeclaration object) { | ||
81 | return createClassDeclarationAdapter(); | ||
82 | } | ||
83 | |||
84 | @Override | ||
85 | public Adapter caseReferenceDeclaration(ReferenceDeclaration object) { | ||
86 | return createReferenceDeclarationAdapter(); | ||
87 | } | ||
88 | |||
89 | @Override | ||
90 | public Adapter caseNamedElement(NamedElement object) { | ||
91 | return createNamedElementAdapter(); | ||
92 | } | ||
93 | |||
94 | @Override | ||
95 | public Adapter casePredicateDefinition(PredicateDefinition object) { | ||
96 | return createPredicateDefinitionAdapter(); | ||
97 | } | ||
98 | |||
99 | @Override | ||
100 | public Adapter caseParameter(Parameter object) { | ||
101 | return createParameterAdapter(); | ||
102 | } | ||
103 | |||
104 | @Override | ||
105 | public Adapter caseVariable(Variable object) { | ||
106 | return createVariableAdapter(); | ||
107 | } | ||
108 | |||
109 | @Override | ||
110 | public Adapter caseConjunction(Conjunction object) { | ||
111 | return createConjunctionAdapter(); | ||
112 | } | ||
113 | |||
114 | @Override | ||
115 | public Adapter caseLiteral(Literal object) { | ||
116 | return createLiteralAdapter(); | ||
117 | } | ||
118 | |||
119 | @Override | ||
120 | public Adapter caseAtom(Atom object) { | ||
121 | return createAtomAdapter(); | ||
122 | } | ||
123 | |||
124 | @Override | ||
125 | public Adapter caseImplicitVariable(ImplicitVariable object) { | ||
126 | return createImplicitVariableAdapter(); | ||
127 | } | ||
128 | |||
129 | @Override | ||
130 | public Adapter caseNegativeLiteral(NegativeLiteral object) { | ||
131 | return createNegativeLiteralAdapter(); | ||
132 | } | ||
133 | |||
134 | @Override | ||
135 | public Adapter caseExistentialQuantifier(ExistentialQuantifier object) { | ||
136 | return createExistentialQuantifierAdapter(); | ||
137 | } | ||
138 | |||
139 | @Override | ||
140 | public Adapter caseAssertion(Assertion object) { | ||
141 | return createAssertionAdapter(); | ||
142 | } | ||
143 | |||
144 | @Override | ||
145 | public Adapter caseNode(Node object) { | ||
146 | return createNodeAdapter(); | ||
147 | } | ||
148 | |||
149 | @Override | ||
150 | public Adapter caseScopeDeclaration(ScopeDeclaration object) { | ||
151 | return createScopeDeclarationAdapter(); | ||
152 | } | ||
153 | |||
154 | @Override | ||
155 | public Adapter caseStatement(Statement object) { | ||
156 | return createStatementAdapter(); | ||
157 | } | ||
158 | |||
159 | @Override | ||
160 | public Adapter caseTypeScope(TypeScope object) { | ||
161 | return createTypeScopeAdapter(); | ||
162 | } | ||
163 | |||
164 | @Override | ||
165 | public Adapter caseMultiplicity(Multiplicity object) { | ||
166 | return createMultiplicityAdapter(); | ||
167 | } | ||
168 | |||
169 | @Override | ||
170 | public Adapter caseRangeMultiplicity(RangeMultiplicity object) { | ||
171 | return createRangeMultiplicityAdapter(); | ||
172 | } | ||
173 | |||
174 | @Override | ||
175 | public Adapter caseExactMultiplicity(ExactMultiplicity object) { | ||
176 | return createExactMultiplicityAdapter(); | ||
177 | } | ||
178 | |||
179 | @Override | ||
180 | public Adapter caseUnboundedMultiplicity(UnboundedMultiplicity object) { | ||
181 | return createUnboundedMultiplicityAdapter(); | ||
182 | } | ||
183 | |||
184 | @Override | ||
185 | public Adapter caseArgument(Argument object) { | ||
186 | return createArgumentAdapter(); | ||
187 | } | ||
188 | |||
189 | @Override | ||
190 | public Adapter caseEnumDeclaration(EnumDeclaration object) { | ||
191 | return createEnumDeclarationAdapter(); | ||
192 | } | ||
193 | |||
194 | @Override | ||
195 | public Adapter caseVariableOrNode(VariableOrNode object) { | ||
196 | return createVariableOrNodeAdapter(); | ||
197 | } | ||
198 | |||
199 | @Override | ||
200 | public Adapter defaultCase(EObject object) { | ||
201 | return createEObjectAdapter(); | ||
202 | } | ||
203 | }; | ||
204 | |||
205 | /** | ||
206 | * Creates an adapter for the <code>target</code>. | ||
207 | * <!-- begin-user-doc --> | ||
208 | * <!-- end-user-doc --> | ||
209 | * @param target the object to adapt. | ||
210 | * @return the adapter for the <code>target</code>. | ||
211 | * @generated | ||
212 | */ | ||
213 | @Override | ||
214 | public Adapter createAdapter(Notifier target) { | ||
215 | return modelSwitch.doSwitch((EObject) target); | ||
216 | } | ||
217 | |||
218 | /** | ||
219 | * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.Problem <em>Problem</em>}'. | ||
220 | * <!-- begin-user-doc --> | ||
221 | * This default implementation returns null so that we can easily ignore cases; | ||
222 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
223 | * <!-- end-user-doc --> | ||
224 | * @return the new adapter. | ||
225 | * @see org.eclipse.viatra.solver.language.model.problem.Problem | ||
226 | * @generated | ||
227 | */ | ||
228 | public Adapter createProblemAdapter() { | ||
229 | return null; | ||
230 | } | ||
231 | |||
232 | /** | ||
233 | * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.Relation <em>Relation</em>}'. | ||
234 | * <!-- begin-user-doc --> | ||
235 | * This default implementation returns null so that we can easily ignore cases; | ||
236 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
237 | * <!-- end-user-doc --> | ||
238 | * @return the new adapter. | ||
239 | * @see org.eclipse.viatra.solver.language.model.problem.Relation | ||
240 | * @generated | ||
241 | */ | ||
242 | public Adapter createRelationAdapter() { | ||
243 | return null; | ||
244 | } | ||
245 | |||
246 | /** | ||
247 | * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.ClassDeclaration <em>Class Declaration</em>}'. | ||
248 | * <!-- begin-user-doc --> | ||
249 | * This default implementation returns null so that we can easily ignore cases; | ||
250 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
251 | * <!-- end-user-doc --> | ||
252 | * @return the new adapter. | ||
253 | * @see org.eclipse.viatra.solver.language.model.problem.ClassDeclaration | ||
254 | * @generated | ||
255 | */ | ||
256 | public Adapter createClassDeclarationAdapter() { | ||
257 | return null; | ||
258 | } | ||
259 | |||
260 | /** | ||
261 | * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.ReferenceDeclaration <em>Reference Declaration</em>}'. | ||
262 | * <!-- begin-user-doc --> | ||
263 | * This default implementation returns null so that we can easily ignore cases; | ||
264 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
265 | * <!-- end-user-doc --> | ||
266 | * @return the new adapter. | ||
267 | * @see org.eclipse.viatra.solver.language.model.problem.ReferenceDeclaration | ||
268 | * @generated | ||
269 | */ | ||
270 | public Adapter createReferenceDeclarationAdapter() { | ||
271 | return null; | ||
272 | } | ||
273 | |||
274 | /** | ||
275 | * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.NamedElement <em>Named Element</em>}'. | ||
276 | * <!-- begin-user-doc --> | ||
277 | * This default implementation returns null so that we can easily ignore cases; | ||
278 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
279 | * <!-- end-user-doc --> | ||
280 | * @return the new adapter. | ||
281 | * @see org.eclipse.viatra.solver.language.model.problem.NamedElement | ||
282 | * @generated | ||
283 | */ | ||
284 | public Adapter createNamedElementAdapter() { | ||
285 | return null; | ||
286 | } | ||
287 | |||
288 | /** | ||
289 | * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.PredicateDefinition <em>Predicate Definition</em>}'. | ||
290 | * <!-- begin-user-doc --> | ||
291 | * This default implementation returns null so that we can easily ignore cases; | ||
292 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
293 | * <!-- end-user-doc --> | ||
294 | * @return the new adapter. | ||
295 | * @see org.eclipse.viatra.solver.language.model.problem.PredicateDefinition | ||
296 | * @generated | ||
297 | */ | ||
298 | public Adapter createPredicateDefinitionAdapter() { | ||
299 | return null; | ||
300 | } | ||
301 | |||
302 | /** | ||
303 | * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.Parameter <em>Parameter</em>}'. | ||
304 | * <!-- begin-user-doc --> | ||
305 | * This default implementation returns null so that we can easily ignore cases; | ||
306 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
307 | * <!-- end-user-doc --> | ||
308 | * @return the new adapter. | ||
309 | * @see org.eclipse.viatra.solver.language.model.problem.Parameter | ||
310 | * @generated | ||
311 | */ | ||
312 | public Adapter createParameterAdapter() { | ||
313 | return null; | ||
314 | } | ||
315 | |||
316 | /** | ||
317 | * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.Variable <em>Variable</em>}'. | ||
318 | * <!-- begin-user-doc --> | ||
319 | * This default implementation returns null so that we can easily ignore cases; | ||
320 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
321 | * <!-- end-user-doc --> | ||
322 | * @return the new adapter. | ||
323 | * @see org.eclipse.viatra.solver.language.model.problem.Variable | ||
324 | * @generated | ||
325 | */ | ||
326 | public Adapter createVariableAdapter() { | ||
327 | return null; | ||
328 | } | ||
329 | |||
330 | /** | ||
331 | * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.Conjunction <em>Conjunction</em>}'. | ||
332 | * <!-- begin-user-doc --> | ||
333 | * This default implementation returns null so that we can easily ignore cases; | ||
334 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
335 | * <!-- end-user-doc --> | ||
336 | * @return the new adapter. | ||
337 | * @see org.eclipse.viatra.solver.language.model.problem.Conjunction | ||
338 | * @generated | ||
339 | */ | ||
340 | public Adapter createConjunctionAdapter() { | ||
341 | return null; | ||
342 | } | ||
343 | |||
344 | /** | ||
345 | * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.Literal <em>Literal</em>}'. | ||
346 | * <!-- begin-user-doc --> | ||
347 | * This default implementation returns null so that we can easily ignore cases; | ||
348 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
349 | * <!-- end-user-doc --> | ||
350 | * @return the new adapter. | ||
351 | * @see org.eclipse.viatra.solver.language.model.problem.Literal | ||
352 | * @generated | ||
353 | */ | ||
354 | public Adapter createLiteralAdapter() { | ||
355 | return null; | ||
356 | } | ||
357 | |||
358 | /** | ||
359 | * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.Atom <em>Atom</em>}'. | ||
360 | * <!-- begin-user-doc --> | ||
361 | * This default implementation returns null so that we can easily ignore cases; | ||
362 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
363 | * <!-- end-user-doc --> | ||
364 | * @return the new adapter. | ||
365 | * @see org.eclipse.viatra.solver.language.model.problem.Atom | ||
366 | * @generated | ||
367 | */ | ||
368 | public Adapter createAtomAdapter() { | ||
369 | return null; | ||
370 | } | ||
371 | |||
372 | /** | ||
373 | * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.ImplicitVariable <em>Implicit Variable</em>}'. | ||
374 | * <!-- begin-user-doc --> | ||
375 | * This default implementation returns null so that we can easily ignore cases; | ||
376 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
377 | * <!-- end-user-doc --> | ||
378 | * @return the new adapter. | ||
379 | * @see org.eclipse.viatra.solver.language.model.problem.ImplicitVariable | ||
380 | * @generated | ||
381 | */ | ||
382 | public Adapter createImplicitVariableAdapter() { | ||
383 | return null; | ||
384 | } | ||
385 | |||
386 | /** | ||
387 | * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.NegativeLiteral <em>Negative Literal</em>}'. | ||
388 | * <!-- begin-user-doc --> | ||
389 | * This default implementation returns null so that we can easily ignore cases; | ||
390 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
391 | * <!-- end-user-doc --> | ||
392 | * @return the new adapter. | ||
393 | * @see org.eclipse.viatra.solver.language.model.problem.NegativeLiteral | ||
394 | * @generated | ||
395 | */ | ||
396 | public Adapter createNegativeLiteralAdapter() { | ||
397 | return null; | ||
398 | } | ||
399 | |||
400 | /** | ||
401 | * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.ExistentialQuantifier <em>Existential Quantifier</em>}'. | ||
402 | * <!-- begin-user-doc --> | ||
403 | * This default implementation returns null so that we can easily ignore cases; | ||
404 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
405 | * <!-- end-user-doc --> | ||
406 | * @return the new adapter. | ||
407 | * @see org.eclipse.viatra.solver.language.model.problem.ExistentialQuantifier | ||
408 | * @generated | ||
409 | */ | ||
410 | public Adapter createExistentialQuantifierAdapter() { | ||
411 | return null; | ||
412 | } | ||
413 | |||
414 | /** | ||
415 | * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.Assertion <em>Assertion</em>}'. | ||
416 | * <!-- begin-user-doc --> | ||
417 | * This default implementation returns null so that we can easily ignore cases; | ||
418 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
419 | * <!-- end-user-doc --> | ||
420 | * @return the new adapter. | ||
421 | * @see org.eclipse.viatra.solver.language.model.problem.Assertion | ||
422 | * @generated | ||
423 | */ | ||
424 | public Adapter createAssertionAdapter() { | ||
425 | return null; | ||
426 | } | ||
427 | |||
428 | /** | ||
429 | * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.Node <em>Node</em>}'. | ||
430 | * <!-- begin-user-doc --> | ||
431 | * This default implementation returns null so that we can easily ignore cases; | ||
432 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
433 | * <!-- end-user-doc --> | ||
434 | * @return the new adapter. | ||
435 | * @see org.eclipse.viatra.solver.language.model.problem.Node | ||
436 | * @generated | ||
437 | */ | ||
438 | public Adapter createNodeAdapter() { | ||
439 | return null; | ||
440 | } | ||
441 | |||
442 | /** | ||
443 | * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.ScopeDeclaration <em>Scope Declaration</em>}'. | ||
444 | * <!-- begin-user-doc --> | ||
445 | * This default implementation returns null so that we can easily ignore cases; | ||
446 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
447 | * <!-- end-user-doc --> | ||
448 | * @return the new adapter. | ||
449 | * @see org.eclipse.viatra.solver.language.model.problem.ScopeDeclaration | ||
450 | * @generated | ||
451 | */ | ||
452 | public Adapter createScopeDeclarationAdapter() { | ||
453 | return null; | ||
454 | } | ||
455 | |||
456 | /** | ||
457 | * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.Statement <em>Statement</em>}'. | ||
458 | * <!-- begin-user-doc --> | ||
459 | * This default implementation returns null so that we can easily ignore cases; | ||
460 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
461 | * <!-- end-user-doc --> | ||
462 | * @return the new adapter. | ||
463 | * @see org.eclipse.viatra.solver.language.model.problem.Statement | ||
464 | * @generated | ||
465 | */ | ||
466 | public Adapter createStatementAdapter() { | ||
467 | return null; | ||
468 | } | ||
469 | |||
470 | /** | ||
471 | * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.TypeScope <em>Type Scope</em>}'. | ||
472 | * <!-- begin-user-doc --> | ||
473 | * This default implementation returns null so that we can easily ignore cases; | ||
474 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
475 | * <!-- end-user-doc --> | ||
476 | * @return the new adapter. | ||
477 | * @see org.eclipse.viatra.solver.language.model.problem.TypeScope | ||
478 | * @generated | ||
479 | */ | ||
480 | public Adapter createTypeScopeAdapter() { | ||
481 | return null; | ||
482 | } | ||
483 | |||
484 | /** | ||
485 | * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.Multiplicity <em>Multiplicity</em>}'. | ||
486 | * <!-- begin-user-doc --> | ||
487 | * This default implementation returns null so that we can easily ignore cases; | ||
488 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
489 | * <!-- end-user-doc --> | ||
490 | * @return the new adapter. | ||
491 | * @see org.eclipse.viatra.solver.language.model.problem.Multiplicity | ||
492 | * @generated | ||
493 | */ | ||
494 | public Adapter createMultiplicityAdapter() { | ||
495 | return null; | ||
496 | } | ||
497 | |||
498 | /** | ||
499 | * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.RangeMultiplicity <em>Range Multiplicity</em>}'. | ||
500 | * <!-- begin-user-doc --> | ||
501 | * This default implementation returns null so that we can easily ignore cases; | ||
502 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
503 | * <!-- end-user-doc --> | ||
504 | * @return the new adapter. | ||
505 | * @see org.eclipse.viatra.solver.language.model.problem.RangeMultiplicity | ||
506 | * @generated | ||
507 | */ | ||
508 | public Adapter createRangeMultiplicityAdapter() { | ||
509 | return null; | ||
510 | } | ||
511 | |||
512 | /** | ||
513 | * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.ExactMultiplicity <em>Exact Multiplicity</em>}'. | ||
514 | * <!-- begin-user-doc --> | ||
515 | * This default implementation returns null so that we can easily ignore cases; | ||
516 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
517 | * <!-- end-user-doc --> | ||
518 | * @return the new adapter. | ||
519 | * @see org.eclipse.viatra.solver.language.model.problem.ExactMultiplicity | ||
520 | * @generated | ||
521 | */ | ||
522 | public Adapter createExactMultiplicityAdapter() { | ||
523 | return null; | ||
524 | } | ||
525 | |||
526 | /** | ||
527 | * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.UnboundedMultiplicity <em>Unbounded Multiplicity</em>}'. | ||
528 | * <!-- begin-user-doc --> | ||
529 | * This default implementation returns null so that we can easily ignore cases; | ||
530 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
531 | * <!-- end-user-doc --> | ||
532 | * @return the new adapter. | ||
533 | * @see org.eclipse.viatra.solver.language.model.problem.UnboundedMultiplicity | ||
534 | * @generated | ||
535 | */ | ||
536 | public Adapter createUnboundedMultiplicityAdapter() { | ||
537 | return null; | ||
538 | } | ||
539 | |||
540 | /** | ||
541 | * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.Argument <em>Argument</em>}'. | ||
542 | * <!-- begin-user-doc --> | ||
543 | * This default implementation returns null so that we can easily ignore cases; | ||
544 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
545 | * <!-- end-user-doc --> | ||
546 | * @return the new adapter. | ||
547 | * @see org.eclipse.viatra.solver.language.model.problem.Argument | ||
548 | * @generated | ||
549 | */ | ||
550 | public Adapter createArgumentAdapter() { | ||
551 | return null; | ||
552 | } | ||
553 | |||
554 | /** | ||
555 | * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.EnumDeclaration <em>Enum Declaration</em>}'. | ||
556 | * <!-- begin-user-doc --> | ||
557 | * This default implementation returns null so that we can easily ignore cases; | ||
558 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
559 | * <!-- end-user-doc --> | ||
560 | * @return the new adapter. | ||
561 | * @see org.eclipse.viatra.solver.language.model.problem.EnumDeclaration | ||
562 | * @generated | ||
563 | */ | ||
564 | public Adapter createEnumDeclarationAdapter() { | ||
565 | return null; | ||
566 | } | ||
567 | |||
568 | /** | ||
569 | * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.VariableOrNode <em>Variable Or Node</em>}'. | ||
570 | * <!-- begin-user-doc --> | ||
571 | * This default implementation returns null so that we can easily ignore cases; | ||
572 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
573 | * <!-- end-user-doc --> | ||
574 | * @return the new adapter. | ||
575 | * @see org.eclipse.viatra.solver.language.model.problem.VariableOrNode | ||
576 | * @generated | ||
577 | */ | ||
578 | public Adapter createVariableOrNodeAdapter() { | ||
579 | return null; | ||
580 | } | ||
581 | |||
582 | /** | ||
583 | * Creates a new adapter for the default case. | ||
584 | * <!-- begin-user-doc --> | ||
585 | * This default implementation returns null. | ||
586 | * <!-- end-user-doc --> | ||
587 | * @return the new adapter. | ||
588 | * @generated | ||
589 | */ | ||
590 | public Adapter createEObjectAdapter() { | ||
591 | return null; | ||
592 | } | ||
593 | |||
594 | } //ProblemAdapterFactory | ||
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/util/ProblemSwitch.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/util/ProblemSwitch.java deleted file mode 100644 index b74718b5..00000000 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/util/ProblemSwitch.java +++ /dev/null | |||
@@ -1,728 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.util; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EObject; | ||
6 | import org.eclipse.emf.ecore.EPackage; | ||
7 | |||
8 | import org.eclipse.emf.ecore.util.Switch; | ||
9 | |||
10 | import org.eclipse.viatra.solver.language.model.problem.*; | ||
11 | |||
12 | /** | ||
13 | * <!-- begin-user-doc --> | ||
14 | * The <b>Switch</b> for the model's inheritance hierarchy. | ||
15 | * It supports the call {@link #doSwitch(EObject) doSwitch(object)} | ||
16 | * to invoke the <code>caseXXX</code> method for each class of the model, | ||
17 | * starting with the actual class of the object | ||
18 | * and proceeding up the inheritance hierarchy | ||
19 | * until a non-null result is returned, | ||
20 | * which is the result of the switch. | ||
21 | * <!-- end-user-doc --> | ||
22 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage | ||
23 | * @generated | ||
24 | */ | ||
25 | public class ProblemSwitch<T> extends Switch<T> { | ||
26 | /** | ||
27 | * The cached model package | ||
28 | * <!-- begin-user-doc --> | ||
29 | * <!-- end-user-doc --> | ||
30 | * @generated | ||
31 | */ | ||
32 | protected static ProblemPackage modelPackage; | ||
33 | |||
34 | /** | ||
35 | * Creates an instance of the switch. | ||
36 | * <!-- begin-user-doc --> | ||
37 | * <!-- end-user-doc --> | ||
38 | * @generated | ||
39 | */ | ||
40 | public ProblemSwitch() { | ||
41 | if (modelPackage == null) { | ||
42 | modelPackage = ProblemPackage.eINSTANCE; | ||
43 | } | ||
44 | } | ||
45 | |||
46 | /** | ||
47 | * Checks whether this is a switch for the given package. | ||
48 | * <!-- begin-user-doc --> | ||
49 | * <!-- end-user-doc --> | ||
50 | * @param ePackage the package in question. | ||
51 | * @return whether this is a switch for the given package. | ||
52 | * @generated | ||
53 | */ | ||
54 | @Override | ||
55 | protected boolean isSwitchFor(EPackage ePackage) { | ||
56 | return ePackage == modelPackage; | ||
57 | } | ||
58 | |||
59 | /** | ||
60 | * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @return the first non-null result returned by a <code>caseXXX</code> call. | ||
64 | * @generated | ||
65 | */ | ||
66 | @Override | ||
67 | protected T doSwitch(int classifierID, EObject theEObject) { | ||
68 | switch (classifierID) { | ||
69 | case ProblemPackage.PROBLEM: { | ||
70 | Problem problem = (Problem) theEObject; | ||
71 | T result = caseProblem(problem); | ||
72 | if (result == null) | ||
73 | result = caseNamedElement(problem); | ||
74 | if (result == null) | ||
75 | result = defaultCase(theEObject); | ||
76 | return result; | ||
77 | } | ||
78 | case ProblemPackage.RELATION: { | ||
79 | Relation relation = (Relation) theEObject; | ||
80 | T result = caseRelation(relation); | ||
81 | if (result == null) | ||
82 | result = caseNamedElement(relation); | ||
83 | if (result == null) | ||
84 | result = defaultCase(theEObject); | ||
85 | return result; | ||
86 | } | ||
87 | case ProblemPackage.CLASS_DECLARATION: { | ||
88 | ClassDeclaration classDeclaration = (ClassDeclaration) theEObject; | ||
89 | T result = caseClassDeclaration(classDeclaration); | ||
90 | if (result == null) | ||
91 | result = caseRelation(classDeclaration); | ||
92 | if (result == null) | ||
93 | result = caseStatement(classDeclaration); | ||
94 | if (result == null) | ||
95 | result = caseNamedElement(classDeclaration); | ||
96 | if (result == null) | ||
97 | result = defaultCase(theEObject); | ||
98 | return result; | ||
99 | } | ||
100 | case ProblemPackage.REFERENCE_DECLARATION: { | ||
101 | ReferenceDeclaration referenceDeclaration = (ReferenceDeclaration) theEObject; | ||
102 | T result = caseReferenceDeclaration(referenceDeclaration); | ||
103 | if (result == null) | ||
104 | result = caseRelation(referenceDeclaration); | ||
105 | if (result == null) | ||
106 | result = caseNamedElement(referenceDeclaration); | ||
107 | if (result == null) | ||
108 | result = defaultCase(theEObject); | ||
109 | return result; | ||
110 | } | ||
111 | case ProblemPackage.NAMED_ELEMENT: { | ||
112 | NamedElement namedElement = (NamedElement) theEObject; | ||
113 | T result = caseNamedElement(namedElement); | ||
114 | if (result == null) | ||
115 | result = defaultCase(theEObject); | ||
116 | return result; | ||
117 | } | ||
118 | case ProblemPackage.PREDICATE_DEFINITION: { | ||
119 | PredicateDefinition predicateDefinition = (PredicateDefinition) theEObject; | ||
120 | T result = casePredicateDefinition(predicateDefinition); | ||
121 | if (result == null) | ||
122 | result = caseRelation(predicateDefinition); | ||
123 | if (result == null) | ||
124 | result = caseStatement(predicateDefinition); | ||
125 | if (result == null) | ||
126 | result = caseNamedElement(predicateDefinition); | ||
127 | if (result == null) | ||
128 | result = defaultCase(theEObject); | ||
129 | return result; | ||
130 | } | ||
131 | case ProblemPackage.PARAMETER: { | ||
132 | Parameter parameter = (Parameter) theEObject; | ||
133 | T result = caseParameter(parameter); | ||
134 | if (result == null) | ||
135 | result = caseVariable(parameter); | ||
136 | if (result == null) | ||
137 | result = caseVariableOrNode(parameter); | ||
138 | if (result == null) | ||
139 | result = caseNamedElement(parameter); | ||
140 | if (result == null) | ||
141 | result = defaultCase(theEObject); | ||
142 | return result; | ||
143 | } | ||
144 | case ProblemPackage.VARIABLE: { | ||
145 | Variable variable = (Variable) theEObject; | ||
146 | T result = caseVariable(variable); | ||
147 | if (result == null) | ||
148 | result = caseVariableOrNode(variable); | ||
149 | if (result == null) | ||
150 | result = caseNamedElement(variable); | ||
151 | if (result == null) | ||
152 | result = defaultCase(theEObject); | ||
153 | return result; | ||
154 | } | ||
155 | case ProblemPackage.CONJUNCTION: { | ||
156 | Conjunction conjunction = (Conjunction) theEObject; | ||
157 | T result = caseConjunction(conjunction); | ||
158 | if (result == null) | ||
159 | result = caseExistentialQuantifier(conjunction); | ||
160 | if (result == null) | ||
161 | result = defaultCase(theEObject); | ||
162 | return result; | ||
163 | } | ||
164 | case ProblemPackage.LITERAL: { | ||
165 | Literal literal = (Literal) theEObject; | ||
166 | T result = caseLiteral(literal); | ||
167 | if (result == null) | ||
168 | result = defaultCase(theEObject); | ||
169 | return result; | ||
170 | } | ||
171 | case ProblemPackage.ATOM: { | ||
172 | Atom atom = (Atom) theEObject; | ||
173 | T result = caseAtom(atom); | ||
174 | if (result == null) | ||
175 | result = caseLiteral(atom); | ||
176 | if (result == null) | ||
177 | result = defaultCase(theEObject); | ||
178 | return result; | ||
179 | } | ||
180 | case ProblemPackage.IMPLICIT_VARIABLE: { | ||
181 | ImplicitVariable implicitVariable = (ImplicitVariable) theEObject; | ||
182 | T result = caseImplicitVariable(implicitVariable); | ||
183 | if (result == null) | ||
184 | result = caseVariable(implicitVariable); | ||
185 | if (result == null) | ||
186 | result = caseVariableOrNode(implicitVariable); | ||
187 | if (result == null) | ||
188 | result = caseNamedElement(implicitVariable); | ||
189 | if (result == null) | ||
190 | result = defaultCase(theEObject); | ||
191 | return result; | ||
192 | } | ||
193 | case ProblemPackage.NEGATIVE_LITERAL: { | ||
194 | NegativeLiteral negativeLiteral = (NegativeLiteral) theEObject; | ||
195 | T result = caseNegativeLiteral(negativeLiteral); | ||
196 | if (result == null) | ||
197 | result = caseExistentialQuantifier(negativeLiteral); | ||
198 | if (result == null) | ||
199 | result = caseLiteral(negativeLiteral); | ||
200 | if (result == null) | ||
201 | result = defaultCase(theEObject); | ||
202 | return result; | ||
203 | } | ||
204 | case ProblemPackage.EXISTENTIAL_QUANTIFIER: { | ||
205 | ExistentialQuantifier existentialQuantifier = (ExistentialQuantifier) theEObject; | ||
206 | T result = caseExistentialQuantifier(existentialQuantifier); | ||
207 | if (result == null) | ||
208 | result = defaultCase(theEObject); | ||
209 | return result; | ||
210 | } | ||
211 | case ProblemPackage.ASSERTION: { | ||
212 | Assertion assertion = (Assertion) theEObject; | ||
213 | T result = caseAssertion(assertion); | ||
214 | if (result == null) | ||
215 | result = caseStatement(assertion); | ||
216 | if (result == null) | ||
217 | result = defaultCase(theEObject); | ||
218 | return result; | ||
219 | } | ||
220 | case ProblemPackage.NODE: { | ||
221 | Node node = (Node) theEObject; | ||
222 | T result = caseNode(node); | ||
223 | if (result == null) | ||
224 | result = caseVariableOrNode(node); | ||
225 | if (result == null) | ||
226 | result = caseNamedElement(node); | ||
227 | if (result == null) | ||
228 | result = defaultCase(theEObject); | ||
229 | return result; | ||
230 | } | ||
231 | case ProblemPackage.SCOPE_DECLARATION: { | ||
232 | ScopeDeclaration scopeDeclaration = (ScopeDeclaration) theEObject; | ||
233 | T result = caseScopeDeclaration(scopeDeclaration); | ||
234 | if (result == null) | ||
235 | result = caseStatement(scopeDeclaration); | ||
236 | if (result == null) | ||
237 | result = defaultCase(theEObject); | ||
238 | return result; | ||
239 | } | ||
240 | case ProblemPackage.STATEMENT: { | ||
241 | Statement statement = (Statement) theEObject; | ||
242 | T result = caseStatement(statement); | ||
243 | if (result == null) | ||
244 | result = defaultCase(theEObject); | ||
245 | return result; | ||
246 | } | ||
247 | case ProblemPackage.TYPE_SCOPE: { | ||
248 | TypeScope typeScope = (TypeScope) theEObject; | ||
249 | T result = caseTypeScope(typeScope); | ||
250 | if (result == null) | ||
251 | result = defaultCase(theEObject); | ||
252 | return result; | ||
253 | } | ||
254 | case ProblemPackage.MULTIPLICITY: { | ||
255 | Multiplicity multiplicity = (Multiplicity) theEObject; | ||
256 | T result = caseMultiplicity(multiplicity); | ||
257 | if (result == null) | ||
258 | result = defaultCase(theEObject); | ||
259 | return result; | ||
260 | } | ||
261 | case ProblemPackage.RANGE_MULTIPLICITY: { | ||
262 | RangeMultiplicity rangeMultiplicity = (RangeMultiplicity) theEObject; | ||
263 | T result = caseRangeMultiplicity(rangeMultiplicity); | ||
264 | if (result == null) | ||
265 | result = caseMultiplicity(rangeMultiplicity); | ||
266 | if (result == null) | ||
267 | result = defaultCase(theEObject); | ||
268 | return result; | ||
269 | } | ||
270 | case ProblemPackage.EXACT_MULTIPLICITY: { | ||
271 | ExactMultiplicity exactMultiplicity = (ExactMultiplicity) theEObject; | ||
272 | T result = caseExactMultiplicity(exactMultiplicity); | ||
273 | if (result == null) | ||
274 | result = caseMultiplicity(exactMultiplicity); | ||
275 | if (result == null) | ||
276 | result = defaultCase(theEObject); | ||
277 | return result; | ||
278 | } | ||
279 | case ProblemPackage.UNBOUNDED_MULTIPLICITY: { | ||
280 | UnboundedMultiplicity unboundedMultiplicity = (UnboundedMultiplicity) theEObject; | ||
281 | T result = caseUnboundedMultiplicity(unboundedMultiplicity); | ||
282 | if (result == null) | ||
283 | result = caseMultiplicity(unboundedMultiplicity); | ||
284 | if (result == null) | ||
285 | result = defaultCase(theEObject); | ||
286 | return result; | ||
287 | } | ||
288 | case ProblemPackage.ARGUMENT: { | ||
289 | Argument argument = (Argument) theEObject; | ||
290 | T result = caseArgument(argument); | ||
291 | if (result == null) | ||
292 | result = defaultCase(theEObject); | ||
293 | return result; | ||
294 | } | ||
295 | case ProblemPackage.ENUM_DECLARATION: { | ||
296 | EnumDeclaration enumDeclaration = (EnumDeclaration) theEObject; | ||
297 | T result = caseEnumDeclaration(enumDeclaration); | ||
298 | if (result == null) | ||
299 | result = caseRelation(enumDeclaration); | ||
300 | if (result == null) | ||
301 | result = caseStatement(enumDeclaration); | ||
302 | if (result == null) | ||
303 | result = caseNamedElement(enumDeclaration); | ||
304 | if (result == null) | ||
305 | result = defaultCase(theEObject); | ||
306 | return result; | ||
307 | } | ||
308 | case ProblemPackage.VARIABLE_OR_NODE: { | ||
309 | VariableOrNode variableOrNode = (VariableOrNode) theEObject; | ||
310 | T result = caseVariableOrNode(variableOrNode); | ||
311 | if (result == null) | ||
312 | result = caseNamedElement(variableOrNode); | ||
313 | if (result == null) | ||
314 | result = defaultCase(theEObject); | ||
315 | return result; | ||
316 | } | ||
317 | default: | ||
318 | return defaultCase(theEObject); | ||
319 | } | ||
320 | } | ||
321 | |||
322 | /** | ||
323 | * Returns the result of interpreting the object as an instance of '<em>Problem</em>'. | ||
324 | * <!-- begin-user-doc --> | ||
325 | * This implementation returns null; | ||
326 | * returning a non-null result will terminate the switch. | ||
327 | * <!-- end-user-doc --> | ||
328 | * @param object the target of the switch. | ||
329 | * @return the result of interpreting the object as an instance of '<em>Problem</em>'. | ||
330 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
331 | * @generated | ||
332 | */ | ||
333 | public T caseProblem(Problem object) { | ||
334 | return null; | ||
335 | } | ||
336 | |||
337 | /** | ||
338 | * Returns the result of interpreting the object as an instance of '<em>Relation</em>'. | ||
339 | * <!-- begin-user-doc --> | ||
340 | * This implementation returns null; | ||
341 | * returning a non-null result will terminate the switch. | ||
342 | * <!-- end-user-doc --> | ||
343 | * @param object the target of the switch. | ||
344 | * @return the result of interpreting the object as an instance of '<em>Relation</em>'. | ||
345 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
346 | * @generated | ||
347 | */ | ||
348 | public T caseRelation(Relation object) { | ||
349 | return null; | ||
350 | } | ||
351 | |||
352 | /** | ||
353 | * Returns the result of interpreting the object as an instance of '<em>Class Declaration</em>'. | ||
354 | * <!-- begin-user-doc --> | ||
355 | * This implementation returns null; | ||
356 | * returning a non-null result will terminate the switch. | ||
357 | * <!-- end-user-doc --> | ||
358 | * @param object the target of the switch. | ||
359 | * @return the result of interpreting the object as an instance of '<em>Class Declaration</em>'. | ||
360 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
361 | * @generated | ||
362 | */ | ||
363 | public T caseClassDeclaration(ClassDeclaration object) { | ||
364 | return null; | ||
365 | } | ||
366 | |||
367 | /** | ||
368 | * Returns the result of interpreting the object as an instance of '<em>Reference Declaration</em>'. | ||
369 | * <!-- begin-user-doc --> | ||
370 | * This implementation returns null; | ||
371 | * returning a non-null result will terminate the switch. | ||
372 | * <!-- end-user-doc --> | ||
373 | * @param object the target of the switch. | ||
374 | * @return the result of interpreting the object as an instance of '<em>Reference Declaration</em>'. | ||
375 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
376 | * @generated | ||
377 | */ | ||
378 | public T caseReferenceDeclaration(ReferenceDeclaration object) { | ||
379 | return null; | ||
380 | } | ||
381 | |||
382 | /** | ||
383 | * Returns the result of interpreting the object as an instance of '<em>Named Element</em>'. | ||
384 | * <!-- begin-user-doc --> | ||
385 | * This implementation returns null; | ||
386 | * returning a non-null result will terminate the switch. | ||
387 | * <!-- end-user-doc --> | ||
388 | * @param object the target of the switch. | ||
389 | * @return the result of interpreting the object as an instance of '<em>Named Element</em>'. | ||
390 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
391 | * @generated | ||
392 | */ | ||
393 | public T caseNamedElement(NamedElement object) { | ||
394 | return null; | ||
395 | } | ||
396 | |||
397 | /** | ||
398 | * Returns the result of interpreting the object as an instance of '<em>Predicate Definition</em>'. | ||
399 | * <!-- begin-user-doc --> | ||
400 | * This implementation returns null; | ||
401 | * returning a non-null result will terminate the switch. | ||
402 | * <!-- end-user-doc --> | ||
403 | * @param object the target of the switch. | ||
404 | * @return the result of interpreting the object as an instance of '<em>Predicate Definition</em>'. | ||
405 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
406 | * @generated | ||
407 | */ | ||
408 | public T casePredicateDefinition(PredicateDefinition object) { | ||
409 | return null; | ||
410 | } | ||
411 | |||
412 | /** | ||
413 | * Returns the result of interpreting the object as an instance of '<em>Parameter</em>'. | ||
414 | * <!-- begin-user-doc --> | ||
415 | * This implementation returns null; | ||
416 | * returning a non-null result will terminate the switch. | ||
417 | * <!-- end-user-doc --> | ||
418 | * @param object the target of the switch. | ||
419 | * @return the result of interpreting the object as an instance of '<em>Parameter</em>'. | ||
420 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
421 | * @generated | ||
422 | */ | ||
423 | public T caseParameter(Parameter object) { | ||
424 | return null; | ||
425 | } | ||
426 | |||
427 | /** | ||
428 | * Returns the result of interpreting the object as an instance of '<em>Variable</em>'. | ||
429 | * <!-- begin-user-doc --> | ||
430 | * This implementation returns null; | ||
431 | * returning a non-null result will terminate the switch. | ||
432 | * <!-- end-user-doc --> | ||
433 | * @param object the target of the switch. | ||
434 | * @return the result of interpreting the object as an instance of '<em>Variable</em>'. | ||
435 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
436 | * @generated | ||
437 | */ | ||
438 | public T caseVariable(Variable object) { | ||
439 | return null; | ||
440 | } | ||
441 | |||
442 | /** | ||
443 | * Returns the result of interpreting the object as an instance of '<em>Conjunction</em>'. | ||
444 | * <!-- begin-user-doc --> | ||
445 | * This implementation returns null; | ||
446 | * returning a non-null result will terminate the switch. | ||
447 | * <!-- end-user-doc --> | ||
448 | * @param object the target of the switch. | ||
449 | * @return the result of interpreting the object as an instance of '<em>Conjunction</em>'. | ||
450 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
451 | * @generated | ||
452 | */ | ||
453 | public T caseConjunction(Conjunction object) { | ||
454 | return null; | ||
455 | } | ||
456 | |||
457 | /** | ||
458 | * Returns the result of interpreting the object as an instance of '<em>Literal</em>'. | ||
459 | * <!-- begin-user-doc --> | ||
460 | * This implementation returns null; | ||
461 | * returning a non-null result will terminate the switch. | ||
462 | * <!-- end-user-doc --> | ||
463 | * @param object the target of the switch. | ||
464 | * @return the result of interpreting the object as an instance of '<em>Literal</em>'. | ||
465 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
466 | * @generated | ||
467 | */ | ||
468 | public T caseLiteral(Literal object) { | ||
469 | return null; | ||
470 | } | ||
471 | |||
472 | /** | ||
473 | * Returns the result of interpreting the object as an instance of '<em>Atom</em>'. | ||
474 | * <!-- begin-user-doc --> | ||
475 | * This implementation returns null; | ||
476 | * returning a non-null result will terminate the switch. | ||
477 | * <!-- end-user-doc --> | ||
478 | * @param object the target of the switch. | ||
479 | * @return the result of interpreting the object as an instance of '<em>Atom</em>'. | ||
480 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
481 | * @generated | ||
482 | */ | ||
483 | public T caseAtom(Atom object) { | ||
484 | return null; | ||
485 | } | ||
486 | |||
487 | /** | ||
488 | * Returns the result of interpreting the object as an instance of '<em>Implicit Variable</em>'. | ||
489 | * <!-- begin-user-doc --> | ||
490 | * This implementation returns null; | ||
491 | * returning a non-null result will terminate the switch. | ||
492 | * <!-- end-user-doc --> | ||
493 | * @param object the target of the switch. | ||
494 | * @return the result of interpreting the object as an instance of '<em>Implicit Variable</em>'. | ||
495 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
496 | * @generated | ||
497 | */ | ||
498 | public T caseImplicitVariable(ImplicitVariable object) { | ||
499 | return null; | ||
500 | } | ||
501 | |||
502 | /** | ||
503 | * Returns the result of interpreting the object as an instance of '<em>Negative Literal</em>'. | ||
504 | * <!-- begin-user-doc --> | ||
505 | * This implementation returns null; | ||
506 | * returning a non-null result will terminate the switch. | ||
507 | * <!-- end-user-doc --> | ||
508 | * @param object the target of the switch. | ||
509 | * @return the result of interpreting the object as an instance of '<em>Negative Literal</em>'. | ||
510 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
511 | * @generated | ||
512 | */ | ||
513 | public T caseNegativeLiteral(NegativeLiteral object) { | ||
514 | return null; | ||
515 | } | ||
516 | |||
517 | /** | ||
518 | * Returns the result of interpreting the object as an instance of '<em>Existential Quantifier</em>'. | ||
519 | * <!-- begin-user-doc --> | ||
520 | * This implementation returns null; | ||
521 | * returning a non-null result will terminate the switch. | ||
522 | * <!-- end-user-doc --> | ||
523 | * @param object the target of the switch. | ||
524 | * @return the result of interpreting the object as an instance of '<em>Existential Quantifier</em>'. | ||
525 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
526 | * @generated | ||
527 | */ | ||
528 | public T caseExistentialQuantifier(ExistentialQuantifier object) { | ||
529 | return null; | ||
530 | } | ||
531 | |||
532 | /** | ||
533 | * Returns the result of interpreting the object as an instance of '<em>Assertion</em>'. | ||
534 | * <!-- begin-user-doc --> | ||
535 | * This implementation returns null; | ||
536 | * returning a non-null result will terminate the switch. | ||
537 | * <!-- end-user-doc --> | ||
538 | * @param object the target of the switch. | ||
539 | * @return the result of interpreting the object as an instance of '<em>Assertion</em>'. | ||
540 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
541 | * @generated | ||
542 | */ | ||
543 | public T caseAssertion(Assertion object) { | ||
544 | return null; | ||
545 | } | ||
546 | |||
547 | /** | ||
548 | * Returns the result of interpreting the object as an instance of '<em>Node</em>'. | ||
549 | * <!-- begin-user-doc --> | ||
550 | * This implementation returns null; | ||
551 | * returning a non-null result will terminate the switch. | ||
552 | * <!-- end-user-doc --> | ||
553 | * @param object the target of the switch. | ||
554 | * @return the result of interpreting the object as an instance of '<em>Node</em>'. | ||
555 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
556 | * @generated | ||
557 | */ | ||
558 | public T caseNode(Node object) { | ||
559 | return null; | ||
560 | } | ||
561 | |||
562 | /** | ||
563 | * Returns the result of interpreting the object as an instance of '<em>Scope Declaration</em>'. | ||
564 | * <!-- begin-user-doc --> | ||
565 | * This implementation returns null; | ||
566 | * returning a non-null result will terminate the switch. | ||
567 | * <!-- end-user-doc --> | ||
568 | * @param object the target of the switch. | ||
569 | * @return the result of interpreting the object as an instance of '<em>Scope Declaration</em>'. | ||
570 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
571 | * @generated | ||
572 | */ | ||
573 | public T caseScopeDeclaration(ScopeDeclaration object) { | ||
574 | return null; | ||
575 | } | ||
576 | |||
577 | /** | ||
578 | * Returns the result of interpreting the object as an instance of '<em>Statement</em>'. | ||
579 | * <!-- begin-user-doc --> | ||
580 | * This implementation returns null; | ||
581 | * returning a non-null result will terminate the switch. | ||
582 | * <!-- end-user-doc --> | ||
583 | * @param object the target of the switch. | ||
584 | * @return the result of interpreting the object as an instance of '<em>Statement</em>'. | ||
585 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
586 | * @generated | ||
587 | */ | ||
588 | public T caseStatement(Statement object) { | ||
589 | return null; | ||
590 | } | ||
591 | |||
592 | /** | ||
593 | * Returns the result of interpreting the object as an instance of '<em>Type Scope</em>'. | ||
594 | * <!-- begin-user-doc --> | ||
595 | * This implementation returns null; | ||
596 | * returning a non-null result will terminate the switch. | ||
597 | * <!-- end-user-doc --> | ||
598 | * @param object the target of the switch. | ||
599 | * @return the result of interpreting the object as an instance of '<em>Type Scope</em>'. | ||
600 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
601 | * @generated | ||
602 | */ | ||
603 | public T caseTypeScope(TypeScope object) { | ||
604 | return null; | ||
605 | } | ||
606 | |||
607 | /** | ||
608 | * Returns the result of interpreting the object as an instance of '<em>Multiplicity</em>'. | ||
609 | * <!-- begin-user-doc --> | ||
610 | * This implementation returns null; | ||
611 | * returning a non-null result will terminate the switch. | ||
612 | * <!-- end-user-doc --> | ||
613 | * @param object the target of the switch. | ||
614 | * @return the result of interpreting the object as an instance of '<em>Multiplicity</em>'. | ||
615 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
616 | * @generated | ||
617 | */ | ||
618 | public T caseMultiplicity(Multiplicity object) { | ||
619 | return null; | ||
620 | } | ||
621 | |||
622 | /** | ||
623 | * Returns the result of interpreting the object as an instance of '<em>Range Multiplicity</em>'. | ||
624 | * <!-- begin-user-doc --> | ||
625 | * This implementation returns null; | ||
626 | * returning a non-null result will terminate the switch. | ||
627 | * <!-- end-user-doc --> | ||
628 | * @param object the target of the switch. | ||
629 | * @return the result of interpreting the object as an instance of '<em>Range Multiplicity</em>'. | ||
630 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
631 | * @generated | ||
632 | */ | ||
633 | public T caseRangeMultiplicity(RangeMultiplicity object) { | ||
634 | return null; | ||
635 | } | ||
636 | |||
637 | /** | ||
638 | * Returns the result of interpreting the object as an instance of '<em>Exact Multiplicity</em>'. | ||
639 | * <!-- begin-user-doc --> | ||
640 | * This implementation returns null; | ||
641 | * returning a non-null result will terminate the switch. | ||
642 | * <!-- end-user-doc --> | ||
643 | * @param object the target of the switch. | ||
644 | * @return the result of interpreting the object as an instance of '<em>Exact Multiplicity</em>'. | ||
645 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
646 | * @generated | ||
647 | */ | ||
648 | public T caseExactMultiplicity(ExactMultiplicity object) { | ||
649 | return null; | ||
650 | } | ||
651 | |||
652 | /** | ||
653 | * Returns the result of interpreting the object as an instance of '<em>Unbounded Multiplicity</em>'. | ||
654 | * <!-- begin-user-doc --> | ||
655 | * This implementation returns null; | ||
656 | * returning a non-null result will terminate the switch. | ||
657 | * <!-- end-user-doc --> | ||
658 | * @param object the target of the switch. | ||
659 | * @return the result of interpreting the object as an instance of '<em>Unbounded Multiplicity</em>'. | ||
660 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
661 | * @generated | ||
662 | */ | ||
663 | public T caseUnboundedMultiplicity(UnboundedMultiplicity object) { | ||
664 | return null; | ||
665 | } | ||
666 | |||
667 | /** | ||
668 | * Returns the result of interpreting the object as an instance of '<em>Argument</em>'. | ||
669 | * <!-- begin-user-doc --> | ||
670 | * This implementation returns null; | ||
671 | * returning a non-null result will terminate the switch. | ||
672 | * <!-- end-user-doc --> | ||
673 | * @param object the target of the switch. | ||
674 | * @return the result of interpreting the object as an instance of '<em>Argument</em>'. | ||
675 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
676 | * @generated | ||
677 | */ | ||
678 | public T caseArgument(Argument object) { | ||
679 | return null; | ||
680 | } | ||
681 | |||
682 | /** | ||
683 | * Returns the result of interpreting the object as an instance of '<em>Enum Declaration</em>'. | ||
684 | * <!-- begin-user-doc --> | ||
685 | * This implementation returns null; | ||
686 | * returning a non-null result will terminate the switch. | ||
687 | * <!-- end-user-doc --> | ||
688 | * @param object the target of the switch. | ||
689 | * @return the result of interpreting the object as an instance of '<em>Enum Declaration</em>'. | ||
690 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
691 | * @generated | ||
692 | */ | ||
693 | public T caseEnumDeclaration(EnumDeclaration object) { | ||
694 | return null; | ||
695 | } | ||
696 | |||
697 | /** | ||
698 | * Returns the result of interpreting the object as an instance of '<em>Variable Or Node</em>'. | ||
699 | * <!-- begin-user-doc --> | ||
700 | * This implementation returns null; | ||
701 | * returning a non-null result will terminate the switch. | ||
702 | * <!-- end-user-doc --> | ||
703 | * @param object the target of the switch. | ||
704 | * @return the result of interpreting the object as an instance of '<em>Variable Or Node</em>'. | ||
705 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
706 | * @generated | ||
707 | */ | ||
708 | public T caseVariableOrNode(VariableOrNode object) { | ||
709 | return null; | ||
710 | } | ||
711 | |||
712 | /** | ||
713 | * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. | ||
714 | * <!-- begin-user-doc --> | ||
715 | * This implementation returns null; | ||
716 | * returning a non-null result will terminate the switch, but this is the last case anyway. | ||
717 | * <!-- end-user-doc --> | ||
718 | * @param object the target of the switch. | ||
719 | * @return the result of interpreting the object as an instance of '<em>EObject</em>'. | ||
720 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) | ||
721 | * @generated | ||
722 | */ | ||
723 | @Override | ||
724 | public T defaultCase(EObject object) { | ||
725 | return null; | ||
726 | } | ||
727 | |||
728 | } //ProblemSwitch | ||
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/resources/model/problem.ecore b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/resources/model/problem.ecore deleted file mode 100644 index 99404f61..00000000 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/resources/model/problem.ecore +++ /dev/null | |||
@@ -1,107 +0,0 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
3 | xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="problem" nsURI="http://www.eclipse.org/viatra/solver/language/model/Problem" | ||
4 | nsPrefix="problem"> | ||
5 | <eClassifiers xsi:type="ecore:EClass" name="Problem" eSuperTypes="#//NamedElement"> | ||
6 | <eStructuralFeatures xsi:type="ecore:EReference" name="nodes" upperBound="-1" | ||
7 | eType="#//Node" containment="true"/> | ||
8 | <eStructuralFeatures xsi:type="ecore:EReference" name="statements" upperBound="-1" | ||
9 | eType="#//Statement" containment="true"/> | ||
10 | </eClassifiers> | ||
11 | <eClassifiers xsi:type="ecore:EClass" name="Relation" abstract="true" eSuperTypes="#//NamedElement"/> | ||
12 | <eClassifiers xsi:type="ecore:EClass" name="ClassDeclaration" eSuperTypes="#//Relation #//Statement"> | ||
13 | <eStructuralFeatures xsi:type="ecore:EAttribute" name="abstract" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/> | ||
14 | <eStructuralFeatures xsi:type="ecore:EReference" name="superTypes" upperBound="-1" | ||
15 | eType="#//Relation"/> | ||
16 | <eStructuralFeatures xsi:type="ecore:EReference" name="referenceDeclarations" | ||
17 | upperBound="-1" eType="#//ReferenceDeclaration" containment="true"/> | ||
18 | <eStructuralFeatures xsi:type="ecore:EReference" name="newNode" eType="#//Node" | ||
19 | containment="true"/> | ||
20 | </eClassifiers> | ||
21 | <eClassifiers xsi:type="ecore:EClass" name="ReferenceDeclaration" eSuperTypes="#//Relation"> | ||
22 | <eStructuralFeatures xsi:type="ecore:EReference" name="referenceType" eType="#//Relation"/> | ||
23 | <eStructuralFeatures xsi:type="ecore:EReference" name="opposite" eType="#//ReferenceDeclaration"/> | ||
24 | <eStructuralFeatures xsi:type="ecore:EAttribute" name="containment" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/> | ||
25 | <eStructuralFeatures xsi:type="ecore:EReference" name="multiplicity" eType="#//Multiplicity" | ||
26 | containment="true"/> | ||
27 | </eClassifiers> | ||
28 | <eClassifiers xsi:type="ecore:EClass" name="NamedElement" abstract="true"> | ||
29 | <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> | ||
30 | </eClassifiers> | ||
31 | <eClassifiers xsi:type="ecore:EClass" name="PredicateDefinition" eSuperTypes="#//Relation #//Statement"> | ||
32 | <eStructuralFeatures xsi:type="ecore:EAttribute" name="error" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/> | ||
33 | <eStructuralFeatures xsi:type="ecore:EReference" name="parameters" upperBound="-1" | ||
34 | eType="#//Parameter" containment="true"/> | ||
35 | <eStructuralFeatures xsi:type="ecore:EReference" name="bodies" upperBound="-1" | ||
36 | eType="#//Conjunction" containment="true"/> | ||
37 | </eClassifiers> | ||
38 | <eClassifiers xsi:type="ecore:EClass" name="Parameter" eSuperTypes="#//Variable"> | ||
39 | <eStructuralFeatures xsi:type="ecore:EReference" name="parameterType" eType="#//Relation"/> | ||
40 | </eClassifiers> | ||
41 | <eClassifiers xsi:type="ecore:EClass" name="Variable" abstract="true" eSuperTypes="#//VariableOrNode"/> | ||
42 | <eClassifiers xsi:type="ecore:EClass" name="Conjunction" eSuperTypes="#//ExistentialQuantifier"> | ||
43 | <eStructuralFeatures xsi:type="ecore:EReference" name="literals" upperBound="-1" | ||
44 | eType="#//Literal" containment="true"/> | ||
45 | </eClassifiers> | ||
46 | <eClassifiers xsi:type="ecore:EClass" name="Literal" abstract="true"/> | ||
47 | <eClassifiers xsi:type="ecore:EClass" name="Atom" eSuperTypes="#//Literal"> | ||
48 | <eStructuralFeatures xsi:type="ecore:EReference" name="relation" eType="#//Relation"/> | ||
49 | <eStructuralFeatures xsi:type="ecore:EAttribute" name="transitiveClosure" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/> | ||
50 | <eStructuralFeatures xsi:type="ecore:EReference" name="arguments" upperBound="-1" | ||
51 | eType="#//Argument" containment="true"/> | ||
52 | </eClassifiers> | ||
53 | <eClassifiers xsi:type="ecore:EClass" name="ImplicitVariable" eSuperTypes="#//Variable"/> | ||
54 | <eClassifiers xsi:type="ecore:EClass" name="NegativeLiteral" eSuperTypes="#//ExistentialQuantifier #//Literal"> | ||
55 | <eStructuralFeatures xsi:type="ecore:EReference" name="atom" eType="#//Atom" containment="true"/> | ||
56 | </eClassifiers> | ||
57 | <eClassifiers xsi:type="ecore:EClass" name="ExistentialQuantifier" abstract="true" | ||
58 | interface="true"> | ||
59 | <eStructuralFeatures xsi:type="ecore:EReference" name="implicitVariables" upperBound="-1" | ||
60 | eType="#//ImplicitVariable" containment="true"/> | ||
61 | </eClassifiers> | ||
62 | <eClassifiers xsi:type="ecore:EClass" name="Assertion" eSuperTypes="#//Statement"> | ||
63 | <eStructuralFeatures xsi:type="ecore:EReference" name="relation" eType="#//Relation"/> | ||
64 | <eStructuralFeatures xsi:type="ecore:EReference" name="arguments" upperBound="-1" | ||
65 | eType="#//Node"/> | ||
66 | <eStructuralFeatures xsi:type="ecore:EAttribute" name="value" eType="#//LogicValue"/> | ||
67 | </eClassifiers> | ||
68 | <eClassifiers xsi:type="ecore:EClass" name="Node" eSuperTypes="#//VariableOrNode"/> | ||
69 | <eClassifiers xsi:type="ecore:EEnum" name="LogicValue"> | ||
70 | <eLiterals name="TRUE" literal="TRUE"/> | ||
71 | <eLiterals name="FALSE" value="1"/> | ||
72 | <eLiterals name="UNKNOWN" value="2"/> | ||
73 | </eClassifiers> | ||
74 | <eClassifiers xsi:type="ecore:EClass" name="ScopeDeclaration" eSuperTypes="#//Statement"> | ||
75 | <eStructuralFeatures xsi:type="ecore:EReference" name="typeScopes" upperBound="-1" | ||
76 | eType="#//TypeScope" containment="true"/> | ||
77 | </eClassifiers> | ||
78 | <eClassifiers xsi:type="ecore:EClass" name="Statement" abstract="true" interface="true"/> | ||
79 | <eClassifiers xsi:type="ecore:EClass" name="TypeScope"> | ||
80 | <eStructuralFeatures xsi:type="ecore:EReference" name="targetType" eType="#//ClassDeclaration"/> | ||
81 | <eStructuralFeatures xsi:type="ecore:EAttribute" name="increment" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/> | ||
82 | <eStructuralFeatures xsi:type="ecore:EReference" name="multiplicity" eType="#//Multiplicity" | ||
83 | containment="true"/> | ||
84 | </eClassifiers> | ||
85 | <eClassifiers xsi:type="ecore:EClass" name="Multiplicity" abstract="true"/> | ||
86 | <eClassifiers xsi:type="ecore:EClass" name="RangeMultiplicity" eSuperTypes="#//Multiplicity"> | ||
87 | <eStructuralFeatures xsi:type="ecore:EAttribute" name="lowerBound" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt" | ||
88 | defaultValueLiteral="0"/> | ||
89 | <eStructuralFeatures xsi:type="ecore:EAttribute" name="upperBound" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt" | ||
90 | defaultValueLiteral="-1"/> | ||
91 | </eClassifiers> | ||
92 | <eClassifiers xsi:type="ecore:EClass" name="ExactMultiplicity" eSuperTypes="#//Multiplicity"> | ||
93 | <eStructuralFeatures xsi:type="ecore:EAttribute" name="exactValue" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt" | ||
94 | defaultValueLiteral="1"/> | ||
95 | </eClassifiers> | ||
96 | <eClassifiers xsi:type="ecore:EClass" name="UnboundedMultiplicity" eSuperTypes="#//Multiplicity"/> | ||
97 | <eClassifiers xsi:type="ecore:EClass" name="Argument"> | ||
98 | <eStructuralFeatures xsi:type="ecore:EReference" name="variableOrNode" eType="#//VariableOrNode"/> | ||
99 | <eStructuralFeatures xsi:type="ecore:EReference" name="singletonVariable" eType="#//ImplicitVariable" | ||
100 | containment="true"/> | ||
101 | </eClassifiers> | ||
102 | <eClassifiers xsi:type="ecore:EClass" name="EnumDeclaration" eSuperTypes="#//Relation #//Statement"> | ||
103 | <eStructuralFeatures xsi:type="ecore:EReference" name="literals" upperBound="-1" | ||
104 | eType="#//Node" containment="true"/> | ||
105 | </eClassifiers> | ||
106 | <eClassifiers xsi:type="ecore:EClass" name="VariableOrNode" abstract="true" eSuperTypes="#//NamedElement"/> | ||
107 | </ecore:EPackage> | ||
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/resources/model/problem.genmodel b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/resources/model/problem.genmodel deleted file mode 100644 index 2eb9a988..00000000 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/resources/model/problem.genmodel +++ /dev/null | |||
@@ -1,97 +0,0 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <genmodel:GenModel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
3 | xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" | ||
4 | modelDirectory="/org.eclipse.viatra.solver.language.model/src/main/emf-gen" | ||
5 | creationIcons="false" editDirectory="/org.eclipse.viatra.solver.language.model.edit/src-gen" | ||
6 | editorDirectory="/org.eclipse.viatra.solver.language.model.editor/src-gen" modelPluginID="org.eclipse.viatra.solver.language.model" | ||
7 | modelName="Problem" rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container" | ||
8 | codeFormatting="true" importerID="org.eclipse.emf.importer.ecore" complianceLevel="5.0" | ||
9 | copyrightFields="false" operationReflection="true" importOrganizing="true"> | ||
10 | <foreignModel>problem.ecore</foreignModel> | ||
11 | <testsDirectory xsi:nil="true"/> | ||
12 | <genPackages prefix="Problem" basePackage="org.eclipse.viatra.solver.language.model" | ||
13 | disposableProviderFactory="true" ecorePackage="problem.ecore#/"> | ||
14 | <genEnums typeSafeEnumCompatible="false" ecoreEnum="problem.ecore#//LogicValue"> | ||
15 | <genEnumLiterals ecoreEnumLiteral="problem.ecore#//LogicValue/TRUE"/> | ||
16 | <genEnumLiterals ecoreEnumLiteral="problem.ecore#//LogicValue/FALSE"/> | ||
17 | <genEnumLiterals ecoreEnumLiteral="problem.ecore#//LogicValue/UNKNOWN"/> | ||
18 | </genEnums> | ||
19 | <genClasses ecoreClass="problem.ecore#//Problem"> | ||
20 | <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference problem.ecore#//Problem/nodes"/> | ||
21 | <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference problem.ecore#//Problem/statements"/> | ||
22 | </genClasses> | ||
23 | <genClasses ecoreClass="problem.ecore#//Relation"/> | ||
24 | <genClasses ecoreClass="problem.ecore#//ClassDeclaration"> | ||
25 | <genFeatures createChild="false" ecoreFeature="ecore:EAttribute problem.ecore#//ClassDeclaration/abstract"/> | ||
26 | <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference problem.ecore#//ClassDeclaration/superTypes"/> | ||
27 | <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference problem.ecore#//ClassDeclaration/referenceDeclarations"/> | ||
28 | <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference problem.ecore#//ClassDeclaration/newNode"/> | ||
29 | </genClasses> | ||
30 | <genClasses ecoreClass="problem.ecore#//ReferenceDeclaration"> | ||
31 | <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference problem.ecore#//ReferenceDeclaration/referenceType"/> | ||
32 | <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference problem.ecore#//ReferenceDeclaration/opposite"/> | ||
33 | <genFeatures createChild="false" ecoreFeature="ecore:EAttribute problem.ecore#//ReferenceDeclaration/containment"/> | ||
34 | <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference problem.ecore#//ReferenceDeclaration/multiplicity"/> | ||
35 | </genClasses> | ||
36 | <genClasses ecoreClass="problem.ecore#//NamedElement"> | ||
37 | <genFeatures createChild="false" ecoreFeature="ecore:EAttribute problem.ecore#//NamedElement/name"/> | ||
38 | </genClasses> | ||
39 | <genClasses ecoreClass="problem.ecore#//PredicateDefinition"> | ||
40 | <genFeatures createChild="false" ecoreFeature="ecore:EAttribute problem.ecore#//PredicateDefinition/error"/> | ||
41 | <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference problem.ecore#//PredicateDefinition/parameters"/> | ||
42 | <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference problem.ecore#//PredicateDefinition/bodies"/> | ||
43 | </genClasses> | ||
44 | <genClasses ecoreClass="problem.ecore#//Parameter"> | ||
45 | <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference problem.ecore#//Parameter/parameterType"/> | ||
46 | </genClasses> | ||
47 | <genClasses ecoreClass="problem.ecore#//Variable"/> | ||
48 | <genClasses ecoreClass="problem.ecore#//Conjunction"> | ||
49 | <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference problem.ecore#//Conjunction/literals"/> | ||
50 | </genClasses> | ||
51 | <genClasses ecoreClass="problem.ecore#//Literal"/> | ||
52 | <genClasses ecoreClass="problem.ecore#//Atom"> | ||
53 | <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference problem.ecore#//Atom/relation"/> | ||
54 | <genFeatures createChild="false" ecoreFeature="ecore:EAttribute problem.ecore#//Atom/transitiveClosure"/> | ||
55 | <genFeatures children="true" createChild="true" propertySortChoices="true" ecoreFeature="ecore:EReference problem.ecore#//Atom/arguments"/> | ||
56 | </genClasses> | ||
57 | <genClasses ecoreClass="problem.ecore#//ImplicitVariable"/> | ||
58 | <genClasses ecoreClass="problem.ecore#//NegativeLiteral"> | ||
59 | <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference problem.ecore#//NegativeLiteral/atom"/> | ||
60 | </genClasses> | ||
61 | <genClasses ecoreClass="problem.ecore#//ExistentialQuantifier"> | ||
62 | <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference problem.ecore#//ExistentialQuantifier/implicitVariables"/> | ||
63 | </genClasses> | ||
64 | <genClasses ecoreClass="problem.ecore#//Assertion"> | ||
65 | <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference problem.ecore#//Assertion/relation"/> | ||
66 | <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference problem.ecore#//Assertion/arguments"/> | ||
67 | <genFeatures createChild="false" ecoreFeature="ecore:EAttribute problem.ecore#//Assertion/value"/> | ||
68 | </genClasses> | ||
69 | <genClasses ecoreClass="problem.ecore#//Node"/> | ||
70 | <genClasses ecoreClass="problem.ecore#//ScopeDeclaration"> | ||
71 | <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference problem.ecore#//ScopeDeclaration/typeScopes"/> | ||
72 | </genClasses> | ||
73 | <genClasses ecoreClass="problem.ecore#//Statement"/> | ||
74 | <genClasses ecoreClass="problem.ecore#//TypeScope"> | ||
75 | <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference problem.ecore#//TypeScope/targetType"/> | ||
76 | <genFeatures createChild="false" ecoreFeature="ecore:EAttribute problem.ecore#//TypeScope/increment"/> | ||
77 | <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference problem.ecore#//TypeScope/multiplicity"/> | ||
78 | </genClasses> | ||
79 | <genClasses ecoreClass="problem.ecore#//Multiplicity"/> | ||
80 | <genClasses ecoreClass="problem.ecore#//RangeMultiplicity"> | ||
81 | <genFeatures createChild="false" ecoreFeature="ecore:EAttribute problem.ecore#//RangeMultiplicity/lowerBound"/> | ||
82 | <genFeatures createChild="false" ecoreFeature="ecore:EAttribute problem.ecore#//RangeMultiplicity/upperBound"/> | ||
83 | </genClasses> | ||
84 | <genClasses ecoreClass="problem.ecore#//ExactMultiplicity"> | ||
85 | <genFeatures createChild="false" ecoreFeature="ecore:EAttribute problem.ecore#//ExactMultiplicity/exactValue"/> | ||
86 | </genClasses> | ||
87 | <genClasses ecoreClass="problem.ecore#//UnboundedMultiplicity"/> | ||
88 | <genClasses ecoreClass="problem.ecore#//Argument"> | ||
89 | <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference problem.ecore#//Argument/variableOrNode"/> | ||
90 | <genFeatures children="true" createChild="true" propertySortChoices="true" ecoreFeature="ecore:EReference problem.ecore#//Argument/singletonVariable"/> | ||
91 | </genClasses> | ||
92 | <genClasses ecoreClass="problem.ecore#//EnumDeclaration"> | ||
93 | <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference problem.ecore#//EnumDeclaration/literals"/> | ||
94 | </genClasses> | ||
95 | <genClasses ecoreClass="problem.ecore#//VariableOrNode"/> | ||
96 | </genPackages> | ||
97 | </genmodel:GenModel> | ||