aboutsummaryrefslogtreecommitdiffstats
path: root/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl
diff options
context:
space:
mode:
Diffstat (limited to 'Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl')
-rw-r--r--Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSAndImpl.java264
-rw-r--r--Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSCardinalityImpl.java193
-rw-r--r--Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSDefinitionImpl.java312
-rw-r--r--Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSDirectProductImpl.java392
-rw-r--r--Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSDocumentImpl.java397
-rw-r--r--Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSEnumDeclarationImpl.java165
-rw-r--r--Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSEnumLiteralImpl.java40
-rw-r--r--Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSEqualsImpl.java264
-rw-r--r--Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSFactDeclarationImpl.java265
-rw-r--r--Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSFieldDeclarationImpl.java265
-rw-r--r--Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSFunctionCallImpl.java306
-rw-r--r--Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSFunctionDefinitionImpl.java193
-rw-r--r--Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSIdenImpl.java40
-rw-r--r--Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSIffImpl.java264
-rw-r--r--Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSImplImpl.java335
-rw-r--r--Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSIntImpl.java40
-rw-r--r--Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSIntScopeImpl.java40
-rw-r--r--Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSIntersectionImpl.java264
-rw-r--r--Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSInverseRelationImpl.java193
-rw-r--r--Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSJoinImpl.java264
-rw-r--r--Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSLeqImpl.java264
-rw-r--r--Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSLessImpl.java264
-rw-r--r--Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSMeqImpl.java264
-rw-r--r--Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSMinusImpl.java264
-rw-r--r--Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSMoreImpl.java264
-rw-r--r--Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSNoneImpl.java40
-rw-r--r--Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSNotEqualsImpl.java264
-rw-r--r--Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSNotImpl.java193
-rw-r--r--Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSNumberLiteralImpl.java176
-rw-r--r--Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSOrImpl.java264
-rw-r--r--Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSOverrideImpl.java264
-rw-r--r--Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSPlusImpl.java264
-rw-r--r--Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSQuantifiedExImpl.java368
-rw-r--r--Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSRangeRestrictionLeftImpl.java264
-rw-r--r--Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSRangeRestrictionRightImpl.java264
-rw-r--r--Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSReferenceImpl.java172
-rw-r--r--Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSReflectiveTransitiveClosureImpl.java193
-rw-r--r--Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSRelationDeclarationImpl.java177
-rw-r--r--Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSRelationDefinitionImpl.java40
-rw-r--r--Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSRunCommandImpl.java167
-rw-r--r--Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSSigScopeImpl.java243
-rw-r--r--Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSSignatureBodyImpl.java438
-rw-r--r--Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSSignatureDeclarationImpl.java40
-rw-r--r--Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSSubsetImpl.java264
-rw-r--r--Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSSumImpl.java240
-rw-r--r--Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSTermImpl.java42
-rw-r--r--Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSTypeDeclarationImpl.java40
-rw-r--r--Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSTypeScopeImpl.java177
-rw-r--r--Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSUnaryMinusImpl.java193
-rw-r--r--Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSUnivImpl.java40
-rw-r--r--Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSVariableDeclarationImpl.java193
-rw-r--r--Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/AlSTransitiveClosureImpl.java193
-rw-r--r--Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/AlloyLanguageFactoryImpl.java801
-rw-r--r--Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/AlloyLanguagePackageImpl.java2417
54 files changed, 14247 insertions, 0 deletions
diff --git a/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSAndImpl.java b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSAndImpl.java
new file mode 100644
index 00000000..e8cbd9ad
--- /dev/null
+++ b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSAndImpl.java
@@ -0,0 +1,264 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSAnd;
6import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSTerm;
7import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguagePackage;
8
9import org.eclipse.emf.common.notify.Notification;
10import org.eclipse.emf.common.notify.NotificationChain;
11
12import org.eclipse.emf.ecore.EClass;
13import org.eclipse.emf.ecore.InternalEObject;
14
15import org.eclipse.emf.ecore.impl.ENotificationImpl;
16
17/**
18 * <!-- begin-user-doc -->
19 * An implementation of the model object '<em><b>ALS And</b></em>'.
20 * <!-- end-user-doc -->
21 * <p>
22 * The following features are implemented:
23 * </p>
24 * <ul>
25 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSAndImpl#getLeftOperand <em>Left Operand</em>}</li>
26 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSAndImpl#getRightOperand <em>Right Operand</em>}</li>
27 * </ul>
28 *
29 * @generated
30 */
31public class ALSAndImpl extends ALSTermImpl implements ALSAnd
32{
33 /**
34 * The cached value of the '{@link #getLeftOperand() <em>Left Operand</em>}' containment reference.
35 * <!-- begin-user-doc -->
36 * <!-- end-user-doc -->
37 * @see #getLeftOperand()
38 * @generated
39 * @ordered
40 */
41 protected ALSTerm leftOperand;
42
43 /**
44 * The cached value of the '{@link #getRightOperand() <em>Right Operand</em>}' containment reference.
45 * <!-- begin-user-doc -->
46 * <!-- end-user-doc -->
47 * @see #getRightOperand()
48 * @generated
49 * @ordered
50 */
51 protected ALSTerm rightOperand;
52
53 /**
54 * <!-- begin-user-doc -->
55 * <!-- end-user-doc -->
56 * @generated
57 */
58 protected ALSAndImpl()
59 {
60 super();
61 }
62
63 /**
64 * <!-- begin-user-doc -->
65 * <!-- end-user-doc -->
66 * @generated
67 */
68 @Override
69 protected EClass eStaticClass()
70 {
71 return AlloyLanguagePackage.Literals.ALS_AND;
72 }
73
74 /**
75 * <!-- begin-user-doc -->
76 * <!-- end-user-doc -->
77 * @generated
78 */
79 public ALSTerm getLeftOperand()
80 {
81 return leftOperand;
82 }
83
84 /**
85 * <!-- begin-user-doc -->
86 * <!-- end-user-doc -->
87 * @generated
88 */
89 public NotificationChain basicSetLeftOperand(ALSTerm newLeftOperand, NotificationChain msgs)
90 {
91 ALSTerm oldLeftOperand = leftOperand;
92 leftOperand = newLeftOperand;
93 if (eNotificationRequired())
94 {
95 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_AND__LEFT_OPERAND, oldLeftOperand, newLeftOperand);
96 if (msgs == null) msgs = notification; else msgs.add(notification);
97 }
98 return msgs;
99 }
100
101 /**
102 * <!-- begin-user-doc -->
103 * <!-- end-user-doc -->
104 * @generated
105 */
106 public void setLeftOperand(ALSTerm newLeftOperand)
107 {
108 if (newLeftOperand != leftOperand)
109 {
110 NotificationChain msgs = null;
111 if (leftOperand != null)
112 msgs = ((InternalEObject)leftOperand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_AND__LEFT_OPERAND, null, msgs);
113 if (newLeftOperand != null)
114 msgs = ((InternalEObject)newLeftOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_AND__LEFT_OPERAND, null, msgs);
115 msgs = basicSetLeftOperand(newLeftOperand, msgs);
116 if (msgs != null) msgs.dispatch();
117 }
118 else if (eNotificationRequired())
119 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_AND__LEFT_OPERAND, newLeftOperand, newLeftOperand));
120 }
121
122 /**
123 * <!-- begin-user-doc -->
124 * <!-- end-user-doc -->
125 * @generated
126 */
127 public ALSTerm getRightOperand()
128 {
129 return rightOperand;
130 }
131
132 /**
133 * <!-- begin-user-doc -->
134 * <!-- end-user-doc -->
135 * @generated
136 */
137 public NotificationChain basicSetRightOperand(ALSTerm newRightOperand, NotificationChain msgs)
138 {
139 ALSTerm oldRightOperand = rightOperand;
140 rightOperand = newRightOperand;
141 if (eNotificationRequired())
142 {
143 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_AND__RIGHT_OPERAND, oldRightOperand, newRightOperand);
144 if (msgs == null) msgs = notification; else msgs.add(notification);
145 }
146 return msgs;
147 }
148
149 /**
150 * <!-- begin-user-doc -->
151 * <!-- end-user-doc -->
152 * @generated
153 */
154 public void setRightOperand(ALSTerm newRightOperand)
155 {
156 if (newRightOperand != rightOperand)
157 {
158 NotificationChain msgs = null;
159 if (rightOperand != null)
160 msgs = ((InternalEObject)rightOperand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_AND__RIGHT_OPERAND, null, msgs);
161 if (newRightOperand != null)
162 msgs = ((InternalEObject)newRightOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_AND__RIGHT_OPERAND, null, msgs);
163 msgs = basicSetRightOperand(newRightOperand, msgs);
164 if (msgs != null) msgs.dispatch();
165 }
166 else if (eNotificationRequired())
167 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_AND__RIGHT_OPERAND, newRightOperand, newRightOperand));
168 }
169
170 /**
171 * <!-- begin-user-doc -->
172 * <!-- end-user-doc -->
173 * @generated
174 */
175 @Override
176 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
177 {
178 switch (featureID)
179 {
180 case AlloyLanguagePackage.ALS_AND__LEFT_OPERAND:
181 return basicSetLeftOperand(null, msgs);
182 case AlloyLanguagePackage.ALS_AND__RIGHT_OPERAND:
183 return basicSetRightOperand(null, msgs);
184 }
185 return super.eInverseRemove(otherEnd, featureID, msgs);
186 }
187
188 /**
189 * <!-- begin-user-doc -->
190 * <!-- end-user-doc -->
191 * @generated
192 */
193 @Override
194 public Object eGet(int featureID, boolean resolve, boolean coreType)
195 {
196 switch (featureID)
197 {
198 case AlloyLanguagePackage.ALS_AND__LEFT_OPERAND:
199 return getLeftOperand();
200 case AlloyLanguagePackage.ALS_AND__RIGHT_OPERAND:
201 return getRightOperand();
202 }
203 return super.eGet(featureID, resolve, coreType);
204 }
205
206 /**
207 * <!-- begin-user-doc -->
208 * <!-- end-user-doc -->
209 * @generated
210 */
211 @Override
212 public void eSet(int featureID, Object newValue)
213 {
214 switch (featureID)
215 {
216 case AlloyLanguagePackage.ALS_AND__LEFT_OPERAND:
217 setLeftOperand((ALSTerm)newValue);
218 return;
219 case AlloyLanguagePackage.ALS_AND__RIGHT_OPERAND:
220 setRightOperand((ALSTerm)newValue);
221 return;
222 }
223 super.eSet(featureID, newValue);
224 }
225
226 /**
227 * <!-- begin-user-doc -->
228 * <!-- end-user-doc -->
229 * @generated
230 */
231 @Override
232 public void eUnset(int featureID)
233 {
234 switch (featureID)
235 {
236 case AlloyLanguagePackage.ALS_AND__LEFT_OPERAND:
237 setLeftOperand((ALSTerm)null);
238 return;
239 case AlloyLanguagePackage.ALS_AND__RIGHT_OPERAND:
240 setRightOperand((ALSTerm)null);
241 return;
242 }
243 super.eUnset(featureID);
244 }
245
246 /**
247 * <!-- begin-user-doc -->
248 * <!-- end-user-doc -->
249 * @generated
250 */
251 @Override
252 public boolean eIsSet(int featureID)
253 {
254 switch (featureID)
255 {
256 case AlloyLanguagePackage.ALS_AND__LEFT_OPERAND:
257 return leftOperand != null;
258 case AlloyLanguagePackage.ALS_AND__RIGHT_OPERAND:
259 return rightOperand != null;
260 }
261 return super.eIsSet(featureID);
262 }
263
264} //ALSAndImpl
diff --git a/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSCardinalityImpl.java b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSCardinalityImpl.java
new file mode 100644
index 00000000..5faf04d6
--- /dev/null
+++ b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSCardinalityImpl.java
@@ -0,0 +1,193 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSCardinality;
6import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSTerm;
7import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguagePackage;
8
9import org.eclipse.emf.common.notify.Notification;
10import org.eclipse.emf.common.notify.NotificationChain;
11
12import org.eclipse.emf.ecore.EClass;
13import org.eclipse.emf.ecore.InternalEObject;
14
15import org.eclipse.emf.ecore.impl.ENotificationImpl;
16
17/**
18 * <!-- begin-user-doc -->
19 * An implementation of the model object '<em><b>ALS Cardinality</b></em>'.
20 * <!-- end-user-doc -->
21 * <p>
22 * The following features are implemented:
23 * </p>
24 * <ul>
25 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSCardinalityImpl#getOperand <em>Operand</em>}</li>
26 * </ul>
27 *
28 * @generated
29 */
30public class ALSCardinalityImpl extends ALSTermImpl implements ALSCardinality
31{
32 /**
33 * The cached value of the '{@link #getOperand() <em>Operand</em>}' containment reference.
34 * <!-- begin-user-doc -->
35 * <!-- end-user-doc -->
36 * @see #getOperand()
37 * @generated
38 * @ordered
39 */
40 protected ALSTerm operand;
41
42 /**
43 * <!-- begin-user-doc -->
44 * <!-- end-user-doc -->
45 * @generated
46 */
47 protected ALSCardinalityImpl()
48 {
49 super();
50 }
51
52 /**
53 * <!-- begin-user-doc -->
54 * <!-- end-user-doc -->
55 * @generated
56 */
57 @Override
58 protected EClass eStaticClass()
59 {
60 return AlloyLanguagePackage.Literals.ALS_CARDINALITY;
61 }
62
63 /**
64 * <!-- begin-user-doc -->
65 * <!-- end-user-doc -->
66 * @generated
67 */
68 public ALSTerm getOperand()
69 {
70 return operand;
71 }
72
73 /**
74 * <!-- begin-user-doc -->
75 * <!-- end-user-doc -->
76 * @generated
77 */
78 public NotificationChain basicSetOperand(ALSTerm newOperand, NotificationChain msgs)
79 {
80 ALSTerm oldOperand = operand;
81 operand = newOperand;
82 if (eNotificationRequired())
83 {
84 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_CARDINALITY__OPERAND, oldOperand, newOperand);
85 if (msgs == null) msgs = notification; else msgs.add(notification);
86 }
87 return msgs;
88 }
89
90 /**
91 * <!-- begin-user-doc -->
92 * <!-- end-user-doc -->
93 * @generated
94 */
95 public void setOperand(ALSTerm newOperand)
96 {
97 if (newOperand != operand)
98 {
99 NotificationChain msgs = null;
100 if (operand != null)
101 msgs = ((InternalEObject)operand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_CARDINALITY__OPERAND, null, msgs);
102 if (newOperand != null)
103 msgs = ((InternalEObject)newOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_CARDINALITY__OPERAND, null, msgs);
104 msgs = basicSetOperand(newOperand, msgs);
105 if (msgs != null) msgs.dispatch();
106 }
107 else if (eNotificationRequired())
108 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_CARDINALITY__OPERAND, newOperand, newOperand));
109 }
110
111 /**
112 * <!-- begin-user-doc -->
113 * <!-- end-user-doc -->
114 * @generated
115 */
116 @Override
117 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
118 {
119 switch (featureID)
120 {
121 case AlloyLanguagePackage.ALS_CARDINALITY__OPERAND:
122 return basicSetOperand(null, msgs);
123 }
124 return super.eInverseRemove(otherEnd, featureID, msgs);
125 }
126
127 /**
128 * <!-- begin-user-doc -->
129 * <!-- end-user-doc -->
130 * @generated
131 */
132 @Override
133 public Object eGet(int featureID, boolean resolve, boolean coreType)
134 {
135 switch (featureID)
136 {
137 case AlloyLanguagePackage.ALS_CARDINALITY__OPERAND:
138 return getOperand();
139 }
140 return super.eGet(featureID, resolve, coreType);
141 }
142
143 /**
144 * <!-- begin-user-doc -->
145 * <!-- end-user-doc -->
146 * @generated
147 */
148 @Override
149 public void eSet(int featureID, Object newValue)
150 {
151 switch (featureID)
152 {
153 case AlloyLanguagePackage.ALS_CARDINALITY__OPERAND:
154 setOperand((ALSTerm)newValue);
155 return;
156 }
157 super.eSet(featureID, newValue);
158 }
159
160 /**
161 * <!-- begin-user-doc -->
162 * <!-- end-user-doc -->
163 * @generated
164 */
165 @Override
166 public void eUnset(int featureID)
167 {
168 switch (featureID)
169 {
170 case AlloyLanguagePackage.ALS_CARDINALITY__OPERAND:
171 setOperand((ALSTerm)null);
172 return;
173 }
174 super.eUnset(featureID);
175 }
176
177 /**
178 * <!-- begin-user-doc -->
179 * <!-- end-user-doc -->
180 * @generated
181 */
182 @Override
183 public boolean eIsSet(int featureID)
184 {
185 switch (featureID)
186 {
187 case AlloyLanguagePackage.ALS_CARDINALITY__OPERAND:
188 return operand != null;
189 }
190 return super.eIsSet(featureID);
191 }
192
193} //ALSCardinalityImpl
diff --git a/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSDefinitionImpl.java b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSDefinitionImpl.java
new file mode 100644
index 00000000..83ba34c2
--- /dev/null
+++ b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSDefinitionImpl.java
@@ -0,0 +1,312 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSDefinition;
6import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSTerm;
7import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSVariableDeclaration;
8import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguagePackage;
9
10import java.util.Collection;
11
12import org.eclipse.emf.common.notify.Notification;
13import org.eclipse.emf.common.notify.NotificationChain;
14
15import org.eclipse.emf.common.util.EList;
16
17import org.eclipse.emf.ecore.EClass;
18import org.eclipse.emf.ecore.InternalEObject;
19
20import org.eclipse.emf.ecore.impl.ENotificationImpl;
21import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
22
23import org.eclipse.emf.ecore.util.EObjectContainmentEList;
24import org.eclipse.emf.ecore.util.InternalEList;
25
26/**
27 * <!-- begin-user-doc -->
28 * An implementation of the model object '<em><b>ALS Definition</b></em>'.
29 * <!-- end-user-doc -->
30 * <p>
31 * The following features are implemented:
32 * </p>
33 * <ul>
34 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSDefinitionImpl#getName <em>Name</em>}</li>
35 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSDefinitionImpl#getVariables <em>Variables</em>}</li>
36 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSDefinitionImpl#getValue <em>Value</em>}</li>
37 * </ul>
38 *
39 * @generated
40 */
41public class ALSDefinitionImpl extends MinimalEObjectImpl.Container implements ALSDefinition
42{
43 /**
44 * The default value of the '{@link #getName() <em>Name</em>}' attribute.
45 * <!-- begin-user-doc -->
46 * <!-- end-user-doc -->
47 * @see #getName()
48 * @generated
49 * @ordered
50 */
51 protected static final String NAME_EDEFAULT = null;
52
53 /**
54 * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
55 * <!-- begin-user-doc -->
56 * <!-- end-user-doc -->
57 * @see #getName()
58 * @generated
59 * @ordered
60 */
61 protected String name = NAME_EDEFAULT;
62
63 /**
64 * The cached value of the '{@link #getVariables() <em>Variables</em>}' containment reference list.
65 * <!-- begin-user-doc -->
66 * <!-- end-user-doc -->
67 * @see #getVariables()
68 * @generated
69 * @ordered
70 */
71 protected EList<ALSVariableDeclaration> variables;
72
73 /**
74 * The cached value of the '{@link #getValue() <em>Value</em>}' containment reference.
75 * <!-- begin-user-doc -->
76 * <!-- end-user-doc -->
77 * @see #getValue()
78 * @generated
79 * @ordered
80 */
81 protected ALSTerm value;
82
83 /**
84 * <!-- begin-user-doc -->
85 * <!-- end-user-doc -->
86 * @generated
87 */
88 protected ALSDefinitionImpl()
89 {
90 super();
91 }
92
93 /**
94 * <!-- begin-user-doc -->
95 * <!-- end-user-doc -->
96 * @generated
97 */
98 @Override
99 protected EClass eStaticClass()
100 {
101 return AlloyLanguagePackage.Literals.ALS_DEFINITION;
102 }
103
104 /**
105 * <!-- begin-user-doc -->
106 * <!-- end-user-doc -->
107 * @generated
108 */
109 public String getName()
110 {
111 return name;
112 }
113
114 /**
115 * <!-- begin-user-doc -->
116 * <!-- end-user-doc -->
117 * @generated
118 */
119 public void setName(String newName)
120 {
121 String oldName = name;
122 name = newName;
123 if (eNotificationRequired())
124 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_DEFINITION__NAME, oldName, name));
125 }
126
127 /**
128 * <!-- begin-user-doc -->
129 * <!-- end-user-doc -->
130 * @generated
131 */
132 public EList<ALSVariableDeclaration> getVariables()
133 {
134 if (variables == null)
135 {
136 variables = new EObjectContainmentEList<ALSVariableDeclaration>(ALSVariableDeclaration.class, this, AlloyLanguagePackage.ALS_DEFINITION__VARIABLES);
137 }
138 return variables;
139 }
140
141 /**
142 * <!-- begin-user-doc -->
143 * <!-- end-user-doc -->
144 * @generated
145 */
146 public ALSTerm getValue()
147 {
148 return value;
149 }
150
151 /**
152 * <!-- begin-user-doc -->
153 * <!-- end-user-doc -->
154 * @generated
155 */
156 public NotificationChain basicSetValue(ALSTerm newValue, NotificationChain msgs)
157 {
158 ALSTerm oldValue = value;
159 value = newValue;
160 if (eNotificationRequired())
161 {
162 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_DEFINITION__VALUE, oldValue, newValue);
163 if (msgs == null) msgs = notification; else msgs.add(notification);
164 }
165 return msgs;
166 }
167
168 /**
169 * <!-- begin-user-doc -->
170 * <!-- end-user-doc -->
171 * @generated
172 */
173 public void setValue(ALSTerm newValue)
174 {
175 if (newValue != value)
176 {
177 NotificationChain msgs = null;
178 if (value != null)
179 msgs = ((InternalEObject)value).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_DEFINITION__VALUE, null, msgs);
180 if (newValue != null)
181 msgs = ((InternalEObject)newValue).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_DEFINITION__VALUE, null, msgs);
182 msgs = basicSetValue(newValue, msgs);
183 if (msgs != null) msgs.dispatch();
184 }
185 else if (eNotificationRequired())
186 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_DEFINITION__VALUE, newValue, newValue));
187 }
188
189 /**
190 * <!-- begin-user-doc -->
191 * <!-- end-user-doc -->
192 * @generated
193 */
194 @Override
195 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
196 {
197 switch (featureID)
198 {
199 case AlloyLanguagePackage.ALS_DEFINITION__VARIABLES:
200 return ((InternalEList<?>)getVariables()).basicRemove(otherEnd, msgs);
201 case AlloyLanguagePackage.ALS_DEFINITION__VALUE:
202 return basicSetValue(null, msgs);
203 }
204 return super.eInverseRemove(otherEnd, featureID, msgs);
205 }
206
207 /**
208 * <!-- begin-user-doc -->
209 * <!-- end-user-doc -->
210 * @generated
211 */
212 @Override
213 public Object eGet(int featureID, boolean resolve, boolean coreType)
214 {
215 switch (featureID)
216 {
217 case AlloyLanguagePackage.ALS_DEFINITION__NAME:
218 return getName();
219 case AlloyLanguagePackage.ALS_DEFINITION__VARIABLES:
220 return getVariables();
221 case AlloyLanguagePackage.ALS_DEFINITION__VALUE:
222 return getValue();
223 }
224 return super.eGet(featureID, resolve, coreType);
225 }
226
227 /**
228 * <!-- begin-user-doc -->
229 * <!-- end-user-doc -->
230 * @generated
231 */
232 @SuppressWarnings("unchecked")
233 @Override
234 public void eSet(int featureID, Object newValue)
235 {
236 switch (featureID)
237 {
238 case AlloyLanguagePackage.ALS_DEFINITION__NAME:
239 setName((String)newValue);
240 return;
241 case AlloyLanguagePackage.ALS_DEFINITION__VARIABLES:
242 getVariables().clear();
243 getVariables().addAll((Collection<? extends ALSVariableDeclaration>)newValue);
244 return;
245 case AlloyLanguagePackage.ALS_DEFINITION__VALUE:
246 setValue((ALSTerm)newValue);
247 return;
248 }
249 super.eSet(featureID, newValue);
250 }
251
252 /**
253 * <!-- begin-user-doc -->
254 * <!-- end-user-doc -->
255 * @generated
256 */
257 @Override
258 public void eUnset(int featureID)
259 {
260 switch (featureID)
261 {
262 case AlloyLanguagePackage.ALS_DEFINITION__NAME:
263 setName(NAME_EDEFAULT);
264 return;
265 case AlloyLanguagePackage.ALS_DEFINITION__VARIABLES:
266 getVariables().clear();
267 return;
268 case AlloyLanguagePackage.ALS_DEFINITION__VALUE:
269 setValue((ALSTerm)null);
270 return;
271 }
272 super.eUnset(featureID);
273 }
274
275 /**
276 * <!-- begin-user-doc -->
277 * <!-- end-user-doc -->
278 * @generated
279 */
280 @Override
281 public boolean eIsSet(int featureID)
282 {
283 switch (featureID)
284 {
285 case AlloyLanguagePackage.ALS_DEFINITION__NAME:
286 return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
287 case AlloyLanguagePackage.ALS_DEFINITION__VARIABLES:
288 return variables != null && !variables.isEmpty();
289 case AlloyLanguagePackage.ALS_DEFINITION__VALUE:
290 return value != null;
291 }
292 return super.eIsSet(featureID);
293 }
294
295 /**
296 * <!-- begin-user-doc -->
297 * <!-- end-user-doc -->
298 * @generated
299 */
300 @Override
301 public String toString()
302 {
303 if (eIsProxy()) return super.toString();
304
305 StringBuffer result = new StringBuffer(super.toString());
306 result.append(" (name: ");
307 result.append(name);
308 result.append(')');
309 return result.toString();
310 }
311
312} //ALSDefinitionImpl
diff --git a/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSDirectProductImpl.java b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSDirectProductImpl.java
new file mode 100644
index 00000000..a0b6efe7
--- /dev/null
+++ b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSDirectProductImpl.java
@@ -0,0 +1,392 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSDirectProduct;
6import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSMultiplicity;
7import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSTerm;
8import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguagePackage;
9
10import org.eclipse.emf.common.notify.Notification;
11import org.eclipse.emf.common.notify.NotificationChain;
12
13import org.eclipse.emf.ecore.EClass;
14import org.eclipse.emf.ecore.InternalEObject;
15
16import org.eclipse.emf.ecore.impl.ENotificationImpl;
17
18/**
19 * <!-- begin-user-doc -->
20 * An implementation of the model object '<em><b>ALS Direct Product</b></em>'.
21 * <!-- end-user-doc -->
22 * <p>
23 * The following features are implemented:
24 * </p>
25 * <ul>
26 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSDirectProductImpl#getLeftOperand <em>Left Operand</em>}</li>
27 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSDirectProductImpl#getLeftMultiplicit <em>Left Multiplicit</em>}</li>
28 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSDirectProductImpl#getRightMultiplicit <em>Right Multiplicit</em>}</li>
29 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSDirectProductImpl#getRightOperand <em>Right Operand</em>}</li>
30 * </ul>
31 *
32 * @generated
33 */
34public class ALSDirectProductImpl extends ALSTermImpl implements ALSDirectProduct
35{
36 /**
37 * The cached value of the '{@link #getLeftOperand() <em>Left Operand</em>}' containment reference.
38 * <!-- begin-user-doc -->
39 * <!-- end-user-doc -->
40 * @see #getLeftOperand()
41 * @generated
42 * @ordered
43 */
44 protected ALSTerm leftOperand;
45
46 /**
47 * The default value of the '{@link #getLeftMultiplicit() <em>Left Multiplicit</em>}' attribute.
48 * <!-- begin-user-doc -->
49 * <!-- end-user-doc -->
50 * @see #getLeftMultiplicit()
51 * @generated
52 * @ordered
53 */
54 protected static final ALSMultiplicity LEFT_MULTIPLICIT_EDEFAULT = ALSMultiplicity.ALL;
55
56 /**
57 * The cached value of the '{@link #getLeftMultiplicit() <em>Left Multiplicit</em>}' attribute.
58 * <!-- begin-user-doc -->
59 * <!-- end-user-doc -->
60 * @see #getLeftMultiplicit()
61 * @generated
62 * @ordered
63 */
64 protected ALSMultiplicity leftMultiplicit = LEFT_MULTIPLICIT_EDEFAULT;
65
66 /**
67 * The default value of the '{@link #getRightMultiplicit() <em>Right Multiplicit</em>}' attribute.
68 * <!-- begin-user-doc -->
69 * <!-- end-user-doc -->
70 * @see #getRightMultiplicit()
71 * @generated
72 * @ordered
73 */
74 protected static final ALSMultiplicity RIGHT_MULTIPLICIT_EDEFAULT = ALSMultiplicity.ALL;
75
76 /**
77 * The cached value of the '{@link #getRightMultiplicit() <em>Right Multiplicit</em>}' attribute.
78 * <!-- begin-user-doc -->
79 * <!-- end-user-doc -->
80 * @see #getRightMultiplicit()
81 * @generated
82 * @ordered
83 */
84 protected ALSMultiplicity rightMultiplicit = RIGHT_MULTIPLICIT_EDEFAULT;
85
86 /**
87 * The cached value of the '{@link #getRightOperand() <em>Right Operand</em>}' containment reference.
88 * <!-- begin-user-doc -->
89 * <!-- end-user-doc -->
90 * @see #getRightOperand()
91 * @generated
92 * @ordered
93 */
94 protected ALSTerm rightOperand;
95
96 /**
97 * <!-- begin-user-doc -->
98 * <!-- end-user-doc -->
99 * @generated
100 */
101 protected ALSDirectProductImpl()
102 {
103 super();
104 }
105
106 /**
107 * <!-- begin-user-doc -->
108 * <!-- end-user-doc -->
109 * @generated
110 */
111 @Override
112 protected EClass eStaticClass()
113 {
114 return AlloyLanguagePackage.Literals.ALS_DIRECT_PRODUCT;
115 }
116
117 /**
118 * <!-- begin-user-doc -->
119 * <!-- end-user-doc -->
120 * @generated
121 */
122 public ALSTerm getLeftOperand()
123 {
124 return leftOperand;
125 }
126
127 /**
128 * <!-- begin-user-doc -->
129 * <!-- end-user-doc -->
130 * @generated
131 */
132 public NotificationChain basicSetLeftOperand(ALSTerm newLeftOperand, NotificationChain msgs)
133 {
134 ALSTerm oldLeftOperand = leftOperand;
135 leftOperand = newLeftOperand;
136 if (eNotificationRequired())
137 {
138 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_DIRECT_PRODUCT__LEFT_OPERAND, oldLeftOperand, newLeftOperand);
139 if (msgs == null) msgs = notification; else msgs.add(notification);
140 }
141 return msgs;
142 }
143
144 /**
145 * <!-- begin-user-doc -->
146 * <!-- end-user-doc -->
147 * @generated
148 */
149 public void setLeftOperand(ALSTerm newLeftOperand)
150 {
151 if (newLeftOperand != leftOperand)
152 {
153 NotificationChain msgs = null;
154 if (leftOperand != null)
155 msgs = ((InternalEObject)leftOperand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_DIRECT_PRODUCT__LEFT_OPERAND, null, msgs);
156 if (newLeftOperand != null)
157 msgs = ((InternalEObject)newLeftOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_DIRECT_PRODUCT__LEFT_OPERAND, null, msgs);
158 msgs = basicSetLeftOperand(newLeftOperand, msgs);
159 if (msgs != null) msgs.dispatch();
160 }
161 else if (eNotificationRequired())
162 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_DIRECT_PRODUCT__LEFT_OPERAND, newLeftOperand, newLeftOperand));
163 }
164
165 /**
166 * <!-- begin-user-doc -->
167 * <!-- end-user-doc -->
168 * @generated
169 */
170 public ALSMultiplicity getLeftMultiplicit()
171 {
172 return leftMultiplicit;
173 }
174
175 /**
176 * <!-- begin-user-doc -->
177 * <!-- end-user-doc -->
178 * @generated
179 */
180 public void setLeftMultiplicit(ALSMultiplicity newLeftMultiplicit)
181 {
182 ALSMultiplicity oldLeftMultiplicit = leftMultiplicit;
183 leftMultiplicit = newLeftMultiplicit == null ? LEFT_MULTIPLICIT_EDEFAULT : newLeftMultiplicit;
184 if (eNotificationRequired())
185 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_DIRECT_PRODUCT__LEFT_MULTIPLICIT, oldLeftMultiplicit, leftMultiplicit));
186 }
187
188 /**
189 * <!-- begin-user-doc -->
190 * <!-- end-user-doc -->
191 * @generated
192 */
193 public ALSMultiplicity getRightMultiplicit()
194 {
195 return rightMultiplicit;
196 }
197
198 /**
199 * <!-- begin-user-doc -->
200 * <!-- end-user-doc -->
201 * @generated
202 */
203 public void setRightMultiplicit(ALSMultiplicity newRightMultiplicit)
204 {
205 ALSMultiplicity oldRightMultiplicit = rightMultiplicit;
206 rightMultiplicit = newRightMultiplicit == null ? RIGHT_MULTIPLICIT_EDEFAULT : newRightMultiplicit;
207 if (eNotificationRequired())
208 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_DIRECT_PRODUCT__RIGHT_MULTIPLICIT, oldRightMultiplicit, rightMultiplicit));
209 }
210
211 /**
212 * <!-- begin-user-doc -->
213 * <!-- end-user-doc -->
214 * @generated
215 */
216 public ALSTerm getRightOperand()
217 {
218 return rightOperand;
219 }
220
221 /**
222 * <!-- begin-user-doc -->
223 * <!-- end-user-doc -->
224 * @generated
225 */
226 public NotificationChain basicSetRightOperand(ALSTerm newRightOperand, NotificationChain msgs)
227 {
228 ALSTerm oldRightOperand = rightOperand;
229 rightOperand = newRightOperand;
230 if (eNotificationRequired())
231 {
232 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_DIRECT_PRODUCT__RIGHT_OPERAND, oldRightOperand, newRightOperand);
233 if (msgs == null) msgs = notification; else msgs.add(notification);
234 }
235 return msgs;
236 }
237
238 /**
239 * <!-- begin-user-doc -->
240 * <!-- end-user-doc -->
241 * @generated
242 */
243 public void setRightOperand(ALSTerm newRightOperand)
244 {
245 if (newRightOperand != rightOperand)
246 {
247 NotificationChain msgs = null;
248 if (rightOperand != null)
249 msgs = ((InternalEObject)rightOperand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_DIRECT_PRODUCT__RIGHT_OPERAND, null, msgs);
250 if (newRightOperand != null)
251 msgs = ((InternalEObject)newRightOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_DIRECT_PRODUCT__RIGHT_OPERAND, null, msgs);
252 msgs = basicSetRightOperand(newRightOperand, msgs);
253 if (msgs != null) msgs.dispatch();
254 }
255 else if (eNotificationRequired())
256 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_DIRECT_PRODUCT__RIGHT_OPERAND, newRightOperand, newRightOperand));
257 }
258
259 /**
260 * <!-- begin-user-doc -->
261 * <!-- end-user-doc -->
262 * @generated
263 */
264 @Override
265 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
266 {
267 switch (featureID)
268 {
269 case AlloyLanguagePackage.ALS_DIRECT_PRODUCT__LEFT_OPERAND:
270 return basicSetLeftOperand(null, msgs);
271 case AlloyLanguagePackage.ALS_DIRECT_PRODUCT__RIGHT_OPERAND:
272 return basicSetRightOperand(null, msgs);
273 }
274 return super.eInverseRemove(otherEnd, featureID, msgs);
275 }
276
277 /**
278 * <!-- begin-user-doc -->
279 * <!-- end-user-doc -->
280 * @generated
281 */
282 @Override
283 public Object eGet(int featureID, boolean resolve, boolean coreType)
284 {
285 switch (featureID)
286 {
287 case AlloyLanguagePackage.ALS_DIRECT_PRODUCT__LEFT_OPERAND:
288 return getLeftOperand();
289 case AlloyLanguagePackage.ALS_DIRECT_PRODUCT__LEFT_MULTIPLICIT:
290 return getLeftMultiplicit();
291 case AlloyLanguagePackage.ALS_DIRECT_PRODUCT__RIGHT_MULTIPLICIT:
292 return getRightMultiplicit();
293 case AlloyLanguagePackage.ALS_DIRECT_PRODUCT__RIGHT_OPERAND:
294 return getRightOperand();
295 }
296 return super.eGet(featureID, resolve, coreType);
297 }
298
299 /**
300 * <!-- begin-user-doc -->
301 * <!-- end-user-doc -->
302 * @generated
303 */
304 @Override
305 public void eSet(int featureID, Object newValue)
306 {
307 switch (featureID)
308 {
309 case AlloyLanguagePackage.ALS_DIRECT_PRODUCT__LEFT_OPERAND:
310 setLeftOperand((ALSTerm)newValue);
311 return;
312 case AlloyLanguagePackage.ALS_DIRECT_PRODUCT__LEFT_MULTIPLICIT:
313 setLeftMultiplicit((ALSMultiplicity)newValue);
314 return;
315 case AlloyLanguagePackage.ALS_DIRECT_PRODUCT__RIGHT_MULTIPLICIT:
316 setRightMultiplicit((ALSMultiplicity)newValue);
317 return;
318 case AlloyLanguagePackage.ALS_DIRECT_PRODUCT__RIGHT_OPERAND:
319 setRightOperand((ALSTerm)newValue);
320 return;
321 }
322 super.eSet(featureID, newValue);
323 }
324
325 /**
326 * <!-- begin-user-doc -->
327 * <!-- end-user-doc -->
328 * @generated
329 */
330 @Override
331 public void eUnset(int featureID)
332 {
333 switch (featureID)
334 {
335 case AlloyLanguagePackage.ALS_DIRECT_PRODUCT__LEFT_OPERAND:
336 setLeftOperand((ALSTerm)null);
337 return;
338 case AlloyLanguagePackage.ALS_DIRECT_PRODUCT__LEFT_MULTIPLICIT:
339 setLeftMultiplicit(LEFT_MULTIPLICIT_EDEFAULT);
340 return;
341 case AlloyLanguagePackage.ALS_DIRECT_PRODUCT__RIGHT_MULTIPLICIT:
342 setRightMultiplicit(RIGHT_MULTIPLICIT_EDEFAULT);
343 return;
344 case AlloyLanguagePackage.ALS_DIRECT_PRODUCT__RIGHT_OPERAND:
345 setRightOperand((ALSTerm)null);
346 return;
347 }
348 super.eUnset(featureID);
349 }
350
351 /**
352 * <!-- begin-user-doc -->
353 * <!-- end-user-doc -->
354 * @generated
355 */
356 @Override
357 public boolean eIsSet(int featureID)
358 {
359 switch (featureID)
360 {
361 case AlloyLanguagePackage.ALS_DIRECT_PRODUCT__LEFT_OPERAND:
362 return leftOperand != null;
363 case AlloyLanguagePackage.ALS_DIRECT_PRODUCT__LEFT_MULTIPLICIT:
364 return leftMultiplicit != LEFT_MULTIPLICIT_EDEFAULT;
365 case AlloyLanguagePackage.ALS_DIRECT_PRODUCT__RIGHT_MULTIPLICIT:
366 return rightMultiplicit != RIGHT_MULTIPLICIT_EDEFAULT;
367 case AlloyLanguagePackage.ALS_DIRECT_PRODUCT__RIGHT_OPERAND:
368 return rightOperand != null;
369 }
370 return super.eIsSet(featureID);
371 }
372
373 /**
374 * <!-- begin-user-doc -->
375 * <!-- end-user-doc -->
376 * @generated
377 */
378 @Override
379 public String toString()
380 {
381 if (eIsProxy()) return super.toString();
382
383 StringBuffer result = new StringBuffer(super.toString());
384 result.append(" (leftMultiplicit: ");
385 result.append(leftMultiplicit);
386 result.append(", rightMultiplicit: ");
387 result.append(rightMultiplicit);
388 result.append(')');
389 return result.toString();
390 }
391
392} //ALSDirectProductImpl
diff --git a/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSDocumentImpl.java b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSDocumentImpl.java
new file mode 100644
index 00000000..c0e4c494
--- /dev/null
+++ b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSDocumentImpl.java
@@ -0,0 +1,397 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSDocument;
6import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSEnumDeclaration;
7import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSFactDeclaration;
8import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSFunctionDefinition;
9import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSRelationDefinition;
10import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSRunCommand;
11import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSSignatureBody;
12import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguagePackage;
13
14import java.util.Collection;
15
16import org.eclipse.emf.common.notify.Notification;
17import org.eclipse.emf.common.notify.NotificationChain;
18
19import org.eclipse.emf.common.util.EList;
20
21import org.eclipse.emf.ecore.EClass;
22import org.eclipse.emf.ecore.InternalEObject;
23
24import org.eclipse.emf.ecore.impl.ENotificationImpl;
25import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
26
27import org.eclipse.emf.ecore.util.EObjectContainmentEList;
28import org.eclipse.emf.ecore.util.InternalEList;
29
30/**
31 * <!-- begin-user-doc -->
32 * An implementation of the model object '<em><b>ALS Document</b></em>'.
33 * <!-- end-user-doc -->
34 * <p>
35 * The following features are implemented:
36 * </p>
37 * <ul>
38 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSDocumentImpl#getEnumDeclarations <em>Enum Declarations</em>}</li>
39 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSDocumentImpl#getSignatureBodies <em>Signature Bodies</em>}</li>
40 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSDocumentImpl#getFunctionDefinitions <em>Function Definitions</em>}</li>
41 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSDocumentImpl#getRelationDefinitions <em>Relation Definitions</em>}</li>
42 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSDocumentImpl#getFactDeclarations <em>Fact Declarations</em>}</li>
43 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSDocumentImpl#getRunCommand <em>Run Command</em>}</li>
44 * </ul>
45 *
46 * @generated
47 */
48public class ALSDocumentImpl extends MinimalEObjectImpl.Container implements ALSDocument
49{
50 /**
51 * The cached value of the '{@link #getEnumDeclarations() <em>Enum Declarations</em>}' containment reference list.
52 * <!-- begin-user-doc -->
53 * <!-- end-user-doc -->
54 * @see #getEnumDeclarations()
55 * @generated
56 * @ordered
57 */
58 protected EList<ALSEnumDeclaration> enumDeclarations;
59
60 /**
61 * The cached value of the '{@link #getSignatureBodies() <em>Signature Bodies</em>}' containment reference list.
62 * <!-- begin-user-doc -->
63 * <!-- end-user-doc -->
64 * @see #getSignatureBodies()
65 * @generated
66 * @ordered
67 */
68 protected EList<ALSSignatureBody> signatureBodies;
69
70 /**
71 * The cached value of the '{@link #getFunctionDefinitions() <em>Function Definitions</em>}' containment reference list.
72 * <!-- begin-user-doc -->
73 * <!-- end-user-doc -->
74 * @see #getFunctionDefinitions()
75 * @generated
76 * @ordered
77 */
78 protected EList<ALSFunctionDefinition> functionDefinitions;
79
80 /**
81 * The cached value of the '{@link #getRelationDefinitions() <em>Relation Definitions</em>}' containment reference list.
82 * <!-- begin-user-doc -->
83 * <!-- end-user-doc -->
84 * @see #getRelationDefinitions()
85 * @generated
86 * @ordered
87 */
88 protected EList<ALSRelationDefinition> relationDefinitions;
89
90 /**
91 * The cached value of the '{@link #getFactDeclarations() <em>Fact Declarations</em>}' containment reference list.
92 * <!-- begin-user-doc -->
93 * <!-- end-user-doc -->
94 * @see #getFactDeclarations()
95 * @generated
96 * @ordered
97 */
98 protected EList<ALSFactDeclaration> factDeclarations;
99
100 /**
101 * The cached value of the '{@link #getRunCommand() <em>Run Command</em>}' containment reference.
102 * <!-- begin-user-doc -->
103 * <!-- end-user-doc -->
104 * @see #getRunCommand()
105 * @generated
106 * @ordered
107 */
108 protected ALSRunCommand runCommand;
109
110 /**
111 * <!-- begin-user-doc -->
112 * <!-- end-user-doc -->
113 * @generated
114 */
115 protected ALSDocumentImpl()
116 {
117 super();
118 }
119
120 /**
121 * <!-- begin-user-doc -->
122 * <!-- end-user-doc -->
123 * @generated
124 */
125 @Override
126 protected EClass eStaticClass()
127 {
128 return AlloyLanguagePackage.Literals.ALS_DOCUMENT;
129 }
130
131 /**
132 * <!-- begin-user-doc -->
133 * <!-- end-user-doc -->
134 * @generated
135 */
136 public EList<ALSEnumDeclaration> getEnumDeclarations()
137 {
138 if (enumDeclarations == null)
139 {
140 enumDeclarations = new EObjectContainmentEList<ALSEnumDeclaration>(ALSEnumDeclaration.class, this, AlloyLanguagePackage.ALS_DOCUMENT__ENUM_DECLARATIONS);
141 }
142 return enumDeclarations;
143 }
144
145 /**
146 * <!-- begin-user-doc -->
147 * <!-- end-user-doc -->
148 * @generated
149 */
150 public EList<ALSSignatureBody> getSignatureBodies()
151 {
152 if (signatureBodies == null)
153 {
154 signatureBodies = new EObjectContainmentEList<ALSSignatureBody>(ALSSignatureBody.class, this, AlloyLanguagePackage.ALS_DOCUMENT__SIGNATURE_BODIES);
155 }
156 return signatureBodies;
157 }
158
159 /**
160 * <!-- begin-user-doc -->
161 * <!-- end-user-doc -->
162 * @generated
163 */
164 public EList<ALSFunctionDefinition> getFunctionDefinitions()
165 {
166 if (functionDefinitions == null)
167 {
168 functionDefinitions = new EObjectContainmentEList<ALSFunctionDefinition>(ALSFunctionDefinition.class, this, AlloyLanguagePackage.ALS_DOCUMENT__FUNCTION_DEFINITIONS);
169 }
170 return functionDefinitions;
171 }
172
173 /**
174 * <!-- begin-user-doc -->
175 * <!-- end-user-doc -->
176 * @generated
177 */
178 public EList<ALSRelationDefinition> getRelationDefinitions()
179 {
180 if (relationDefinitions == null)
181 {
182 relationDefinitions = new EObjectContainmentEList<ALSRelationDefinition>(ALSRelationDefinition.class, this, AlloyLanguagePackage.ALS_DOCUMENT__RELATION_DEFINITIONS);
183 }
184 return relationDefinitions;
185 }
186
187 /**
188 * <!-- begin-user-doc -->
189 * <!-- end-user-doc -->
190 * @generated
191 */
192 public EList<ALSFactDeclaration> getFactDeclarations()
193 {
194 if (factDeclarations == null)
195 {
196 factDeclarations = new EObjectContainmentEList<ALSFactDeclaration>(ALSFactDeclaration.class, this, AlloyLanguagePackage.ALS_DOCUMENT__FACT_DECLARATIONS);
197 }
198 return factDeclarations;
199 }
200
201 /**
202 * <!-- begin-user-doc -->
203 * <!-- end-user-doc -->
204 * @generated
205 */
206 public ALSRunCommand getRunCommand()
207 {
208 return runCommand;
209 }
210
211 /**
212 * <!-- begin-user-doc -->
213 * <!-- end-user-doc -->
214 * @generated
215 */
216 public NotificationChain basicSetRunCommand(ALSRunCommand newRunCommand, NotificationChain msgs)
217 {
218 ALSRunCommand oldRunCommand = runCommand;
219 runCommand = newRunCommand;
220 if (eNotificationRequired())
221 {
222 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_DOCUMENT__RUN_COMMAND, oldRunCommand, newRunCommand);
223 if (msgs == null) msgs = notification; else msgs.add(notification);
224 }
225 return msgs;
226 }
227
228 /**
229 * <!-- begin-user-doc -->
230 * <!-- end-user-doc -->
231 * @generated
232 */
233 public void setRunCommand(ALSRunCommand newRunCommand)
234 {
235 if (newRunCommand != runCommand)
236 {
237 NotificationChain msgs = null;
238 if (runCommand != null)
239 msgs = ((InternalEObject)runCommand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_DOCUMENT__RUN_COMMAND, null, msgs);
240 if (newRunCommand != null)
241 msgs = ((InternalEObject)newRunCommand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_DOCUMENT__RUN_COMMAND, null, msgs);
242 msgs = basicSetRunCommand(newRunCommand, msgs);
243 if (msgs != null) msgs.dispatch();
244 }
245 else if (eNotificationRequired())
246 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_DOCUMENT__RUN_COMMAND, newRunCommand, newRunCommand));
247 }
248
249 /**
250 * <!-- begin-user-doc -->
251 * <!-- end-user-doc -->
252 * @generated
253 */
254 @Override
255 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
256 {
257 switch (featureID)
258 {
259 case AlloyLanguagePackage.ALS_DOCUMENT__ENUM_DECLARATIONS:
260 return ((InternalEList<?>)getEnumDeclarations()).basicRemove(otherEnd, msgs);
261 case AlloyLanguagePackage.ALS_DOCUMENT__SIGNATURE_BODIES:
262 return ((InternalEList<?>)getSignatureBodies()).basicRemove(otherEnd, msgs);
263 case AlloyLanguagePackage.ALS_DOCUMENT__FUNCTION_DEFINITIONS:
264 return ((InternalEList<?>)getFunctionDefinitions()).basicRemove(otherEnd, msgs);
265 case AlloyLanguagePackage.ALS_DOCUMENT__RELATION_DEFINITIONS:
266 return ((InternalEList<?>)getRelationDefinitions()).basicRemove(otherEnd, msgs);
267 case AlloyLanguagePackage.ALS_DOCUMENT__FACT_DECLARATIONS:
268 return ((InternalEList<?>)getFactDeclarations()).basicRemove(otherEnd, msgs);
269 case AlloyLanguagePackage.ALS_DOCUMENT__RUN_COMMAND:
270 return basicSetRunCommand(null, msgs);
271 }
272 return super.eInverseRemove(otherEnd, featureID, msgs);
273 }
274
275 /**
276 * <!-- begin-user-doc -->
277 * <!-- end-user-doc -->
278 * @generated
279 */
280 @Override
281 public Object eGet(int featureID, boolean resolve, boolean coreType)
282 {
283 switch (featureID)
284 {
285 case AlloyLanguagePackage.ALS_DOCUMENT__ENUM_DECLARATIONS:
286 return getEnumDeclarations();
287 case AlloyLanguagePackage.ALS_DOCUMENT__SIGNATURE_BODIES:
288 return getSignatureBodies();
289 case AlloyLanguagePackage.ALS_DOCUMENT__FUNCTION_DEFINITIONS:
290 return getFunctionDefinitions();
291 case AlloyLanguagePackage.ALS_DOCUMENT__RELATION_DEFINITIONS:
292 return getRelationDefinitions();
293 case AlloyLanguagePackage.ALS_DOCUMENT__FACT_DECLARATIONS:
294 return getFactDeclarations();
295 case AlloyLanguagePackage.ALS_DOCUMENT__RUN_COMMAND:
296 return getRunCommand();
297 }
298 return super.eGet(featureID, resolve, coreType);
299 }
300
301 /**
302 * <!-- begin-user-doc -->
303 * <!-- end-user-doc -->
304 * @generated
305 */
306 @SuppressWarnings("unchecked")
307 @Override
308 public void eSet(int featureID, Object newValue)
309 {
310 switch (featureID)
311 {
312 case AlloyLanguagePackage.ALS_DOCUMENT__ENUM_DECLARATIONS:
313 getEnumDeclarations().clear();
314 getEnumDeclarations().addAll((Collection<? extends ALSEnumDeclaration>)newValue);
315 return;
316 case AlloyLanguagePackage.ALS_DOCUMENT__SIGNATURE_BODIES:
317 getSignatureBodies().clear();
318 getSignatureBodies().addAll((Collection<? extends ALSSignatureBody>)newValue);
319 return;
320 case AlloyLanguagePackage.ALS_DOCUMENT__FUNCTION_DEFINITIONS:
321 getFunctionDefinitions().clear();
322 getFunctionDefinitions().addAll((Collection<? extends ALSFunctionDefinition>)newValue);
323 return;
324 case AlloyLanguagePackage.ALS_DOCUMENT__RELATION_DEFINITIONS:
325 getRelationDefinitions().clear();
326 getRelationDefinitions().addAll((Collection<? extends ALSRelationDefinition>)newValue);
327 return;
328 case AlloyLanguagePackage.ALS_DOCUMENT__FACT_DECLARATIONS:
329 getFactDeclarations().clear();
330 getFactDeclarations().addAll((Collection<? extends ALSFactDeclaration>)newValue);
331 return;
332 case AlloyLanguagePackage.ALS_DOCUMENT__RUN_COMMAND:
333 setRunCommand((ALSRunCommand)newValue);
334 return;
335 }
336 super.eSet(featureID, newValue);
337 }
338
339 /**
340 * <!-- begin-user-doc -->
341 * <!-- end-user-doc -->
342 * @generated
343 */
344 @Override
345 public void eUnset(int featureID)
346 {
347 switch (featureID)
348 {
349 case AlloyLanguagePackage.ALS_DOCUMENT__ENUM_DECLARATIONS:
350 getEnumDeclarations().clear();
351 return;
352 case AlloyLanguagePackage.ALS_DOCUMENT__SIGNATURE_BODIES:
353 getSignatureBodies().clear();
354 return;
355 case AlloyLanguagePackage.ALS_DOCUMENT__FUNCTION_DEFINITIONS:
356 getFunctionDefinitions().clear();
357 return;
358 case AlloyLanguagePackage.ALS_DOCUMENT__RELATION_DEFINITIONS:
359 getRelationDefinitions().clear();
360 return;
361 case AlloyLanguagePackage.ALS_DOCUMENT__FACT_DECLARATIONS:
362 getFactDeclarations().clear();
363 return;
364 case AlloyLanguagePackage.ALS_DOCUMENT__RUN_COMMAND:
365 setRunCommand((ALSRunCommand)null);
366 return;
367 }
368 super.eUnset(featureID);
369 }
370
371 /**
372 * <!-- begin-user-doc -->
373 * <!-- end-user-doc -->
374 * @generated
375 */
376 @Override
377 public boolean eIsSet(int featureID)
378 {
379 switch (featureID)
380 {
381 case AlloyLanguagePackage.ALS_DOCUMENT__ENUM_DECLARATIONS:
382 return enumDeclarations != null && !enumDeclarations.isEmpty();
383 case AlloyLanguagePackage.ALS_DOCUMENT__SIGNATURE_BODIES:
384 return signatureBodies != null && !signatureBodies.isEmpty();
385 case AlloyLanguagePackage.ALS_DOCUMENT__FUNCTION_DEFINITIONS:
386 return functionDefinitions != null && !functionDefinitions.isEmpty();
387 case AlloyLanguagePackage.ALS_DOCUMENT__RELATION_DEFINITIONS:
388 return relationDefinitions != null && !relationDefinitions.isEmpty();
389 case AlloyLanguagePackage.ALS_DOCUMENT__FACT_DECLARATIONS:
390 return factDeclarations != null && !factDeclarations.isEmpty();
391 case AlloyLanguagePackage.ALS_DOCUMENT__RUN_COMMAND:
392 return runCommand != null;
393 }
394 return super.eIsSet(featureID);
395 }
396
397} //ALSDocumentImpl
diff --git a/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSEnumDeclarationImpl.java b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSEnumDeclarationImpl.java
new file mode 100644
index 00000000..776ceb88
--- /dev/null
+++ b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSEnumDeclarationImpl.java
@@ -0,0 +1,165 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSEnumDeclaration;
6import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSEnumLiteral;
7import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguagePackage;
8
9import java.util.Collection;
10
11import org.eclipse.emf.common.notify.NotificationChain;
12
13import org.eclipse.emf.common.util.EList;
14
15import org.eclipse.emf.ecore.EClass;
16import org.eclipse.emf.ecore.InternalEObject;
17
18import org.eclipse.emf.ecore.util.EObjectContainmentEList;
19import org.eclipse.emf.ecore.util.InternalEList;
20
21/**
22 * <!-- begin-user-doc -->
23 * An implementation of the model object '<em><b>ALS Enum Declaration</b></em>'.
24 * <!-- end-user-doc -->
25 * <p>
26 * The following features are implemented:
27 * </p>
28 * <ul>
29 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSEnumDeclarationImpl#getLiteral <em>Literal</em>}</li>
30 * </ul>
31 *
32 * @generated
33 */
34public class ALSEnumDeclarationImpl extends ALSTypeDeclarationImpl implements ALSEnumDeclaration
35{
36 /**
37 * The cached value of the '{@link #getLiteral() <em>Literal</em>}' containment reference list.
38 * <!-- begin-user-doc -->
39 * <!-- end-user-doc -->
40 * @see #getLiteral()
41 * @generated
42 * @ordered
43 */
44 protected EList<ALSEnumLiteral> literal;
45
46 /**
47 * <!-- begin-user-doc -->
48 * <!-- end-user-doc -->
49 * @generated
50 */
51 protected ALSEnumDeclarationImpl()
52 {
53 super();
54 }
55
56 /**
57 * <!-- begin-user-doc -->
58 * <!-- end-user-doc -->
59 * @generated
60 */
61 @Override
62 protected EClass eStaticClass()
63 {
64 return AlloyLanguagePackage.Literals.ALS_ENUM_DECLARATION;
65 }
66
67 /**
68 * <!-- begin-user-doc -->
69 * <!-- end-user-doc -->
70 * @generated
71 */
72 public EList<ALSEnumLiteral> getLiteral()
73 {
74 if (literal == null)
75 {
76 literal = new EObjectContainmentEList<ALSEnumLiteral>(ALSEnumLiteral.class, this, AlloyLanguagePackage.ALS_ENUM_DECLARATION__LITERAL);
77 }
78 return literal;
79 }
80
81 /**
82 * <!-- begin-user-doc -->
83 * <!-- end-user-doc -->
84 * @generated
85 */
86 @Override
87 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
88 {
89 switch (featureID)
90 {
91 case AlloyLanguagePackage.ALS_ENUM_DECLARATION__LITERAL:
92 return ((InternalEList<?>)getLiteral()).basicRemove(otherEnd, msgs);
93 }
94 return super.eInverseRemove(otherEnd, featureID, msgs);
95 }
96
97 /**
98 * <!-- begin-user-doc -->
99 * <!-- end-user-doc -->
100 * @generated
101 */
102 @Override
103 public Object eGet(int featureID, boolean resolve, boolean coreType)
104 {
105 switch (featureID)
106 {
107 case AlloyLanguagePackage.ALS_ENUM_DECLARATION__LITERAL:
108 return getLiteral();
109 }
110 return super.eGet(featureID, resolve, coreType);
111 }
112
113 /**
114 * <!-- begin-user-doc -->
115 * <!-- end-user-doc -->
116 * @generated
117 */
118 @SuppressWarnings("unchecked")
119 @Override
120 public void eSet(int featureID, Object newValue)
121 {
122 switch (featureID)
123 {
124 case AlloyLanguagePackage.ALS_ENUM_DECLARATION__LITERAL:
125 getLiteral().clear();
126 getLiteral().addAll((Collection<? extends ALSEnumLiteral>)newValue);
127 return;
128 }
129 super.eSet(featureID, newValue);
130 }
131
132 /**
133 * <!-- begin-user-doc -->
134 * <!-- end-user-doc -->
135 * @generated
136 */
137 @Override
138 public void eUnset(int featureID)
139 {
140 switch (featureID)
141 {
142 case AlloyLanguagePackage.ALS_ENUM_DECLARATION__LITERAL:
143 getLiteral().clear();
144 return;
145 }
146 super.eUnset(featureID);
147 }
148
149 /**
150 * <!-- begin-user-doc -->
151 * <!-- end-user-doc -->
152 * @generated
153 */
154 @Override
155 public boolean eIsSet(int featureID)
156 {
157 switch (featureID)
158 {
159 case AlloyLanguagePackage.ALS_ENUM_DECLARATION__LITERAL:
160 return literal != null && !literal.isEmpty();
161 }
162 return super.eIsSet(featureID);
163 }
164
165} //ALSEnumDeclarationImpl
diff --git a/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSEnumLiteralImpl.java b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSEnumLiteralImpl.java
new file mode 100644
index 00000000..59cde373
--- /dev/null
+++ b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSEnumLiteralImpl.java
@@ -0,0 +1,40 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSEnumLiteral;
6import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguagePackage;
7
8import org.eclipse.emf.ecore.EClass;
9
10/**
11 * <!-- begin-user-doc -->
12 * An implementation of the model object '<em><b>ALS Enum Literal</b></em>'.
13 * <!-- end-user-doc -->
14 *
15 * @generated
16 */
17public class ALSEnumLiteralImpl extends ALSRelationDeclarationImpl implements ALSEnumLiteral
18{
19 /**
20 * <!-- begin-user-doc -->
21 * <!-- end-user-doc -->
22 * @generated
23 */
24 protected ALSEnumLiteralImpl()
25 {
26 super();
27 }
28
29 /**
30 * <!-- begin-user-doc -->
31 * <!-- end-user-doc -->
32 * @generated
33 */
34 @Override
35 protected EClass eStaticClass()
36 {
37 return AlloyLanguagePackage.Literals.ALS_ENUM_LITERAL;
38 }
39
40} //ALSEnumLiteralImpl
diff --git a/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSEqualsImpl.java b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSEqualsImpl.java
new file mode 100644
index 00000000..8e61050b
--- /dev/null
+++ b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSEqualsImpl.java
@@ -0,0 +1,264 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSEquals;
6import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSTerm;
7import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguagePackage;
8
9import org.eclipse.emf.common.notify.Notification;
10import org.eclipse.emf.common.notify.NotificationChain;
11
12import org.eclipse.emf.ecore.EClass;
13import org.eclipse.emf.ecore.InternalEObject;
14
15import org.eclipse.emf.ecore.impl.ENotificationImpl;
16
17/**
18 * <!-- begin-user-doc -->
19 * An implementation of the model object '<em><b>ALS Equals</b></em>'.
20 * <!-- end-user-doc -->
21 * <p>
22 * The following features are implemented:
23 * </p>
24 * <ul>
25 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSEqualsImpl#getLeftOperand <em>Left Operand</em>}</li>
26 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSEqualsImpl#getRightOperand <em>Right Operand</em>}</li>
27 * </ul>
28 *
29 * @generated
30 */
31public class ALSEqualsImpl extends ALSTermImpl implements ALSEquals
32{
33 /**
34 * The cached value of the '{@link #getLeftOperand() <em>Left Operand</em>}' containment reference.
35 * <!-- begin-user-doc -->
36 * <!-- end-user-doc -->
37 * @see #getLeftOperand()
38 * @generated
39 * @ordered
40 */
41 protected ALSTerm leftOperand;
42
43 /**
44 * The cached value of the '{@link #getRightOperand() <em>Right Operand</em>}' containment reference.
45 * <!-- begin-user-doc -->
46 * <!-- end-user-doc -->
47 * @see #getRightOperand()
48 * @generated
49 * @ordered
50 */
51 protected ALSTerm rightOperand;
52
53 /**
54 * <!-- begin-user-doc -->
55 * <!-- end-user-doc -->
56 * @generated
57 */
58 protected ALSEqualsImpl()
59 {
60 super();
61 }
62
63 /**
64 * <!-- begin-user-doc -->
65 * <!-- end-user-doc -->
66 * @generated
67 */
68 @Override
69 protected EClass eStaticClass()
70 {
71 return AlloyLanguagePackage.Literals.ALS_EQUALS;
72 }
73
74 /**
75 * <!-- begin-user-doc -->
76 * <!-- end-user-doc -->
77 * @generated
78 */
79 public ALSTerm getLeftOperand()
80 {
81 return leftOperand;
82 }
83
84 /**
85 * <!-- begin-user-doc -->
86 * <!-- end-user-doc -->
87 * @generated
88 */
89 public NotificationChain basicSetLeftOperand(ALSTerm newLeftOperand, NotificationChain msgs)
90 {
91 ALSTerm oldLeftOperand = leftOperand;
92 leftOperand = newLeftOperand;
93 if (eNotificationRequired())
94 {
95 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_EQUALS__LEFT_OPERAND, oldLeftOperand, newLeftOperand);
96 if (msgs == null) msgs = notification; else msgs.add(notification);
97 }
98 return msgs;
99 }
100
101 /**
102 * <!-- begin-user-doc -->
103 * <!-- end-user-doc -->
104 * @generated
105 */
106 public void setLeftOperand(ALSTerm newLeftOperand)
107 {
108 if (newLeftOperand != leftOperand)
109 {
110 NotificationChain msgs = null;
111 if (leftOperand != null)
112 msgs = ((InternalEObject)leftOperand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_EQUALS__LEFT_OPERAND, null, msgs);
113 if (newLeftOperand != null)
114 msgs = ((InternalEObject)newLeftOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_EQUALS__LEFT_OPERAND, null, msgs);
115 msgs = basicSetLeftOperand(newLeftOperand, msgs);
116 if (msgs != null) msgs.dispatch();
117 }
118 else if (eNotificationRequired())
119 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_EQUALS__LEFT_OPERAND, newLeftOperand, newLeftOperand));
120 }
121
122 /**
123 * <!-- begin-user-doc -->
124 * <!-- end-user-doc -->
125 * @generated
126 */
127 public ALSTerm getRightOperand()
128 {
129 return rightOperand;
130 }
131
132 /**
133 * <!-- begin-user-doc -->
134 * <!-- end-user-doc -->
135 * @generated
136 */
137 public NotificationChain basicSetRightOperand(ALSTerm newRightOperand, NotificationChain msgs)
138 {
139 ALSTerm oldRightOperand = rightOperand;
140 rightOperand = newRightOperand;
141 if (eNotificationRequired())
142 {
143 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_EQUALS__RIGHT_OPERAND, oldRightOperand, newRightOperand);
144 if (msgs == null) msgs = notification; else msgs.add(notification);
145 }
146 return msgs;
147 }
148
149 /**
150 * <!-- begin-user-doc -->
151 * <!-- end-user-doc -->
152 * @generated
153 */
154 public void setRightOperand(ALSTerm newRightOperand)
155 {
156 if (newRightOperand != rightOperand)
157 {
158 NotificationChain msgs = null;
159 if (rightOperand != null)
160 msgs = ((InternalEObject)rightOperand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_EQUALS__RIGHT_OPERAND, null, msgs);
161 if (newRightOperand != null)
162 msgs = ((InternalEObject)newRightOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_EQUALS__RIGHT_OPERAND, null, msgs);
163 msgs = basicSetRightOperand(newRightOperand, msgs);
164 if (msgs != null) msgs.dispatch();
165 }
166 else if (eNotificationRequired())
167 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_EQUALS__RIGHT_OPERAND, newRightOperand, newRightOperand));
168 }
169
170 /**
171 * <!-- begin-user-doc -->
172 * <!-- end-user-doc -->
173 * @generated
174 */
175 @Override
176 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
177 {
178 switch (featureID)
179 {
180 case AlloyLanguagePackage.ALS_EQUALS__LEFT_OPERAND:
181 return basicSetLeftOperand(null, msgs);
182 case AlloyLanguagePackage.ALS_EQUALS__RIGHT_OPERAND:
183 return basicSetRightOperand(null, msgs);
184 }
185 return super.eInverseRemove(otherEnd, featureID, msgs);
186 }
187
188 /**
189 * <!-- begin-user-doc -->
190 * <!-- end-user-doc -->
191 * @generated
192 */
193 @Override
194 public Object eGet(int featureID, boolean resolve, boolean coreType)
195 {
196 switch (featureID)
197 {
198 case AlloyLanguagePackage.ALS_EQUALS__LEFT_OPERAND:
199 return getLeftOperand();
200 case AlloyLanguagePackage.ALS_EQUALS__RIGHT_OPERAND:
201 return getRightOperand();
202 }
203 return super.eGet(featureID, resolve, coreType);
204 }
205
206 /**
207 * <!-- begin-user-doc -->
208 * <!-- end-user-doc -->
209 * @generated
210 */
211 @Override
212 public void eSet(int featureID, Object newValue)
213 {
214 switch (featureID)
215 {
216 case AlloyLanguagePackage.ALS_EQUALS__LEFT_OPERAND:
217 setLeftOperand((ALSTerm)newValue);
218 return;
219 case AlloyLanguagePackage.ALS_EQUALS__RIGHT_OPERAND:
220 setRightOperand((ALSTerm)newValue);
221 return;
222 }
223 super.eSet(featureID, newValue);
224 }
225
226 /**
227 * <!-- begin-user-doc -->
228 * <!-- end-user-doc -->
229 * @generated
230 */
231 @Override
232 public void eUnset(int featureID)
233 {
234 switch (featureID)
235 {
236 case AlloyLanguagePackage.ALS_EQUALS__LEFT_OPERAND:
237 setLeftOperand((ALSTerm)null);
238 return;
239 case AlloyLanguagePackage.ALS_EQUALS__RIGHT_OPERAND:
240 setRightOperand((ALSTerm)null);
241 return;
242 }
243 super.eUnset(featureID);
244 }
245
246 /**
247 * <!-- begin-user-doc -->
248 * <!-- end-user-doc -->
249 * @generated
250 */
251 @Override
252 public boolean eIsSet(int featureID)
253 {
254 switch (featureID)
255 {
256 case AlloyLanguagePackage.ALS_EQUALS__LEFT_OPERAND:
257 return leftOperand != null;
258 case AlloyLanguagePackage.ALS_EQUALS__RIGHT_OPERAND:
259 return rightOperand != null;
260 }
261 return super.eIsSet(featureID);
262 }
263
264} //ALSEqualsImpl
diff --git a/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSFactDeclarationImpl.java b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSFactDeclarationImpl.java
new file mode 100644
index 00000000..dad737b8
--- /dev/null
+++ b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSFactDeclarationImpl.java
@@ -0,0 +1,265 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSFactDeclaration;
6import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSTerm;
7import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguagePackage;
8
9import org.eclipse.emf.common.notify.Notification;
10import org.eclipse.emf.common.notify.NotificationChain;
11
12import org.eclipse.emf.ecore.EClass;
13import org.eclipse.emf.ecore.InternalEObject;
14
15import org.eclipse.emf.ecore.impl.ENotificationImpl;
16import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
17
18/**
19 * <!-- begin-user-doc -->
20 * An implementation of the model object '<em><b>ALS Fact Declaration</b></em>'.
21 * <!-- end-user-doc -->
22 * <p>
23 * The following features are implemented:
24 * </p>
25 * <ul>
26 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSFactDeclarationImpl#getName <em>Name</em>}</li>
27 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSFactDeclarationImpl#getTerm <em>Term</em>}</li>
28 * </ul>
29 *
30 * @generated
31 */
32public class ALSFactDeclarationImpl extends MinimalEObjectImpl.Container implements ALSFactDeclaration
33{
34 /**
35 * The default value of the '{@link #getName() <em>Name</em>}' attribute.
36 * <!-- begin-user-doc -->
37 * <!-- end-user-doc -->
38 * @see #getName()
39 * @generated
40 * @ordered
41 */
42 protected static final String NAME_EDEFAULT = null;
43
44 /**
45 * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
46 * <!-- begin-user-doc -->
47 * <!-- end-user-doc -->
48 * @see #getName()
49 * @generated
50 * @ordered
51 */
52 protected String name = NAME_EDEFAULT;
53
54 /**
55 * The cached value of the '{@link #getTerm() <em>Term</em>}' containment reference.
56 * <!-- begin-user-doc -->
57 * <!-- end-user-doc -->
58 * @see #getTerm()
59 * @generated
60 * @ordered
61 */
62 protected ALSTerm term;
63
64 /**
65 * <!-- begin-user-doc -->
66 * <!-- end-user-doc -->
67 * @generated
68 */
69 protected ALSFactDeclarationImpl()
70 {
71 super();
72 }
73
74 /**
75 * <!-- begin-user-doc -->
76 * <!-- end-user-doc -->
77 * @generated
78 */
79 @Override
80 protected EClass eStaticClass()
81 {
82 return AlloyLanguagePackage.Literals.ALS_FACT_DECLARATION;
83 }
84
85 /**
86 * <!-- begin-user-doc -->
87 * <!-- end-user-doc -->
88 * @generated
89 */
90 public String getName()
91 {
92 return name;
93 }
94
95 /**
96 * <!-- begin-user-doc -->
97 * <!-- end-user-doc -->
98 * @generated
99 */
100 public void setName(String newName)
101 {
102 String oldName = name;
103 name = newName;
104 if (eNotificationRequired())
105 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_FACT_DECLARATION__NAME, oldName, name));
106 }
107
108 /**
109 * <!-- begin-user-doc -->
110 * <!-- end-user-doc -->
111 * @generated
112 */
113 public ALSTerm getTerm()
114 {
115 return term;
116 }
117
118 /**
119 * <!-- begin-user-doc -->
120 * <!-- end-user-doc -->
121 * @generated
122 */
123 public NotificationChain basicSetTerm(ALSTerm newTerm, NotificationChain msgs)
124 {
125 ALSTerm oldTerm = term;
126 term = newTerm;
127 if (eNotificationRequired())
128 {
129 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_FACT_DECLARATION__TERM, oldTerm, newTerm);
130 if (msgs == null) msgs = notification; else msgs.add(notification);
131 }
132 return msgs;
133 }
134
135 /**
136 * <!-- begin-user-doc -->
137 * <!-- end-user-doc -->
138 * @generated
139 */
140 public void setTerm(ALSTerm newTerm)
141 {
142 if (newTerm != term)
143 {
144 NotificationChain msgs = null;
145 if (term != null)
146 msgs = ((InternalEObject)term).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_FACT_DECLARATION__TERM, null, msgs);
147 if (newTerm != null)
148 msgs = ((InternalEObject)newTerm).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_FACT_DECLARATION__TERM, null, msgs);
149 msgs = basicSetTerm(newTerm, msgs);
150 if (msgs != null) msgs.dispatch();
151 }
152 else if (eNotificationRequired())
153 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_FACT_DECLARATION__TERM, newTerm, newTerm));
154 }
155
156 /**
157 * <!-- begin-user-doc -->
158 * <!-- end-user-doc -->
159 * @generated
160 */
161 @Override
162 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
163 {
164 switch (featureID)
165 {
166 case AlloyLanguagePackage.ALS_FACT_DECLARATION__TERM:
167 return basicSetTerm(null, msgs);
168 }
169 return super.eInverseRemove(otherEnd, featureID, msgs);
170 }
171
172 /**
173 * <!-- begin-user-doc -->
174 * <!-- end-user-doc -->
175 * @generated
176 */
177 @Override
178 public Object eGet(int featureID, boolean resolve, boolean coreType)
179 {
180 switch (featureID)
181 {
182 case AlloyLanguagePackage.ALS_FACT_DECLARATION__NAME:
183 return getName();
184 case AlloyLanguagePackage.ALS_FACT_DECLARATION__TERM:
185 return getTerm();
186 }
187 return super.eGet(featureID, resolve, coreType);
188 }
189
190 /**
191 * <!-- begin-user-doc -->
192 * <!-- end-user-doc -->
193 * @generated
194 */
195 @Override
196 public void eSet(int featureID, Object newValue)
197 {
198 switch (featureID)
199 {
200 case AlloyLanguagePackage.ALS_FACT_DECLARATION__NAME:
201 setName((String)newValue);
202 return;
203 case AlloyLanguagePackage.ALS_FACT_DECLARATION__TERM:
204 setTerm((ALSTerm)newValue);
205 return;
206 }
207 super.eSet(featureID, newValue);
208 }
209
210 /**
211 * <!-- begin-user-doc -->
212 * <!-- end-user-doc -->
213 * @generated
214 */
215 @Override
216 public void eUnset(int featureID)
217 {
218 switch (featureID)
219 {
220 case AlloyLanguagePackage.ALS_FACT_DECLARATION__NAME:
221 setName(NAME_EDEFAULT);
222 return;
223 case AlloyLanguagePackage.ALS_FACT_DECLARATION__TERM:
224 setTerm((ALSTerm)null);
225 return;
226 }
227 super.eUnset(featureID);
228 }
229
230 /**
231 * <!-- begin-user-doc -->
232 * <!-- end-user-doc -->
233 * @generated
234 */
235 @Override
236 public boolean eIsSet(int featureID)
237 {
238 switch (featureID)
239 {
240 case AlloyLanguagePackage.ALS_FACT_DECLARATION__NAME:
241 return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
242 case AlloyLanguagePackage.ALS_FACT_DECLARATION__TERM:
243 return term != null;
244 }
245 return super.eIsSet(featureID);
246 }
247
248 /**
249 * <!-- begin-user-doc -->
250 * <!-- end-user-doc -->
251 * @generated
252 */
253 @Override
254 public String toString()
255 {
256 if (eIsProxy()) return super.toString();
257
258 StringBuffer result = new StringBuffer(super.toString());
259 result.append(" (name: ");
260 result.append(name);
261 result.append(')');
262 return result.toString();
263 }
264
265} //ALSFactDeclarationImpl
diff --git a/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSFieldDeclarationImpl.java b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSFieldDeclarationImpl.java
new file mode 100644
index 00000000..22e551bb
--- /dev/null
+++ b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSFieldDeclarationImpl.java
@@ -0,0 +1,265 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSFieldDeclaration;
6import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSMultiplicity;
7import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSTerm;
8import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguagePackage;
9
10import org.eclipse.emf.common.notify.Notification;
11import org.eclipse.emf.common.notify.NotificationChain;
12
13import org.eclipse.emf.ecore.EClass;
14import org.eclipse.emf.ecore.InternalEObject;
15
16import org.eclipse.emf.ecore.impl.ENotificationImpl;
17
18/**
19 * <!-- begin-user-doc -->
20 * An implementation of the model object '<em><b>ALS Field Declaration</b></em>'.
21 * <!-- end-user-doc -->
22 * <p>
23 * The following features are implemented:
24 * </p>
25 * <ul>
26 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSFieldDeclarationImpl#getMultiplicity <em>Multiplicity</em>}</li>
27 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSFieldDeclarationImpl#getType <em>Type</em>}</li>
28 * </ul>
29 *
30 * @generated
31 */
32public class ALSFieldDeclarationImpl extends ALSRelationDeclarationImpl implements ALSFieldDeclaration
33{
34 /**
35 * The default value of the '{@link #getMultiplicity() <em>Multiplicity</em>}' attribute.
36 * <!-- begin-user-doc -->
37 * <!-- end-user-doc -->
38 * @see #getMultiplicity()
39 * @generated
40 * @ordered
41 */
42 protected static final ALSMultiplicity MULTIPLICITY_EDEFAULT = ALSMultiplicity.ALL;
43
44 /**
45 * The cached value of the '{@link #getMultiplicity() <em>Multiplicity</em>}' attribute.
46 * <!-- begin-user-doc -->
47 * <!-- end-user-doc -->
48 * @see #getMultiplicity()
49 * @generated
50 * @ordered
51 */
52 protected ALSMultiplicity multiplicity = MULTIPLICITY_EDEFAULT;
53
54 /**
55 * The cached value of the '{@link #getType() <em>Type</em>}' containment reference.
56 * <!-- begin-user-doc -->
57 * <!-- end-user-doc -->
58 * @see #getType()
59 * @generated
60 * @ordered
61 */
62 protected ALSTerm type;
63
64 /**
65 * <!-- begin-user-doc -->
66 * <!-- end-user-doc -->
67 * @generated
68 */
69 protected ALSFieldDeclarationImpl()
70 {
71 super();
72 }
73
74 /**
75 * <!-- begin-user-doc -->
76 * <!-- end-user-doc -->
77 * @generated
78 */
79 @Override
80 protected EClass eStaticClass()
81 {
82 return AlloyLanguagePackage.Literals.ALS_FIELD_DECLARATION;
83 }
84
85 /**
86 * <!-- begin-user-doc -->
87 * <!-- end-user-doc -->
88 * @generated
89 */
90 public ALSMultiplicity getMultiplicity()
91 {
92 return multiplicity;
93 }
94
95 /**
96 * <!-- begin-user-doc -->
97 * <!-- end-user-doc -->
98 * @generated
99 */
100 public void setMultiplicity(ALSMultiplicity newMultiplicity)
101 {
102 ALSMultiplicity oldMultiplicity = multiplicity;
103 multiplicity = newMultiplicity == null ? MULTIPLICITY_EDEFAULT : newMultiplicity;
104 if (eNotificationRequired())
105 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_FIELD_DECLARATION__MULTIPLICITY, oldMultiplicity, multiplicity));
106 }
107
108 /**
109 * <!-- begin-user-doc -->
110 * <!-- end-user-doc -->
111 * @generated
112 */
113 public ALSTerm getType()
114 {
115 return type;
116 }
117
118 /**
119 * <!-- begin-user-doc -->
120 * <!-- end-user-doc -->
121 * @generated
122 */
123 public NotificationChain basicSetType(ALSTerm newType, NotificationChain msgs)
124 {
125 ALSTerm oldType = type;
126 type = newType;
127 if (eNotificationRequired())
128 {
129 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_FIELD_DECLARATION__TYPE, oldType, newType);
130 if (msgs == null) msgs = notification; else msgs.add(notification);
131 }
132 return msgs;
133 }
134
135 /**
136 * <!-- begin-user-doc -->
137 * <!-- end-user-doc -->
138 * @generated
139 */
140 public void setType(ALSTerm newType)
141 {
142 if (newType != type)
143 {
144 NotificationChain msgs = null;
145 if (type != null)
146 msgs = ((InternalEObject)type).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_FIELD_DECLARATION__TYPE, null, msgs);
147 if (newType != null)
148 msgs = ((InternalEObject)newType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_FIELD_DECLARATION__TYPE, null, msgs);
149 msgs = basicSetType(newType, msgs);
150 if (msgs != null) msgs.dispatch();
151 }
152 else if (eNotificationRequired())
153 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_FIELD_DECLARATION__TYPE, newType, newType));
154 }
155
156 /**
157 * <!-- begin-user-doc -->
158 * <!-- end-user-doc -->
159 * @generated
160 */
161 @Override
162 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
163 {
164 switch (featureID)
165 {
166 case AlloyLanguagePackage.ALS_FIELD_DECLARATION__TYPE:
167 return basicSetType(null, msgs);
168 }
169 return super.eInverseRemove(otherEnd, featureID, msgs);
170 }
171
172 /**
173 * <!-- begin-user-doc -->
174 * <!-- end-user-doc -->
175 * @generated
176 */
177 @Override
178 public Object eGet(int featureID, boolean resolve, boolean coreType)
179 {
180 switch (featureID)
181 {
182 case AlloyLanguagePackage.ALS_FIELD_DECLARATION__MULTIPLICITY:
183 return getMultiplicity();
184 case AlloyLanguagePackage.ALS_FIELD_DECLARATION__TYPE:
185 return getType();
186 }
187 return super.eGet(featureID, resolve, coreType);
188 }
189
190 /**
191 * <!-- begin-user-doc -->
192 * <!-- end-user-doc -->
193 * @generated
194 */
195 @Override
196 public void eSet(int featureID, Object newValue)
197 {
198 switch (featureID)
199 {
200 case AlloyLanguagePackage.ALS_FIELD_DECLARATION__MULTIPLICITY:
201 setMultiplicity((ALSMultiplicity)newValue);
202 return;
203 case AlloyLanguagePackage.ALS_FIELD_DECLARATION__TYPE:
204 setType((ALSTerm)newValue);
205 return;
206 }
207 super.eSet(featureID, newValue);
208 }
209
210 /**
211 * <!-- begin-user-doc -->
212 * <!-- end-user-doc -->
213 * @generated
214 */
215 @Override
216 public void eUnset(int featureID)
217 {
218 switch (featureID)
219 {
220 case AlloyLanguagePackage.ALS_FIELD_DECLARATION__MULTIPLICITY:
221 setMultiplicity(MULTIPLICITY_EDEFAULT);
222 return;
223 case AlloyLanguagePackage.ALS_FIELD_DECLARATION__TYPE:
224 setType((ALSTerm)null);
225 return;
226 }
227 super.eUnset(featureID);
228 }
229
230 /**
231 * <!-- begin-user-doc -->
232 * <!-- end-user-doc -->
233 * @generated
234 */
235 @Override
236 public boolean eIsSet(int featureID)
237 {
238 switch (featureID)
239 {
240 case AlloyLanguagePackage.ALS_FIELD_DECLARATION__MULTIPLICITY:
241 return multiplicity != MULTIPLICITY_EDEFAULT;
242 case AlloyLanguagePackage.ALS_FIELD_DECLARATION__TYPE:
243 return type != null;
244 }
245 return super.eIsSet(featureID);
246 }
247
248 /**
249 * <!-- begin-user-doc -->
250 * <!-- end-user-doc -->
251 * @generated
252 */
253 @Override
254 public String toString()
255 {
256 if (eIsProxy()) return super.toString();
257
258 StringBuffer result = new StringBuffer(super.toString());
259 result.append(" (multiplicity: ");
260 result.append(multiplicity);
261 result.append(')');
262 return result.toString();
263 }
264
265} //ALSFieldDeclarationImpl
diff --git a/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSFunctionCallImpl.java b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSFunctionCallImpl.java
new file mode 100644
index 00000000..e602f63b
--- /dev/null
+++ b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSFunctionCallImpl.java
@@ -0,0 +1,306 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSDefinition;
6import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSFunctionCall;
7import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSNumericOperator;
8import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSTerm;
9import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguagePackage;
10
11import java.util.Collection;
12
13import org.eclipse.emf.common.notify.Notification;
14import org.eclipse.emf.common.notify.NotificationChain;
15
16import org.eclipse.emf.common.util.EList;
17
18import org.eclipse.emf.ecore.EClass;
19import org.eclipse.emf.ecore.InternalEObject;
20
21import org.eclipse.emf.ecore.impl.ENotificationImpl;
22
23import org.eclipse.emf.ecore.util.EObjectContainmentEList;
24import org.eclipse.emf.ecore.util.InternalEList;
25
26/**
27 * <!-- begin-user-doc -->
28 * An implementation of the model object '<em><b>ALS Function Call</b></em>'.
29 * <!-- end-user-doc -->
30 * <p>
31 * The following features are implemented:
32 * </p>
33 * <ul>
34 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSFunctionCallImpl#getReferredDefinition <em>Referred Definition</em>}</li>
35 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSFunctionCallImpl#getReferredNumericOperator <em>Referred Numeric Operator</em>}</li>
36 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSFunctionCallImpl#getParams <em>Params</em>}</li>
37 * </ul>
38 *
39 * @generated
40 */
41public class ALSFunctionCallImpl extends ALSTermImpl implements ALSFunctionCall
42{
43 /**
44 * The cached value of the '{@link #getReferredDefinition() <em>Referred Definition</em>}' reference.
45 * <!-- begin-user-doc -->
46 * <!-- end-user-doc -->
47 * @see #getReferredDefinition()
48 * @generated
49 * @ordered
50 */
51 protected ALSDefinition referredDefinition;
52
53 /**
54 * The default value of the '{@link #getReferredNumericOperator() <em>Referred Numeric Operator</em>}' attribute.
55 * <!-- begin-user-doc -->
56 * <!-- end-user-doc -->
57 * @see #getReferredNumericOperator()
58 * @generated
59 * @ordered
60 */
61 protected static final ALSNumericOperator REFERRED_NUMERIC_OPERATOR_EDEFAULT = ALSNumericOperator.PLUS;
62
63 /**
64 * The cached value of the '{@link #getReferredNumericOperator() <em>Referred Numeric Operator</em>}' attribute.
65 * <!-- begin-user-doc -->
66 * <!-- end-user-doc -->
67 * @see #getReferredNumericOperator()
68 * @generated
69 * @ordered
70 */
71 protected ALSNumericOperator referredNumericOperator = REFERRED_NUMERIC_OPERATOR_EDEFAULT;
72
73 /**
74 * The cached value of the '{@link #getParams() <em>Params</em>}' containment reference list.
75 * <!-- begin-user-doc -->
76 * <!-- end-user-doc -->
77 * @see #getParams()
78 * @generated
79 * @ordered
80 */
81 protected EList<ALSTerm> params;
82
83 /**
84 * <!-- begin-user-doc -->
85 * <!-- end-user-doc -->
86 * @generated
87 */
88 protected ALSFunctionCallImpl()
89 {
90 super();
91 }
92
93 /**
94 * <!-- begin-user-doc -->
95 * <!-- end-user-doc -->
96 * @generated
97 */
98 @Override
99 protected EClass eStaticClass()
100 {
101 return AlloyLanguagePackage.Literals.ALS_FUNCTION_CALL;
102 }
103
104 /**
105 * <!-- begin-user-doc -->
106 * <!-- end-user-doc -->
107 * @generated
108 */
109 public ALSDefinition getReferredDefinition()
110 {
111 if (referredDefinition != null && referredDefinition.eIsProxy())
112 {
113 InternalEObject oldReferredDefinition = (InternalEObject)referredDefinition;
114 referredDefinition = (ALSDefinition)eResolveProxy(oldReferredDefinition);
115 if (referredDefinition != oldReferredDefinition)
116 {
117 if (eNotificationRequired())
118 eNotify(new ENotificationImpl(this, Notification.RESOLVE, AlloyLanguagePackage.ALS_FUNCTION_CALL__REFERRED_DEFINITION, oldReferredDefinition, referredDefinition));
119 }
120 }
121 return referredDefinition;
122 }
123
124 /**
125 * <!-- begin-user-doc -->
126 * <!-- end-user-doc -->
127 * @generated
128 */
129 public ALSDefinition basicGetReferredDefinition()
130 {
131 return referredDefinition;
132 }
133
134 /**
135 * <!-- begin-user-doc -->
136 * <!-- end-user-doc -->
137 * @generated
138 */
139 public void setReferredDefinition(ALSDefinition newReferredDefinition)
140 {
141 ALSDefinition oldReferredDefinition = referredDefinition;
142 referredDefinition = newReferredDefinition;
143 if (eNotificationRequired())
144 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_FUNCTION_CALL__REFERRED_DEFINITION, oldReferredDefinition, referredDefinition));
145 }
146
147 /**
148 * <!-- begin-user-doc -->
149 * <!-- end-user-doc -->
150 * @generated
151 */
152 public ALSNumericOperator getReferredNumericOperator()
153 {
154 return referredNumericOperator;
155 }
156
157 /**
158 * <!-- begin-user-doc -->
159 * <!-- end-user-doc -->
160 * @generated
161 */
162 public void setReferredNumericOperator(ALSNumericOperator newReferredNumericOperator)
163 {
164 ALSNumericOperator oldReferredNumericOperator = referredNumericOperator;
165 referredNumericOperator = newReferredNumericOperator == null ? REFERRED_NUMERIC_OPERATOR_EDEFAULT : newReferredNumericOperator;
166 if (eNotificationRequired())
167 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_FUNCTION_CALL__REFERRED_NUMERIC_OPERATOR, oldReferredNumericOperator, referredNumericOperator));
168 }
169
170 /**
171 * <!-- begin-user-doc -->
172 * <!-- end-user-doc -->
173 * @generated
174 */
175 public EList<ALSTerm> getParams()
176 {
177 if (params == null)
178 {
179 params = new EObjectContainmentEList<ALSTerm>(ALSTerm.class, this, AlloyLanguagePackage.ALS_FUNCTION_CALL__PARAMS);
180 }
181 return params;
182 }
183
184 /**
185 * <!-- begin-user-doc -->
186 * <!-- end-user-doc -->
187 * @generated
188 */
189 @Override
190 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
191 {
192 switch (featureID)
193 {
194 case AlloyLanguagePackage.ALS_FUNCTION_CALL__PARAMS:
195 return ((InternalEList<?>)getParams()).basicRemove(otherEnd, msgs);
196 }
197 return super.eInverseRemove(otherEnd, featureID, msgs);
198 }
199
200 /**
201 * <!-- begin-user-doc -->
202 * <!-- end-user-doc -->
203 * @generated
204 */
205 @Override
206 public Object eGet(int featureID, boolean resolve, boolean coreType)
207 {
208 switch (featureID)
209 {
210 case AlloyLanguagePackage.ALS_FUNCTION_CALL__REFERRED_DEFINITION:
211 if (resolve) return getReferredDefinition();
212 return basicGetReferredDefinition();
213 case AlloyLanguagePackage.ALS_FUNCTION_CALL__REFERRED_NUMERIC_OPERATOR:
214 return getReferredNumericOperator();
215 case AlloyLanguagePackage.ALS_FUNCTION_CALL__PARAMS:
216 return getParams();
217 }
218 return super.eGet(featureID, resolve, coreType);
219 }
220
221 /**
222 * <!-- begin-user-doc -->
223 * <!-- end-user-doc -->
224 * @generated
225 */
226 @SuppressWarnings("unchecked")
227 @Override
228 public void eSet(int featureID, Object newValue)
229 {
230 switch (featureID)
231 {
232 case AlloyLanguagePackage.ALS_FUNCTION_CALL__REFERRED_DEFINITION:
233 setReferredDefinition((ALSDefinition)newValue);
234 return;
235 case AlloyLanguagePackage.ALS_FUNCTION_CALL__REFERRED_NUMERIC_OPERATOR:
236 setReferredNumericOperator((ALSNumericOperator)newValue);
237 return;
238 case AlloyLanguagePackage.ALS_FUNCTION_CALL__PARAMS:
239 getParams().clear();
240 getParams().addAll((Collection<? extends ALSTerm>)newValue);
241 return;
242 }
243 super.eSet(featureID, newValue);
244 }
245
246 /**
247 * <!-- begin-user-doc -->
248 * <!-- end-user-doc -->
249 * @generated
250 */
251 @Override
252 public void eUnset(int featureID)
253 {
254 switch (featureID)
255 {
256 case AlloyLanguagePackage.ALS_FUNCTION_CALL__REFERRED_DEFINITION:
257 setReferredDefinition((ALSDefinition)null);
258 return;
259 case AlloyLanguagePackage.ALS_FUNCTION_CALL__REFERRED_NUMERIC_OPERATOR:
260 setReferredNumericOperator(REFERRED_NUMERIC_OPERATOR_EDEFAULT);
261 return;
262 case AlloyLanguagePackage.ALS_FUNCTION_CALL__PARAMS:
263 getParams().clear();
264 return;
265 }
266 super.eUnset(featureID);
267 }
268
269 /**
270 * <!-- begin-user-doc -->
271 * <!-- end-user-doc -->
272 * @generated
273 */
274 @Override
275 public boolean eIsSet(int featureID)
276 {
277 switch (featureID)
278 {
279 case AlloyLanguagePackage.ALS_FUNCTION_CALL__REFERRED_DEFINITION:
280 return referredDefinition != null;
281 case AlloyLanguagePackage.ALS_FUNCTION_CALL__REFERRED_NUMERIC_OPERATOR:
282 return referredNumericOperator != REFERRED_NUMERIC_OPERATOR_EDEFAULT;
283 case AlloyLanguagePackage.ALS_FUNCTION_CALL__PARAMS:
284 return params != null && !params.isEmpty();
285 }
286 return super.eIsSet(featureID);
287 }
288
289 /**
290 * <!-- begin-user-doc -->
291 * <!-- end-user-doc -->
292 * @generated
293 */
294 @Override
295 public String toString()
296 {
297 if (eIsProxy()) return super.toString();
298
299 StringBuffer result = new StringBuffer(super.toString());
300 result.append(" (referredNumericOperator: ");
301 result.append(referredNumericOperator);
302 result.append(')');
303 return result.toString();
304 }
305
306} //ALSFunctionCallImpl
diff --git a/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSFunctionDefinitionImpl.java b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSFunctionDefinitionImpl.java
new file mode 100644
index 00000000..3256eee1
--- /dev/null
+++ b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSFunctionDefinitionImpl.java
@@ -0,0 +1,193 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSFunctionDefinition;
6import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSTerm;
7import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguagePackage;
8
9import org.eclipse.emf.common.notify.Notification;
10import org.eclipse.emf.common.notify.NotificationChain;
11
12import org.eclipse.emf.ecore.EClass;
13import org.eclipse.emf.ecore.InternalEObject;
14
15import org.eclipse.emf.ecore.impl.ENotificationImpl;
16
17/**
18 * <!-- begin-user-doc -->
19 * An implementation of the model object '<em><b>ALS Function Definition</b></em>'.
20 * <!-- end-user-doc -->
21 * <p>
22 * The following features are implemented:
23 * </p>
24 * <ul>
25 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSFunctionDefinitionImpl#getType <em>Type</em>}</li>
26 * </ul>
27 *
28 * @generated
29 */
30public class ALSFunctionDefinitionImpl extends ALSDefinitionImpl implements ALSFunctionDefinition
31{
32 /**
33 * The cached value of the '{@link #getType() <em>Type</em>}' containment reference.
34 * <!-- begin-user-doc -->
35 * <!-- end-user-doc -->
36 * @see #getType()
37 * @generated
38 * @ordered
39 */
40 protected ALSTerm type;
41
42 /**
43 * <!-- begin-user-doc -->
44 * <!-- end-user-doc -->
45 * @generated
46 */
47 protected ALSFunctionDefinitionImpl()
48 {
49 super();
50 }
51
52 /**
53 * <!-- begin-user-doc -->
54 * <!-- end-user-doc -->
55 * @generated
56 */
57 @Override
58 protected EClass eStaticClass()
59 {
60 return AlloyLanguagePackage.Literals.ALS_FUNCTION_DEFINITION;
61 }
62
63 /**
64 * <!-- begin-user-doc -->
65 * <!-- end-user-doc -->
66 * @generated
67 */
68 public ALSTerm getType()
69 {
70 return type;
71 }
72
73 /**
74 * <!-- begin-user-doc -->
75 * <!-- end-user-doc -->
76 * @generated
77 */
78 public NotificationChain basicSetType(ALSTerm newType, NotificationChain msgs)
79 {
80 ALSTerm oldType = type;
81 type = newType;
82 if (eNotificationRequired())
83 {
84 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_FUNCTION_DEFINITION__TYPE, oldType, newType);
85 if (msgs == null) msgs = notification; else msgs.add(notification);
86 }
87 return msgs;
88 }
89
90 /**
91 * <!-- begin-user-doc -->
92 * <!-- end-user-doc -->
93 * @generated
94 */
95 public void setType(ALSTerm newType)
96 {
97 if (newType != type)
98 {
99 NotificationChain msgs = null;
100 if (type != null)
101 msgs = ((InternalEObject)type).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_FUNCTION_DEFINITION__TYPE, null, msgs);
102 if (newType != null)
103 msgs = ((InternalEObject)newType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_FUNCTION_DEFINITION__TYPE, null, msgs);
104 msgs = basicSetType(newType, msgs);
105 if (msgs != null) msgs.dispatch();
106 }
107 else if (eNotificationRequired())
108 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_FUNCTION_DEFINITION__TYPE, newType, newType));
109 }
110
111 /**
112 * <!-- begin-user-doc -->
113 * <!-- end-user-doc -->
114 * @generated
115 */
116 @Override
117 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
118 {
119 switch (featureID)
120 {
121 case AlloyLanguagePackage.ALS_FUNCTION_DEFINITION__TYPE:
122 return basicSetType(null, msgs);
123 }
124 return super.eInverseRemove(otherEnd, featureID, msgs);
125 }
126
127 /**
128 * <!-- begin-user-doc -->
129 * <!-- end-user-doc -->
130 * @generated
131 */
132 @Override
133 public Object eGet(int featureID, boolean resolve, boolean coreType)
134 {
135 switch (featureID)
136 {
137 case AlloyLanguagePackage.ALS_FUNCTION_DEFINITION__TYPE:
138 return getType();
139 }
140 return super.eGet(featureID, resolve, coreType);
141 }
142
143 /**
144 * <!-- begin-user-doc -->
145 * <!-- end-user-doc -->
146 * @generated
147 */
148 @Override
149 public void eSet(int featureID, Object newValue)
150 {
151 switch (featureID)
152 {
153 case AlloyLanguagePackage.ALS_FUNCTION_DEFINITION__TYPE:
154 setType((ALSTerm)newValue);
155 return;
156 }
157 super.eSet(featureID, newValue);
158 }
159
160 /**
161 * <!-- begin-user-doc -->
162 * <!-- end-user-doc -->
163 * @generated
164 */
165 @Override
166 public void eUnset(int featureID)
167 {
168 switch (featureID)
169 {
170 case AlloyLanguagePackage.ALS_FUNCTION_DEFINITION__TYPE:
171 setType((ALSTerm)null);
172 return;
173 }
174 super.eUnset(featureID);
175 }
176
177 /**
178 * <!-- begin-user-doc -->
179 * <!-- end-user-doc -->
180 * @generated
181 */
182 @Override
183 public boolean eIsSet(int featureID)
184 {
185 switch (featureID)
186 {
187 case AlloyLanguagePackage.ALS_FUNCTION_DEFINITION__TYPE:
188 return type != null;
189 }
190 return super.eIsSet(featureID);
191 }
192
193} //ALSFunctionDefinitionImpl
diff --git a/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSIdenImpl.java b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSIdenImpl.java
new file mode 100644
index 00000000..24b72beb
--- /dev/null
+++ b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSIdenImpl.java
@@ -0,0 +1,40 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSIden;
6import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguagePackage;
7
8import org.eclipse.emf.ecore.EClass;
9
10/**
11 * <!-- begin-user-doc -->
12 * An implementation of the model object '<em><b>ALS Iden</b></em>'.
13 * <!-- end-user-doc -->
14 *
15 * @generated
16 */
17public class ALSIdenImpl extends ALSTermImpl implements ALSIden
18{
19 /**
20 * <!-- begin-user-doc -->
21 * <!-- end-user-doc -->
22 * @generated
23 */
24 protected ALSIdenImpl()
25 {
26 super();
27 }
28
29 /**
30 * <!-- begin-user-doc -->
31 * <!-- end-user-doc -->
32 * @generated
33 */
34 @Override
35 protected EClass eStaticClass()
36 {
37 return AlloyLanguagePackage.Literals.ALS_IDEN;
38 }
39
40} //ALSIdenImpl
diff --git a/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSIffImpl.java b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSIffImpl.java
new file mode 100644
index 00000000..ac2b73e6
--- /dev/null
+++ b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSIffImpl.java
@@ -0,0 +1,264 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSIff;
6import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSTerm;
7import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguagePackage;
8
9import org.eclipse.emf.common.notify.Notification;
10import org.eclipse.emf.common.notify.NotificationChain;
11
12import org.eclipse.emf.ecore.EClass;
13import org.eclipse.emf.ecore.InternalEObject;
14
15import org.eclipse.emf.ecore.impl.ENotificationImpl;
16
17/**
18 * <!-- begin-user-doc -->
19 * An implementation of the model object '<em><b>ALS Iff</b></em>'.
20 * <!-- end-user-doc -->
21 * <p>
22 * The following features are implemented:
23 * </p>
24 * <ul>
25 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSIffImpl#getLeftOperand <em>Left Operand</em>}</li>
26 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSIffImpl#getRightOperand <em>Right Operand</em>}</li>
27 * </ul>
28 *
29 * @generated
30 */
31public class ALSIffImpl extends ALSTermImpl implements ALSIff
32{
33 /**
34 * The cached value of the '{@link #getLeftOperand() <em>Left Operand</em>}' containment reference.
35 * <!-- begin-user-doc -->
36 * <!-- end-user-doc -->
37 * @see #getLeftOperand()
38 * @generated
39 * @ordered
40 */
41 protected ALSTerm leftOperand;
42
43 /**
44 * The cached value of the '{@link #getRightOperand() <em>Right Operand</em>}' containment reference.
45 * <!-- begin-user-doc -->
46 * <!-- end-user-doc -->
47 * @see #getRightOperand()
48 * @generated
49 * @ordered
50 */
51 protected ALSTerm rightOperand;
52
53 /**
54 * <!-- begin-user-doc -->
55 * <!-- end-user-doc -->
56 * @generated
57 */
58 protected ALSIffImpl()
59 {
60 super();
61 }
62
63 /**
64 * <!-- begin-user-doc -->
65 * <!-- end-user-doc -->
66 * @generated
67 */
68 @Override
69 protected EClass eStaticClass()
70 {
71 return AlloyLanguagePackage.Literals.ALS_IFF;
72 }
73
74 /**
75 * <!-- begin-user-doc -->
76 * <!-- end-user-doc -->
77 * @generated
78 */
79 public ALSTerm getLeftOperand()
80 {
81 return leftOperand;
82 }
83
84 /**
85 * <!-- begin-user-doc -->
86 * <!-- end-user-doc -->
87 * @generated
88 */
89 public NotificationChain basicSetLeftOperand(ALSTerm newLeftOperand, NotificationChain msgs)
90 {
91 ALSTerm oldLeftOperand = leftOperand;
92 leftOperand = newLeftOperand;
93 if (eNotificationRequired())
94 {
95 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_IFF__LEFT_OPERAND, oldLeftOperand, newLeftOperand);
96 if (msgs == null) msgs = notification; else msgs.add(notification);
97 }
98 return msgs;
99 }
100
101 /**
102 * <!-- begin-user-doc -->
103 * <!-- end-user-doc -->
104 * @generated
105 */
106 public void setLeftOperand(ALSTerm newLeftOperand)
107 {
108 if (newLeftOperand != leftOperand)
109 {
110 NotificationChain msgs = null;
111 if (leftOperand != null)
112 msgs = ((InternalEObject)leftOperand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_IFF__LEFT_OPERAND, null, msgs);
113 if (newLeftOperand != null)
114 msgs = ((InternalEObject)newLeftOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_IFF__LEFT_OPERAND, null, msgs);
115 msgs = basicSetLeftOperand(newLeftOperand, msgs);
116 if (msgs != null) msgs.dispatch();
117 }
118 else if (eNotificationRequired())
119 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_IFF__LEFT_OPERAND, newLeftOperand, newLeftOperand));
120 }
121
122 /**
123 * <!-- begin-user-doc -->
124 * <!-- end-user-doc -->
125 * @generated
126 */
127 public ALSTerm getRightOperand()
128 {
129 return rightOperand;
130 }
131
132 /**
133 * <!-- begin-user-doc -->
134 * <!-- end-user-doc -->
135 * @generated
136 */
137 public NotificationChain basicSetRightOperand(ALSTerm newRightOperand, NotificationChain msgs)
138 {
139 ALSTerm oldRightOperand = rightOperand;
140 rightOperand = newRightOperand;
141 if (eNotificationRequired())
142 {
143 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_IFF__RIGHT_OPERAND, oldRightOperand, newRightOperand);
144 if (msgs == null) msgs = notification; else msgs.add(notification);
145 }
146 return msgs;
147 }
148
149 /**
150 * <!-- begin-user-doc -->
151 * <!-- end-user-doc -->
152 * @generated
153 */
154 public void setRightOperand(ALSTerm newRightOperand)
155 {
156 if (newRightOperand != rightOperand)
157 {
158 NotificationChain msgs = null;
159 if (rightOperand != null)
160 msgs = ((InternalEObject)rightOperand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_IFF__RIGHT_OPERAND, null, msgs);
161 if (newRightOperand != null)
162 msgs = ((InternalEObject)newRightOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_IFF__RIGHT_OPERAND, null, msgs);
163 msgs = basicSetRightOperand(newRightOperand, msgs);
164 if (msgs != null) msgs.dispatch();
165 }
166 else if (eNotificationRequired())
167 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_IFF__RIGHT_OPERAND, newRightOperand, newRightOperand));
168 }
169
170 /**
171 * <!-- begin-user-doc -->
172 * <!-- end-user-doc -->
173 * @generated
174 */
175 @Override
176 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
177 {
178 switch (featureID)
179 {
180 case AlloyLanguagePackage.ALS_IFF__LEFT_OPERAND:
181 return basicSetLeftOperand(null, msgs);
182 case AlloyLanguagePackage.ALS_IFF__RIGHT_OPERAND:
183 return basicSetRightOperand(null, msgs);
184 }
185 return super.eInverseRemove(otherEnd, featureID, msgs);
186 }
187
188 /**
189 * <!-- begin-user-doc -->
190 * <!-- end-user-doc -->
191 * @generated
192 */
193 @Override
194 public Object eGet(int featureID, boolean resolve, boolean coreType)
195 {
196 switch (featureID)
197 {
198 case AlloyLanguagePackage.ALS_IFF__LEFT_OPERAND:
199 return getLeftOperand();
200 case AlloyLanguagePackage.ALS_IFF__RIGHT_OPERAND:
201 return getRightOperand();
202 }
203 return super.eGet(featureID, resolve, coreType);
204 }
205
206 /**
207 * <!-- begin-user-doc -->
208 * <!-- end-user-doc -->
209 * @generated
210 */
211 @Override
212 public void eSet(int featureID, Object newValue)
213 {
214 switch (featureID)
215 {
216 case AlloyLanguagePackage.ALS_IFF__LEFT_OPERAND:
217 setLeftOperand((ALSTerm)newValue);
218 return;
219 case AlloyLanguagePackage.ALS_IFF__RIGHT_OPERAND:
220 setRightOperand((ALSTerm)newValue);
221 return;
222 }
223 super.eSet(featureID, newValue);
224 }
225
226 /**
227 * <!-- begin-user-doc -->
228 * <!-- end-user-doc -->
229 * @generated
230 */
231 @Override
232 public void eUnset(int featureID)
233 {
234 switch (featureID)
235 {
236 case AlloyLanguagePackage.ALS_IFF__LEFT_OPERAND:
237 setLeftOperand((ALSTerm)null);
238 return;
239 case AlloyLanguagePackage.ALS_IFF__RIGHT_OPERAND:
240 setRightOperand((ALSTerm)null);
241 return;
242 }
243 super.eUnset(featureID);
244 }
245
246 /**
247 * <!-- begin-user-doc -->
248 * <!-- end-user-doc -->
249 * @generated
250 */
251 @Override
252 public boolean eIsSet(int featureID)
253 {
254 switch (featureID)
255 {
256 case AlloyLanguagePackage.ALS_IFF__LEFT_OPERAND:
257 return leftOperand != null;
258 case AlloyLanguagePackage.ALS_IFF__RIGHT_OPERAND:
259 return rightOperand != null;
260 }
261 return super.eIsSet(featureID);
262 }
263
264} //ALSIffImpl
diff --git a/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSImplImpl.java b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSImplImpl.java
new file mode 100644
index 00000000..27623e4f
--- /dev/null
+++ b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSImplImpl.java
@@ -0,0 +1,335 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSImpl;
6import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSTerm;
7import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguagePackage;
8
9import org.eclipse.emf.common.notify.Notification;
10import org.eclipse.emf.common.notify.NotificationChain;
11
12import org.eclipse.emf.ecore.EClass;
13import org.eclipse.emf.ecore.InternalEObject;
14
15import org.eclipse.emf.ecore.impl.ENotificationImpl;
16
17/**
18 * <!-- begin-user-doc -->
19 * An implementation of the model object '<em><b>ALS Impl</b></em>'.
20 * <!-- end-user-doc -->
21 * <p>
22 * The following features are implemented:
23 * </p>
24 * <ul>
25 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSImplImpl#getLeftOperand <em>Left Operand</em>}</li>
26 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSImplImpl#getRightOperand <em>Right Operand</em>}</li>
27 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSImplImpl#getElseOperand <em>Else Operand</em>}</li>
28 * </ul>
29 *
30 * @generated
31 */
32public class ALSImplImpl extends ALSTermImpl implements ALSImpl
33{
34 /**
35 * The cached value of the '{@link #getLeftOperand() <em>Left Operand</em>}' containment reference.
36 * <!-- begin-user-doc -->
37 * <!-- end-user-doc -->
38 * @see #getLeftOperand()
39 * @generated
40 * @ordered
41 */
42 protected ALSTerm leftOperand;
43
44 /**
45 * The cached value of the '{@link #getRightOperand() <em>Right Operand</em>}' containment reference.
46 * <!-- begin-user-doc -->
47 * <!-- end-user-doc -->
48 * @see #getRightOperand()
49 * @generated
50 * @ordered
51 */
52 protected ALSTerm rightOperand;
53
54 /**
55 * The cached value of the '{@link #getElseOperand() <em>Else Operand</em>}' containment reference.
56 * <!-- begin-user-doc -->
57 * <!-- end-user-doc -->
58 * @see #getElseOperand()
59 * @generated
60 * @ordered
61 */
62 protected ALSTerm elseOperand;
63
64 /**
65 * <!-- begin-user-doc -->
66 * <!-- end-user-doc -->
67 * @generated
68 */
69 protected ALSImplImpl()
70 {
71 super();
72 }
73
74 /**
75 * <!-- begin-user-doc -->
76 * <!-- end-user-doc -->
77 * @generated
78 */
79 @Override
80 protected EClass eStaticClass()
81 {
82 return AlloyLanguagePackage.Literals.ALS_IMPL;
83 }
84
85 /**
86 * <!-- begin-user-doc -->
87 * <!-- end-user-doc -->
88 * @generated
89 */
90 public ALSTerm getLeftOperand()
91 {
92 return leftOperand;
93 }
94
95 /**
96 * <!-- begin-user-doc -->
97 * <!-- end-user-doc -->
98 * @generated
99 */
100 public NotificationChain basicSetLeftOperand(ALSTerm newLeftOperand, NotificationChain msgs)
101 {
102 ALSTerm oldLeftOperand = leftOperand;
103 leftOperand = newLeftOperand;
104 if (eNotificationRequired())
105 {
106 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_IMPL__LEFT_OPERAND, oldLeftOperand, newLeftOperand);
107 if (msgs == null) msgs = notification; else msgs.add(notification);
108 }
109 return msgs;
110 }
111
112 /**
113 * <!-- begin-user-doc -->
114 * <!-- end-user-doc -->
115 * @generated
116 */
117 public void setLeftOperand(ALSTerm newLeftOperand)
118 {
119 if (newLeftOperand != leftOperand)
120 {
121 NotificationChain msgs = null;
122 if (leftOperand != null)
123 msgs = ((InternalEObject)leftOperand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_IMPL__LEFT_OPERAND, null, msgs);
124 if (newLeftOperand != null)
125 msgs = ((InternalEObject)newLeftOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_IMPL__LEFT_OPERAND, null, msgs);
126 msgs = basicSetLeftOperand(newLeftOperand, msgs);
127 if (msgs != null) msgs.dispatch();
128 }
129 else if (eNotificationRequired())
130 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_IMPL__LEFT_OPERAND, newLeftOperand, newLeftOperand));
131 }
132
133 /**
134 * <!-- begin-user-doc -->
135 * <!-- end-user-doc -->
136 * @generated
137 */
138 public ALSTerm getRightOperand()
139 {
140 return rightOperand;
141 }
142
143 /**
144 * <!-- begin-user-doc -->
145 * <!-- end-user-doc -->
146 * @generated
147 */
148 public NotificationChain basicSetRightOperand(ALSTerm newRightOperand, NotificationChain msgs)
149 {
150 ALSTerm oldRightOperand = rightOperand;
151 rightOperand = newRightOperand;
152 if (eNotificationRequired())
153 {
154 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_IMPL__RIGHT_OPERAND, oldRightOperand, newRightOperand);
155 if (msgs == null) msgs = notification; else msgs.add(notification);
156 }
157 return msgs;
158 }
159
160 /**
161 * <!-- begin-user-doc -->
162 * <!-- end-user-doc -->
163 * @generated
164 */
165 public void setRightOperand(ALSTerm newRightOperand)
166 {
167 if (newRightOperand != rightOperand)
168 {
169 NotificationChain msgs = null;
170 if (rightOperand != null)
171 msgs = ((InternalEObject)rightOperand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_IMPL__RIGHT_OPERAND, null, msgs);
172 if (newRightOperand != null)
173 msgs = ((InternalEObject)newRightOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_IMPL__RIGHT_OPERAND, null, msgs);
174 msgs = basicSetRightOperand(newRightOperand, msgs);
175 if (msgs != null) msgs.dispatch();
176 }
177 else if (eNotificationRequired())
178 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_IMPL__RIGHT_OPERAND, newRightOperand, newRightOperand));
179 }
180
181 /**
182 * <!-- begin-user-doc -->
183 * <!-- end-user-doc -->
184 * @generated
185 */
186 public ALSTerm getElseOperand()
187 {
188 return elseOperand;
189 }
190
191 /**
192 * <!-- begin-user-doc -->
193 * <!-- end-user-doc -->
194 * @generated
195 */
196 public NotificationChain basicSetElseOperand(ALSTerm newElseOperand, NotificationChain msgs)
197 {
198 ALSTerm oldElseOperand = elseOperand;
199 elseOperand = newElseOperand;
200 if (eNotificationRequired())
201 {
202 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_IMPL__ELSE_OPERAND, oldElseOperand, newElseOperand);
203 if (msgs == null) msgs = notification; else msgs.add(notification);
204 }
205 return msgs;
206 }
207
208 /**
209 * <!-- begin-user-doc -->
210 * <!-- end-user-doc -->
211 * @generated
212 */
213 public void setElseOperand(ALSTerm newElseOperand)
214 {
215 if (newElseOperand != elseOperand)
216 {
217 NotificationChain msgs = null;
218 if (elseOperand != null)
219 msgs = ((InternalEObject)elseOperand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_IMPL__ELSE_OPERAND, null, msgs);
220 if (newElseOperand != null)
221 msgs = ((InternalEObject)newElseOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_IMPL__ELSE_OPERAND, null, msgs);
222 msgs = basicSetElseOperand(newElseOperand, msgs);
223 if (msgs != null) msgs.dispatch();
224 }
225 else if (eNotificationRequired())
226 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_IMPL__ELSE_OPERAND, newElseOperand, newElseOperand));
227 }
228
229 /**
230 * <!-- begin-user-doc -->
231 * <!-- end-user-doc -->
232 * @generated
233 */
234 @Override
235 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
236 {
237 switch (featureID)
238 {
239 case AlloyLanguagePackage.ALS_IMPL__LEFT_OPERAND:
240 return basicSetLeftOperand(null, msgs);
241 case AlloyLanguagePackage.ALS_IMPL__RIGHT_OPERAND:
242 return basicSetRightOperand(null, msgs);
243 case AlloyLanguagePackage.ALS_IMPL__ELSE_OPERAND:
244 return basicSetElseOperand(null, msgs);
245 }
246 return super.eInverseRemove(otherEnd, featureID, msgs);
247 }
248
249 /**
250 * <!-- begin-user-doc -->
251 * <!-- end-user-doc -->
252 * @generated
253 */
254 @Override
255 public Object eGet(int featureID, boolean resolve, boolean coreType)
256 {
257 switch (featureID)
258 {
259 case AlloyLanguagePackage.ALS_IMPL__LEFT_OPERAND:
260 return getLeftOperand();
261 case AlloyLanguagePackage.ALS_IMPL__RIGHT_OPERAND:
262 return getRightOperand();
263 case AlloyLanguagePackage.ALS_IMPL__ELSE_OPERAND:
264 return getElseOperand();
265 }
266 return super.eGet(featureID, resolve, coreType);
267 }
268
269 /**
270 * <!-- begin-user-doc -->
271 * <!-- end-user-doc -->
272 * @generated
273 */
274 @Override
275 public void eSet(int featureID, Object newValue)
276 {
277 switch (featureID)
278 {
279 case AlloyLanguagePackage.ALS_IMPL__LEFT_OPERAND:
280 setLeftOperand((ALSTerm)newValue);
281 return;
282 case AlloyLanguagePackage.ALS_IMPL__RIGHT_OPERAND:
283 setRightOperand((ALSTerm)newValue);
284 return;
285 case AlloyLanguagePackage.ALS_IMPL__ELSE_OPERAND:
286 setElseOperand((ALSTerm)newValue);
287 return;
288 }
289 super.eSet(featureID, newValue);
290 }
291
292 /**
293 * <!-- begin-user-doc -->
294 * <!-- end-user-doc -->
295 * @generated
296 */
297 @Override
298 public void eUnset(int featureID)
299 {
300 switch (featureID)
301 {
302 case AlloyLanguagePackage.ALS_IMPL__LEFT_OPERAND:
303 setLeftOperand((ALSTerm)null);
304 return;
305 case AlloyLanguagePackage.ALS_IMPL__RIGHT_OPERAND:
306 setRightOperand((ALSTerm)null);
307 return;
308 case AlloyLanguagePackage.ALS_IMPL__ELSE_OPERAND:
309 setElseOperand((ALSTerm)null);
310 return;
311 }
312 super.eUnset(featureID);
313 }
314
315 /**
316 * <!-- begin-user-doc -->
317 * <!-- end-user-doc -->
318 * @generated
319 */
320 @Override
321 public boolean eIsSet(int featureID)
322 {
323 switch (featureID)
324 {
325 case AlloyLanguagePackage.ALS_IMPL__LEFT_OPERAND:
326 return leftOperand != null;
327 case AlloyLanguagePackage.ALS_IMPL__RIGHT_OPERAND:
328 return rightOperand != null;
329 case AlloyLanguagePackage.ALS_IMPL__ELSE_OPERAND:
330 return elseOperand != null;
331 }
332 return super.eIsSet(featureID);
333 }
334
335} //ALSImplImpl
diff --git a/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSIntImpl.java b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSIntImpl.java
new file mode 100644
index 00000000..5e6cf044
--- /dev/null
+++ b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSIntImpl.java
@@ -0,0 +1,40 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSInt;
6import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguagePackage;
7
8import org.eclipse.emf.ecore.EClass;
9
10/**
11 * <!-- begin-user-doc -->
12 * An implementation of the model object '<em><b>ALS Int</b></em>'.
13 * <!-- end-user-doc -->
14 *
15 * @generated
16 */
17public class ALSIntImpl extends ALSTermImpl implements ALSInt
18{
19 /**
20 * <!-- begin-user-doc -->
21 * <!-- end-user-doc -->
22 * @generated
23 */
24 protected ALSIntImpl()
25 {
26 super();
27 }
28
29 /**
30 * <!-- begin-user-doc -->
31 * <!-- end-user-doc -->
32 * @generated
33 */
34 @Override
35 protected EClass eStaticClass()
36 {
37 return AlloyLanguagePackage.Literals.ALS_INT;
38 }
39
40} //ALSIntImpl
diff --git a/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSIntScopeImpl.java b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSIntScopeImpl.java
new file mode 100644
index 00000000..4e6fd9d5
--- /dev/null
+++ b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSIntScopeImpl.java
@@ -0,0 +1,40 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSIntScope;
6import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguagePackage;
7
8import org.eclipse.emf.ecore.EClass;
9
10/**
11 * <!-- begin-user-doc -->
12 * An implementation of the model object '<em><b>ALS Int Scope</b></em>'.
13 * <!-- end-user-doc -->
14 *
15 * @generated
16 */
17public class ALSIntScopeImpl extends ALSTypeScopeImpl implements ALSIntScope
18{
19 /**
20 * <!-- begin-user-doc -->
21 * <!-- end-user-doc -->
22 * @generated
23 */
24 protected ALSIntScopeImpl()
25 {
26 super();
27 }
28
29 /**
30 * <!-- begin-user-doc -->
31 * <!-- end-user-doc -->
32 * @generated
33 */
34 @Override
35 protected EClass eStaticClass()
36 {
37 return AlloyLanguagePackage.Literals.ALS_INT_SCOPE;
38 }
39
40} //ALSIntScopeImpl
diff --git a/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSIntersectionImpl.java b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSIntersectionImpl.java
new file mode 100644
index 00000000..31003505
--- /dev/null
+++ b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSIntersectionImpl.java
@@ -0,0 +1,264 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSIntersection;
6import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSTerm;
7import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguagePackage;
8
9import org.eclipse.emf.common.notify.Notification;
10import org.eclipse.emf.common.notify.NotificationChain;
11
12import org.eclipse.emf.ecore.EClass;
13import org.eclipse.emf.ecore.InternalEObject;
14
15import org.eclipse.emf.ecore.impl.ENotificationImpl;
16
17/**
18 * <!-- begin-user-doc -->
19 * An implementation of the model object '<em><b>ALS Intersection</b></em>'.
20 * <!-- end-user-doc -->
21 * <p>
22 * The following features are implemented:
23 * </p>
24 * <ul>
25 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSIntersectionImpl#getLeftOperand <em>Left Operand</em>}</li>
26 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSIntersectionImpl#getRightOperand <em>Right Operand</em>}</li>
27 * </ul>
28 *
29 * @generated
30 */
31public class ALSIntersectionImpl extends ALSTermImpl implements ALSIntersection
32{
33 /**
34 * The cached value of the '{@link #getLeftOperand() <em>Left Operand</em>}' containment reference.
35 * <!-- begin-user-doc -->
36 * <!-- end-user-doc -->
37 * @see #getLeftOperand()
38 * @generated
39 * @ordered
40 */
41 protected ALSTerm leftOperand;
42
43 /**
44 * The cached value of the '{@link #getRightOperand() <em>Right Operand</em>}' containment reference.
45 * <!-- begin-user-doc -->
46 * <!-- end-user-doc -->
47 * @see #getRightOperand()
48 * @generated
49 * @ordered
50 */
51 protected ALSTerm rightOperand;
52
53 /**
54 * <!-- begin-user-doc -->
55 * <!-- end-user-doc -->
56 * @generated
57 */
58 protected ALSIntersectionImpl()
59 {
60 super();
61 }
62
63 /**
64 * <!-- begin-user-doc -->
65 * <!-- end-user-doc -->
66 * @generated
67 */
68 @Override
69 protected EClass eStaticClass()
70 {
71 return AlloyLanguagePackage.Literals.ALS_INTERSECTION;
72 }
73
74 /**
75 * <!-- begin-user-doc -->
76 * <!-- end-user-doc -->
77 * @generated
78 */
79 public ALSTerm getLeftOperand()
80 {
81 return leftOperand;
82 }
83
84 /**
85 * <!-- begin-user-doc -->
86 * <!-- end-user-doc -->
87 * @generated
88 */
89 public NotificationChain basicSetLeftOperand(ALSTerm newLeftOperand, NotificationChain msgs)
90 {
91 ALSTerm oldLeftOperand = leftOperand;
92 leftOperand = newLeftOperand;
93 if (eNotificationRequired())
94 {
95 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_INTERSECTION__LEFT_OPERAND, oldLeftOperand, newLeftOperand);
96 if (msgs == null) msgs = notification; else msgs.add(notification);
97 }
98 return msgs;
99 }
100
101 /**
102 * <!-- begin-user-doc -->
103 * <!-- end-user-doc -->
104 * @generated
105 */
106 public void setLeftOperand(ALSTerm newLeftOperand)
107 {
108 if (newLeftOperand != leftOperand)
109 {
110 NotificationChain msgs = null;
111 if (leftOperand != null)
112 msgs = ((InternalEObject)leftOperand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_INTERSECTION__LEFT_OPERAND, null, msgs);
113 if (newLeftOperand != null)
114 msgs = ((InternalEObject)newLeftOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_INTERSECTION__LEFT_OPERAND, null, msgs);
115 msgs = basicSetLeftOperand(newLeftOperand, msgs);
116 if (msgs != null) msgs.dispatch();
117 }
118 else if (eNotificationRequired())
119 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_INTERSECTION__LEFT_OPERAND, newLeftOperand, newLeftOperand));
120 }
121
122 /**
123 * <!-- begin-user-doc -->
124 * <!-- end-user-doc -->
125 * @generated
126 */
127 public ALSTerm getRightOperand()
128 {
129 return rightOperand;
130 }
131
132 /**
133 * <!-- begin-user-doc -->
134 * <!-- end-user-doc -->
135 * @generated
136 */
137 public NotificationChain basicSetRightOperand(ALSTerm newRightOperand, NotificationChain msgs)
138 {
139 ALSTerm oldRightOperand = rightOperand;
140 rightOperand = newRightOperand;
141 if (eNotificationRequired())
142 {
143 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_INTERSECTION__RIGHT_OPERAND, oldRightOperand, newRightOperand);
144 if (msgs == null) msgs = notification; else msgs.add(notification);
145 }
146 return msgs;
147 }
148
149 /**
150 * <!-- begin-user-doc -->
151 * <!-- end-user-doc -->
152 * @generated
153 */
154 public void setRightOperand(ALSTerm newRightOperand)
155 {
156 if (newRightOperand != rightOperand)
157 {
158 NotificationChain msgs = null;
159 if (rightOperand != null)
160 msgs = ((InternalEObject)rightOperand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_INTERSECTION__RIGHT_OPERAND, null, msgs);
161 if (newRightOperand != null)
162 msgs = ((InternalEObject)newRightOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_INTERSECTION__RIGHT_OPERAND, null, msgs);
163 msgs = basicSetRightOperand(newRightOperand, msgs);
164 if (msgs != null) msgs.dispatch();
165 }
166 else if (eNotificationRequired())
167 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_INTERSECTION__RIGHT_OPERAND, newRightOperand, newRightOperand));
168 }
169
170 /**
171 * <!-- begin-user-doc -->
172 * <!-- end-user-doc -->
173 * @generated
174 */
175 @Override
176 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
177 {
178 switch (featureID)
179 {
180 case AlloyLanguagePackage.ALS_INTERSECTION__LEFT_OPERAND:
181 return basicSetLeftOperand(null, msgs);
182 case AlloyLanguagePackage.ALS_INTERSECTION__RIGHT_OPERAND:
183 return basicSetRightOperand(null, msgs);
184 }
185 return super.eInverseRemove(otherEnd, featureID, msgs);
186 }
187
188 /**
189 * <!-- begin-user-doc -->
190 * <!-- end-user-doc -->
191 * @generated
192 */
193 @Override
194 public Object eGet(int featureID, boolean resolve, boolean coreType)
195 {
196 switch (featureID)
197 {
198 case AlloyLanguagePackage.ALS_INTERSECTION__LEFT_OPERAND:
199 return getLeftOperand();
200 case AlloyLanguagePackage.ALS_INTERSECTION__RIGHT_OPERAND:
201 return getRightOperand();
202 }
203 return super.eGet(featureID, resolve, coreType);
204 }
205
206 /**
207 * <!-- begin-user-doc -->
208 * <!-- end-user-doc -->
209 * @generated
210 */
211 @Override
212 public void eSet(int featureID, Object newValue)
213 {
214 switch (featureID)
215 {
216 case AlloyLanguagePackage.ALS_INTERSECTION__LEFT_OPERAND:
217 setLeftOperand((ALSTerm)newValue);
218 return;
219 case AlloyLanguagePackage.ALS_INTERSECTION__RIGHT_OPERAND:
220 setRightOperand((ALSTerm)newValue);
221 return;
222 }
223 super.eSet(featureID, newValue);
224 }
225
226 /**
227 * <!-- begin-user-doc -->
228 * <!-- end-user-doc -->
229 * @generated
230 */
231 @Override
232 public void eUnset(int featureID)
233 {
234 switch (featureID)
235 {
236 case AlloyLanguagePackage.ALS_INTERSECTION__LEFT_OPERAND:
237 setLeftOperand((ALSTerm)null);
238 return;
239 case AlloyLanguagePackage.ALS_INTERSECTION__RIGHT_OPERAND:
240 setRightOperand((ALSTerm)null);
241 return;
242 }
243 super.eUnset(featureID);
244 }
245
246 /**
247 * <!-- begin-user-doc -->
248 * <!-- end-user-doc -->
249 * @generated
250 */
251 @Override
252 public boolean eIsSet(int featureID)
253 {
254 switch (featureID)
255 {
256 case AlloyLanguagePackage.ALS_INTERSECTION__LEFT_OPERAND:
257 return leftOperand != null;
258 case AlloyLanguagePackage.ALS_INTERSECTION__RIGHT_OPERAND:
259 return rightOperand != null;
260 }
261 return super.eIsSet(featureID);
262 }
263
264} //ALSIntersectionImpl
diff --git a/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSInverseRelationImpl.java b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSInverseRelationImpl.java
new file mode 100644
index 00000000..06bdc39b
--- /dev/null
+++ b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSInverseRelationImpl.java
@@ -0,0 +1,193 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSInverseRelation;
6import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSTerm;
7import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguagePackage;
8
9import org.eclipse.emf.common.notify.Notification;
10import org.eclipse.emf.common.notify.NotificationChain;
11
12import org.eclipse.emf.ecore.EClass;
13import org.eclipse.emf.ecore.InternalEObject;
14
15import org.eclipse.emf.ecore.impl.ENotificationImpl;
16
17/**
18 * <!-- begin-user-doc -->
19 * An implementation of the model object '<em><b>ALS Inverse Relation</b></em>'.
20 * <!-- end-user-doc -->
21 * <p>
22 * The following features are implemented:
23 * </p>
24 * <ul>
25 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSInverseRelationImpl#getOperand <em>Operand</em>}</li>
26 * </ul>
27 *
28 * @generated
29 */
30public class ALSInverseRelationImpl extends ALSTermImpl implements ALSInverseRelation
31{
32 /**
33 * The cached value of the '{@link #getOperand() <em>Operand</em>}' containment reference.
34 * <!-- begin-user-doc -->
35 * <!-- end-user-doc -->
36 * @see #getOperand()
37 * @generated
38 * @ordered
39 */
40 protected ALSTerm operand;
41
42 /**
43 * <!-- begin-user-doc -->
44 * <!-- end-user-doc -->
45 * @generated
46 */
47 protected ALSInverseRelationImpl()
48 {
49 super();
50 }
51
52 /**
53 * <!-- begin-user-doc -->
54 * <!-- end-user-doc -->
55 * @generated
56 */
57 @Override
58 protected EClass eStaticClass()
59 {
60 return AlloyLanguagePackage.Literals.ALS_INVERSE_RELATION;
61 }
62
63 /**
64 * <!-- begin-user-doc -->
65 * <!-- end-user-doc -->
66 * @generated
67 */
68 public ALSTerm getOperand()
69 {
70 return operand;
71 }
72
73 /**
74 * <!-- begin-user-doc -->
75 * <!-- end-user-doc -->
76 * @generated
77 */
78 public NotificationChain basicSetOperand(ALSTerm newOperand, NotificationChain msgs)
79 {
80 ALSTerm oldOperand = operand;
81 operand = newOperand;
82 if (eNotificationRequired())
83 {
84 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_INVERSE_RELATION__OPERAND, oldOperand, newOperand);
85 if (msgs == null) msgs = notification; else msgs.add(notification);
86 }
87 return msgs;
88 }
89
90 /**
91 * <!-- begin-user-doc -->
92 * <!-- end-user-doc -->
93 * @generated
94 */
95 public void setOperand(ALSTerm newOperand)
96 {
97 if (newOperand != operand)
98 {
99 NotificationChain msgs = null;
100 if (operand != null)
101 msgs = ((InternalEObject)operand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_INVERSE_RELATION__OPERAND, null, msgs);
102 if (newOperand != null)
103 msgs = ((InternalEObject)newOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_INVERSE_RELATION__OPERAND, null, msgs);
104 msgs = basicSetOperand(newOperand, msgs);
105 if (msgs != null) msgs.dispatch();
106 }
107 else if (eNotificationRequired())
108 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_INVERSE_RELATION__OPERAND, newOperand, newOperand));
109 }
110
111 /**
112 * <!-- begin-user-doc -->
113 * <!-- end-user-doc -->
114 * @generated
115 */
116 @Override
117 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
118 {
119 switch (featureID)
120 {
121 case AlloyLanguagePackage.ALS_INVERSE_RELATION__OPERAND:
122 return basicSetOperand(null, msgs);
123 }
124 return super.eInverseRemove(otherEnd, featureID, msgs);
125 }
126
127 /**
128 * <!-- begin-user-doc -->
129 * <!-- end-user-doc -->
130 * @generated
131 */
132 @Override
133 public Object eGet(int featureID, boolean resolve, boolean coreType)
134 {
135 switch (featureID)
136 {
137 case AlloyLanguagePackage.ALS_INVERSE_RELATION__OPERAND:
138 return getOperand();
139 }
140 return super.eGet(featureID, resolve, coreType);
141 }
142
143 /**
144 * <!-- begin-user-doc -->
145 * <!-- end-user-doc -->
146 * @generated
147 */
148 @Override
149 public void eSet(int featureID, Object newValue)
150 {
151 switch (featureID)
152 {
153 case AlloyLanguagePackage.ALS_INVERSE_RELATION__OPERAND:
154 setOperand((ALSTerm)newValue);
155 return;
156 }
157 super.eSet(featureID, newValue);
158 }
159
160 /**
161 * <!-- begin-user-doc -->
162 * <!-- end-user-doc -->
163 * @generated
164 */
165 @Override
166 public void eUnset(int featureID)
167 {
168 switch (featureID)
169 {
170 case AlloyLanguagePackage.ALS_INVERSE_RELATION__OPERAND:
171 setOperand((ALSTerm)null);
172 return;
173 }
174 super.eUnset(featureID);
175 }
176
177 /**
178 * <!-- begin-user-doc -->
179 * <!-- end-user-doc -->
180 * @generated
181 */
182 @Override
183 public boolean eIsSet(int featureID)
184 {
185 switch (featureID)
186 {
187 case AlloyLanguagePackage.ALS_INVERSE_RELATION__OPERAND:
188 return operand != null;
189 }
190 return super.eIsSet(featureID);
191 }
192
193} //ALSInverseRelationImpl
diff --git a/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSJoinImpl.java b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSJoinImpl.java
new file mode 100644
index 00000000..d640651b
--- /dev/null
+++ b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSJoinImpl.java
@@ -0,0 +1,264 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSJoin;
6import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSTerm;
7import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguagePackage;
8
9import org.eclipse.emf.common.notify.Notification;
10import org.eclipse.emf.common.notify.NotificationChain;
11
12import org.eclipse.emf.ecore.EClass;
13import org.eclipse.emf.ecore.InternalEObject;
14
15import org.eclipse.emf.ecore.impl.ENotificationImpl;
16
17/**
18 * <!-- begin-user-doc -->
19 * An implementation of the model object '<em><b>ALS Join</b></em>'.
20 * <!-- end-user-doc -->
21 * <p>
22 * The following features are implemented:
23 * </p>
24 * <ul>
25 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSJoinImpl#getLeftOperand <em>Left Operand</em>}</li>
26 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSJoinImpl#getRightOperand <em>Right Operand</em>}</li>
27 * </ul>
28 *
29 * @generated
30 */
31public class ALSJoinImpl extends ALSTermImpl implements ALSJoin
32{
33 /**
34 * The cached value of the '{@link #getLeftOperand() <em>Left Operand</em>}' containment reference.
35 * <!-- begin-user-doc -->
36 * <!-- end-user-doc -->
37 * @see #getLeftOperand()
38 * @generated
39 * @ordered
40 */
41 protected ALSTerm leftOperand;
42
43 /**
44 * The cached value of the '{@link #getRightOperand() <em>Right Operand</em>}' containment reference.
45 * <!-- begin-user-doc -->
46 * <!-- end-user-doc -->
47 * @see #getRightOperand()
48 * @generated
49 * @ordered
50 */
51 protected ALSTerm rightOperand;
52
53 /**
54 * <!-- begin-user-doc -->
55 * <!-- end-user-doc -->
56 * @generated
57 */
58 protected ALSJoinImpl()
59 {
60 super();
61 }
62
63 /**
64 * <!-- begin-user-doc -->
65 * <!-- end-user-doc -->
66 * @generated
67 */
68 @Override
69 protected EClass eStaticClass()
70 {
71 return AlloyLanguagePackage.Literals.ALS_JOIN;
72 }
73
74 /**
75 * <!-- begin-user-doc -->
76 * <!-- end-user-doc -->
77 * @generated
78 */
79 public ALSTerm getLeftOperand()
80 {
81 return leftOperand;
82 }
83
84 /**
85 * <!-- begin-user-doc -->
86 * <!-- end-user-doc -->
87 * @generated
88 */
89 public NotificationChain basicSetLeftOperand(ALSTerm newLeftOperand, NotificationChain msgs)
90 {
91 ALSTerm oldLeftOperand = leftOperand;
92 leftOperand = newLeftOperand;
93 if (eNotificationRequired())
94 {
95 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_JOIN__LEFT_OPERAND, oldLeftOperand, newLeftOperand);
96 if (msgs == null) msgs = notification; else msgs.add(notification);
97 }
98 return msgs;
99 }
100
101 /**
102 * <!-- begin-user-doc -->
103 * <!-- end-user-doc -->
104 * @generated
105 */
106 public void setLeftOperand(ALSTerm newLeftOperand)
107 {
108 if (newLeftOperand != leftOperand)
109 {
110 NotificationChain msgs = null;
111 if (leftOperand != null)
112 msgs = ((InternalEObject)leftOperand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_JOIN__LEFT_OPERAND, null, msgs);
113 if (newLeftOperand != null)
114 msgs = ((InternalEObject)newLeftOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_JOIN__LEFT_OPERAND, null, msgs);
115 msgs = basicSetLeftOperand(newLeftOperand, msgs);
116 if (msgs != null) msgs.dispatch();
117 }
118 else if (eNotificationRequired())
119 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_JOIN__LEFT_OPERAND, newLeftOperand, newLeftOperand));
120 }
121
122 /**
123 * <!-- begin-user-doc -->
124 * <!-- end-user-doc -->
125 * @generated
126 */
127 public ALSTerm getRightOperand()
128 {
129 return rightOperand;
130 }
131
132 /**
133 * <!-- begin-user-doc -->
134 * <!-- end-user-doc -->
135 * @generated
136 */
137 public NotificationChain basicSetRightOperand(ALSTerm newRightOperand, NotificationChain msgs)
138 {
139 ALSTerm oldRightOperand = rightOperand;
140 rightOperand = newRightOperand;
141 if (eNotificationRequired())
142 {
143 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_JOIN__RIGHT_OPERAND, oldRightOperand, newRightOperand);
144 if (msgs == null) msgs = notification; else msgs.add(notification);
145 }
146 return msgs;
147 }
148
149 /**
150 * <!-- begin-user-doc -->
151 * <!-- end-user-doc -->
152 * @generated
153 */
154 public void setRightOperand(ALSTerm newRightOperand)
155 {
156 if (newRightOperand != rightOperand)
157 {
158 NotificationChain msgs = null;
159 if (rightOperand != null)
160 msgs = ((InternalEObject)rightOperand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_JOIN__RIGHT_OPERAND, null, msgs);
161 if (newRightOperand != null)
162 msgs = ((InternalEObject)newRightOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_JOIN__RIGHT_OPERAND, null, msgs);
163 msgs = basicSetRightOperand(newRightOperand, msgs);
164 if (msgs != null) msgs.dispatch();
165 }
166 else if (eNotificationRequired())
167 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_JOIN__RIGHT_OPERAND, newRightOperand, newRightOperand));
168 }
169
170 /**
171 * <!-- begin-user-doc -->
172 * <!-- end-user-doc -->
173 * @generated
174 */
175 @Override
176 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
177 {
178 switch (featureID)
179 {
180 case AlloyLanguagePackage.ALS_JOIN__LEFT_OPERAND:
181 return basicSetLeftOperand(null, msgs);
182 case AlloyLanguagePackage.ALS_JOIN__RIGHT_OPERAND:
183 return basicSetRightOperand(null, msgs);
184 }
185 return super.eInverseRemove(otherEnd, featureID, msgs);
186 }
187
188 /**
189 * <!-- begin-user-doc -->
190 * <!-- end-user-doc -->
191 * @generated
192 */
193 @Override
194 public Object eGet(int featureID, boolean resolve, boolean coreType)
195 {
196 switch (featureID)
197 {
198 case AlloyLanguagePackage.ALS_JOIN__LEFT_OPERAND:
199 return getLeftOperand();
200 case AlloyLanguagePackage.ALS_JOIN__RIGHT_OPERAND:
201 return getRightOperand();
202 }
203 return super.eGet(featureID, resolve, coreType);
204 }
205
206 /**
207 * <!-- begin-user-doc -->
208 * <!-- end-user-doc -->
209 * @generated
210 */
211 @Override
212 public void eSet(int featureID, Object newValue)
213 {
214 switch (featureID)
215 {
216 case AlloyLanguagePackage.ALS_JOIN__LEFT_OPERAND:
217 setLeftOperand((ALSTerm)newValue);
218 return;
219 case AlloyLanguagePackage.ALS_JOIN__RIGHT_OPERAND:
220 setRightOperand((ALSTerm)newValue);
221 return;
222 }
223 super.eSet(featureID, newValue);
224 }
225
226 /**
227 * <!-- begin-user-doc -->
228 * <!-- end-user-doc -->
229 * @generated
230 */
231 @Override
232 public void eUnset(int featureID)
233 {
234 switch (featureID)
235 {
236 case AlloyLanguagePackage.ALS_JOIN__LEFT_OPERAND:
237 setLeftOperand((ALSTerm)null);
238 return;
239 case AlloyLanguagePackage.ALS_JOIN__RIGHT_OPERAND:
240 setRightOperand((ALSTerm)null);
241 return;
242 }
243 super.eUnset(featureID);
244 }
245
246 /**
247 * <!-- begin-user-doc -->
248 * <!-- end-user-doc -->
249 * @generated
250 */
251 @Override
252 public boolean eIsSet(int featureID)
253 {
254 switch (featureID)
255 {
256 case AlloyLanguagePackage.ALS_JOIN__LEFT_OPERAND:
257 return leftOperand != null;
258 case AlloyLanguagePackage.ALS_JOIN__RIGHT_OPERAND:
259 return rightOperand != null;
260 }
261 return super.eIsSet(featureID);
262 }
263
264} //ALSJoinImpl
diff --git a/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSLeqImpl.java b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSLeqImpl.java
new file mode 100644
index 00000000..92162fd6
--- /dev/null
+++ b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSLeqImpl.java
@@ -0,0 +1,264 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSLeq;
6import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSTerm;
7import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguagePackage;
8
9import org.eclipse.emf.common.notify.Notification;
10import org.eclipse.emf.common.notify.NotificationChain;
11
12import org.eclipse.emf.ecore.EClass;
13import org.eclipse.emf.ecore.InternalEObject;
14
15import org.eclipse.emf.ecore.impl.ENotificationImpl;
16
17/**
18 * <!-- begin-user-doc -->
19 * An implementation of the model object '<em><b>ALS Leq</b></em>'.
20 * <!-- end-user-doc -->
21 * <p>
22 * The following features are implemented:
23 * </p>
24 * <ul>
25 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSLeqImpl#getLeftOperand <em>Left Operand</em>}</li>
26 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSLeqImpl#getRightOperand <em>Right Operand</em>}</li>
27 * </ul>
28 *
29 * @generated
30 */
31public class ALSLeqImpl extends ALSTermImpl implements ALSLeq
32{
33 /**
34 * The cached value of the '{@link #getLeftOperand() <em>Left Operand</em>}' containment reference.
35 * <!-- begin-user-doc -->
36 * <!-- end-user-doc -->
37 * @see #getLeftOperand()
38 * @generated
39 * @ordered
40 */
41 protected ALSTerm leftOperand;
42
43 /**
44 * The cached value of the '{@link #getRightOperand() <em>Right Operand</em>}' containment reference.
45 * <!-- begin-user-doc -->
46 * <!-- end-user-doc -->
47 * @see #getRightOperand()
48 * @generated
49 * @ordered
50 */
51 protected ALSTerm rightOperand;
52
53 /**
54 * <!-- begin-user-doc -->
55 * <!-- end-user-doc -->
56 * @generated
57 */
58 protected ALSLeqImpl()
59 {
60 super();
61 }
62
63 /**
64 * <!-- begin-user-doc -->
65 * <!-- end-user-doc -->
66 * @generated
67 */
68 @Override
69 protected EClass eStaticClass()
70 {
71 return AlloyLanguagePackage.Literals.ALS_LEQ;
72 }
73
74 /**
75 * <!-- begin-user-doc -->
76 * <!-- end-user-doc -->
77 * @generated
78 */
79 public ALSTerm getLeftOperand()
80 {
81 return leftOperand;
82 }
83
84 /**
85 * <!-- begin-user-doc -->
86 * <!-- end-user-doc -->
87 * @generated
88 */
89 public NotificationChain basicSetLeftOperand(ALSTerm newLeftOperand, NotificationChain msgs)
90 {
91 ALSTerm oldLeftOperand = leftOperand;
92 leftOperand = newLeftOperand;
93 if (eNotificationRequired())
94 {
95 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_LEQ__LEFT_OPERAND, oldLeftOperand, newLeftOperand);
96 if (msgs == null) msgs = notification; else msgs.add(notification);
97 }
98 return msgs;
99 }
100
101 /**
102 * <!-- begin-user-doc -->
103 * <!-- end-user-doc -->
104 * @generated
105 */
106 public void setLeftOperand(ALSTerm newLeftOperand)
107 {
108 if (newLeftOperand != leftOperand)
109 {
110 NotificationChain msgs = null;
111 if (leftOperand != null)
112 msgs = ((InternalEObject)leftOperand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_LEQ__LEFT_OPERAND, null, msgs);
113 if (newLeftOperand != null)
114 msgs = ((InternalEObject)newLeftOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_LEQ__LEFT_OPERAND, null, msgs);
115 msgs = basicSetLeftOperand(newLeftOperand, msgs);
116 if (msgs != null) msgs.dispatch();
117 }
118 else if (eNotificationRequired())
119 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_LEQ__LEFT_OPERAND, newLeftOperand, newLeftOperand));
120 }
121
122 /**
123 * <!-- begin-user-doc -->
124 * <!-- end-user-doc -->
125 * @generated
126 */
127 public ALSTerm getRightOperand()
128 {
129 return rightOperand;
130 }
131
132 /**
133 * <!-- begin-user-doc -->
134 * <!-- end-user-doc -->
135 * @generated
136 */
137 public NotificationChain basicSetRightOperand(ALSTerm newRightOperand, NotificationChain msgs)
138 {
139 ALSTerm oldRightOperand = rightOperand;
140 rightOperand = newRightOperand;
141 if (eNotificationRequired())
142 {
143 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_LEQ__RIGHT_OPERAND, oldRightOperand, newRightOperand);
144 if (msgs == null) msgs = notification; else msgs.add(notification);
145 }
146 return msgs;
147 }
148
149 /**
150 * <!-- begin-user-doc -->
151 * <!-- end-user-doc -->
152 * @generated
153 */
154 public void setRightOperand(ALSTerm newRightOperand)
155 {
156 if (newRightOperand != rightOperand)
157 {
158 NotificationChain msgs = null;
159 if (rightOperand != null)
160 msgs = ((InternalEObject)rightOperand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_LEQ__RIGHT_OPERAND, null, msgs);
161 if (newRightOperand != null)
162 msgs = ((InternalEObject)newRightOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_LEQ__RIGHT_OPERAND, null, msgs);
163 msgs = basicSetRightOperand(newRightOperand, msgs);
164 if (msgs != null) msgs.dispatch();
165 }
166 else if (eNotificationRequired())
167 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_LEQ__RIGHT_OPERAND, newRightOperand, newRightOperand));
168 }
169
170 /**
171 * <!-- begin-user-doc -->
172 * <!-- end-user-doc -->
173 * @generated
174 */
175 @Override
176 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
177 {
178 switch (featureID)
179 {
180 case AlloyLanguagePackage.ALS_LEQ__LEFT_OPERAND:
181 return basicSetLeftOperand(null, msgs);
182 case AlloyLanguagePackage.ALS_LEQ__RIGHT_OPERAND:
183 return basicSetRightOperand(null, msgs);
184 }
185 return super.eInverseRemove(otherEnd, featureID, msgs);
186 }
187
188 /**
189 * <!-- begin-user-doc -->
190 * <!-- end-user-doc -->
191 * @generated
192 */
193 @Override
194 public Object eGet(int featureID, boolean resolve, boolean coreType)
195 {
196 switch (featureID)
197 {
198 case AlloyLanguagePackage.ALS_LEQ__LEFT_OPERAND:
199 return getLeftOperand();
200 case AlloyLanguagePackage.ALS_LEQ__RIGHT_OPERAND:
201 return getRightOperand();
202 }
203 return super.eGet(featureID, resolve, coreType);
204 }
205
206 /**
207 * <!-- begin-user-doc -->
208 * <!-- end-user-doc -->
209 * @generated
210 */
211 @Override
212 public void eSet(int featureID, Object newValue)
213 {
214 switch (featureID)
215 {
216 case AlloyLanguagePackage.ALS_LEQ__LEFT_OPERAND:
217 setLeftOperand((ALSTerm)newValue);
218 return;
219 case AlloyLanguagePackage.ALS_LEQ__RIGHT_OPERAND:
220 setRightOperand((ALSTerm)newValue);
221 return;
222 }
223 super.eSet(featureID, newValue);
224 }
225
226 /**
227 * <!-- begin-user-doc -->
228 * <!-- end-user-doc -->
229 * @generated
230 */
231 @Override
232 public void eUnset(int featureID)
233 {
234 switch (featureID)
235 {
236 case AlloyLanguagePackage.ALS_LEQ__LEFT_OPERAND:
237 setLeftOperand((ALSTerm)null);
238 return;
239 case AlloyLanguagePackage.ALS_LEQ__RIGHT_OPERAND:
240 setRightOperand((ALSTerm)null);
241 return;
242 }
243 super.eUnset(featureID);
244 }
245
246 /**
247 * <!-- begin-user-doc -->
248 * <!-- end-user-doc -->
249 * @generated
250 */
251 @Override
252 public boolean eIsSet(int featureID)
253 {
254 switch (featureID)
255 {
256 case AlloyLanguagePackage.ALS_LEQ__LEFT_OPERAND:
257 return leftOperand != null;
258 case AlloyLanguagePackage.ALS_LEQ__RIGHT_OPERAND:
259 return rightOperand != null;
260 }
261 return super.eIsSet(featureID);
262 }
263
264} //ALSLeqImpl
diff --git a/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSLessImpl.java b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSLessImpl.java
new file mode 100644
index 00000000..5e1f3c42
--- /dev/null
+++ b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSLessImpl.java
@@ -0,0 +1,264 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSLess;
6import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSTerm;
7import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguagePackage;
8
9import org.eclipse.emf.common.notify.Notification;
10import org.eclipse.emf.common.notify.NotificationChain;
11
12import org.eclipse.emf.ecore.EClass;
13import org.eclipse.emf.ecore.InternalEObject;
14
15import org.eclipse.emf.ecore.impl.ENotificationImpl;
16
17/**
18 * <!-- begin-user-doc -->
19 * An implementation of the model object '<em><b>ALS Less</b></em>'.
20 * <!-- end-user-doc -->
21 * <p>
22 * The following features are implemented:
23 * </p>
24 * <ul>
25 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSLessImpl#getLeftOperand <em>Left Operand</em>}</li>
26 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSLessImpl#getRightOperand <em>Right Operand</em>}</li>
27 * </ul>
28 *
29 * @generated
30 */
31public class ALSLessImpl extends ALSTermImpl implements ALSLess
32{
33 /**
34 * The cached value of the '{@link #getLeftOperand() <em>Left Operand</em>}' containment reference.
35 * <!-- begin-user-doc -->
36 * <!-- end-user-doc -->
37 * @see #getLeftOperand()
38 * @generated
39 * @ordered
40 */
41 protected ALSTerm leftOperand;
42
43 /**
44 * The cached value of the '{@link #getRightOperand() <em>Right Operand</em>}' containment reference.
45 * <!-- begin-user-doc -->
46 * <!-- end-user-doc -->
47 * @see #getRightOperand()
48 * @generated
49 * @ordered
50 */
51 protected ALSTerm rightOperand;
52
53 /**
54 * <!-- begin-user-doc -->
55 * <!-- end-user-doc -->
56 * @generated
57 */
58 protected ALSLessImpl()
59 {
60 super();
61 }
62
63 /**
64 * <!-- begin-user-doc -->
65 * <!-- end-user-doc -->
66 * @generated
67 */
68 @Override
69 protected EClass eStaticClass()
70 {
71 return AlloyLanguagePackage.Literals.ALS_LESS;
72 }
73
74 /**
75 * <!-- begin-user-doc -->
76 * <!-- end-user-doc -->
77 * @generated
78 */
79 public ALSTerm getLeftOperand()
80 {
81 return leftOperand;
82 }
83
84 /**
85 * <!-- begin-user-doc -->
86 * <!-- end-user-doc -->
87 * @generated
88 */
89 public NotificationChain basicSetLeftOperand(ALSTerm newLeftOperand, NotificationChain msgs)
90 {
91 ALSTerm oldLeftOperand = leftOperand;
92 leftOperand = newLeftOperand;
93 if (eNotificationRequired())
94 {
95 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_LESS__LEFT_OPERAND, oldLeftOperand, newLeftOperand);
96 if (msgs == null) msgs = notification; else msgs.add(notification);
97 }
98 return msgs;
99 }
100
101 /**
102 * <!-- begin-user-doc -->
103 * <!-- end-user-doc -->
104 * @generated
105 */
106 public void setLeftOperand(ALSTerm newLeftOperand)
107 {
108 if (newLeftOperand != leftOperand)
109 {
110 NotificationChain msgs = null;
111 if (leftOperand != null)
112 msgs = ((InternalEObject)leftOperand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_LESS__LEFT_OPERAND, null, msgs);
113 if (newLeftOperand != null)
114 msgs = ((InternalEObject)newLeftOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_LESS__LEFT_OPERAND, null, msgs);
115 msgs = basicSetLeftOperand(newLeftOperand, msgs);
116 if (msgs != null) msgs.dispatch();
117 }
118 else if (eNotificationRequired())
119 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_LESS__LEFT_OPERAND, newLeftOperand, newLeftOperand));
120 }
121
122 /**
123 * <!-- begin-user-doc -->
124 * <!-- end-user-doc -->
125 * @generated
126 */
127 public ALSTerm getRightOperand()
128 {
129 return rightOperand;
130 }
131
132 /**
133 * <!-- begin-user-doc -->
134 * <!-- end-user-doc -->
135 * @generated
136 */
137 public NotificationChain basicSetRightOperand(ALSTerm newRightOperand, NotificationChain msgs)
138 {
139 ALSTerm oldRightOperand = rightOperand;
140 rightOperand = newRightOperand;
141 if (eNotificationRequired())
142 {
143 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_LESS__RIGHT_OPERAND, oldRightOperand, newRightOperand);
144 if (msgs == null) msgs = notification; else msgs.add(notification);
145 }
146 return msgs;
147 }
148
149 /**
150 * <!-- begin-user-doc -->
151 * <!-- end-user-doc -->
152 * @generated
153 */
154 public void setRightOperand(ALSTerm newRightOperand)
155 {
156 if (newRightOperand != rightOperand)
157 {
158 NotificationChain msgs = null;
159 if (rightOperand != null)
160 msgs = ((InternalEObject)rightOperand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_LESS__RIGHT_OPERAND, null, msgs);
161 if (newRightOperand != null)
162 msgs = ((InternalEObject)newRightOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_LESS__RIGHT_OPERAND, null, msgs);
163 msgs = basicSetRightOperand(newRightOperand, msgs);
164 if (msgs != null) msgs.dispatch();
165 }
166 else if (eNotificationRequired())
167 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_LESS__RIGHT_OPERAND, newRightOperand, newRightOperand));
168 }
169
170 /**
171 * <!-- begin-user-doc -->
172 * <!-- end-user-doc -->
173 * @generated
174 */
175 @Override
176 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
177 {
178 switch (featureID)
179 {
180 case AlloyLanguagePackage.ALS_LESS__LEFT_OPERAND:
181 return basicSetLeftOperand(null, msgs);
182 case AlloyLanguagePackage.ALS_LESS__RIGHT_OPERAND:
183 return basicSetRightOperand(null, msgs);
184 }
185 return super.eInverseRemove(otherEnd, featureID, msgs);
186 }
187
188 /**
189 * <!-- begin-user-doc -->
190 * <!-- end-user-doc -->
191 * @generated
192 */
193 @Override
194 public Object eGet(int featureID, boolean resolve, boolean coreType)
195 {
196 switch (featureID)
197 {
198 case AlloyLanguagePackage.ALS_LESS__LEFT_OPERAND:
199 return getLeftOperand();
200 case AlloyLanguagePackage.ALS_LESS__RIGHT_OPERAND:
201 return getRightOperand();
202 }
203 return super.eGet(featureID, resolve, coreType);
204 }
205
206 /**
207 * <!-- begin-user-doc -->
208 * <!-- end-user-doc -->
209 * @generated
210 */
211 @Override
212 public void eSet(int featureID, Object newValue)
213 {
214 switch (featureID)
215 {
216 case AlloyLanguagePackage.ALS_LESS__LEFT_OPERAND:
217 setLeftOperand((ALSTerm)newValue);
218 return;
219 case AlloyLanguagePackage.ALS_LESS__RIGHT_OPERAND:
220 setRightOperand((ALSTerm)newValue);
221 return;
222 }
223 super.eSet(featureID, newValue);
224 }
225
226 /**
227 * <!-- begin-user-doc -->
228 * <!-- end-user-doc -->
229 * @generated
230 */
231 @Override
232 public void eUnset(int featureID)
233 {
234 switch (featureID)
235 {
236 case AlloyLanguagePackage.ALS_LESS__LEFT_OPERAND:
237 setLeftOperand((ALSTerm)null);
238 return;
239 case AlloyLanguagePackage.ALS_LESS__RIGHT_OPERAND:
240 setRightOperand((ALSTerm)null);
241 return;
242 }
243 super.eUnset(featureID);
244 }
245
246 /**
247 * <!-- begin-user-doc -->
248 * <!-- end-user-doc -->
249 * @generated
250 */
251 @Override
252 public boolean eIsSet(int featureID)
253 {
254 switch (featureID)
255 {
256 case AlloyLanguagePackage.ALS_LESS__LEFT_OPERAND:
257 return leftOperand != null;
258 case AlloyLanguagePackage.ALS_LESS__RIGHT_OPERAND:
259 return rightOperand != null;
260 }
261 return super.eIsSet(featureID);
262 }
263
264} //ALSLessImpl
diff --git a/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSMeqImpl.java b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSMeqImpl.java
new file mode 100644
index 00000000..bb21bc9b
--- /dev/null
+++ b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSMeqImpl.java
@@ -0,0 +1,264 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSMeq;
6import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSTerm;
7import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguagePackage;
8
9import org.eclipse.emf.common.notify.Notification;
10import org.eclipse.emf.common.notify.NotificationChain;
11
12import org.eclipse.emf.ecore.EClass;
13import org.eclipse.emf.ecore.InternalEObject;
14
15import org.eclipse.emf.ecore.impl.ENotificationImpl;
16
17/**
18 * <!-- begin-user-doc -->
19 * An implementation of the model object '<em><b>ALS Meq</b></em>'.
20 * <!-- end-user-doc -->
21 * <p>
22 * The following features are implemented:
23 * </p>
24 * <ul>
25 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSMeqImpl#getLeftOperand <em>Left Operand</em>}</li>
26 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSMeqImpl#getRightOperand <em>Right Operand</em>}</li>
27 * </ul>
28 *
29 * @generated
30 */
31public class ALSMeqImpl extends ALSTermImpl implements ALSMeq
32{
33 /**
34 * The cached value of the '{@link #getLeftOperand() <em>Left Operand</em>}' containment reference.
35 * <!-- begin-user-doc -->
36 * <!-- end-user-doc -->
37 * @see #getLeftOperand()
38 * @generated
39 * @ordered
40 */
41 protected ALSTerm leftOperand;
42
43 /**
44 * The cached value of the '{@link #getRightOperand() <em>Right Operand</em>}' containment reference.
45 * <!-- begin-user-doc -->
46 * <!-- end-user-doc -->
47 * @see #getRightOperand()
48 * @generated
49 * @ordered
50 */
51 protected ALSTerm rightOperand;
52
53 /**
54 * <!-- begin-user-doc -->
55 * <!-- end-user-doc -->
56 * @generated
57 */
58 protected ALSMeqImpl()
59 {
60 super();
61 }
62
63 /**
64 * <!-- begin-user-doc -->
65 * <!-- end-user-doc -->
66 * @generated
67 */
68 @Override
69 protected EClass eStaticClass()
70 {
71 return AlloyLanguagePackage.Literals.ALS_MEQ;
72 }
73
74 /**
75 * <!-- begin-user-doc -->
76 * <!-- end-user-doc -->
77 * @generated
78 */
79 public ALSTerm getLeftOperand()
80 {
81 return leftOperand;
82 }
83
84 /**
85 * <!-- begin-user-doc -->
86 * <!-- end-user-doc -->
87 * @generated
88 */
89 public NotificationChain basicSetLeftOperand(ALSTerm newLeftOperand, NotificationChain msgs)
90 {
91 ALSTerm oldLeftOperand = leftOperand;
92 leftOperand = newLeftOperand;
93 if (eNotificationRequired())
94 {
95 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_MEQ__LEFT_OPERAND, oldLeftOperand, newLeftOperand);
96 if (msgs == null) msgs = notification; else msgs.add(notification);
97 }
98 return msgs;
99 }
100
101 /**
102 * <!-- begin-user-doc -->
103 * <!-- end-user-doc -->
104 * @generated
105 */
106 public void setLeftOperand(ALSTerm newLeftOperand)
107 {
108 if (newLeftOperand != leftOperand)
109 {
110 NotificationChain msgs = null;
111 if (leftOperand != null)
112 msgs = ((InternalEObject)leftOperand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_MEQ__LEFT_OPERAND, null, msgs);
113 if (newLeftOperand != null)
114 msgs = ((InternalEObject)newLeftOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_MEQ__LEFT_OPERAND, null, msgs);
115 msgs = basicSetLeftOperand(newLeftOperand, msgs);
116 if (msgs != null) msgs.dispatch();
117 }
118 else if (eNotificationRequired())
119 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_MEQ__LEFT_OPERAND, newLeftOperand, newLeftOperand));
120 }
121
122 /**
123 * <!-- begin-user-doc -->
124 * <!-- end-user-doc -->
125 * @generated
126 */
127 public ALSTerm getRightOperand()
128 {
129 return rightOperand;
130 }
131
132 /**
133 * <!-- begin-user-doc -->
134 * <!-- end-user-doc -->
135 * @generated
136 */
137 public NotificationChain basicSetRightOperand(ALSTerm newRightOperand, NotificationChain msgs)
138 {
139 ALSTerm oldRightOperand = rightOperand;
140 rightOperand = newRightOperand;
141 if (eNotificationRequired())
142 {
143 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_MEQ__RIGHT_OPERAND, oldRightOperand, newRightOperand);
144 if (msgs == null) msgs = notification; else msgs.add(notification);
145 }
146 return msgs;
147 }
148
149 /**
150 * <!-- begin-user-doc -->
151 * <!-- end-user-doc -->
152 * @generated
153 */
154 public void setRightOperand(ALSTerm newRightOperand)
155 {
156 if (newRightOperand != rightOperand)
157 {
158 NotificationChain msgs = null;
159 if (rightOperand != null)
160 msgs = ((InternalEObject)rightOperand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_MEQ__RIGHT_OPERAND, null, msgs);
161 if (newRightOperand != null)
162 msgs = ((InternalEObject)newRightOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_MEQ__RIGHT_OPERAND, null, msgs);
163 msgs = basicSetRightOperand(newRightOperand, msgs);
164 if (msgs != null) msgs.dispatch();
165 }
166 else if (eNotificationRequired())
167 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_MEQ__RIGHT_OPERAND, newRightOperand, newRightOperand));
168 }
169
170 /**
171 * <!-- begin-user-doc -->
172 * <!-- end-user-doc -->
173 * @generated
174 */
175 @Override
176 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
177 {
178 switch (featureID)
179 {
180 case AlloyLanguagePackage.ALS_MEQ__LEFT_OPERAND:
181 return basicSetLeftOperand(null, msgs);
182 case AlloyLanguagePackage.ALS_MEQ__RIGHT_OPERAND:
183 return basicSetRightOperand(null, msgs);
184 }
185 return super.eInverseRemove(otherEnd, featureID, msgs);
186 }
187
188 /**
189 * <!-- begin-user-doc -->
190 * <!-- end-user-doc -->
191 * @generated
192 */
193 @Override
194 public Object eGet(int featureID, boolean resolve, boolean coreType)
195 {
196 switch (featureID)
197 {
198 case AlloyLanguagePackage.ALS_MEQ__LEFT_OPERAND:
199 return getLeftOperand();
200 case AlloyLanguagePackage.ALS_MEQ__RIGHT_OPERAND:
201 return getRightOperand();
202 }
203 return super.eGet(featureID, resolve, coreType);
204 }
205
206 /**
207 * <!-- begin-user-doc -->
208 * <!-- end-user-doc -->
209 * @generated
210 */
211 @Override
212 public void eSet(int featureID, Object newValue)
213 {
214 switch (featureID)
215 {
216 case AlloyLanguagePackage.ALS_MEQ__LEFT_OPERAND:
217 setLeftOperand((ALSTerm)newValue);
218 return;
219 case AlloyLanguagePackage.ALS_MEQ__RIGHT_OPERAND:
220 setRightOperand((ALSTerm)newValue);
221 return;
222 }
223 super.eSet(featureID, newValue);
224 }
225
226 /**
227 * <!-- begin-user-doc -->
228 * <!-- end-user-doc -->
229 * @generated
230 */
231 @Override
232 public void eUnset(int featureID)
233 {
234 switch (featureID)
235 {
236 case AlloyLanguagePackage.ALS_MEQ__LEFT_OPERAND:
237 setLeftOperand((ALSTerm)null);
238 return;
239 case AlloyLanguagePackage.ALS_MEQ__RIGHT_OPERAND:
240 setRightOperand((ALSTerm)null);
241 return;
242 }
243 super.eUnset(featureID);
244 }
245
246 /**
247 * <!-- begin-user-doc -->
248 * <!-- end-user-doc -->
249 * @generated
250 */
251 @Override
252 public boolean eIsSet(int featureID)
253 {
254 switch (featureID)
255 {
256 case AlloyLanguagePackage.ALS_MEQ__LEFT_OPERAND:
257 return leftOperand != null;
258 case AlloyLanguagePackage.ALS_MEQ__RIGHT_OPERAND:
259 return rightOperand != null;
260 }
261 return super.eIsSet(featureID);
262 }
263
264} //ALSMeqImpl
diff --git a/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSMinusImpl.java b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSMinusImpl.java
new file mode 100644
index 00000000..b516a309
--- /dev/null
+++ b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSMinusImpl.java
@@ -0,0 +1,264 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSMinus;
6import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSTerm;
7import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguagePackage;
8
9import org.eclipse.emf.common.notify.Notification;
10import org.eclipse.emf.common.notify.NotificationChain;
11
12import org.eclipse.emf.ecore.EClass;
13import org.eclipse.emf.ecore.InternalEObject;
14
15import org.eclipse.emf.ecore.impl.ENotificationImpl;
16
17/**
18 * <!-- begin-user-doc -->
19 * An implementation of the model object '<em><b>ALS Minus</b></em>'.
20 * <!-- end-user-doc -->
21 * <p>
22 * The following features are implemented:
23 * </p>
24 * <ul>
25 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSMinusImpl#getLeftOperand <em>Left Operand</em>}</li>
26 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSMinusImpl#getRightOperand <em>Right Operand</em>}</li>
27 * </ul>
28 *
29 * @generated
30 */
31public class ALSMinusImpl extends ALSTermImpl implements ALSMinus
32{
33 /**
34 * The cached value of the '{@link #getLeftOperand() <em>Left Operand</em>}' containment reference.
35 * <!-- begin-user-doc -->
36 * <!-- end-user-doc -->
37 * @see #getLeftOperand()
38 * @generated
39 * @ordered
40 */
41 protected ALSTerm leftOperand;
42
43 /**
44 * The cached value of the '{@link #getRightOperand() <em>Right Operand</em>}' containment reference.
45 * <!-- begin-user-doc -->
46 * <!-- end-user-doc -->
47 * @see #getRightOperand()
48 * @generated
49 * @ordered
50 */
51 protected ALSTerm rightOperand;
52
53 /**
54 * <!-- begin-user-doc -->
55 * <!-- end-user-doc -->
56 * @generated
57 */
58 protected ALSMinusImpl()
59 {
60 super();
61 }
62
63 /**
64 * <!-- begin-user-doc -->
65 * <!-- end-user-doc -->
66 * @generated
67 */
68 @Override
69 protected EClass eStaticClass()
70 {
71 return AlloyLanguagePackage.Literals.ALS_MINUS;
72 }
73
74 /**
75 * <!-- begin-user-doc -->
76 * <!-- end-user-doc -->
77 * @generated
78 */
79 public ALSTerm getLeftOperand()
80 {
81 return leftOperand;
82 }
83
84 /**
85 * <!-- begin-user-doc -->
86 * <!-- end-user-doc -->
87 * @generated
88 */
89 public NotificationChain basicSetLeftOperand(ALSTerm newLeftOperand, NotificationChain msgs)
90 {
91 ALSTerm oldLeftOperand = leftOperand;
92 leftOperand = newLeftOperand;
93 if (eNotificationRequired())
94 {
95 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_MINUS__LEFT_OPERAND, oldLeftOperand, newLeftOperand);
96 if (msgs == null) msgs = notification; else msgs.add(notification);
97 }
98 return msgs;
99 }
100
101 /**
102 * <!-- begin-user-doc -->
103 * <!-- end-user-doc -->
104 * @generated
105 */
106 public void setLeftOperand(ALSTerm newLeftOperand)
107 {
108 if (newLeftOperand != leftOperand)
109 {
110 NotificationChain msgs = null;
111 if (leftOperand != null)
112 msgs = ((InternalEObject)leftOperand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_MINUS__LEFT_OPERAND, null, msgs);
113 if (newLeftOperand != null)
114 msgs = ((InternalEObject)newLeftOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_MINUS__LEFT_OPERAND, null, msgs);
115 msgs = basicSetLeftOperand(newLeftOperand, msgs);
116 if (msgs != null) msgs.dispatch();
117 }
118 else if (eNotificationRequired())
119 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_MINUS__LEFT_OPERAND, newLeftOperand, newLeftOperand));
120 }
121
122 /**
123 * <!-- begin-user-doc -->
124 * <!-- end-user-doc -->
125 * @generated
126 */
127 public ALSTerm getRightOperand()
128 {
129 return rightOperand;
130 }
131
132 /**
133 * <!-- begin-user-doc -->
134 * <!-- end-user-doc -->
135 * @generated
136 */
137 public NotificationChain basicSetRightOperand(ALSTerm newRightOperand, NotificationChain msgs)
138 {
139 ALSTerm oldRightOperand = rightOperand;
140 rightOperand = newRightOperand;
141 if (eNotificationRequired())
142 {
143 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_MINUS__RIGHT_OPERAND, oldRightOperand, newRightOperand);
144 if (msgs == null) msgs = notification; else msgs.add(notification);
145 }
146 return msgs;
147 }
148
149 /**
150 * <!-- begin-user-doc -->
151 * <!-- end-user-doc -->
152 * @generated
153 */
154 public void setRightOperand(ALSTerm newRightOperand)
155 {
156 if (newRightOperand != rightOperand)
157 {
158 NotificationChain msgs = null;
159 if (rightOperand != null)
160 msgs = ((InternalEObject)rightOperand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_MINUS__RIGHT_OPERAND, null, msgs);
161 if (newRightOperand != null)
162 msgs = ((InternalEObject)newRightOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_MINUS__RIGHT_OPERAND, null, msgs);
163 msgs = basicSetRightOperand(newRightOperand, msgs);
164 if (msgs != null) msgs.dispatch();
165 }
166 else if (eNotificationRequired())
167 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_MINUS__RIGHT_OPERAND, newRightOperand, newRightOperand));
168 }
169
170 /**
171 * <!-- begin-user-doc -->
172 * <!-- end-user-doc -->
173 * @generated
174 */
175 @Override
176 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
177 {
178 switch (featureID)
179 {
180 case AlloyLanguagePackage.ALS_MINUS__LEFT_OPERAND:
181 return basicSetLeftOperand(null, msgs);
182 case AlloyLanguagePackage.ALS_MINUS__RIGHT_OPERAND:
183 return basicSetRightOperand(null, msgs);
184 }
185 return super.eInverseRemove(otherEnd, featureID, msgs);
186 }
187
188 /**
189 * <!-- begin-user-doc -->
190 * <!-- end-user-doc -->
191 * @generated
192 */
193 @Override
194 public Object eGet(int featureID, boolean resolve, boolean coreType)
195 {
196 switch (featureID)
197 {
198 case AlloyLanguagePackage.ALS_MINUS__LEFT_OPERAND:
199 return getLeftOperand();
200 case AlloyLanguagePackage.ALS_MINUS__RIGHT_OPERAND:
201 return getRightOperand();
202 }
203 return super.eGet(featureID, resolve, coreType);
204 }
205
206 /**
207 * <!-- begin-user-doc -->
208 * <!-- end-user-doc -->
209 * @generated
210 */
211 @Override
212 public void eSet(int featureID, Object newValue)
213 {
214 switch (featureID)
215 {
216 case AlloyLanguagePackage.ALS_MINUS__LEFT_OPERAND:
217 setLeftOperand((ALSTerm)newValue);
218 return;
219 case AlloyLanguagePackage.ALS_MINUS__RIGHT_OPERAND:
220 setRightOperand((ALSTerm)newValue);
221 return;
222 }
223 super.eSet(featureID, newValue);
224 }
225
226 /**
227 * <!-- begin-user-doc -->
228 * <!-- end-user-doc -->
229 * @generated
230 */
231 @Override
232 public void eUnset(int featureID)
233 {
234 switch (featureID)
235 {
236 case AlloyLanguagePackage.ALS_MINUS__LEFT_OPERAND:
237 setLeftOperand((ALSTerm)null);
238 return;
239 case AlloyLanguagePackage.ALS_MINUS__RIGHT_OPERAND:
240 setRightOperand((ALSTerm)null);
241 return;
242 }
243 super.eUnset(featureID);
244 }
245
246 /**
247 * <!-- begin-user-doc -->
248 * <!-- end-user-doc -->
249 * @generated
250 */
251 @Override
252 public boolean eIsSet(int featureID)
253 {
254 switch (featureID)
255 {
256 case AlloyLanguagePackage.ALS_MINUS__LEFT_OPERAND:
257 return leftOperand != null;
258 case AlloyLanguagePackage.ALS_MINUS__RIGHT_OPERAND:
259 return rightOperand != null;
260 }
261 return super.eIsSet(featureID);
262 }
263
264} //ALSMinusImpl
diff --git a/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSMoreImpl.java b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSMoreImpl.java
new file mode 100644
index 00000000..b37bbb1f
--- /dev/null
+++ b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSMoreImpl.java
@@ -0,0 +1,264 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSMore;
6import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSTerm;
7import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguagePackage;
8
9import org.eclipse.emf.common.notify.Notification;
10import org.eclipse.emf.common.notify.NotificationChain;
11
12import org.eclipse.emf.ecore.EClass;
13import org.eclipse.emf.ecore.InternalEObject;
14
15import org.eclipse.emf.ecore.impl.ENotificationImpl;
16
17/**
18 * <!-- begin-user-doc -->
19 * An implementation of the model object '<em><b>ALS More</b></em>'.
20 * <!-- end-user-doc -->
21 * <p>
22 * The following features are implemented:
23 * </p>
24 * <ul>
25 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSMoreImpl#getLeftOperand <em>Left Operand</em>}</li>
26 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSMoreImpl#getRightOperand <em>Right Operand</em>}</li>
27 * </ul>
28 *
29 * @generated
30 */
31public class ALSMoreImpl extends ALSTermImpl implements ALSMore
32{
33 /**
34 * The cached value of the '{@link #getLeftOperand() <em>Left Operand</em>}' containment reference.
35 * <!-- begin-user-doc -->
36 * <!-- end-user-doc -->
37 * @see #getLeftOperand()
38 * @generated
39 * @ordered
40 */
41 protected ALSTerm leftOperand;
42
43 /**
44 * The cached value of the '{@link #getRightOperand() <em>Right Operand</em>}' containment reference.
45 * <!-- begin-user-doc -->
46 * <!-- end-user-doc -->
47 * @see #getRightOperand()
48 * @generated
49 * @ordered
50 */
51 protected ALSTerm rightOperand;
52
53 /**
54 * <!-- begin-user-doc -->
55 * <!-- end-user-doc -->
56 * @generated
57 */
58 protected ALSMoreImpl()
59 {
60 super();
61 }
62
63 /**
64 * <!-- begin-user-doc -->
65 * <!-- end-user-doc -->
66 * @generated
67 */
68 @Override
69 protected EClass eStaticClass()
70 {
71 return AlloyLanguagePackage.Literals.ALS_MORE;
72 }
73
74 /**
75 * <!-- begin-user-doc -->
76 * <!-- end-user-doc -->
77 * @generated
78 */
79 public ALSTerm getLeftOperand()
80 {
81 return leftOperand;
82 }
83
84 /**
85 * <!-- begin-user-doc -->
86 * <!-- end-user-doc -->
87 * @generated
88 */
89 public NotificationChain basicSetLeftOperand(ALSTerm newLeftOperand, NotificationChain msgs)
90 {
91 ALSTerm oldLeftOperand = leftOperand;
92 leftOperand = newLeftOperand;
93 if (eNotificationRequired())
94 {
95 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_MORE__LEFT_OPERAND, oldLeftOperand, newLeftOperand);
96 if (msgs == null) msgs = notification; else msgs.add(notification);
97 }
98 return msgs;
99 }
100
101 /**
102 * <!-- begin-user-doc -->
103 * <!-- end-user-doc -->
104 * @generated
105 */
106 public void setLeftOperand(ALSTerm newLeftOperand)
107 {
108 if (newLeftOperand != leftOperand)
109 {
110 NotificationChain msgs = null;
111 if (leftOperand != null)
112 msgs = ((InternalEObject)leftOperand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_MORE__LEFT_OPERAND, null, msgs);
113 if (newLeftOperand != null)
114 msgs = ((InternalEObject)newLeftOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_MORE__LEFT_OPERAND, null, msgs);
115 msgs = basicSetLeftOperand(newLeftOperand, msgs);
116 if (msgs != null) msgs.dispatch();
117 }
118 else if (eNotificationRequired())
119 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_MORE__LEFT_OPERAND, newLeftOperand, newLeftOperand));
120 }
121
122 /**
123 * <!-- begin-user-doc -->
124 * <!-- end-user-doc -->
125 * @generated
126 */
127 public ALSTerm getRightOperand()
128 {
129 return rightOperand;
130 }
131
132 /**
133 * <!-- begin-user-doc -->
134 * <!-- end-user-doc -->
135 * @generated
136 */
137 public NotificationChain basicSetRightOperand(ALSTerm newRightOperand, NotificationChain msgs)
138 {
139 ALSTerm oldRightOperand = rightOperand;
140 rightOperand = newRightOperand;
141 if (eNotificationRequired())
142 {
143 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_MORE__RIGHT_OPERAND, oldRightOperand, newRightOperand);
144 if (msgs == null) msgs = notification; else msgs.add(notification);
145 }
146 return msgs;
147 }
148
149 /**
150 * <!-- begin-user-doc -->
151 * <!-- end-user-doc -->
152 * @generated
153 */
154 public void setRightOperand(ALSTerm newRightOperand)
155 {
156 if (newRightOperand != rightOperand)
157 {
158 NotificationChain msgs = null;
159 if (rightOperand != null)
160 msgs = ((InternalEObject)rightOperand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_MORE__RIGHT_OPERAND, null, msgs);
161 if (newRightOperand != null)
162 msgs = ((InternalEObject)newRightOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_MORE__RIGHT_OPERAND, null, msgs);
163 msgs = basicSetRightOperand(newRightOperand, msgs);
164 if (msgs != null) msgs.dispatch();
165 }
166 else if (eNotificationRequired())
167 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_MORE__RIGHT_OPERAND, newRightOperand, newRightOperand));
168 }
169
170 /**
171 * <!-- begin-user-doc -->
172 * <!-- end-user-doc -->
173 * @generated
174 */
175 @Override
176 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
177 {
178 switch (featureID)
179 {
180 case AlloyLanguagePackage.ALS_MORE__LEFT_OPERAND:
181 return basicSetLeftOperand(null, msgs);
182 case AlloyLanguagePackage.ALS_MORE__RIGHT_OPERAND:
183 return basicSetRightOperand(null, msgs);
184 }
185 return super.eInverseRemove(otherEnd, featureID, msgs);
186 }
187
188 /**
189 * <!-- begin-user-doc -->
190 * <!-- end-user-doc -->
191 * @generated
192 */
193 @Override
194 public Object eGet(int featureID, boolean resolve, boolean coreType)
195 {
196 switch (featureID)
197 {
198 case AlloyLanguagePackage.ALS_MORE__LEFT_OPERAND:
199 return getLeftOperand();
200 case AlloyLanguagePackage.ALS_MORE__RIGHT_OPERAND:
201 return getRightOperand();
202 }
203 return super.eGet(featureID, resolve, coreType);
204 }
205
206 /**
207 * <!-- begin-user-doc -->
208 * <!-- end-user-doc -->
209 * @generated
210 */
211 @Override
212 public void eSet(int featureID, Object newValue)
213 {
214 switch (featureID)
215 {
216 case AlloyLanguagePackage.ALS_MORE__LEFT_OPERAND:
217 setLeftOperand((ALSTerm)newValue);
218 return;
219 case AlloyLanguagePackage.ALS_MORE__RIGHT_OPERAND:
220 setRightOperand((ALSTerm)newValue);
221 return;
222 }
223 super.eSet(featureID, newValue);
224 }
225
226 /**
227 * <!-- begin-user-doc -->
228 * <!-- end-user-doc -->
229 * @generated
230 */
231 @Override
232 public void eUnset(int featureID)
233 {
234 switch (featureID)
235 {
236 case AlloyLanguagePackage.ALS_MORE__LEFT_OPERAND:
237 setLeftOperand((ALSTerm)null);
238 return;
239 case AlloyLanguagePackage.ALS_MORE__RIGHT_OPERAND:
240 setRightOperand((ALSTerm)null);
241 return;
242 }
243 super.eUnset(featureID);
244 }
245
246 /**
247 * <!-- begin-user-doc -->
248 * <!-- end-user-doc -->
249 * @generated
250 */
251 @Override
252 public boolean eIsSet(int featureID)
253 {
254 switch (featureID)
255 {
256 case AlloyLanguagePackage.ALS_MORE__LEFT_OPERAND:
257 return leftOperand != null;
258 case AlloyLanguagePackage.ALS_MORE__RIGHT_OPERAND:
259 return rightOperand != null;
260 }
261 return super.eIsSet(featureID);
262 }
263
264} //ALSMoreImpl
diff --git a/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSNoneImpl.java b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSNoneImpl.java
new file mode 100644
index 00000000..3e58d2ef
--- /dev/null
+++ b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSNoneImpl.java
@@ -0,0 +1,40 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSNone;
6import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguagePackage;
7
8import org.eclipse.emf.ecore.EClass;
9
10/**
11 * <!-- begin-user-doc -->
12 * An implementation of the model object '<em><b>ALS None</b></em>'.
13 * <!-- end-user-doc -->
14 *
15 * @generated
16 */
17public class ALSNoneImpl extends ALSTermImpl implements ALSNone
18{
19 /**
20 * <!-- begin-user-doc -->
21 * <!-- end-user-doc -->
22 * @generated
23 */
24 protected ALSNoneImpl()
25 {
26 super();
27 }
28
29 /**
30 * <!-- begin-user-doc -->
31 * <!-- end-user-doc -->
32 * @generated
33 */
34 @Override
35 protected EClass eStaticClass()
36 {
37 return AlloyLanguagePackage.Literals.ALS_NONE;
38 }
39
40} //ALSNoneImpl
diff --git a/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSNotEqualsImpl.java b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSNotEqualsImpl.java
new file mode 100644
index 00000000..58960928
--- /dev/null
+++ b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSNotEqualsImpl.java
@@ -0,0 +1,264 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSNotEquals;
6import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSTerm;
7import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguagePackage;
8
9import org.eclipse.emf.common.notify.Notification;
10import org.eclipse.emf.common.notify.NotificationChain;
11
12import org.eclipse.emf.ecore.EClass;
13import org.eclipse.emf.ecore.InternalEObject;
14
15import org.eclipse.emf.ecore.impl.ENotificationImpl;
16
17/**
18 * <!-- begin-user-doc -->
19 * An implementation of the model object '<em><b>ALS Not Equals</b></em>'.
20 * <!-- end-user-doc -->
21 * <p>
22 * The following features are implemented:
23 * </p>
24 * <ul>
25 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSNotEqualsImpl#getLeftOperand <em>Left Operand</em>}</li>
26 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSNotEqualsImpl#getRightOperand <em>Right Operand</em>}</li>
27 * </ul>
28 *
29 * @generated
30 */
31public class ALSNotEqualsImpl extends ALSTermImpl implements ALSNotEquals
32{
33 /**
34 * The cached value of the '{@link #getLeftOperand() <em>Left Operand</em>}' containment reference.
35 * <!-- begin-user-doc -->
36 * <!-- end-user-doc -->
37 * @see #getLeftOperand()
38 * @generated
39 * @ordered
40 */
41 protected ALSTerm leftOperand;
42
43 /**
44 * The cached value of the '{@link #getRightOperand() <em>Right Operand</em>}' containment reference.
45 * <!-- begin-user-doc -->
46 * <!-- end-user-doc -->
47 * @see #getRightOperand()
48 * @generated
49 * @ordered
50 */
51 protected ALSTerm rightOperand;
52
53 /**
54 * <!-- begin-user-doc -->
55 * <!-- end-user-doc -->
56 * @generated
57 */
58 protected ALSNotEqualsImpl()
59 {
60 super();
61 }
62
63 /**
64 * <!-- begin-user-doc -->
65 * <!-- end-user-doc -->
66 * @generated
67 */
68 @Override
69 protected EClass eStaticClass()
70 {
71 return AlloyLanguagePackage.Literals.ALS_NOT_EQUALS;
72 }
73
74 /**
75 * <!-- begin-user-doc -->
76 * <!-- end-user-doc -->
77 * @generated
78 */
79 public ALSTerm getLeftOperand()
80 {
81 return leftOperand;
82 }
83
84 /**
85 * <!-- begin-user-doc -->
86 * <!-- end-user-doc -->
87 * @generated
88 */
89 public NotificationChain basicSetLeftOperand(ALSTerm newLeftOperand, NotificationChain msgs)
90 {
91 ALSTerm oldLeftOperand = leftOperand;
92 leftOperand = newLeftOperand;
93 if (eNotificationRequired())
94 {
95 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_NOT_EQUALS__LEFT_OPERAND, oldLeftOperand, newLeftOperand);
96 if (msgs == null) msgs = notification; else msgs.add(notification);
97 }
98 return msgs;
99 }
100
101 /**
102 * <!-- begin-user-doc -->
103 * <!-- end-user-doc -->
104 * @generated
105 */
106 public void setLeftOperand(ALSTerm newLeftOperand)
107 {
108 if (newLeftOperand != leftOperand)
109 {
110 NotificationChain msgs = null;
111 if (leftOperand != null)
112 msgs = ((InternalEObject)leftOperand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_NOT_EQUALS__LEFT_OPERAND, null, msgs);
113 if (newLeftOperand != null)
114 msgs = ((InternalEObject)newLeftOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_NOT_EQUALS__LEFT_OPERAND, null, msgs);
115 msgs = basicSetLeftOperand(newLeftOperand, msgs);
116 if (msgs != null) msgs.dispatch();
117 }
118 else if (eNotificationRequired())
119 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_NOT_EQUALS__LEFT_OPERAND, newLeftOperand, newLeftOperand));
120 }
121
122 /**
123 * <!-- begin-user-doc -->
124 * <!-- end-user-doc -->
125 * @generated
126 */
127 public ALSTerm getRightOperand()
128 {
129 return rightOperand;
130 }
131
132 /**
133 * <!-- begin-user-doc -->
134 * <!-- end-user-doc -->
135 * @generated
136 */
137 public NotificationChain basicSetRightOperand(ALSTerm newRightOperand, NotificationChain msgs)
138 {
139 ALSTerm oldRightOperand = rightOperand;
140 rightOperand = newRightOperand;
141 if (eNotificationRequired())
142 {
143 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_NOT_EQUALS__RIGHT_OPERAND, oldRightOperand, newRightOperand);
144 if (msgs == null) msgs = notification; else msgs.add(notification);
145 }
146 return msgs;
147 }
148
149 /**
150 * <!-- begin-user-doc -->
151 * <!-- end-user-doc -->
152 * @generated
153 */
154 public void setRightOperand(ALSTerm newRightOperand)
155 {
156 if (newRightOperand != rightOperand)
157 {
158 NotificationChain msgs = null;
159 if (rightOperand != null)
160 msgs = ((InternalEObject)rightOperand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_NOT_EQUALS__RIGHT_OPERAND, null, msgs);
161 if (newRightOperand != null)
162 msgs = ((InternalEObject)newRightOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_NOT_EQUALS__RIGHT_OPERAND, null, msgs);
163 msgs = basicSetRightOperand(newRightOperand, msgs);
164 if (msgs != null) msgs.dispatch();
165 }
166 else if (eNotificationRequired())
167 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_NOT_EQUALS__RIGHT_OPERAND, newRightOperand, newRightOperand));
168 }
169
170 /**
171 * <!-- begin-user-doc -->
172 * <!-- end-user-doc -->
173 * @generated
174 */
175 @Override
176 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
177 {
178 switch (featureID)
179 {
180 case AlloyLanguagePackage.ALS_NOT_EQUALS__LEFT_OPERAND:
181 return basicSetLeftOperand(null, msgs);
182 case AlloyLanguagePackage.ALS_NOT_EQUALS__RIGHT_OPERAND:
183 return basicSetRightOperand(null, msgs);
184 }
185 return super.eInverseRemove(otherEnd, featureID, msgs);
186 }
187
188 /**
189 * <!-- begin-user-doc -->
190 * <!-- end-user-doc -->
191 * @generated
192 */
193 @Override
194 public Object eGet(int featureID, boolean resolve, boolean coreType)
195 {
196 switch (featureID)
197 {
198 case AlloyLanguagePackage.ALS_NOT_EQUALS__LEFT_OPERAND:
199 return getLeftOperand();
200 case AlloyLanguagePackage.ALS_NOT_EQUALS__RIGHT_OPERAND:
201 return getRightOperand();
202 }
203 return super.eGet(featureID, resolve, coreType);
204 }
205
206 /**
207 * <!-- begin-user-doc -->
208 * <!-- end-user-doc -->
209 * @generated
210 */
211 @Override
212 public void eSet(int featureID, Object newValue)
213 {
214 switch (featureID)
215 {
216 case AlloyLanguagePackage.ALS_NOT_EQUALS__LEFT_OPERAND:
217 setLeftOperand((ALSTerm)newValue);
218 return;
219 case AlloyLanguagePackage.ALS_NOT_EQUALS__RIGHT_OPERAND:
220 setRightOperand((ALSTerm)newValue);
221 return;
222 }
223 super.eSet(featureID, newValue);
224 }
225
226 /**
227 * <!-- begin-user-doc -->
228 * <!-- end-user-doc -->
229 * @generated
230 */
231 @Override
232 public void eUnset(int featureID)
233 {
234 switch (featureID)
235 {
236 case AlloyLanguagePackage.ALS_NOT_EQUALS__LEFT_OPERAND:
237 setLeftOperand((ALSTerm)null);
238 return;
239 case AlloyLanguagePackage.ALS_NOT_EQUALS__RIGHT_OPERAND:
240 setRightOperand((ALSTerm)null);
241 return;
242 }
243 super.eUnset(featureID);
244 }
245
246 /**
247 * <!-- begin-user-doc -->
248 * <!-- end-user-doc -->
249 * @generated
250 */
251 @Override
252 public boolean eIsSet(int featureID)
253 {
254 switch (featureID)
255 {
256 case AlloyLanguagePackage.ALS_NOT_EQUALS__LEFT_OPERAND:
257 return leftOperand != null;
258 case AlloyLanguagePackage.ALS_NOT_EQUALS__RIGHT_OPERAND:
259 return rightOperand != null;
260 }
261 return super.eIsSet(featureID);
262 }
263
264} //ALSNotEqualsImpl
diff --git a/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSNotImpl.java b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSNotImpl.java
new file mode 100644
index 00000000..80c6d887
--- /dev/null
+++ b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSNotImpl.java
@@ -0,0 +1,193 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSNot;
6import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSTerm;
7import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguagePackage;
8
9import org.eclipse.emf.common.notify.Notification;
10import org.eclipse.emf.common.notify.NotificationChain;
11
12import org.eclipse.emf.ecore.EClass;
13import org.eclipse.emf.ecore.InternalEObject;
14
15import org.eclipse.emf.ecore.impl.ENotificationImpl;
16
17/**
18 * <!-- begin-user-doc -->
19 * An implementation of the model object '<em><b>ALS Not</b></em>'.
20 * <!-- end-user-doc -->
21 * <p>
22 * The following features are implemented:
23 * </p>
24 * <ul>
25 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSNotImpl#getOperand <em>Operand</em>}</li>
26 * </ul>
27 *
28 * @generated
29 */
30public class ALSNotImpl extends ALSTermImpl implements ALSNot
31{
32 /**
33 * The cached value of the '{@link #getOperand() <em>Operand</em>}' containment reference.
34 * <!-- begin-user-doc -->
35 * <!-- end-user-doc -->
36 * @see #getOperand()
37 * @generated
38 * @ordered
39 */
40 protected ALSTerm operand;
41
42 /**
43 * <!-- begin-user-doc -->
44 * <!-- end-user-doc -->
45 * @generated
46 */
47 protected ALSNotImpl()
48 {
49 super();
50 }
51
52 /**
53 * <!-- begin-user-doc -->
54 * <!-- end-user-doc -->
55 * @generated
56 */
57 @Override
58 protected EClass eStaticClass()
59 {
60 return AlloyLanguagePackage.Literals.ALS_NOT;
61 }
62
63 /**
64 * <!-- begin-user-doc -->
65 * <!-- end-user-doc -->
66 * @generated
67 */
68 public ALSTerm getOperand()
69 {
70 return operand;
71 }
72
73 /**
74 * <!-- begin-user-doc -->
75 * <!-- end-user-doc -->
76 * @generated
77 */
78 public NotificationChain basicSetOperand(ALSTerm newOperand, NotificationChain msgs)
79 {
80 ALSTerm oldOperand = operand;
81 operand = newOperand;
82 if (eNotificationRequired())
83 {
84 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_NOT__OPERAND, oldOperand, newOperand);
85 if (msgs == null) msgs = notification; else msgs.add(notification);
86 }
87 return msgs;
88 }
89
90 /**
91 * <!-- begin-user-doc -->
92 * <!-- end-user-doc -->
93 * @generated
94 */
95 public void setOperand(ALSTerm newOperand)
96 {
97 if (newOperand != operand)
98 {
99 NotificationChain msgs = null;
100 if (operand != null)
101 msgs = ((InternalEObject)operand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_NOT__OPERAND, null, msgs);
102 if (newOperand != null)
103 msgs = ((InternalEObject)newOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_NOT__OPERAND, null, msgs);
104 msgs = basicSetOperand(newOperand, msgs);
105 if (msgs != null) msgs.dispatch();
106 }
107 else if (eNotificationRequired())
108 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_NOT__OPERAND, newOperand, newOperand));
109 }
110
111 /**
112 * <!-- begin-user-doc -->
113 * <!-- end-user-doc -->
114 * @generated
115 */
116 @Override
117 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
118 {
119 switch (featureID)
120 {
121 case AlloyLanguagePackage.ALS_NOT__OPERAND:
122 return basicSetOperand(null, msgs);
123 }
124 return super.eInverseRemove(otherEnd, featureID, msgs);
125 }
126
127 /**
128 * <!-- begin-user-doc -->
129 * <!-- end-user-doc -->
130 * @generated
131 */
132 @Override
133 public Object eGet(int featureID, boolean resolve, boolean coreType)
134 {
135 switch (featureID)
136 {
137 case AlloyLanguagePackage.ALS_NOT__OPERAND:
138 return getOperand();
139 }
140 return super.eGet(featureID, resolve, coreType);
141 }
142
143 /**
144 * <!-- begin-user-doc -->
145 * <!-- end-user-doc -->
146 * @generated
147 */
148 @Override
149 public void eSet(int featureID, Object newValue)
150 {
151 switch (featureID)
152 {
153 case AlloyLanguagePackage.ALS_NOT__OPERAND:
154 setOperand((ALSTerm)newValue);
155 return;
156 }
157 super.eSet(featureID, newValue);
158 }
159
160 /**
161 * <!-- begin-user-doc -->
162 * <!-- end-user-doc -->
163 * @generated
164 */
165 @Override
166 public void eUnset(int featureID)
167 {
168 switch (featureID)
169 {
170 case AlloyLanguagePackage.ALS_NOT__OPERAND:
171 setOperand((ALSTerm)null);
172 return;
173 }
174 super.eUnset(featureID);
175 }
176
177 /**
178 * <!-- begin-user-doc -->
179 * <!-- end-user-doc -->
180 * @generated
181 */
182 @Override
183 public boolean eIsSet(int featureID)
184 {
185 switch (featureID)
186 {
187 case AlloyLanguagePackage.ALS_NOT__OPERAND:
188 return operand != null;
189 }
190 return super.eIsSet(featureID);
191 }
192
193} //ALSNotImpl
diff --git a/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSNumberLiteralImpl.java b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSNumberLiteralImpl.java
new file mode 100644
index 00000000..b0ae95f1
--- /dev/null
+++ b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSNumberLiteralImpl.java
@@ -0,0 +1,176 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSNumberLiteral;
6import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguagePackage;
7
8import org.eclipse.emf.common.notify.Notification;
9
10import org.eclipse.emf.ecore.EClass;
11
12import org.eclipse.emf.ecore.impl.ENotificationImpl;
13
14/**
15 * <!-- begin-user-doc -->
16 * An implementation of the model object '<em><b>ALS Number Literal</b></em>'.
17 * <!-- end-user-doc -->
18 * <p>
19 * The following features are implemented:
20 * </p>
21 * <ul>
22 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSNumberLiteralImpl#getValue <em>Value</em>}</li>
23 * </ul>
24 *
25 * @generated
26 */
27public class ALSNumberLiteralImpl extends ALSTermImpl implements ALSNumberLiteral
28{
29 /**
30 * The default value of the '{@link #getValue() <em>Value</em>}' attribute.
31 * <!-- begin-user-doc -->
32 * <!-- end-user-doc -->
33 * @see #getValue()
34 * @generated
35 * @ordered
36 */
37 protected static final int VALUE_EDEFAULT = 0;
38
39 /**
40 * The cached value of the '{@link #getValue() <em>Value</em>}' attribute.
41 * <!-- begin-user-doc -->
42 * <!-- end-user-doc -->
43 * @see #getValue()
44 * @generated
45 * @ordered
46 */
47 protected int value = VALUE_EDEFAULT;
48
49 /**
50 * <!-- begin-user-doc -->
51 * <!-- end-user-doc -->
52 * @generated
53 */
54 protected ALSNumberLiteralImpl()
55 {
56 super();
57 }
58
59 /**
60 * <!-- begin-user-doc -->
61 * <!-- end-user-doc -->
62 * @generated
63 */
64 @Override
65 protected EClass eStaticClass()
66 {
67 return AlloyLanguagePackage.Literals.ALS_NUMBER_LITERAL;
68 }
69
70 /**
71 * <!-- begin-user-doc -->
72 * <!-- end-user-doc -->
73 * @generated
74 */
75 public int getValue()
76 {
77 return value;
78 }
79
80 /**
81 * <!-- begin-user-doc -->
82 * <!-- end-user-doc -->
83 * @generated
84 */
85 public void setValue(int newValue)
86 {
87 int oldValue = value;
88 value = newValue;
89 if (eNotificationRequired())
90 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_NUMBER_LITERAL__VALUE, oldValue, value));
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 {
101 switch (featureID)
102 {
103 case AlloyLanguagePackage.ALS_NUMBER_LITERAL__VALUE:
104 return getValue();
105 }
106 return super.eGet(featureID, resolve, coreType);
107 }
108
109 /**
110 * <!-- begin-user-doc -->
111 * <!-- end-user-doc -->
112 * @generated
113 */
114 @Override
115 public void eSet(int featureID, Object newValue)
116 {
117 switch (featureID)
118 {
119 case AlloyLanguagePackage.ALS_NUMBER_LITERAL__VALUE:
120 setValue((Integer)newValue);
121 return;
122 }
123 super.eSet(featureID, newValue);
124 }
125
126 /**
127 * <!-- begin-user-doc -->
128 * <!-- end-user-doc -->
129 * @generated
130 */
131 @Override
132 public void eUnset(int featureID)
133 {
134 switch (featureID)
135 {
136 case AlloyLanguagePackage.ALS_NUMBER_LITERAL__VALUE:
137 setValue(VALUE_EDEFAULT);
138 return;
139 }
140 super.eUnset(featureID);
141 }
142
143 /**
144 * <!-- begin-user-doc -->
145 * <!-- end-user-doc -->
146 * @generated
147 */
148 @Override
149 public boolean eIsSet(int featureID)
150 {
151 switch (featureID)
152 {
153 case AlloyLanguagePackage.ALS_NUMBER_LITERAL__VALUE:
154 return value != VALUE_EDEFAULT;
155 }
156 return super.eIsSet(featureID);
157 }
158
159 /**
160 * <!-- begin-user-doc -->
161 * <!-- end-user-doc -->
162 * @generated
163 */
164 @Override
165 public String toString()
166 {
167 if (eIsProxy()) return super.toString();
168
169 StringBuffer result = new StringBuffer(super.toString());
170 result.append(" (value: ");
171 result.append(value);
172 result.append(')');
173 return result.toString();
174 }
175
176} //ALSNumberLiteralImpl
diff --git a/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSOrImpl.java b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSOrImpl.java
new file mode 100644
index 00000000..0c6556e4
--- /dev/null
+++ b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSOrImpl.java
@@ -0,0 +1,264 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSOr;
6import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSTerm;
7import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguagePackage;
8
9import org.eclipse.emf.common.notify.Notification;
10import org.eclipse.emf.common.notify.NotificationChain;
11
12import org.eclipse.emf.ecore.EClass;
13import org.eclipse.emf.ecore.InternalEObject;
14
15import org.eclipse.emf.ecore.impl.ENotificationImpl;
16
17/**
18 * <!-- begin-user-doc -->
19 * An implementation of the model object '<em><b>ALS Or</b></em>'.
20 * <!-- end-user-doc -->
21 * <p>
22 * The following features are implemented:
23 * </p>
24 * <ul>
25 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSOrImpl#getLeftOperand <em>Left Operand</em>}</li>
26 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSOrImpl#getRightOperand <em>Right Operand</em>}</li>
27 * </ul>
28 *
29 * @generated
30 */
31public class ALSOrImpl extends ALSTermImpl implements ALSOr
32{
33 /**
34 * The cached value of the '{@link #getLeftOperand() <em>Left Operand</em>}' containment reference.
35 * <!-- begin-user-doc -->
36 * <!-- end-user-doc -->
37 * @see #getLeftOperand()
38 * @generated
39 * @ordered
40 */
41 protected ALSTerm leftOperand;
42
43 /**
44 * The cached value of the '{@link #getRightOperand() <em>Right Operand</em>}' containment reference.
45 * <!-- begin-user-doc -->
46 * <!-- end-user-doc -->
47 * @see #getRightOperand()
48 * @generated
49 * @ordered
50 */
51 protected ALSTerm rightOperand;
52
53 /**
54 * <!-- begin-user-doc -->
55 * <!-- end-user-doc -->
56 * @generated
57 */
58 protected ALSOrImpl()
59 {
60 super();
61 }
62
63 /**
64 * <!-- begin-user-doc -->
65 * <!-- end-user-doc -->
66 * @generated
67 */
68 @Override
69 protected EClass eStaticClass()
70 {
71 return AlloyLanguagePackage.Literals.ALS_OR;
72 }
73
74 /**
75 * <!-- begin-user-doc -->
76 * <!-- end-user-doc -->
77 * @generated
78 */
79 public ALSTerm getLeftOperand()
80 {
81 return leftOperand;
82 }
83
84 /**
85 * <!-- begin-user-doc -->
86 * <!-- end-user-doc -->
87 * @generated
88 */
89 public NotificationChain basicSetLeftOperand(ALSTerm newLeftOperand, NotificationChain msgs)
90 {
91 ALSTerm oldLeftOperand = leftOperand;
92 leftOperand = newLeftOperand;
93 if (eNotificationRequired())
94 {
95 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_OR__LEFT_OPERAND, oldLeftOperand, newLeftOperand);
96 if (msgs == null) msgs = notification; else msgs.add(notification);
97 }
98 return msgs;
99 }
100
101 /**
102 * <!-- begin-user-doc -->
103 * <!-- end-user-doc -->
104 * @generated
105 */
106 public void setLeftOperand(ALSTerm newLeftOperand)
107 {
108 if (newLeftOperand != leftOperand)
109 {
110 NotificationChain msgs = null;
111 if (leftOperand != null)
112 msgs = ((InternalEObject)leftOperand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_OR__LEFT_OPERAND, null, msgs);
113 if (newLeftOperand != null)
114 msgs = ((InternalEObject)newLeftOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_OR__LEFT_OPERAND, null, msgs);
115 msgs = basicSetLeftOperand(newLeftOperand, msgs);
116 if (msgs != null) msgs.dispatch();
117 }
118 else if (eNotificationRequired())
119 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_OR__LEFT_OPERAND, newLeftOperand, newLeftOperand));
120 }
121
122 /**
123 * <!-- begin-user-doc -->
124 * <!-- end-user-doc -->
125 * @generated
126 */
127 public ALSTerm getRightOperand()
128 {
129 return rightOperand;
130 }
131
132 /**
133 * <!-- begin-user-doc -->
134 * <!-- end-user-doc -->
135 * @generated
136 */
137 public NotificationChain basicSetRightOperand(ALSTerm newRightOperand, NotificationChain msgs)
138 {
139 ALSTerm oldRightOperand = rightOperand;
140 rightOperand = newRightOperand;
141 if (eNotificationRequired())
142 {
143 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_OR__RIGHT_OPERAND, oldRightOperand, newRightOperand);
144 if (msgs == null) msgs = notification; else msgs.add(notification);
145 }
146 return msgs;
147 }
148
149 /**
150 * <!-- begin-user-doc -->
151 * <!-- end-user-doc -->
152 * @generated
153 */
154 public void setRightOperand(ALSTerm newRightOperand)
155 {
156 if (newRightOperand != rightOperand)
157 {
158 NotificationChain msgs = null;
159 if (rightOperand != null)
160 msgs = ((InternalEObject)rightOperand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_OR__RIGHT_OPERAND, null, msgs);
161 if (newRightOperand != null)
162 msgs = ((InternalEObject)newRightOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_OR__RIGHT_OPERAND, null, msgs);
163 msgs = basicSetRightOperand(newRightOperand, msgs);
164 if (msgs != null) msgs.dispatch();
165 }
166 else if (eNotificationRequired())
167 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_OR__RIGHT_OPERAND, newRightOperand, newRightOperand));
168 }
169
170 /**
171 * <!-- begin-user-doc -->
172 * <!-- end-user-doc -->
173 * @generated
174 */
175 @Override
176 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
177 {
178 switch (featureID)
179 {
180 case AlloyLanguagePackage.ALS_OR__LEFT_OPERAND:
181 return basicSetLeftOperand(null, msgs);
182 case AlloyLanguagePackage.ALS_OR__RIGHT_OPERAND:
183 return basicSetRightOperand(null, msgs);
184 }
185 return super.eInverseRemove(otherEnd, featureID, msgs);
186 }
187
188 /**
189 * <!-- begin-user-doc -->
190 * <!-- end-user-doc -->
191 * @generated
192 */
193 @Override
194 public Object eGet(int featureID, boolean resolve, boolean coreType)
195 {
196 switch (featureID)
197 {
198 case AlloyLanguagePackage.ALS_OR__LEFT_OPERAND:
199 return getLeftOperand();
200 case AlloyLanguagePackage.ALS_OR__RIGHT_OPERAND:
201 return getRightOperand();
202 }
203 return super.eGet(featureID, resolve, coreType);
204 }
205
206 /**
207 * <!-- begin-user-doc -->
208 * <!-- end-user-doc -->
209 * @generated
210 */
211 @Override
212 public void eSet(int featureID, Object newValue)
213 {
214 switch (featureID)
215 {
216 case AlloyLanguagePackage.ALS_OR__LEFT_OPERAND:
217 setLeftOperand((ALSTerm)newValue);
218 return;
219 case AlloyLanguagePackage.ALS_OR__RIGHT_OPERAND:
220 setRightOperand((ALSTerm)newValue);
221 return;
222 }
223 super.eSet(featureID, newValue);
224 }
225
226 /**
227 * <!-- begin-user-doc -->
228 * <!-- end-user-doc -->
229 * @generated
230 */
231 @Override
232 public void eUnset(int featureID)
233 {
234 switch (featureID)
235 {
236 case AlloyLanguagePackage.ALS_OR__LEFT_OPERAND:
237 setLeftOperand((ALSTerm)null);
238 return;
239 case AlloyLanguagePackage.ALS_OR__RIGHT_OPERAND:
240 setRightOperand((ALSTerm)null);
241 return;
242 }
243 super.eUnset(featureID);
244 }
245
246 /**
247 * <!-- begin-user-doc -->
248 * <!-- end-user-doc -->
249 * @generated
250 */
251 @Override
252 public boolean eIsSet(int featureID)
253 {
254 switch (featureID)
255 {
256 case AlloyLanguagePackage.ALS_OR__LEFT_OPERAND:
257 return leftOperand != null;
258 case AlloyLanguagePackage.ALS_OR__RIGHT_OPERAND:
259 return rightOperand != null;
260 }
261 return super.eIsSet(featureID);
262 }
263
264} //ALSOrImpl
diff --git a/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSOverrideImpl.java b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSOverrideImpl.java
new file mode 100644
index 00000000..11f8f6b4
--- /dev/null
+++ b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSOverrideImpl.java
@@ -0,0 +1,264 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSOverride;
6import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSTerm;
7import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguagePackage;
8
9import org.eclipse.emf.common.notify.Notification;
10import org.eclipse.emf.common.notify.NotificationChain;
11
12import org.eclipse.emf.ecore.EClass;
13import org.eclipse.emf.ecore.InternalEObject;
14
15import org.eclipse.emf.ecore.impl.ENotificationImpl;
16
17/**
18 * <!-- begin-user-doc -->
19 * An implementation of the model object '<em><b>ALS Override</b></em>'.
20 * <!-- end-user-doc -->
21 * <p>
22 * The following features are implemented:
23 * </p>
24 * <ul>
25 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSOverrideImpl#getLeftOperand <em>Left Operand</em>}</li>
26 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSOverrideImpl#getRightOperand <em>Right Operand</em>}</li>
27 * </ul>
28 *
29 * @generated
30 */
31public class ALSOverrideImpl extends ALSTermImpl implements ALSOverride
32{
33 /**
34 * The cached value of the '{@link #getLeftOperand() <em>Left Operand</em>}' containment reference.
35 * <!-- begin-user-doc -->
36 * <!-- end-user-doc -->
37 * @see #getLeftOperand()
38 * @generated
39 * @ordered
40 */
41 protected ALSTerm leftOperand;
42
43 /**
44 * The cached value of the '{@link #getRightOperand() <em>Right Operand</em>}' containment reference.
45 * <!-- begin-user-doc -->
46 * <!-- end-user-doc -->
47 * @see #getRightOperand()
48 * @generated
49 * @ordered
50 */
51 protected ALSTerm rightOperand;
52
53 /**
54 * <!-- begin-user-doc -->
55 * <!-- end-user-doc -->
56 * @generated
57 */
58 protected ALSOverrideImpl()
59 {
60 super();
61 }
62
63 /**
64 * <!-- begin-user-doc -->
65 * <!-- end-user-doc -->
66 * @generated
67 */
68 @Override
69 protected EClass eStaticClass()
70 {
71 return AlloyLanguagePackage.Literals.ALS_OVERRIDE;
72 }
73
74 /**
75 * <!-- begin-user-doc -->
76 * <!-- end-user-doc -->
77 * @generated
78 */
79 public ALSTerm getLeftOperand()
80 {
81 return leftOperand;
82 }
83
84 /**
85 * <!-- begin-user-doc -->
86 * <!-- end-user-doc -->
87 * @generated
88 */
89 public NotificationChain basicSetLeftOperand(ALSTerm newLeftOperand, NotificationChain msgs)
90 {
91 ALSTerm oldLeftOperand = leftOperand;
92 leftOperand = newLeftOperand;
93 if (eNotificationRequired())
94 {
95 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_OVERRIDE__LEFT_OPERAND, oldLeftOperand, newLeftOperand);
96 if (msgs == null) msgs = notification; else msgs.add(notification);
97 }
98 return msgs;
99 }
100
101 /**
102 * <!-- begin-user-doc -->
103 * <!-- end-user-doc -->
104 * @generated
105 */
106 public void setLeftOperand(ALSTerm newLeftOperand)
107 {
108 if (newLeftOperand != leftOperand)
109 {
110 NotificationChain msgs = null;
111 if (leftOperand != null)
112 msgs = ((InternalEObject)leftOperand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_OVERRIDE__LEFT_OPERAND, null, msgs);
113 if (newLeftOperand != null)
114 msgs = ((InternalEObject)newLeftOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_OVERRIDE__LEFT_OPERAND, null, msgs);
115 msgs = basicSetLeftOperand(newLeftOperand, msgs);
116 if (msgs != null) msgs.dispatch();
117 }
118 else if (eNotificationRequired())
119 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_OVERRIDE__LEFT_OPERAND, newLeftOperand, newLeftOperand));
120 }
121
122 /**
123 * <!-- begin-user-doc -->
124 * <!-- end-user-doc -->
125 * @generated
126 */
127 public ALSTerm getRightOperand()
128 {
129 return rightOperand;
130 }
131
132 /**
133 * <!-- begin-user-doc -->
134 * <!-- end-user-doc -->
135 * @generated
136 */
137 public NotificationChain basicSetRightOperand(ALSTerm newRightOperand, NotificationChain msgs)
138 {
139 ALSTerm oldRightOperand = rightOperand;
140 rightOperand = newRightOperand;
141 if (eNotificationRequired())
142 {
143 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_OVERRIDE__RIGHT_OPERAND, oldRightOperand, newRightOperand);
144 if (msgs == null) msgs = notification; else msgs.add(notification);
145 }
146 return msgs;
147 }
148
149 /**
150 * <!-- begin-user-doc -->
151 * <!-- end-user-doc -->
152 * @generated
153 */
154 public void setRightOperand(ALSTerm newRightOperand)
155 {
156 if (newRightOperand != rightOperand)
157 {
158 NotificationChain msgs = null;
159 if (rightOperand != null)
160 msgs = ((InternalEObject)rightOperand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_OVERRIDE__RIGHT_OPERAND, null, msgs);
161 if (newRightOperand != null)
162 msgs = ((InternalEObject)newRightOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_OVERRIDE__RIGHT_OPERAND, null, msgs);
163 msgs = basicSetRightOperand(newRightOperand, msgs);
164 if (msgs != null) msgs.dispatch();
165 }
166 else if (eNotificationRequired())
167 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_OVERRIDE__RIGHT_OPERAND, newRightOperand, newRightOperand));
168 }
169
170 /**
171 * <!-- begin-user-doc -->
172 * <!-- end-user-doc -->
173 * @generated
174 */
175 @Override
176 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
177 {
178 switch (featureID)
179 {
180 case AlloyLanguagePackage.ALS_OVERRIDE__LEFT_OPERAND:
181 return basicSetLeftOperand(null, msgs);
182 case AlloyLanguagePackage.ALS_OVERRIDE__RIGHT_OPERAND:
183 return basicSetRightOperand(null, msgs);
184 }
185 return super.eInverseRemove(otherEnd, featureID, msgs);
186 }
187
188 /**
189 * <!-- begin-user-doc -->
190 * <!-- end-user-doc -->
191 * @generated
192 */
193 @Override
194 public Object eGet(int featureID, boolean resolve, boolean coreType)
195 {
196 switch (featureID)
197 {
198 case AlloyLanguagePackage.ALS_OVERRIDE__LEFT_OPERAND:
199 return getLeftOperand();
200 case AlloyLanguagePackage.ALS_OVERRIDE__RIGHT_OPERAND:
201 return getRightOperand();
202 }
203 return super.eGet(featureID, resolve, coreType);
204 }
205
206 /**
207 * <!-- begin-user-doc -->
208 * <!-- end-user-doc -->
209 * @generated
210 */
211 @Override
212 public void eSet(int featureID, Object newValue)
213 {
214 switch (featureID)
215 {
216 case AlloyLanguagePackage.ALS_OVERRIDE__LEFT_OPERAND:
217 setLeftOperand((ALSTerm)newValue);
218 return;
219 case AlloyLanguagePackage.ALS_OVERRIDE__RIGHT_OPERAND:
220 setRightOperand((ALSTerm)newValue);
221 return;
222 }
223 super.eSet(featureID, newValue);
224 }
225
226 /**
227 * <!-- begin-user-doc -->
228 * <!-- end-user-doc -->
229 * @generated
230 */
231 @Override
232 public void eUnset(int featureID)
233 {
234 switch (featureID)
235 {
236 case AlloyLanguagePackage.ALS_OVERRIDE__LEFT_OPERAND:
237 setLeftOperand((ALSTerm)null);
238 return;
239 case AlloyLanguagePackage.ALS_OVERRIDE__RIGHT_OPERAND:
240 setRightOperand((ALSTerm)null);
241 return;
242 }
243 super.eUnset(featureID);
244 }
245
246 /**
247 * <!-- begin-user-doc -->
248 * <!-- end-user-doc -->
249 * @generated
250 */
251 @Override
252 public boolean eIsSet(int featureID)
253 {
254 switch (featureID)
255 {
256 case AlloyLanguagePackage.ALS_OVERRIDE__LEFT_OPERAND:
257 return leftOperand != null;
258 case AlloyLanguagePackage.ALS_OVERRIDE__RIGHT_OPERAND:
259 return rightOperand != null;
260 }
261 return super.eIsSet(featureID);
262 }
263
264} //ALSOverrideImpl
diff --git a/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSPlusImpl.java b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSPlusImpl.java
new file mode 100644
index 00000000..5cd4f229
--- /dev/null
+++ b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSPlusImpl.java
@@ -0,0 +1,264 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSPlus;
6import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSTerm;
7import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguagePackage;
8
9import org.eclipse.emf.common.notify.Notification;
10import org.eclipse.emf.common.notify.NotificationChain;
11
12import org.eclipse.emf.ecore.EClass;
13import org.eclipse.emf.ecore.InternalEObject;
14
15import org.eclipse.emf.ecore.impl.ENotificationImpl;
16
17/**
18 * <!-- begin-user-doc -->
19 * An implementation of the model object '<em><b>ALS Plus</b></em>'.
20 * <!-- end-user-doc -->
21 * <p>
22 * The following features are implemented:
23 * </p>
24 * <ul>
25 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSPlusImpl#getLeftOperand <em>Left Operand</em>}</li>
26 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSPlusImpl#getRightOperand <em>Right Operand</em>}</li>
27 * </ul>
28 *
29 * @generated
30 */
31public class ALSPlusImpl extends ALSTermImpl implements ALSPlus
32{
33 /**
34 * The cached value of the '{@link #getLeftOperand() <em>Left Operand</em>}' containment reference.
35 * <!-- begin-user-doc -->
36 * <!-- end-user-doc -->
37 * @see #getLeftOperand()
38 * @generated
39 * @ordered
40 */
41 protected ALSTerm leftOperand;
42
43 /**
44 * The cached value of the '{@link #getRightOperand() <em>Right Operand</em>}' containment reference.
45 * <!-- begin-user-doc -->
46 * <!-- end-user-doc -->
47 * @see #getRightOperand()
48 * @generated
49 * @ordered
50 */
51 protected ALSTerm rightOperand;
52
53 /**
54 * <!-- begin-user-doc -->
55 * <!-- end-user-doc -->
56 * @generated
57 */
58 protected ALSPlusImpl()
59 {
60 super();
61 }
62
63 /**
64 * <!-- begin-user-doc -->
65 * <!-- end-user-doc -->
66 * @generated
67 */
68 @Override
69 protected EClass eStaticClass()
70 {
71 return AlloyLanguagePackage.Literals.ALS_PLUS;
72 }
73
74 /**
75 * <!-- begin-user-doc -->
76 * <!-- end-user-doc -->
77 * @generated
78 */
79 public ALSTerm getLeftOperand()
80 {
81 return leftOperand;
82 }
83
84 /**
85 * <!-- begin-user-doc -->
86 * <!-- end-user-doc -->
87 * @generated
88 */
89 public NotificationChain basicSetLeftOperand(ALSTerm newLeftOperand, NotificationChain msgs)
90 {
91 ALSTerm oldLeftOperand = leftOperand;
92 leftOperand = newLeftOperand;
93 if (eNotificationRequired())
94 {
95 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_PLUS__LEFT_OPERAND, oldLeftOperand, newLeftOperand);
96 if (msgs == null) msgs = notification; else msgs.add(notification);
97 }
98 return msgs;
99 }
100
101 /**
102 * <!-- begin-user-doc -->
103 * <!-- end-user-doc -->
104 * @generated
105 */
106 public void setLeftOperand(ALSTerm newLeftOperand)
107 {
108 if (newLeftOperand != leftOperand)
109 {
110 NotificationChain msgs = null;
111 if (leftOperand != null)
112 msgs = ((InternalEObject)leftOperand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_PLUS__LEFT_OPERAND, null, msgs);
113 if (newLeftOperand != null)
114 msgs = ((InternalEObject)newLeftOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_PLUS__LEFT_OPERAND, null, msgs);
115 msgs = basicSetLeftOperand(newLeftOperand, msgs);
116 if (msgs != null) msgs.dispatch();
117 }
118 else if (eNotificationRequired())
119 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_PLUS__LEFT_OPERAND, newLeftOperand, newLeftOperand));
120 }
121
122 /**
123 * <!-- begin-user-doc -->
124 * <!-- end-user-doc -->
125 * @generated
126 */
127 public ALSTerm getRightOperand()
128 {
129 return rightOperand;
130 }
131
132 /**
133 * <!-- begin-user-doc -->
134 * <!-- end-user-doc -->
135 * @generated
136 */
137 public NotificationChain basicSetRightOperand(ALSTerm newRightOperand, NotificationChain msgs)
138 {
139 ALSTerm oldRightOperand = rightOperand;
140 rightOperand = newRightOperand;
141 if (eNotificationRequired())
142 {
143 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_PLUS__RIGHT_OPERAND, oldRightOperand, newRightOperand);
144 if (msgs == null) msgs = notification; else msgs.add(notification);
145 }
146 return msgs;
147 }
148
149 /**
150 * <!-- begin-user-doc -->
151 * <!-- end-user-doc -->
152 * @generated
153 */
154 public void setRightOperand(ALSTerm newRightOperand)
155 {
156 if (newRightOperand != rightOperand)
157 {
158 NotificationChain msgs = null;
159 if (rightOperand != null)
160 msgs = ((InternalEObject)rightOperand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_PLUS__RIGHT_OPERAND, null, msgs);
161 if (newRightOperand != null)
162 msgs = ((InternalEObject)newRightOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_PLUS__RIGHT_OPERAND, null, msgs);
163 msgs = basicSetRightOperand(newRightOperand, msgs);
164 if (msgs != null) msgs.dispatch();
165 }
166 else if (eNotificationRequired())
167 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_PLUS__RIGHT_OPERAND, newRightOperand, newRightOperand));
168 }
169
170 /**
171 * <!-- begin-user-doc -->
172 * <!-- end-user-doc -->
173 * @generated
174 */
175 @Override
176 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
177 {
178 switch (featureID)
179 {
180 case AlloyLanguagePackage.ALS_PLUS__LEFT_OPERAND:
181 return basicSetLeftOperand(null, msgs);
182 case AlloyLanguagePackage.ALS_PLUS__RIGHT_OPERAND:
183 return basicSetRightOperand(null, msgs);
184 }
185 return super.eInverseRemove(otherEnd, featureID, msgs);
186 }
187
188 /**
189 * <!-- begin-user-doc -->
190 * <!-- end-user-doc -->
191 * @generated
192 */
193 @Override
194 public Object eGet(int featureID, boolean resolve, boolean coreType)
195 {
196 switch (featureID)
197 {
198 case AlloyLanguagePackage.ALS_PLUS__LEFT_OPERAND:
199 return getLeftOperand();
200 case AlloyLanguagePackage.ALS_PLUS__RIGHT_OPERAND:
201 return getRightOperand();
202 }
203 return super.eGet(featureID, resolve, coreType);
204 }
205
206 /**
207 * <!-- begin-user-doc -->
208 * <!-- end-user-doc -->
209 * @generated
210 */
211 @Override
212 public void eSet(int featureID, Object newValue)
213 {
214 switch (featureID)
215 {
216 case AlloyLanguagePackage.ALS_PLUS__LEFT_OPERAND:
217 setLeftOperand((ALSTerm)newValue);
218 return;
219 case AlloyLanguagePackage.ALS_PLUS__RIGHT_OPERAND:
220 setRightOperand((ALSTerm)newValue);
221 return;
222 }
223 super.eSet(featureID, newValue);
224 }
225
226 /**
227 * <!-- begin-user-doc -->
228 * <!-- end-user-doc -->
229 * @generated
230 */
231 @Override
232 public void eUnset(int featureID)
233 {
234 switch (featureID)
235 {
236 case AlloyLanguagePackage.ALS_PLUS__LEFT_OPERAND:
237 setLeftOperand((ALSTerm)null);
238 return;
239 case AlloyLanguagePackage.ALS_PLUS__RIGHT_OPERAND:
240 setRightOperand((ALSTerm)null);
241 return;
242 }
243 super.eUnset(featureID);
244 }
245
246 /**
247 * <!-- begin-user-doc -->
248 * <!-- end-user-doc -->
249 * @generated
250 */
251 @Override
252 public boolean eIsSet(int featureID)
253 {
254 switch (featureID)
255 {
256 case AlloyLanguagePackage.ALS_PLUS__LEFT_OPERAND:
257 return leftOperand != null;
258 case AlloyLanguagePackage.ALS_PLUS__RIGHT_OPERAND:
259 return rightOperand != null;
260 }
261 return super.eIsSet(featureID);
262 }
263
264} //ALSPlusImpl
diff --git a/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSQuantifiedExImpl.java b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSQuantifiedExImpl.java
new file mode 100644
index 00000000..120f07fa
--- /dev/null
+++ b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSQuantifiedExImpl.java
@@ -0,0 +1,368 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSMultiplicity;
6import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSQuantifiedEx;
7import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSTerm;
8import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSVariableDeclaration;
9import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguagePackage;
10
11import java.util.Collection;
12
13import org.eclipse.emf.common.notify.Notification;
14import org.eclipse.emf.common.notify.NotificationChain;
15
16import org.eclipse.emf.common.util.EList;
17
18import org.eclipse.emf.ecore.EClass;
19import org.eclipse.emf.ecore.InternalEObject;
20
21import org.eclipse.emf.ecore.impl.ENotificationImpl;
22
23import org.eclipse.emf.ecore.util.EObjectContainmentEList;
24import org.eclipse.emf.ecore.util.InternalEList;
25
26/**
27 * <!-- begin-user-doc -->
28 * An implementation of the model object '<em><b>ALS Quantified Ex</b></em>'.
29 * <!-- end-user-doc -->
30 * <p>
31 * The following features are implemented:
32 * </p>
33 * <ul>
34 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSQuantifiedExImpl#getType <em>Type</em>}</li>
35 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSQuantifiedExImpl#isDisj <em>Disj</em>}</li>
36 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSQuantifiedExImpl#getVariables <em>Variables</em>}</li>
37 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSQuantifiedExImpl#getExpression <em>Expression</em>}</li>
38 * </ul>
39 *
40 * @generated
41 */
42public class ALSQuantifiedExImpl extends ALSTermImpl implements ALSQuantifiedEx
43{
44 /**
45 * The default value of the '{@link #getType() <em>Type</em>}' attribute.
46 * <!-- begin-user-doc -->
47 * <!-- end-user-doc -->
48 * @see #getType()
49 * @generated
50 * @ordered
51 */
52 protected static final ALSMultiplicity TYPE_EDEFAULT = ALSMultiplicity.ALL;
53
54 /**
55 * The cached value of the '{@link #getType() <em>Type</em>}' attribute.
56 * <!-- begin-user-doc -->
57 * <!-- end-user-doc -->
58 * @see #getType()
59 * @generated
60 * @ordered
61 */
62 protected ALSMultiplicity type = TYPE_EDEFAULT;
63
64 /**
65 * The default value of the '{@link #isDisj() <em>Disj</em>}' attribute.
66 * <!-- begin-user-doc -->
67 * <!-- end-user-doc -->
68 * @see #isDisj()
69 * @generated
70 * @ordered
71 */
72 protected static final boolean DISJ_EDEFAULT = false;
73
74 /**
75 * The cached value of the '{@link #isDisj() <em>Disj</em>}' attribute.
76 * <!-- begin-user-doc -->
77 * <!-- end-user-doc -->
78 * @see #isDisj()
79 * @generated
80 * @ordered
81 */
82 protected boolean disj = DISJ_EDEFAULT;
83
84 /**
85 * The cached value of the '{@link #getVariables() <em>Variables</em>}' containment reference list.
86 * <!-- begin-user-doc -->
87 * <!-- end-user-doc -->
88 * @see #getVariables()
89 * @generated
90 * @ordered
91 */
92 protected EList<ALSVariableDeclaration> variables;
93
94 /**
95 * The cached value of the '{@link #getExpression() <em>Expression</em>}' containment reference.
96 * <!-- begin-user-doc -->
97 * <!-- end-user-doc -->
98 * @see #getExpression()
99 * @generated
100 * @ordered
101 */
102 protected ALSTerm expression;
103
104 /**
105 * <!-- begin-user-doc -->
106 * <!-- end-user-doc -->
107 * @generated
108 */
109 protected ALSQuantifiedExImpl()
110 {
111 super();
112 }
113
114 /**
115 * <!-- begin-user-doc -->
116 * <!-- end-user-doc -->
117 * @generated
118 */
119 @Override
120 protected EClass eStaticClass()
121 {
122 return AlloyLanguagePackage.Literals.ALS_QUANTIFIED_EX;
123 }
124
125 /**
126 * <!-- begin-user-doc -->
127 * <!-- end-user-doc -->
128 * @generated
129 */
130 public ALSMultiplicity getType()
131 {
132 return type;
133 }
134
135 /**
136 * <!-- begin-user-doc -->
137 * <!-- end-user-doc -->
138 * @generated
139 */
140 public void setType(ALSMultiplicity newType)
141 {
142 ALSMultiplicity oldType = type;
143 type = newType == null ? TYPE_EDEFAULT : newType;
144 if (eNotificationRequired())
145 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_QUANTIFIED_EX__TYPE, oldType, type));
146 }
147
148 /**
149 * <!-- begin-user-doc -->
150 * <!-- end-user-doc -->
151 * @generated
152 */
153 public boolean isDisj()
154 {
155 return disj;
156 }
157
158 /**
159 * <!-- begin-user-doc -->
160 * <!-- end-user-doc -->
161 * @generated
162 */
163 public void setDisj(boolean newDisj)
164 {
165 boolean oldDisj = disj;
166 disj = newDisj;
167 if (eNotificationRequired())
168 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_QUANTIFIED_EX__DISJ, oldDisj, disj));
169 }
170
171 /**
172 * <!-- begin-user-doc -->
173 * <!-- end-user-doc -->
174 * @generated
175 */
176 public EList<ALSVariableDeclaration> getVariables()
177 {
178 if (variables == null)
179 {
180 variables = new EObjectContainmentEList<ALSVariableDeclaration>(ALSVariableDeclaration.class, this, AlloyLanguagePackage.ALS_QUANTIFIED_EX__VARIABLES);
181 }
182 return variables;
183 }
184
185 /**
186 * <!-- begin-user-doc -->
187 * <!-- end-user-doc -->
188 * @generated
189 */
190 public ALSTerm getExpression()
191 {
192 return expression;
193 }
194
195 /**
196 * <!-- begin-user-doc -->
197 * <!-- end-user-doc -->
198 * @generated
199 */
200 public NotificationChain basicSetExpression(ALSTerm newExpression, NotificationChain msgs)
201 {
202 ALSTerm oldExpression = expression;
203 expression = newExpression;
204 if (eNotificationRequired())
205 {
206 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_QUANTIFIED_EX__EXPRESSION, oldExpression, newExpression);
207 if (msgs == null) msgs = notification; else msgs.add(notification);
208 }
209 return msgs;
210 }
211
212 /**
213 * <!-- begin-user-doc -->
214 * <!-- end-user-doc -->
215 * @generated
216 */
217 public void setExpression(ALSTerm newExpression)
218 {
219 if (newExpression != expression)
220 {
221 NotificationChain msgs = null;
222 if (expression != null)
223 msgs = ((InternalEObject)expression).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_QUANTIFIED_EX__EXPRESSION, null, msgs);
224 if (newExpression != null)
225 msgs = ((InternalEObject)newExpression).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_QUANTIFIED_EX__EXPRESSION, null, msgs);
226 msgs = basicSetExpression(newExpression, msgs);
227 if (msgs != null) msgs.dispatch();
228 }
229 else if (eNotificationRequired())
230 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_QUANTIFIED_EX__EXPRESSION, newExpression, newExpression));
231 }
232
233 /**
234 * <!-- begin-user-doc -->
235 * <!-- end-user-doc -->
236 * @generated
237 */
238 @Override
239 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
240 {
241 switch (featureID)
242 {
243 case AlloyLanguagePackage.ALS_QUANTIFIED_EX__VARIABLES:
244 return ((InternalEList<?>)getVariables()).basicRemove(otherEnd, msgs);
245 case AlloyLanguagePackage.ALS_QUANTIFIED_EX__EXPRESSION:
246 return basicSetExpression(null, msgs);
247 }
248 return super.eInverseRemove(otherEnd, featureID, msgs);
249 }
250
251 /**
252 * <!-- begin-user-doc -->
253 * <!-- end-user-doc -->
254 * @generated
255 */
256 @Override
257 public Object eGet(int featureID, boolean resolve, boolean coreType)
258 {
259 switch (featureID)
260 {
261 case AlloyLanguagePackage.ALS_QUANTIFIED_EX__TYPE:
262 return getType();
263 case AlloyLanguagePackage.ALS_QUANTIFIED_EX__DISJ:
264 return isDisj();
265 case AlloyLanguagePackage.ALS_QUANTIFIED_EX__VARIABLES:
266 return getVariables();
267 case AlloyLanguagePackage.ALS_QUANTIFIED_EX__EXPRESSION:
268 return getExpression();
269 }
270 return super.eGet(featureID, resolve, coreType);
271 }
272
273 /**
274 * <!-- begin-user-doc -->
275 * <!-- end-user-doc -->
276 * @generated
277 */
278 @SuppressWarnings("unchecked")
279 @Override
280 public void eSet(int featureID, Object newValue)
281 {
282 switch (featureID)
283 {
284 case AlloyLanguagePackage.ALS_QUANTIFIED_EX__TYPE:
285 setType((ALSMultiplicity)newValue);
286 return;
287 case AlloyLanguagePackage.ALS_QUANTIFIED_EX__DISJ:
288 setDisj((Boolean)newValue);
289 return;
290 case AlloyLanguagePackage.ALS_QUANTIFIED_EX__VARIABLES:
291 getVariables().clear();
292 getVariables().addAll((Collection<? extends ALSVariableDeclaration>)newValue);
293 return;
294 case AlloyLanguagePackage.ALS_QUANTIFIED_EX__EXPRESSION:
295 setExpression((ALSTerm)newValue);
296 return;
297 }
298 super.eSet(featureID, newValue);
299 }
300
301 /**
302 * <!-- begin-user-doc -->
303 * <!-- end-user-doc -->
304 * @generated
305 */
306 @Override
307 public void eUnset(int featureID)
308 {
309 switch (featureID)
310 {
311 case AlloyLanguagePackage.ALS_QUANTIFIED_EX__TYPE:
312 setType(TYPE_EDEFAULT);
313 return;
314 case AlloyLanguagePackage.ALS_QUANTIFIED_EX__DISJ:
315 setDisj(DISJ_EDEFAULT);
316 return;
317 case AlloyLanguagePackage.ALS_QUANTIFIED_EX__VARIABLES:
318 getVariables().clear();
319 return;
320 case AlloyLanguagePackage.ALS_QUANTIFIED_EX__EXPRESSION:
321 setExpression((ALSTerm)null);
322 return;
323 }
324 super.eUnset(featureID);
325 }
326
327 /**
328 * <!-- begin-user-doc -->
329 * <!-- end-user-doc -->
330 * @generated
331 */
332 @Override
333 public boolean eIsSet(int featureID)
334 {
335 switch (featureID)
336 {
337 case AlloyLanguagePackage.ALS_QUANTIFIED_EX__TYPE:
338 return type != TYPE_EDEFAULT;
339 case AlloyLanguagePackage.ALS_QUANTIFIED_EX__DISJ:
340 return disj != DISJ_EDEFAULT;
341 case AlloyLanguagePackage.ALS_QUANTIFIED_EX__VARIABLES:
342 return variables != null && !variables.isEmpty();
343 case AlloyLanguagePackage.ALS_QUANTIFIED_EX__EXPRESSION:
344 return expression != null;
345 }
346 return super.eIsSet(featureID);
347 }
348
349 /**
350 * <!-- begin-user-doc -->
351 * <!-- end-user-doc -->
352 * @generated
353 */
354 @Override
355 public String toString()
356 {
357 if (eIsProxy()) return super.toString();
358
359 StringBuffer result = new StringBuffer(super.toString());
360 result.append(" (type: ");
361 result.append(type);
362 result.append(", disj: ");
363 result.append(disj);
364 result.append(')');
365 return result.toString();
366 }
367
368} //ALSQuantifiedExImpl
diff --git a/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSRangeRestrictionLeftImpl.java b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSRangeRestrictionLeftImpl.java
new file mode 100644
index 00000000..7530740d
--- /dev/null
+++ b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSRangeRestrictionLeftImpl.java
@@ -0,0 +1,264 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSRangeRestrictionLeft;
6import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSTerm;
7import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguagePackage;
8
9import org.eclipse.emf.common.notify.Notification;
10import org.eclipse.emf.common.notify.NotificationChain;
11
12import org.eclipse.emf.ecore.EClass;
13import org.eclipse.emf.ecore.InternalEObject;
14
15import org.eclipse.emf.ecore.impl.ENotificationImpl;
16
17/**
18 * <!-- begin-user-doc -->
19 * An implementation of the model object '<em><b>ALS Range Restriction Left</b></em>'.
20 * <!-- end-user-doc -->
21 * <p>
22 * The following features are implemented:
23 * </p>
24 * <ul>
25 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSRangeRestrictionLeftImpl#getFilter <em>Filter</em>}</li>
26 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSRangeRestrictionLeftImpl#getRelation <em>Relation</em>}</li>
27 * </ul>
28 *
29 * @generated
30 */
31public class ALSRangeRestrictionLeftImpl extends ALSTermImpl implements ALSRangeRestrictionLeft
32{
33 /**
34 * The cached value of the '{@link #getFilter() <em>Filter</em>}' containment reference.
35 * <!-- begin-user-doc -->
36 * <!-- end-user-doc -->
37 * @see #getFilter()
38 * @generated
39 * @ordered
40 */
41 protected ALSTerm filter;
42
43 /**
44 * The cached value of the '{@link #getRelation() <em>Relation</em>}' containment reference.
45 * <!-- begin-user-doc -->
46 * <!-- end-user-doc -->
47 * @see #getRelation()
48 * @generated
49 * @ordered
50 */
51 protected ALSTerm relation;
52
53 /**
54 * <!-- begin-user-doc -->
55 * <!-- end-user-doc -->
56 * @generated
57 */
58 protected ALSRangeRestrictionLeftImpl()
59 {
60 super();
61 }
62
63 /**
64 * <!-- begin-user-doc -->
65 * <!-- end-user-doc -->
66 * @generated
67 */
68 @Override
69 protected EClass eStaticClass()
70 {
71 return AlloyLanguagePackage.Literals.ALS_RANGE_RESTRICTION_LEFT;
72 }
73
74 /**
75 * <!-- begin-user-doc -->
76 * <!-- end-user-doc -->
77 * @generated
78 */
79 public ALSTerm getFilter()
80 {
81 return filter;
82 }
83
84 /**
85 * <!-- begin-user-doc -->
86 * <!-- end-user-doc -->
87 * @generated
88 */
89 public NotificationChain basicSetFilter(ALSTerm newFilter, NotificationChain msgs)
90 {
91 ALSTerm oldFilter = filter;
92 filter = newFilter;
93 if (eNotificationRequired())
94 {
95 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_RANGE_RESTRICTION_LEFT__FILTER, oldFilter, newFilter);
96 if (msgs == null) msgs = notification; else msgs.add(notification);
97 }
98 return msgs;
99 }
100
101 /**
102 * <!-- begin-user-doc -->
103 * <!-- end-user-doc -->
104 * @generated
105 */
106 public void setFilter(ALSTerm newFilter)
107 {
108 if (newFilter != filter)
109 {
110 NotificationChain msgs = null;
111 if (filter != null)
112 msgs = ((InternalEObject)filter).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_RANGE_RESTRICTION_LEFT__FILTER, null, msgs);
113 if (newFilter != null)
114 msgs = ((InternalEObject)newFilter).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_RANGE_RESTRICTION_LEFT__FILTER, null, msgs);
115 msgs = basicSetFilter(newFilter, msgs);
116 if (msgs != null) msgs.dispatch();
117 }
118 else if (eNotificationRequired())
119 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_RANGE_RESTRICTION_LEFT__FILTER, newFilter, newFilter));
120 }
121
122 /**
123 * <!-- begin-user-doc -->
124 * <!-- end-user-doc -->
125 * @generated
126 */
127 public ALSTerm getRelation()
128 {
129 return relation;
130 }
131
132 /**
133 * <!-- begin-user-doc -->
134 * <!-- end-user-doc -->
135 * @generated
136 */
137 public NotificationChain basicSetRelation(ALSTerm newRelation, NotificationChain msgs)
138 {
139 ALSTerm oldRelation = relation;
140 relation = newRelation;
141 if (eNotificationRequired())
142 {
143 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_RANGE_RESTRICTION_LEFT__RELATION, oldRelation, newRelation);
144 if (msgs == null) msgs = notification; else msgs.add(notification);
145 }
146 return msgs;
147 }
148
149 /**
150 * <!-- begin-user-doc -->
151 * <!-- end-user-doc -->
152 * @generated
153 */
154 public void setRelation(ALSTerm newRelation)
155 {
156 if (newRelation != relation)
157 {
158 NotificationChain msgs = null;
159 if (relation != null)
160 msgs = ((InternalEObject)relation).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_RANGE_RESTRICTION_LEFT__RELATION, null, msgs);
161 if (newRelation != null)
162 msgs = ((InternalEObject)newRelation).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_RANGE_RESTRICTION_LEFT__RELATION, null, msgs);
163 msgs = basicSetRelation(newRelation, msgs);
164 if (msgs != null) msgs.dispatch();
165 }
166 else if (eNotificationRequired())
167 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_RANGE_RESTRICTION_LEFT__RELATION, newRelation, newRelation));
168 }
169
170 /**
171 * <!-- begin-user-doc -->
172 * <!-- end-user-doc -->
173 * @generated
174 */
175 @Override
176 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
177 {
178 switch (featureID)
179 {
180 case AlloyLanguagePackage.ALS_RANGE_RESTRICTION_LEFT__FILTER:
181 return basicSetFilter(null, msgs);
182 case AlloyLanguagePackage.ALS_RANGE_RESTRICTION_LEFT__RELATION:
183 return basicSetRelation(null, msgs);
184 }
185 return super.eInverseRemove(otherEnd, featureID, msgs);
186 }
187
188 /**
189 * <!-- begin-user-doc -->
190 * <!-- end-user-doc -->
191 * @generated
192 */
193 @Override
194 public Object eGet(int featureID, boolean resolve, boolean coreType)
195 {
196 switch (featureID)
197 {
198 case AlloyLanguagePackage.ALS_RANGE_RESTRICTION_LEFT__FILTER:
199 return getFilter();
200 case AlloyLanguagePackage.ALS_RANGE_RESTRICTION_LEFT__RELATION:
201 return getRelation();
202 }
203 return super.eGet(featureID, resolve, coreType);
204 }
205
206 /**
207 * <!-- begin-user-doc -->
208 * <!-- end-user-doc -->
209 * @generated
210 */
211 @Override
212 public void eSet(int featureID, Object newValue)
213 {
214 switch (featureID)
215 {
216 case AlloyLanguagePackage.ALS_RANGE_RESTRICTION_LEFT__FILTER:
217 setFilter((ALSTerm)newValue);
218 return;
219 case AlloyLanguagePackage.ALS_RANGE_RESTRICTION_LEFT__RELATION:
220 setRelation((ALSTerm)newValue);
221 return;
222 }
223 super.eSet(featureID, newValue);
224 }
225
226 /**
227 * <!-- begin-user-doc -->
228 * <!-- end-user-doc -->
229 * @generated
230 */
231 @Override
232 public void eUnset(int featureID)
233 {
234 switch (featureID)
235 {
236 case AlloyLanguagePackage.ALS_RANGE_RESTRICTION_LEFT__FILTER:
237 setFilter((ALSTerm)null);
238 return;
239 case AlloyLanguagePackage.ALS_RANGE_RESTRICTION_LEFT__RELATION:
240 setRelation((ALSTerm)null);
241 return;
242 }
243 super.eUnset(featureID);
244 }
245
246 /**
247 * <!-- begin-user-doc -->
248 * <!-- end-user-doc -->
249 * @generated
250 */
251 @Override
252 public boolean eIsSet(int featureID)
253 {
254 switch (featureID)
255 {
256 case AlloyLanguagePackage.ALS_RANGE_RESTRICTION_LEFT__FILTER:
257 return filter != null;
258 case AlloyLanguagePackage.ALS_RANGE_RESTRICTION_LEFT__RELATION:
259 return relation != null;
260 }
261 return super.eIsSet(featureID);
262 }
263
264} //ALSRangeRestrictionLeftImpl
diff --git a/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSRangeRestrictionRightImpl.java b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSRangeRestrictionRightImpl.java
new file mode 100644
index 00000000..e1c746c6
--- /dev/null
+++ b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSRangeRestrictionRightImpl.java
@@ -0,0 +1,264 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSRangeRestrictionRight;
6import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSTerm;
7import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguagePackage;
8
9import org.eclipse.emf.common.notify.Notification;
10import org.eclipse.emf.common.notify.NotificationChain;
11
12import org.eclipse.emf.ecore.EClass;
13import org.eclipse.emf.ecore.InternalEObject;
14
15import org.eclipse.emf.ecore.impl.ENotificationImpl;
16
17/**
18 * <!-- begin-user-doc -->
19 * An implementation of the model object '<em><b>ALS Range Restriction Right</b></em>'.
20 * <!-- end-user-doc -->
21 * <p>
22 * The following features are implemented:
23 * </p>
24 * <ul>
25 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSRangeRestrictionRightImpl#getRelation <em>Relation</em>}</li>
26 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSRangeRestrictionRightImpl#getFilter <em>Filter</em>}</li>
27 * </ul>
28 *
29 * @generated
30 */
31public class ALSRangeRestrictionRightImpl extends ALSTermImpl implements ALSRangeRestrictionRight
32{
33 /**
34 * The cached value of the '{@link #getRelation() <em>Relation</em>}' containment reference.
35 * <!-- begin-user-doc -->
36 * <!-- end-user-doc -->
37 * @see #getRelation()
38 * @generated
39 * @ordered
40 */
41 protected ALSTerm relation;
42
43 /**
44 * The cached value of the '{@link #getFilter() <em>Filter</em>}' containment reference.
45 * <!-- begin-user-doc -->
46 * <!-- end-user-doc -->
47 * @see #getFilter()
48 * @generated
49 * @ordered
50 */
51 protected ALSTerm filter;
52
53 /**
54 * <!-- begin-user-doc -->
55 * <!-- end-user-doc -->
56 * @generated
57 */
58 protected ALSRangeRestrictionRightImpl()
59 {
60 super();
61 }
62
63 /**
64 * <!-- begin-user-doc -->
65 * <!-- end-user-doc -->
66 * @generated
67 */
68 @Override
69 protected EClass eStaticClass()
70 {
71 return AlloyLanguagePackage.Literals.ALS_RANGE_RESTRICTION_RIGHT;
72 }
73
74 /**
75 * <!-- begin-user-doc -->
76 * <!-- end-user-doc -->
77 * @generated
78 */
79 public ALSTerm getRelation()
80 {
81 return relation;
82 }
83
84 /**
85 * <!-- begin-user-doc -->
86 * <!-- end-user-doc -->
87 * @generated
88 */
89 public NotificationChain basicSetRelation(ALSTerm newRelation, NotificationChain msgs)
90 {
91 ALSTerm oldRelation = relation;
92 relation = newRelation;
93 if (eNotificationRequired())
94 {
95 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_RANGE_RESTRICTION_RIGHT__RELATION, oldRelation, newRelation);
96 if (msgs == null) msgs = notification; else msgs.add(notification);
97 }
98 return msgs;
99 }
100
101 /**
102 * <!-- begin-user-doc -->
103 * <!-- end-user-doc -->
104 * @generated
105 */
106 public void setRelation(ALSTerm newRelation)
107 {
108 if (newRelation != relation)
109 {
110 NotificationChain msgs = null;
111 if (relation != null)
112 msgs = ((InternalEObject)relation).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_RANGE_RESTRICTION_RIGHT__RELATION, null, msgs);
113 if (newRelation != null)
114 msgs = ((InternalEObject)newRelation).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_RANGE_RESTRICTION_RIGHT__RELATION, null, msgs);
115 msgs = basicSetRelation(newRelation, msgs);
116 if (msgs != null) msgs.dispatch();
117 }
118 else if (eNotificationRequired())
119 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_RANGE_RESTRICTION_RIGHT__RELATION, newRelation, newRelation));
120 }
121
122 /**
123 * <!-- begin-user-doc -->
124 * <!-- end-user-doc -->
125 * @generated
126 */
127 public ALSTerm getFilter()
128 {
129 return filter;
130 }
131
132 /**
133 * <!-- begin-user-doc -->
134 * <!-- end-user-doc -->
135 * @generated
136 */
137 public NotificationChain basicSetFilter(ALSTerm newFilter, NotificationChain msgs)
138 {
139 ALSTerm oldFilter = filter;
140 filter = newFilter;
141 if (eNotificationRequired())
142 {
143 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_RANGE_RESTRICTION_RIGHT__FILTER, oldFilter, newFilter);
144 if (msgs == null) msgs = notification; else msgs.add(notification);
145 }
146 return msgs;
147 }
148
149 /**
150 * <!-- begin-user-doc -->
151 * <!-- end-user-doc -->
152 * @generated
153 */
154 public void setFilter(ALSTerm newFilter)
155 {
156 if (newFilter != filter)
157 {
158 NotificationChain msgs = null;
159 if (filter != null)
160 msgs = ((InternalEObject)filter).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_RANGE_RESTRICTION_RIGHT__FILTER, null, msgs);
161 if (newFilter != null)
162 msgs = ((InternalEObject)newFilter).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_RANGE_RESTRICTION_RIGHT__FILTER, null, msgs);
163 msgs = basicSetFilter(newFilter, msgs);
164 if (msgs != null) msgs.dispatch();
165 }
166 else if (eNotificationRequired())
167 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_RANGE_RESTRICTION_RIGHT__FILTER, newFilter, newFilter));
168 }
169
170 /**
171 * <!-- begin-user-doc -->
172 * <!-- end-user-doc -->
173 * @generated
174 */
175 @Override
176 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
177 {
178 switch (featureID)
179 {
180 case AlloyLanguagePackage.ALS_RANGE_RESTRICTION_RIGHT__RELATION:
181 return basicSetRelation(null, msgs);
182 case AlloyLanguagePackage.ALS_RANGE_RESTRICTION_RIGHT__FILTER:
183 return basicSetFilter(null, msgs);
184 }
185 return super.eInverseRemove(otherEnd, featureID, msgs);
186 }
187
188 /**
189 * <!-- begin-user-doc -->
190 * <!-- end-user-doc -->
191 * @generated
192 */
193 @Override
194 public Object eGet(int featureID, boolean resolve, boolean coreType)
195 {
196 switch (featureID)
197 {
198 case AlloyLanguagePackage.ALS_RANGE_RESTRICTION_RIGHT__RELATION:
199 return getRelation();
200 case AlloyLanguagePackage.ALS_RANGE_RESTRICTION_RIGHT__FILTER:
201 return getFilter();
202 }
203 return super.eGet(featureID, resolve, coreType);
204 }
205
206 /**
207 * <!-- begin-user-doc -->
208 * <!-- end-user-doc -->
209 * @generated
210 */
211 @Override
212 public void eSet(int featureID, Object newValue)
213 {
214 switch (featureID)
215 {
216 case AlloyLanguagePackage.ALS_RANGE_RESTRICTION_RIGHT__RELATION:
217 setRelation((ALSTerm)newValue);
218 return;
219 case AlloyLanguagePackage.ALS_RANGE_RESTRICTION_RIGHT__FILTER:
220 setFilter((ALSTerm)newValue);
221 return;
222 }
223 super.eSet(featureID, newValue);
224 }
225
226 /**
227 * <!-- begin-user-doc -->
228 * <!-- end-user-doc -->
229 * @generated
230 */
231 @Override
232 public void eUnset(int featureID)
233 {
234 switch (featureID)
235 {
236 case AlloyLanguagePackage.ALS_RANGE_RESTRICTION_RIGHT__RELATION:
237 setRelation((ALSTerm)null);
238 return;
239 case AlloyLanguagePackage.ALS_RANGE_RESTRICTION_RIGHT__FILTER:
240 setFilter((ALSTerm)null);
241 return;
242 }
243 super.eUnset(featureID);
244 }
245
246 /**
247 * <!-- begin-user-doc -->
248 * <!-- end-user-doc -->
249 * @generated
250 */
251 @Override
252 public boolean eIsSet(int featureID)
253 {
254 switch (featureID)
255 {
256 case AlloyLanguagePackage.ALS_RANGE_RESTRICTION_RIGHT__RELATION:
257 return relation != null;
258 case AlloyLanguagePackage.ALS_RANGE_RESTRICTION_RIGHT__FILTER:
259 return filter != null;
260 }
261 return super.eIsSet(featureID);
262 }
263
264} //ALSRangeRestrictionRightImpl
diff --git a/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSReferenceImpl.java b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSReferenceImpl.java
new file mode 100644
index 00000000..95da5c87
--- /dev/null
+++ b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSReferenceImpl.java
@@ -0,0 +1,172 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSReference;
6import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSRelationDeclaration;
7import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguagePackage;
8
9import org.eclipse.emf.common.notify.Notification;
10
11import org.eclipse.emf.ecore.EClass;
12import org.eclipse.emf.ecore.InternalEObject;
13
14import org.eclipse.emf.ecore.impl.ENotificationImpl;
15
16/**
17 * <!-- begin-user-doc -->
18 * An implementation of the model object '<em><b>ALS Reference</b></em>'.
19 * <!-- end-user-doc -->
20 * <p>
21 * The following features are implemented:
22 * </p>
23 * <ul>
24 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSReferenceImpl#getReferred <em>Referred</em>}</li>
25 * </ul>
26 *
27 * @generated
28 */
29public class ALSReferenceImpl extends ALSTermImpl implements ALSReference
30{
31 /**
32 * The cached value of the '{@link #getReferred() <em>Referred</em>}' reference.
33 * <!-- begin-user-doc -->
34 * <!-- end-user-doc -->
35 * @see #getReferred()
36 * @generated
37 * @ordered
38 */
39 protected ALSRelationDeclaration referred;
40
41 /**
42 * <!-- begin-user-doc -->
43 * <!-- end-user-doc -->
44 * @generated
45 */
46 protected ALSReferenceImpl()
47 {
48 super();
49 }
50
51 /**
52 * <!-- begin-user-doc -->
53 * <!-- end-user-doc -->
54 * @generated
55 */
56 @Override
57 protected EClass eStaticClass()
58 {
59 return AlloyLanguagePackage.Literals.ALS_REFERENCE;
60 }
61
62 /**
63 * <!-- begin-user-doc -->
64 * <!-- end-user-doc -->
65 * @generated
66 */
67 public ALSRelationDeclaration getReferred()
68 {
69 if (referred != null && referred.eIsProxy())
70 {
71 InternalEObject oldReferred = (InternalEObject)referred;
72 referred = (ALSRelationDeclaration)eResolveProxy(oldReferred);
73 if (referred != oldReferred)
74 {
75 if (eNotificationRequired())
76 eNotify(new ENotificationImpl(this, Notification.RESOLVE, AlloyLanguagePackage.ALS_REFERENCE__REFERRED, oldReferred, referred));
77 }
78 }
79 return referred;
80 }
81
82 /**
83 * <!-- begin-user-doc -->
84 * <!-- end-user-doc -->
85 * @generated
86 */
87 public ALSRelationDeclaration basicGetReferred()
88 {
89 return referred;
90 }
91
92 /**
93 * <!-- begin-user-doc -->
94 * <!-- end-user-doc -->
95 * @generated
96 */
97 public void setReferred(ALSRelationDeclaration newReferred)
98 {
99 ALSRelationDeclaration oldReferred = referred;
100 referred = newReferred;
101 if (eNotificationRequired())
102 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_REFERENCE__REFERRED, oldReferred, referred));
103 }
104
105 /**
106 * <!-- begin-user-doc -->
107 * <!-- end-user-doc -->
108 * @generated
109 */
110 @Override
111 public Object eGet(int featureID, boolean resolve, boolean coreType)
112 {
113 switch (featureID)
114 {
115 case AlloyLanguagePackage.ALS_REFERENCE__REFERRED:
116 if (resolve) return getReferred();
117 return basicGetReferred();
118 }
119 return super.eGet(featureID, resolve, coreType);
120 }
121
122 /**
123 * <!-- begin-user-doc -->
124 * <!-- end-user-doc -->
125 * @generated
126 */
127 @Override
128 public void eSet(int featureID, Object newValue)
129 {
130 switch (featureID)
131 {
132 case AlloyLanguagePackage.ALS_REFERENCE__REFERRED:
133 setReferred((ALSRelationDeclaration)newValue);
134 return;
135 }
136 super.eSet(featureID, newValue);
137 }
138
139 /**
140 * <!-- begin-user-doc -->
141 * <!-- end-user-doc -->
142 * @generated
143 */
144 @Override
145 public void eUnset(int featureID)
146 {
147 switch (featureID)
148 {
149 case AlloyLanguagePackage.ALS_REFERENCE__REFERRED:
150 setReferred((ALSRelationDeclaration)null);
151 return;
152 }
153 super.eUnset(featureID);
154 }
155
156 /**
157 * <!-- begin-user-doc -->
158 * <!-- end-user-doc -->
159 * @generated
160 */
161 @Override
162 public boolean eIsSet(int featureID)
163 {
164 switch (featureID)
165 {
166 case AlloyLanguagePackage.ALS_REFERENCE__REFERRED:
167 return referred != null;
168 }
169 return super.eIsSet(featureID);
170 }
171
172} //ALSReferenceImpl
diff --git a/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSReflectiveTransitiveClosureImpl.java b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSReflectiveTransitiveClosureImpl.java
new file mode 100644
index 00000000..70744faa
--- /dev/null
+++ b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSReflectiveTransitiveClosureImpl.java
@@ -0,0 +1,193 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSReflectiveTransitiveClosure;
6import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSTerm;
7import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguagePackage;
8
9import org.eclipse.emf.common.notify.Notification;
10import org.eclipse.emf.common.notify.NotificationChain;
11
12import org.eclipse.emf.ecore.EClass;
13import org.eclipse.emf.ecore.InternalEObject;
14
15import org.eclipse.emf.ecore.impl.ENotificationImpl;
16
17/**
18 * <!-- begin-user-doc -->
19 * An implementation of the model object '<em><b>ALS Reflective Transitive Closure</b></em>'.
20 * <!-- end-user-doc -->
21 * <p>
22 * The following features are implemented:
23 * </p>
24 * <ul>
25 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSReflectiveTransitiveClosureImpl#getOperand <em>Operand</em>}</li>
26 * </ul>
27 *
28 * @generated
29 */
30public class ALSReflectiveTransitiveClosureImpl extends ALSTermImpl implements ALSReflectiveTransitiveClosure
31{
32 /**
33 * The cached value of the '{@link #getOperand() <em>Operand</em>}' containment reference.
34 * <!-- begin-user-doc -->
35 * <!-- end-user-doc -->
36 * @see #getOperand()
37 * @generated
38 * @ordered
39 */
40 protected ALSTerm operand;
41
42 /**
43 * <!-- begin-user-doc -->
44 * <!-- end-user-doc -->
45 * @generated
46 */
47 protected ALSReflectiveTransitiveClosureImpl()
48 {
49 super();
50 }
51
52 /**
53 * <!-- begin-user-doc -->
54 * <!-- end-user-doc -->
55 * @generated
56 */
57 @Override
58 protected EClass eStaticClass()
59 {
60 return AlloyLanguagePackage.Literals.ALS_REFLECTIVE_TRANSITIVE_CLOSURE;
61 }
62
63 /**
64 * <!-- begin-user-doc -->
65 * <!-- end-user-doc -->
66 * @generated
67 */
68 public ALSTerm getOperand()
69 {
70 return operand;
71 }
72
73 /**
74 * <!-- begin-user-doc -->
75 * <!-- end-user-doc -->
76 * @generated
77 */
78 public NotificationChain basicSetOperand(ALSTerm newOperand, NotificationChain msgs)
79 {
80 ALSTerm oldOperand = operand;
81 operand = newOperand;
82 if (eNotificationRequired())
83 {
84 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_REFLECTIVE_TRANSITIVE_CLOSURE__OPERAND, oldOperand, newOperand);
85 if (msgs == null) msgs = notification; else msgs.add(notification);
86 }
87 return msgs;
88 }
89
90 /**
91 * <!-- begin-user-doc -->
92 * <!-- end-user-doc -->
93 * @generated
94 */
95 public void setOperand(ALSTerm newOperand)
96 {
97 if (newOperand != operand)
98 {
99 NotificationChain msgs = null;
100 if (operand != null)
101 msgs = ((InternalEObject)operand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_REFLECTIVE_TRANSITIVE_CLOSURE__OPERAND, null, msgs);
102 if (newOperand != null)
103 msgs = ((InternalEObject)newOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_REFLECTIVE_TRANSITIVE_CLOSURE__OPERAND, null, msgs);
104 msgs = basicSetOperand(newOperand, msgs);
105 if (msgs != null) msgs.dispatch();
106 }
107 else if (eNotificationRequired())
108 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_REFLECTIVE_TRANSITIVE_CLOSURE__OPERAND, newOperand, newOperand));
109 }
110
111 /**
112 * <!-- begin-user-doc -->
113 * <!-- end-user-doc -->
114 * @generated
115 */
116 @Override
117 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
118 {
119 switch (featureID)
120 {
121 case AlloyLanguagePackage.ALS_REFLECTIVE_TRANSITIVE_CLOSURE__OPERAND:
122 return basicSetOperand(null, msgs);
123 }
124 return super.eInverseRemove(otherEnd, featureID, msgs);
125 }
126
127 /**
128 * <!-- begin-user-doc -->
129 * <!-- end-user-doc -->
130 * @generated
131 */
132 @Override
133 public Object eGet(int featureID, boolean resolve, boolean coreType)
134 {
135 switch (featureID)
136 {
137 case AlloyLanguagePackage.ALS_REFLECTIVE_TRANSITIVE_CLOSURE__OPERAND:
138 return getOperand();
139 }
140 return super.eGet(featureID, resolve, coreType);
141 }
142
143 /**
144 * <!-- begin-user-doc -->
145 * <!-- end-user-doc -->
146 * @generated
147 */
148 @Override
149 public void eSet(int featureID, Object newValue)
150 {
151 switch (featureID)
152 {
153 case AlloyLanguagePackage.ALS_REFLECTIVE_TRANSITIVE_CLOSURE__OPERAND:
154 setOperand((ALSTerm)newValue);
155 return;
156 }
157 super.eSet(featureID, newValue);
158 }
159
160 /**
161 * <!-- begin-user-doc -->
162 * <!-- end-user-doc -->
163 * @generated
164 */
165 @Override
166 public void eUnset(int featureID)
167 {
168 switch (featureID)
169 {
170 case AlloyLanguagePackage.ALS_REFLECTIVE_TRANSITIVE_CLOSURE__OPERAND:
171 setOperand((ALSTerm)null);
172 return;
173 }
174 super.eUnset(featureID);
175 }
176
177 /**
178 * <!-- begin-user-doc -->
179 * <!-- end-user-doc -->
180 * @generated
181 */
182 @Override
183 public boolean eIsSet(int featureID)
184 {
185 switch (featureID)
186 {
187 case AlloyLanguagePackage.ALS_REFLECTIVE_TRANSITIVE_CLOSURE__OPERAND:
188 return operand != null;
189 }
190 return super.eIsSet(featureID);
191 }
192
193} //ALSReflectiveTransitiveClosureImpl
diff --git a/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSRelationDeclarationImpl.java b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSRelationDeclarationImpl.java
new file mode 100644
index 00000000..27401d30
--- /dev/null
+++ b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSRelationDeclarationImpl.java
@@ -0,0 +1,177 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSRelationDeclaration;
6import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguagePackage;
7
8import org.eclipse.emf.common.notify.Notification;
9
10import org.eclipse.emf.ecore.EClass;
11
12import org.eclipse.emf.ecore.impl.ENotificationImpl;
13import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
14
15/**
16 * <!-- begin-user-doc -->
17 * An implementation of the model object '<em><b>ALS Relation Declaration</b></em>'.
18 * <!-- end-user-doc -->
19 * <p>
20 * The following features are implemented:
21 * </p>
22 * <ul>
23 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSRelationDeclarationImpl#getName <em>Name</em>}</li>
24 * </ul>
25 *
26 * @generated
27 */
28public class ALSRelationDeclarationImpl extends MinimalEObjectImpl.Container implements ALSRelationDeclaration
29{
30 /**
31 * The default value of the '{@link #getName() <em>Name</em>}' attribute.
32 * <!-- begin-user-doc -->
33 * <!-- end-user-doc -->
34 * @see #getName()
35 * @generated
36 * @ordered
37 */
38 protected static final String NAME_EDEFAULT = null;
39
40 /**
41 * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
42 * <!-- begin-user-doc -->
43 * <!-- end-user-doc -->
44 * @see #getName()
45 * @generated
46 * @ordered
47 */
48 protected String name = NAME_EDEFAULT;
49
50 /**
51 * <!-- begin-user-doc -->
52 * <!-- end-user-doc -->
53 * @generated
54 */
55 protected ALSRelationDeclarationImpl()
56 {
57 super();
58 }
59
60 /**
61 * <!-- begin-user-doc -->
62 * <!-- end-user-doc -->
63 * @generated
64 */
65 @Override
66 protected EClass eStaticClass()
67 {
68 return AlloyLanguagePackage.Literals.ALS_RELATION_DECLARATION;
69 }
70
71 /**
72 * <!-- begin-user-doc -->
73 * <!-- end-user-doc -->
74 * @generated
75 */
76 public String getName()
77 {
78 return name;
79 }
80
81 /**
82 * <!-- begin-user-doc -->
83 * <!-- end-user-doc -->
84 * @generated
85 */
86 public void setName(String newName)
87 {
88 String oldName = name;
89 name = newName;
90 if (eNotificationRequired())
91 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_RELATION_DECLARATION__NAME, oldName, name));
92 }
93
94 /**
95 * <!-- begin-user-doc -->
96 * <!-- end-user-doc -->
97 * @generated
98 */
99 @Override
100 public Object eGet(int featureID, boolean resolve, boolean coreType)
101 {
102 switch (featureID)
103 {
104 case AlloyLanguagePackage.ALS_RELATION_DECLARATION__NAME:
105 return getName();
106 }
107 return super.eGet(featureID, resolve, coreType);
108 }
109
110 /**
111 * <!-- begin-user-doc -->
112 * <!-- end-user-doc -->
113 * @generated
114 */
115 @Override
116 public void eSet(int featureID, Object newValue)
117 {
118 switch (featureID)
119 {
120 case AlloyLanguagePackage.ALS_RELATION_DECLARATION__NAME:
121 setName((String)newValue);
122 return;
123 }
124 super.eSet(featureID, newValue);
125 }
126
127 /**
128 * <!-- begin-user-doc -->
129 * <!-- end-user-doc -->
130 * @generated
131 */
132 @Override
133 public void eUnset(int featureID)
134 {
135 switch (featureID)
136 {
137 case AlloyLanguagePackage.ALS_RELATION_DECLARATION__NAME:
138 setName(NAME_EDEFAULT);
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 {
152 switch (featureID)
153 {
154 case AlloyLanguagePackage.ALS_RELATION_DECLARATION__NAME:
155 return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
156 }
157 return super.eIsSet(featureID);
158 }
159
160 /**
161 * <!-- begin-user-doc -->
162 * <!-- end-user-doc -->
163 * @generated
164 */
165 @Override
166 public String toString()
167 {
168 if (eIsProxy()) return super.toString();
169
170 StringBuffer result = new StringBuffer(super.toString());
171 result.append(" (name: ");
172 result.append(name);
173 result.append(')');
174 return result.toString();
175 }
176
177} //ALSRelationDeclarationImpl
diff --git a/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSRelationDefinitionImpl.java b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSRelationDefinitionImpl.java
new file mode 100644
index 00000000..8e185c08
--- /dev/null
+++ b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSRelationDefinitionImpl.java
@@ -0,0 +1,40 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSRelationDefinition;
6import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguagePackage;
7
8import org.eclipse.emf.ecore.EClass;
9
10/**
11 * <!-- begin-user-doc -->
12 * An implementation of the model object '<em><b>ALS Relation Definition</b></em>'.
13 * <!-- end-user-doc -->
14 *
15 * @generated
16 */
17public class ALSRelationDefinitionImpl extends ALSDefinitionImpl implements ALSRelationDefinition
18{
19 /**
20 * <!-- begin-user-doc -->
21 * <!-- end-user-doc -->
22 * @generated
23 */
24 protected ALSRelationDefinitionImpl()
25 {
26 super();
27 }
28
29 /**
30 * <!-- begin-user-doc -->
31 * <!-- end-user-doc -->
32 * @generated
33 */
34 @Override
35 protected EClass eStaticClass()
36 {
37 return AlloyLanguagePackage.Literals.ALS_RELATION_DEFINITION;
38 }
39
40} //ALSRelationDefinitionImpl
diff --git a/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSRunCommandImpl.java b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSRunCommandImpl.java
new file mode 100644
index 00000000..8dd3bbd1
--- /dev/null
+++ b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSRunCommandImpl.java
@@ -0,0 +1,167 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSRunCommand;
6import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSTypeScope;
7import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguagePackage;
8
9import java.util.Collection;
10
11import org.eclipse.emf.common.notify.NotificationChain;
12
13import org.eclipse.emf.common.util.EList;
14
15import org.eclipse.emf.ecore.EClass;
16import org.eclipse.emf.ecore.InternalEObject;
17
18import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
19
20import org.eclipse.emf.ecore.util.EObjectContainmentEList;
21import org.eclipse.emf.ecore.util.InternalEList;
22
23/**
24 * <!-- begin-user-doc -->
25 * An implementation of the model object '<em><b>ALS Run Command</b></em>'.
26 * <!-- end-user-doc -->
27 * <p>
28 * The following features are implemented:
29 * </p>
30 * <ul>
31 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSRunCommandImpl#getTypeScopes <em>Type Scopes</em>}</li>
32 * </ul>
33 *
34 * @generated
35 */
36public class ALSRunCommandImpl extends MinimalEObjectImpl.Container implements ALSRunCommand
37{
38 /**
39 * The cached value of the '{@link #getTypeScopes() <em>Type Scopes</em>}' containment reference list.
40 * <!-- begin-user-doc -->
41 * <!-- end-user-doc -->
42 * @see #getTypeScopes()
43 * @generated
44 * @ordered
45 */
46 protected EList<ALSTypeScope> typeScopes;
47
48 /**
49 * <!-- begin-user-doc -->
50 * <!-- end-user-doc -->
51 * @generated
52 */
53 protected ALSRunCommandImpl()
54 {
55 super();
56 }
57
58 /**
59 * <!-- begin-user-doc -->
60 * <!-- end-user-doc -->
61 * @generated
62 */
63 @Override
64 protected EClass eStaticClass()
65 {
66 return AlloyLanguagePackage.Literals.ALS_RUN_COMMAND;
67 }
68
69 /**
70 * <!-- begin-user-doc -->
71 * <!-- end-user-doc -->
72 * @generated
73 */
74 public EList<ALSTypeScope> getTypeScopes()
75 {
76 if (typeScopes == null)
77 {
78 typeScopes = new EObjectContainmentEList<ALSTypeScope>(ALSTypeScope.class, this, AlloyLanguagePackage.ALS_RUN_COMMAND__TYPE_SCOPES);
79 }
80 return typeScopes;
81 }
82
83 /**
84 * <!-- begin-user-doc -->
85 * <!-- end-user-doc -->
86 * @generated
87 */
88 @Override
89 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
90 {
91 switch (featureID)
92 {
93 case AlloyLanguagePackage.ALS_RUN_COMMAND__TYPE_SCOPES:
94 return ((InternalEList<?>)getTypeScopes()).basicRemove(otherEnd, msgs);
95 }
96 return super.eInverseRemove(otherEnd, featureID, msgs);
97 }
98
99 /**
100 * <!-- begin-user-doc -->
101 * <!-- end-user-doc -->
102 * @generated
103 */
104 @Override
105 public Object eGet(int featureID, boolean resolve, boolean coreType)
106 {
107 switch (featureID)
108 {
109 case AlloyLanguagePackage.ALS_RUN_COMMAND__TYPE_SCOPES:
110 return getTypeScopes();
111 }
112 return super.eGet(featureID, resolve, coreType);
113 }
114
115 /**
116 * <!-- begin-user-doc -->
117 * <!-- end-user-doc -->
118 * @generated
119 */
120 @SuppressWarnings("unchecked")
121 @Override
122 public void eSet(int featureID, Object newValue)
123 {
124 switch (featureID)
125 {
126 case AlloyLanguagePackage.ALS_RUN_COMMAND__TYPE_SCOPES:
127 getTypeScopes().clear();
128 getTypeScopes().addAll((Collection<? extends ALSTypeScope>)newValue);
129 return;
130 }
131 super.eSet(featureID, newValue);
132 }
133
134 /**
135 * <!-- begin-user-doc -->
136 * <!-- end-user-doc -->
137 * @generated
138 */
139 @Override
140 public void eUnset(int featureID)
141 {
142 switch (featureID)
143 {
144 case AlloyLanguagePackage.ALS_RUN_COMMAND__TYPE_SCOPES:
145 getTypeScopes().clear();
146 return;
147 }
148 super.eUnset(featureID);
149 }
150
151 /**
152 * <!-- begin-user-doc -->
153 * <!-- end-user-doc -->
154 * @generated
155 */
156 @Override
157 public boolean eIsSet(int featureID)
158 {
159 switch (featureID)
160 {
161 case AlloyLanguagePackage.ALS_RUN_COMMAND__TYPE_SCOPES:
162 return typeScopes != null && !typeScopes.isEmpty();
163 }
164 return super.eIsSet(featureID);
165 }
166
167} //ALSRunCommandImpl
diff --git a/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSSigScopeImpl.java b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSSigScopeImpl.java
new file mode 100644
index 00000000..0866ba79
--- /dev/null
+++ b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSSigScopeImpl.java
@@ -0,0 +1,243 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSSigScope;
6import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSSignatureDeclaration;
7import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguagePackage;
8
9import org.eclipse.emf.common.notify.Notification;
10
11import org.eclipse.emf.ecore.EClass;
12import org.eclipse.emf.ecore.InternalEObject;
13
14import org.eclipse.emf.ecore.impl.ENotificationImpl;
15
16/**
17 * <!-- begin-user-doc -->
18 * An implementation of the model object '<em><b>ALS Sig Scope</b></em>'.
19 * <!-- end-user-doc -->
20 * <p>
21 * The following features are implemented:
22 * </p>
23 * <ul>
24 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSSigScopeImpl#isExactly <em>Exactly</em>}</li>
25 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSSigScopeImpl#getType <em>Type</em>}</li>
26 * </ul>
27 *
28 * @generated
29 */
30public class ALSSigScopeImpl extends ALSTypeScopeImpl implements ALSSigScope
31{
32 /**
33 * The default value of the '{@link #isExactly() <em>Exactly</em>}' attribute.
34 * <!-- begin-user-doc -->
35 * <!-- end-user-doc -->
36 * @see #isExactly()
37 * @generated
38 * @ordered
39 */
40 protected static final boolean EXACTLY_EDEFAULT = false;
41
42 /**
43 * The cached value of the '{@link #isExactly() <em>Exactly</em>}' attribute.
44 * <!-- begin-user-doc -->
45 * <!-- end-user-doc -->
46 * @see #isExactly()
47 * @generated
48 * @ordered
49 */
50 protected boolean exactly = EXACTLY_EDEFAULT;
51
52 /**
53 * The cached value of the '{@link #getType() <em>Type</em>}' reference.
54 * <!-- begin-user-doc -->
55 * <!-- end-user-doc -->
56 * @see #getType()
57 * @generated
58 * @ordered
59 */
60 protected ALSSignatureDeclaration type;
61
62 /**
63 * <!-- begin-user-doc -->
64 * <!-- end-user-doc -->
65 * @generated
66 */
67 protected ALSSigScopeImpl()
68 {
69 super();
70 }
71
72 /**
73 * <!-- begin-user-doc -->
74 * <!-- end-user-doc -->
75 * @generated
76 */
77 @Override
78 protected EClass eStaticClass()
79 {
80 return AlloyLanguagePackage.Literals.ALS_SIG_SCOPE;
81 }
82
83 /**
84 * <!-- begin-user-doc -->
85 * <!-- end-user-doc -->
86 * @generated
87 */
88 public boolean isExactly()
89 {
90 return exactly;
91 }
92
93 /**
94 * <!-- begin-user-doc -->
95 * <!-- end-user-doc -->
96 * @generated
97 */
98 public void setExactly(boolean newExactly)
99 {
100 boolean oldExactly = exactly;
101 exactly = newExactly;
102 if (eNotificationRequired())
103 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_SIG_SCOPE__EXACTLY, oldExactly, exactly));
104 }
105
106 /**
107 * <!-- begin-user-doc -->
108 * <!-- end-user-doc -->
109 * @generated
110 */
111 public ALSSignatureDeclaration getType()
112 {
113 if (type != null && type.eIsProxy())
114 {
115 InternalEObject oldType = (InternalEObject)type;
116 type = (ALSSignatureDeclaration)eResolveProxy(oldType);
117 if (type != oldType)
118 {
119 if (eNotificationRequired())
120 eNotify(new ENotificationImpl(this, Notification.RESOLVE, AlloyLanguagePackage.ALS_SIG_SCOPE__TYPE, oldType, type));
121 }
122 }
123 return type;
124 }
125
126 /**
127 * <!-- begin-user-doc -->
128 * <!-- end-user-doc -->
129 * @generated
130 */
131 public ALSSignatureDeclaration basicGetType()
132 {
133 return type;
134 }
135
136 /**
137 * <!-- begin-user-doc -->
138 * <!-- end-user-doc -->
139 * @generated
140 */
141 public void setType(ALSSignatureDeclaration newType)
142 {
143 ALSSignatureDeclaration oldType = type;
144 type = newType;
145 if (eNotificationRequired())
146 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_SIG_SCOPE__TYPE, oldType, type));
147 }
148
149 /**
150 * <!-- begin-user-doc -->
151 * <!-- end-user-doc -->
152 * @generated
153 */
154 @Override
155 public Object eGet(int featureID, boolean resolve, boolean coreType)
156 {
157 switch (featureID)
158 {
159 case AlloyLanguagePackage.ALS_SIG_SCOPE__EXACTLY:
160 return isExactly();
161 case AlloyLanguagePackage.ALS_SIG_SCOPE__TYPE:
162 if (resolve) return getType();
163 return basicGetType();
164 }
165 return super.eGet(featureID, resolve, coreType);
166 }
167
168 /**
169 * <!-- begin-user-doc -->
170 * <!-- end-user-doc -->
171 * @generated
172 */
173 @Override
174 public void eSet(int featureID, Object newValue)
175 {
176 switch (featureID)
177 {
178 case AlloyLanguagePackage.ALS_SIG_SCOPE__EXACTLY:
179 setExactly((Boolean)newValue);
180 return;
181 case AlloyLanguagePackage.ALS_SIG_SCOPE__TYPE:
182 setType((ALSSignatureDeclaration)newValue);
183 return;
184 }
185 super.eSet(featureID, newValue);
186 }
187
188 /**
189 * <!-- begin-user-doc -->
190 * <!-- end-user-doc -->
191 * @generated
192 */
193 @Override
194 public void eUnset(int featureID)
195 {
196 switch (featureID)
197 {
198 case AlloyLanguagePackage.ALS_SIG_SCOPE__EXACTLY:
199 setExactly(EXACTLY_EDEFAULT);
200 return;
201 case AlloyLanguagePackage.ALS_SIG_SCOPE__TYPE:
202 setType((ALSSignatureDeclaration)null);
203 return;
204 }
205 super.eUnset(featureID);
206 }
207
208 /**
209 * <!-- begin-user-doc -->
210 * <!-- end-user-doc -->
211 * @generated
212 */
213 @Override
214 public boolean eIsSet(int featureID)
215 {
216 switch (featureID)
217 {
218 case AlloyLanguagePackage.ALS_SIG_SCOPE__EXACTLY:
219 return exactly != EXACTLY_EDEFAULT;
220 case AlloyLanguagePackage.ALS_SIG_SCOPE__TYPE:
221 return type != null;
222 }
223 return super.eIsSet(featureID);
224 }
225
226 /**
227 * <!-- begin-user-doc -->
228 * <!-- end-user-doc -->
229 * @generated
230 */
231 @Override
232 public String toString()
233 {
234 if (eIsProxy()) return super.toString();
235
236 StringBuffer result = new StringBuffer(super.toString());
237 result.append(" (exactly: ");
238 result.append(exactly);
239 result.append(')');
240 return result.toString();
241 }
242
243} //ALSSigScopeImpl
diff --git a/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSSignatureBodyImpl.java b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSSignatureBodyImpl.java
new file mode 100644
index 00000000..1b51668e
--- /dev/null
+++ b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSSignatureBodyImpl.java
@@ -0,0 +1,438 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSFieldDeclaration;
6import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSMultiplicity;
7import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSSignatureBody;
8import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSSignatureDeclaration;
9import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguagePackage;
10
11import java.util.Collection;
12
13import org.eclipse.emf.common.notify.Notification;
14import org.eclipse.emf.common.notify.NotificationChain;
15
16import org.eclipse.emf.common.util.EList;
17
18import org.eclipse.emf.ecore.EClass;
19import org.eclipse.emf.ecore.InternalEObject;
20
21import org.eclipse.emf.ecore.impl.ENotificationImpl;
22import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
23
24import org.eclipse.emf.ecore.util.EObjectContainmentEList;
25import org.eclipse.emf.ecore.util.EObjectResolvingEList;
26import org.eclipse.emf.ecore.util.InternalEList;
27
28/**
29 * <!-- begin-user-doc -->
30 * An implementation of the model object '<em><b>ALS Signature Body</b></em>'.
31 * <!-- end-user-doc -->
32 * <p>
33 * The following features are implemented:
34 * </p>
35 * <ul>
36 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSSignatureBodyImpl#getMultiplicity <em>Multiplicity</em>}</li>
37 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSSignatureBodyImpl#isAbstract <em>Abstract</em>}</li>
38 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSSignatureBodyImpl#getDeclarations <em>Declarations</em>}</li>
39 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSSignatureBodyImpl#getSupertype <em>Supertype</em>}</li>
40 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSSignatureBodyImpl#getSuperset <em>Superset</em>}</li>
41 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSSignatureBodyImpl#getFields <em>Fields</em>}</li>
42 * </ul>
43 *
44 * @generated
45 */
46public class ALSSignatureBodyImpl extends MinimalEObjectImpl.Container implements ALSSignatureBody
47{
48 /**
49 * The default value of the '{@link #getMultiplicity() <em>Multiplicity</em>}' attribute.
50 * <!-- begin-user-doc -->
51 * <!-- end-user-doc -->
52 * @see #getMultiplicity()
53 * @generated
54 * @ordered
55 */
56 protected static final ALSMultiplicity MULTIPLICITY_EDEFAULT = ALSMultiplicity.ALL;
57
58 /**
59 * The cached value of the '{@link #getMultiplicity() <em>Multiplicity</em>}' attribute.
60 * <!-- begin-user-doc -->
61 * <!-- end-user-doc -->
62 * @see #getMultiplicity()
63 * @generated
64 * @ordered
65 */
66 protected ALSMultiplicity multiplicity = MULTIPLICITY_EDEFAULT;
67
68 /**
69 * The default value of the '{@link #isAbstract() <em>Abstract</em>}' attribute.
70 * <!-- begin-user-doc -->
71 * <!-- end-user-doc -->
72 * @see #isAbstract()
73 * @generated
74 * @ordered
75 */
76 protected static final boolean ABSTRACT_EDEFAULT = false;
77
78 /**
79 * The cached value of the '{@link #isAbstract() <em>Abstract</em>}' attribute.
80 * <!-- begin-user-doc -->
81 * <!-- end-user-doc -->
82 * @see #isAbstract()
83 * @generated
84 * @ordered
85 */
86 protected boolean abstract_ = ABSTRACT_EDEFAULT;
87
88 /**
89 * The cached value of the '{@link #getDeclarations() <em>Declarations</em>}' containment reference list.
90 * <!-- begin-user-doc -->
91 * <!-- end-user-doc -->
92 * @see #getDeclarations()
93 * @generated
94 * @ordered
95 */
96 protected EList<ALSSignatureDeclaration> declarations;
97
98 /**
99 * The cached value of the '{@link #getSupertype() <em>Supertype</em>}' reference.
100 * <!-- begin-user-doc -->
101 * <!-- end-user-doc -->
102 * @see #getSupertype()
103 * @generated
104 * @ordered
105 */
106 protected ALSSignatureDeclaration supertype;
107
108 /**
109 * The cached value of the '{@link #getSuperset() <em>Superset</em>}' reference list.
110 * <!-- begin-user-doc -->
111 * <!-- end-user-doc -->
112 * @see #getSuperset()
113 * @generated
114 * @ordered
115 */
116 protected EList<ALSSignatureDeclaration> superset;
117
118 /**
119 * The cached value of the '{@link #getFields() <em>Fields</em>}' containment reference list.
120 * <!-- begin-user-doc -->
121 * <!-- end-user-doc -->
122 * @see #getFields()
123 * @generated
124 * @ordered
125 */
126 protected EList<ALSFieldDeclaration> fields;
127
128 /**
129 * <!-- begin-user-doc -->
130 * <!-- end-user-doc -->
131 * @generated
132 */
133 protected ALSSignatureBodyImpl()
134 {
135 super();
136 }
137
138 /**
139 * <!-- begin-user-doc -->
140 * <!-- end-user-doc -->
141 * @generated
142 */
143 @Override
144 protected EClass eStaticClass()
145 {
146 return AlloyLanguagePackage.Literals.ALS_SIGNATURE_BODY;
147 }
148
149 /**
150 * <!-- begin-user-doc -->
151 * <!-- end-user-doc -->
152 * @generated
153 */
154 public ALSMultiplicity getMultiplicity()
155 {
156 return multiplicity;
157 }
158
159 /**
160 * <!-- begin-user-doc -->
161 * <!-- end-user-doc -->
162 * @generated
163 */
164 public void setMultiplicity(ALSMultiplicity newMultiplicity)
165 {
166 ALSMultiplicity oldMultiplicity = multiplicity;
167 multiplicity = newMultiplicity == null ? MULTIPLICITY_EDEFAULT : newMultiplicity;
168 if (eNotificationRequired())
169 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_SIGNATURE_BODY__MULTIPLICITY, oldMultiplicity, multiplicity));
170 }
171
172 /**
173 * <!-- begin-user-doc -->
174 * <!-- end-user-doc -->
175 * @generated
176 */
177 public boolean isAbstract()
178 {
179 return abstract_;
180 }
181
182 /**
183 * <!-- begin-user-doc -->
184 * <!-- end-user-doc -->
185 * @generated
186 */
187 public void setAbstract(boolean newAbstract)
188 {
189 boolean oldAbstract = abstract_;
190 abstract_ = newAbstract;
191 if (eNotificationRequired())
192 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_SIGNATURE_BODY__ABSTRACT, oldAbstract, abstract_));
193 }
194
195 /**
196 * <!-- begin-user-doc -->
197 * <!-- end-user-doc -->
198 * @generated
199 */
200 public EList<ALSSignatureDeclaration> getDeclarations()
201 {
202 if (declarations == null)
203 {
204 declarations = new EObjectContainmentEList<ALSSignatureDeclaration>(ALSSignatureDeclaration.class, this, AlloyLanguagePackage.ALS_SIGNATURE_BODY__DECLARATIONS);
205 }
206 return declarations;
207 }
208
209 /**
210 * <!-- begin-user-doc -->
211 * <!-- end-user-doc -->
212 * @generated
213 */
214 public ALSSignatureDeclaration getSupertype()
215 {
216 if (supertype != null && supertype.eIsProxy())
217 {
218 InternalEObject oldSupertype = (InternalEObject)supertype;
219 supertype = (ALSSignatureDeclaration)eResolveProxy(oldSupertype);
220 if (supertype != oldSupertype)
221 {
222 if (eNotificationRequired())
223 eNotify(new ENotificationImpl(this, Notification.RESOLVE, AlloyLanguagePackage.ALS_SIGNATURE_BODY__SUPERTYPE, oldSupertype, supertype));
224 }
225 }
226 return supertype;
227 }
228
229 /**
230 * <!-- begin-user-doc -->
231 * <!-- end-user-doc -->
232 * @generated
233 */
234 public ALSSignatureDeclaration basicGetSupertype()
235 {
236 return supertype;
237 }
238
239 /**
240 * <!-- begin-user-doc -->
241 * <!-- end-user-doc -->
242 * @generated
243 */
244 public void setSupertype(ALSSignatureDeclaration newSupertype)
245 {
246 ALSSignatureDeclaration oldSupertype = supertype;
247 supertype = newSupertype;
248 if (eNotificationRequired())
249 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_SIGNATURE_BODY__SUPERTYPE, oldSupertype, supertype));
250 }
251
252 /**
253 * <!-- begin-user-doc -->
254 * <!-- end-user-doc -->
255 * @generated
256 */
257 public EList<ALSSignatureDeclaration> getSuperset()
258 {
259 if (superset == null)
260 {
261 superset = new EObjectResolvingEList<ALSSignatureDeclaration>(ALSSignatureDeclaration.class, this, AlloyLanguagePackage.ALS_SIGNATURE_BODY__SUPERSET);
262 }
263 return superset;
264 }
265
266 /**
267 * <!-- begin-user-doc -->
268 * <!-- end-user-doc -->
269 * @generated
270 */
271 public EList<ALSFieldDeclaration> getFields()
272 {
273 if (fields == null)
274 {
275 fields = new EObjectContainmentEList<ALSFieldDeclaration>(ALSFieldDeclaration.class, this, AlloyLanguagePackage.ALS_SIGNATURE_BODY__FIELDS);
276 }
277 return fields;
278 }
279
280 /**
281 * <!-- begin-user-doc -->
282 * <!-- end-user-doc -->
283 * @generated
284 */
285 @Override
286 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
287 {
288 switch (featureID)
289 {
290 case AlloyLanguagePackage.ALS_SIGNATURE_BODY__DECLARATIONS:
291 return ((InternalEList<?>)getDeclarations()).basicRemove(otherEnd, msgs);
292 case AlloyLanguagePackage.ALS_SIGNATURE_BODY__FIELDS:
293 return ((InternalEList<?>)getFields()).basicRemove(otherEnd, msgs);
294 }
295 return super.eInverseRemove(otherEnd, featureID, msgs);
296 }
297
298 /**
299 * <!-- begin-user-doc -->
300 * <!-- end-user-doc -->
301 * @generated
302 */
303 @Override
304 public Object eGet(int featureID, boolean resolve, boolean coreType)
305 {
306 switch (featureID)
307 {
308 case AlloyLanguagePackage.ALS_SIGNATURE_BODY__MULTIPLICITY:
309 return getMultiplicity();
310 case AlloyLanguagePackage.ALS_SIGNATURE_BODY__ABSTRACT:
311 return isAbstract();
312 case AlloyLanguagePackage.ALS_SIGNATURE_BODY__DECLARATIONS:
313 return getDeclarations();
314 case AlloyLanguagePackage.ALS_SIGNATURE_BODY__SUPERTYPE:
315 if (resolve) return getSupertype();
316 return basicGetSupertype();
317 case AlloyLanguagePackage.ALS_SIGNATURE_BODY__SUPERSET:
318 return getSuperset();
319 case AlloyLanguagePackage.ALS_SIGNATURE_BODY__FIELDS:
320 return getFields();
321 }
322 return super.eGet(featureID, resolve, coreType);
323 }
324
325 /**
326 * <!-- begin-user-doc -->
327 * <!-- end-user-doc -->
328 * @generated
329 */
330 @SuppressWarnings("unchecked")
331 @Override
332 public void eSet(int featureID, Object newValue)
333 {
334 switch (featureID)
335 {
336 case AlloyLanguagePackage.ALS_SIGNATURE_BODY__MULTIPLICITY:
337 setMultiplicity((ALSMultiplicity)newValue);
338 return;
339 case AlloyLanguagePackage.ALS_SIGNATURE_BODY__ABSTRACT:
340 setAbstract((Boolean)newValue);
341 return;
342 case AlloyLanguagePackage.ALS_SIGNATURE_BODY__DECLARATIONS:
343 getDeclarations().clear();
344 getDeclarations().addAll((Collection<? extends ALSSignatureDeclaration>)newValue);
345 return;
346 case AlloyLanguagePackage.ALS_SIGNATURE_BODY__SUPERTYPE:
347 setSupertype((ALSSignatureDeclaration)newValue);
348 return;
349 case AlloyLanguagePackage.ALS_SIGNATURE_BODY__SUPERSET:
350 getSuperset().clear();
351 getSuperset().addAll((Collection<? extends ALSSignatureDeclaration>)newValue);
352 return;
353 case AlloyLanguagePackage.ALS_SIGNATURE_BODY__FIELDS:
354 getFields().clear();
355 getFields().addAll((Collection<? extends ALSFieldDeclaration>)newValue);
356 return;
357 }
358 super.eSet(featureID, newValue);
359 }
360
361 /**
362 * <!-- begin-user-doc -->
363 * <!-- end-user-doc -->
364 * @generated
365 */
366 @Override
367 public void eUnset(int featureID)
368 {
369 switch (featureID)
370 {
371 case AlloyLanguagePackage.ALS_SIGNATURE_BODY__MULTIPLICITY:
372 setMultiplicity(MULTIPLICITY_EDEFAULT);
373 return;
374 case AlloyLanguagePackage.ALS_SIGNATURE_BODY__ABSTRACT:
375 setAbstract(ABSTRACT_EDEFAULT);
376 return;
377 case AlloyLanguagePackage.ALS_SIGNATURE_BODY__DECLARATIONS:
378 getDeclarations().clear();
379 return;
380 case AlloyLanguagePackage.ALS_SIGNATURE_BODY__SUPERTYPE:
381 setSupertype((ALSSignatureDeclaration)null);
382 return;
383 case AlloyLanguagePackage.ALS_SIGNATURE_BODY__SUPERSET:
384 getSuperset().clear();
385 return;
386 case AlloyLanguagePackage.ALS_SIGNATURE_BODY__FIELDS:
387 getFields().clear();
388 return;
389 }
390 super.eUnset(featureID);
391 }
392
393 /**
394 * <!-- begin-user-doc -->
395 * <!-- end-user-doc -->
396 * @generated
397 */
398 @Override
399 public boolean eIsSet(int featureID)
400 {
401 switch (featureID)
402 {
403 case AlloyLanguagePackage.ALS_SIGNATURE_BODY__MULTIPLICITY:
404 return multiplicity != MULTIPLICITY_EDEFAULT;
405 case AlloyLanguagePackage.ALS_SIGNATURE_BODY__ABSTRACT:
406 return abstract_ != ABSTRACT_EDEFAULT;
407 case AlloyLanguagePackage.ALS_SIGNATURE_BODY__DECLARATIONS:
408 return declarations != null && !declarations.isEmpty();
409 case AlloyLanguagePackage.ALS_SIGNATURE_BODY__SUPERTYPE:
410 return supertype != null;
411 case AlloyLanguagePackage.ALS_SIGNATURE_BODY__SUPERSET:
412 return superset != null && !superset.isEmpty();
413 case AlloyLanguagePackage.ALS_SIGNATURE_BODY__FIELDS:
414 return fields != null && !fields.isEmpty();
415 }
416 return super.eIsSet(featureID);
417 }
418
419 /**
420 * <!-- begin-user-doc -->
421 * <!-- end-user-doc -->
422 * @generated
423 */
424 @Override
425 public String toString()
426 {
427 if (eIsProxy()) return super.toString();
428
429 StringBuffer result = new StringBuffer(super.toString());
430 result.append(" (multiplicity: ");
431 result.append(multiplicity);
432 result.append(", abstract: ");
433 result.append(abstract_);
434 result.append(')');
435 return result.toString();
436 }
437
438} //ALSSignatureBodyImpl
diff --git a/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSSignatureDeclarationImpl.java b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSSignatureDeclarationImpl.java
new file mode 100644
index 00000000..4c58a4ee
--- /dev/null
+++ b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSSignatureDeclarationImpl.java
@@ -0,0 +1,40 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSSignatureDeclaration;
6import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguagePackage;
7
8import org.eclipse.emf.ecore.EClass;
9
10/**
11 * <!-- begin-user-doc -->
12 * An implementation of the model object '<em><b>ALS Signature Declaration</b></em>'.
13 * <!-- end-user-doc -->
14 *
15 * @generated
16 */
17public class ALSSignatureDeclarationImpl extends ALSTypeDeclarationImpl implements ALSSignatureDeclaration
18{
19 /**
20 * <!-- begin-user-doc -->
21 * <!-- end-user-doc -->
22 * @generated
23 */
24 protected ALSSignatureDeclarationImpl()
25 {
26 super();
27 }
28
29 /**
30 * <!-- begin-user-doc -->
31 * <!-- end-user-doc -->
32 * @generated
33 */
34 @Override
35 protected EClass eStaticClass()
36 {
37 return AlloyLanguagePackage.Literals.ALS_SIGNATURE_DECLARATION;
38 }
39
40} //ALSSignatureDeclarationImpl
diff --git a/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSSubsetImpl.java b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSSubsetImpl.java
new file mode 100644
index 00000000..de9b1246
--- /dev/null
+++ b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSSubsetImpl.java
@@ -0,0 +1,264 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSSubset;
6import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSTerm;
7import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguagePackage;
8
9import org.eclipse.emf.common.notify.Notification;
10import org.eclipse.emf.common.notify.NotificationChain;
11
12import org.eclipse.emf.ecore.EClass;
13import org.eclipse.emf.ecore.InternalEObject;
14
15import org.eclipse.emf.ecore.impl.ENotificationImpl;
16
17/**
18 * <!-- begin-user-doc -->
19 * An implementation of the model object '<em><b>ALS Subset</b></em>'.
20 * <!-- end-user-doc -->
21 * <p>
22 * The following features are implemented:
23 * </p>
24 * <ul>
25 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSSubsetImpl#getLeftOperand <em>Left Operand</em>}</li>
26 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSSubsetImpl#getRightOperand <em>Right Operand</em>}</li>
27 * </ul>
28 *
29 * @generated
30 */
31public class ALSSubsetImpl extends ALSTermImpl implements ALSSubset
32{
33 /**
34 * The cached value of the '{@link #getLeftOperand() <em>Left Operand</em>}' containment reference.
35 * <!-- begin-user-doc -->
36 * <!-- end-user-doc -->
37 * @see #getLeftOperand()
38 * @generated
39 * @ordered
40 */
41 protected ALSTerm leftOperand;
42
43 /**
44 * The cached value of the '{@link #getRightOperand() <em>Right Operand</em>}' containment reference.
45 * <!-- begin-user-doc -->
46 * <!-- end-user-doc -->
47 * @see #getRightOperand()
48 * @generated
49 * @ordered
50 */
51 protected ALSTerm rightOperand;
52
53 /**
54 * <!-- begin-user-doc -->
55 * <!-- end-user-doc -->
56 * @generated
57 */
58 protected ALSSubsetImpl()
59 {
60 super();
61 }
62
63 /**
64 * <!-- begin-user-doc -->
65 * <!-- end-user-doc -->
66 * @generated
67 */
68 @Override
69 protected EClass eStaticClass()
70 {
71 return AlloyLanguagePackage.Literals.ALS_SUBSET;
72 }
73
74 /**
75 * <!-- begin-user-doc -->
76 * <!-- end-user-doc -->
77 * @generated
78 */
79 public ALSTerm getLeftOperand()
80 {
81 return leftOperand;
82 }
83
84 /**
85 * <!-- begin-user-doc -->
86 * <!-- end-user-doc -->
87 * @generated
88 */
89 public NotificationChain basicSetLeftOperand(ALSTerm newLeftOperand, NotificationChain msgs)
90 {
91 ALSTerm oldLeftOperand = leftOperand;
92 leftOperand = newLeftOperand;
93 if (eNotificationRequired())
94 {
95 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_SUBSET__LEFT_OPERAND, oldLeftOperand, newLeftOperand);
96 if (msgs == null) msgs = notification; else msgs.add(notification);
97 }
98 return msgs;
99 }
100
101 /**
102 * <!-- begin-user-doc -->
103 * <!-- end-user-doc -->
104 * @generated
105 */
106 public void setLeftOperand(ALSTerm newLeftOperand)
107 {
108 if (newLeftOperand != leftOperand)
109 {
110 NotificationChain msgs = null;
111 if (leftOperand != null)
112 msgs = ((InternalEObject)leftOperand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_SUBSET__LEFT_OPERAND, null, msgs);
113 if (newLeftOperand != null)
114 msgs = ((InternalEObject)newLeftOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_SUBSET__LEFT_OPERAND, null, msgs);
115 msgs = basicSetLeftOperand(newLeftOperand, msgs);
116 if (msgs != null) msgs.dispatch();
117 }
118 else if (eNotificationRequired())
119 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_SUBSET__LEFT_OPERAND, newLeftOperand, newLeftOperand));
120 }
121
122 /**
123 * <!-- begin-user-doc -->
124 * <!-- end-user-doc -->
125 * @generated
126 */
127 public ALSTerm getRightOperand()
128 {
129 return rightOperand;
130 }
131
132 /**
133 * <!-- begin-user-doc -->
134 * <!-- end-user-doc -->
135 * @generated
136 */
137 public NotificationChain basicSetRightOperand(ALSTerm newRightOperand, NotificationChain msgs)
138 {
139 ALSTerm oldRightOperand = rightOperand;
140 rightOperand = newRightOperand;
141 if (eNotificationRequired())
142 {
143 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_SUBSET__RIGHT_OPERAND, oldRightOperand, newRightOperand);
144 if (msgs == null) msgs = notification; else msgs.add(notification);
145 }
146 return msgs;
147 }
148
149 /**
150 * <!-- begin-user-doc -->
151 * <!-- end-user-doc -->
152 * @generated
153 */
154 public void setRightOperand(ALSTerm newRightOperand)
155 {
156 if (newRightOperand != rightOperand)
157 {
158 NotificationChain msgs = null;
159 if (rightOperand != null)
160 msgs = ((InternalEObject)rightOperand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_SUBSET__RIGHT_OPERAND, null, msgs);
161 if (newRightOperand != null)
162 msgs = ((InternalEObject)newRightOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_SUBSET__RIGHT_OPERAND, null, msgs);
163 msgs = basicSetRightOperand(newRightOperand, msgs);
164 if (msgs != null) msgs.dispatch();
165 }
166 else if (eNotificationRequired())
167 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_SUBSET__RIGHT_OPERAND, newRightOperand, newRightOperand));
168 }
169
170 /**
171 * <!-- begin-user-doc -->
172 * <!-- end-user-doc -->
173 * @generated
174 */
175 @Override
176 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
177 {
178 switch (featureID)
179 {
180 case AlloyLanguagePackage.ALS_SUBSET__LEFT_OPERAND:
181 return basicSetLeftOperand(null, msgs);
182 case AlloyLanguagePackage.ALS_SUBSET__RIGHT_OPERAND:
183 return basicSetRightOperand(null, msgs);
184 }
185 return super.eInverseRemove(otherEnd, featureID, msgs);
186 }
187
188 /**
189 * <!-- begin-user-doc -->
190 * <!-- end-user-doc -->
191 * @generated
192 */
193 @Override
194 public Object eGet(int featureID, boolean resolve, boolean coreType)
195 {
196 switch (featureID)
197 {
198 case AlloyLanguagePackage.ALS_SUBSET__LEFT_OPERAND:
199 return getLeftOperand();
200 case AlloyLanguagePackage.ALS_SUBSET__RIGHT_OPERAND:
201 return getRightOperand();
202 }
203 return super.eGet(featureID, resolve, coreType);
204 }
205
206 /**
207 * <!-- begin-user-doc -->
208 * <!-- end-user-doc -->
209 * @generated
210 */
211 @Override
212 public void eSet(int featureID, Object newValue)
213 {
214 switch (featureID)
215 {
216 case AlloyLanguagePackage.ALS_SUBSET__LEFT_OPERAND:
217 setLeftOperand((ALSTerm)newValue);
218 return;
219 case AlloyLanguagePackage.ALS_SUBSET__RIGHT_OPERAND:
220 setRightOperand((ALSTerm)newValue);
221 return;
222 }
223 super.eSet(featureID, newValue);
224 }
225
226 /**
227 * <!-- begin-user-doc -->
228 * <!-- end-user-doc -->
229 * @generated
230 */
231 @Override
232 public void eUnset(int featureID)
233 {
234 switch (featureID)
235 {
236 case AlloyLanguagePackage.ALS_SUBSET__LEFT_OPERAND:
237 setLeftOperand((ALSTerm)null);
238 return;
239 case AlloyLanguagePackage.ALS_SUBSET__RIGHT_OPERAND:
240 setRightOperand((ALSTerm)null);
241 return;
242 }
243 super.eUnset(featureID);
244 }
245
246 /**
247 * <!-- begin-user-doc -->
248 * <!-- end-user-doc -->
249 * @generated
250 */
251 @Override
252 public boolean eIsSet(int featureID)
253 {
254 switch (featureID)
255 {
256 case AlloyLanguagePackage.ALS_SUBSET__LEFT_OPERAND:
257 return leftOperand != null;
258 case AlloyLanguagePackage.ALS_SUBSET__RIGHT_OPERAND:
259 return rightOperand != null;
260 }
261 return super.eIsSet(featureID);
262 }
263
264} //ALSSubsetImpl
diff --git a/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSSumImpl.java b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSSumImpl.java
new file mode 100644
index 00000000..61503806
--- /dev/null
+++ b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSSumImpl.java
@@ -0,0 +1,240 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSSum;
6import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSTerm;
7import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSVariableDeclaration;
8import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguagePackage;
9
10import java.util.Collection;
11
12import org.eclipse.emf.common.notify.Notification;
13import org.eclipse.emf.common.notify.NotificationChain;
14
15import org.eclipse.emf.common.util.EList;
16
17import org.eclipse.emf.ecore.EClass;
18import org.eclipse.emf.ecore.InternalEObject;
19
20import org.eclipse.emf.ecore.impl.ENotificationImpl;
21
22import org.eclipse.emf.ecore.util.EObjectContainmentEList;
23import org.eclipse.emf.ecore.util.InternalEList;
24
25/**
26 * <!-- begin-user-doc -->
27 * An implementation of the model object '<em><b>ALS Sum</b></em>'.
28 * <!-- end-user-doc -->
29 * <p>
30 * The following features are implemented:
31 * </p>
32 * <ul>
33 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSSumImpl#getVariables <em>Variables</em>}</li>
34 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSSumImpl#getExpression <em>Expression</em>}</li>
35 * </ul>
36 *
37 * @generated
38 */
39public class ALSSumImpl extends ALSTermImpl implements ALSSum
40{
41 /**
42 * The cached value of the '{@link #getVariables() <em>Variables</em>}' containment reference list.
43 * <!-- begin-user-doc -->
44 * <!-- end-user-doc -->
45 * @see #getVariables()
46 * @generated
47 * @ordered
48 */
49 protected EList<ALSVariableDeclaration> variables;
50
51 /**
52 * The cached value of the '{@link #getExpression() <em>Expression</em>}' containment reference.
53 * <!-- begin-user-doc -->
54 * <!-- end-user-doc -->
55 * @see #getExpression()
56 * @generated
57 * @ordered
58 */
59 protected ALSTerm expression;
60
61 /**
62 * <!-- begin-user-doc -->
63 * <!-- end-user-doc -->
64 * @generated
65 */
66 protected ALSSumImpl()
67 {
68 super();
69 }
70
71 /**
72 * <!-- begin-user-doc -->
73 * <!-- end-user-doc -->
74 * @generated
75 */
76 @Override
77 protected EClass eStaticClass()
78 {
79 return AlloyLanguagePackage.Literals.ALS_SUM;
80 }
81
82 /**
83 * <!-- begin-user-doc -->
84 * <!-- end-user-doc -->
85 * @generated
86 */
87 public EList<ALSVariableDeclaration> getVariables()
88 {
89 if (variables == null)
90 {
91 variables = new EObjectContainmentEList<ALSVariableDeclaration>(ALSVariableDeclaration.class, this, AlloyLanguagePackage.ALS_SUM__VARIABLES);
92 }
93 return variables;
94 }
95
96 /**
97 * <!-- begin-user-doc -->
98 * <!-- end-user-doc -->
99 * @generated
100 */
101 public ALSTerm getExpression()
102 {
103 return expression;
104 }
105
106 /**
107 * <!-- begin-user-doc -->
108 * <!-- end-user-doc -->
109 * @generated
110 */
111 public NotificationChain basicSetExpression(ALSTerm newExpression, NotificationChain msgs)
112 {
113 ALSTerm oldExpression = expression;
114 expression = newExpression;
115 if (eNotificationRequired())
116 {
117 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_SUM__EXPRESSION, oldExpression, newExpression);
118 if (msgs == null) msgs = notification; else msgs.add(notification);
119 }
120 return msgs;
121 }
122
123 /**
124 * <!-- begin-user-doc -->
125 * <!-- end-user-doc -->
126 * @generated
127 */
128 public void setExpression(ALSTerm newExpression)
129 {
130 if (newExpression != expression)
131 {
132 NotificationChain msgs = null;
133 if (expression != null)
134 msgs = ((InternalEObject)expression).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_SUM__EXPRESSION, null, msgs);
135 if (newExpression != null)
136 msgs = ((InternalEObject)newExpression).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_SUM__EXPRESSION, null, msgs);
137 msgs = basicSetExpression(newExpression, msgs);
138 if (msgs != null) msgs.dispatch();
139 }
140 else if (eNotificationRequired())
141 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_SUM__EXPRESSION, newExpression, newExpression));
142 }
143
144 /**
145 * <!-- begin-user-doc -->
146 * <!-- end-user-doc -->
147 * @generated
148 */
149 @Override
150 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
151 {
152 switch (featureID)
153 {
154 case AlloyLanguagePackage.ALS_SUM__VARIABLES:
155 return ((InternalEList<?>)getVariables()).basicRemove(otherEnd, msgs);
156 case AlloyLanguagePackage.ALS_SUM__EXPRESSION:
157 return basicSetExpression(null, msgs);
158 }
159 return super.eInverseRemove(otherEnd, featureID, msgs);
160 }
161
162 /**
163 * <!-- begin-user-doc -->
164 * <!-- end-user-doc -->
165 * @generated
166 */
167 @Override
168 public Object eGet(int featureID, boolean resolve, boolean coreType)
169 {
170 switch (featureID)
171 {
172 case AlloyLanguagePackage.ALS_SUM__VARIABLES:
173 return getVariables();
174 case AlloyLanguagePackage.ALS_SUM__EXPRESSION:
175 return getExpression();
176 }
177 return super.eGet(featureID, resolve, coreType);
178 }
179
180 /**
181 * <!-- begin-user-doc -->
182 * <!-- end-user-doc -->
183 * @generated
184 */
185 @SuppressWarnings("unchecked")
186 @Override
187 public void eSet(int featureID, Object newValue)
188 {
189 switch (featureID)
190 {
191 case AlloyLanguagePackage.ALS_SUM__VARIABLES:
192 getVariables().clear();
193 getVariables().addAll((Collection<? extends ALSVariableDeclaration>)newValue);
194 return;
195 case AlloyLanguagePackage.ALS_SUM__EXPRESSION:
196 setExpression((ALSTerm)newValue);
197 return;
198 }
199 super.eSet(featureID, newValue);
200 }
201
202 /**
203 * <!-- begin-user-doc -->
204 * <!-- end-user-doc -->
205 * @generated
206 */
207 @Override
208 public void eUnset(int featureID)
209 {
210 switch (featureID)
211 {
212 case AlloyLanguagePackage.ALS_SUM__VARIABLES:
213 getVariables().clear();
214 return;
215 case AlloyLanguagePackage.ALS_SUM__EXPRESSION:
216 setExpression((ALSTerm)null);
217 return;
218 }
219 super.eUnset(featureID);
220 }
221
222 /**
223 * <!-- begin-user-doc -->
224 * <!-- end-user-doc -->
225 * @generated
226 */
227 @Override
228 public boolean eIsSet(int featureID)
229 {
230 switch (featureID)
231 {
232 case AlloyLanguagePackage.ALS_SUM__VARIABLES:
233 return variables != null && !variables.isEmpty();
234 case AlloyLanguagePackage.ALS_SUM__EXPRESSION:
235 return expression != null;
236 }
237 return super.eIsSet(featureID);
238 }
239
240} //ALSSumImpl
diff --git a/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSTermImpl.java b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSTermImpl.java
new file mode 100644
index 00000000..06a720d4
--- /dev/null
+++ b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSTermImpl.java
@@ -0,0 +1,42 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSTerm;
6import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguagePackage;
7
8import org.eclipse.emf.ecore.EClass;
9
10import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
11
12/**
13 * <!-- begin-user-doc -->
14 * An implementation of the model object '<em><b>ALS Term</b></em>'.
15 * <!-- end-user-doc -->
16 *
17 * @generated
18 */
19public class ALSTermImpl extends MinimalEObjectImpl.Container implements ALSTerm
20{
21 /**
22 * <!-- begin-user-doc -->
23 * <!-- end-user-doc -->
24 * @generated
25 */
26 protected ALSTermImpl()
27 {
28 super();
29 }
30
31 /**
32 * <!-- begin-user-doc -->
33 * <!-- end-user-doc -->
34 * @generated
35 */
36 @Override
37 protected EClass eStaticClass()
38 {
39 return AlloyLanguagePackage.Literals.ALS_TERM;
40 }
41
42} //ALSTermImpl
diff --git a/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSTypeDeclarationImpl.java b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSTypeDeclarationImpl.java
new file mode 100644
index 00000000..83d836bf
--- /dev/null
+++ b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSTypeDeclarationImpl.java
@@ -0,0 +1,40 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSTypeDeclaration;
6import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguagePackage;
7
8import org.eclipse.emf.ecore.EClass;
9
10/**
11 * <!-- begin-user-doc -->
12 * An implementation of the model object '<em><b>ALS Type Declaration</b></em>'.
13 * <!-- end-user-doc -->
14 *
15 * @generated
16 */
17public class ALSTypeDeclarationImpl extends ALSRelationDeclarationImpl implements ALSTypeDeclaration
18{
19 /**
20 * <!-- begin-user-doc -->
21 * <!-- end-user-doc -->
22 * @generated
23 */
24 protected ALSTypeDeclarationImpl()
25 {
26 super();
27 }
28
29 /**
30 * <!-- begin-user-doc -->
31 * <!-- end-user-doc -->
32 * @generated
33 */
34 @Override
35 protected EClass eStaticClass()
36 {
37 return AlloyLanguagePackage.Literals.ALS_TYPE_DECLARATION;
38 }
39
40} //ALSTypeDeclarationImpl
diff --git a/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSTypeScopeImpl.java b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSTypeScopeImpl.java
new file mode 100644
index 00000000..e60dc917
--- /dev/null
+++ b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSTypeScopeImpl.java
@@ -0,0 +1,177 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSTypeScope;
6import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguagePackage;
7
8import org.eclipse.emf.common.notify.Notification;
9
10import org.eclipse.emf.ecore.EClass;
11
12import org.eclipse.emf.ecore.impl.ENotificationImpl;
13import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
14
15/**
16 * <!-- begin-user-doc -->
17 * An implementation of the model object '<em><b>ALS Type Scope</b></em>'.
18 * <!-- end-user-doc -->
19 * <p>
20 * The following features are implemented:
21 * </p>
22 * <ul>
23 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSTypeScopeImpl#getNumber <em>Number</em>}</li>
24 * </ul>
25 *
26 * @generated
27 */
28public class ALSTypeScopeImpl extends MinimalEObjectImpl.Container implements ALSTypeScope
29{
30 /**
31 * The default value of the '{@link #getNumber() <em>Number</em>}' attribute.
32 * <!-- begin-user-doc -->
33 * <!-- end-user-doc -->
34 * @see #getNumber()
35 * @generated
36 * @ordered
37 */
38 protected static final int NUMBER_EDEFAULT = 0;
39
40 /**
41 * The cached value of the '{@link #getNumber() <em>Number</em>}' attribute.
42 * <!-- begin-user-doc -->
43 * <!-- end-user-doc -->
44 * @see #getNumber()
45 * @generated
46 * @ordered
47 */
48 protected int number = NUMBER_EDEFAULT;
49
50 /**
51 * <!-- begin-user-doc -->
52 * <!-- end-user-doc -->
53 * @generated
54 */
55 protected ALSTypeScopeImpl()
56 {
57 super();
58 }
59
60 /**
61 * <!-- begin-user-doc -->
62 * <!-- end-user-doc -->
63 * @generated
64 */
65 @Override
66 protected EClass eStaticClass()
67 {
68 return AlloyLanguagePackage.Literals.ALS_TYPE_SCOPE;
69 }
70
71 /**
72 * <!-- begin-user-doc -->
73 * <!-- end-user-doc -->
74 * @generated
75 */
76 public int getNumber()
77 {
78 return number;
79 }
80
81 /**
82 * <!-- begin-user-doc -->
83 * <!-- end-user-doc -->
84 * @generated
85 */
86 public void setNumber(int newNumber)
87 {
88 int oldNumber = number;
89 number = newNumber;
90 if (eNotificationRequired())
91 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_TYPE_SCOPE__NUMBER, oldNumber, number));
92 }
93
94 /**
95 * <!-- begin-user-doc -->
96 * <!-- end-user-doc -->
97 * @generated
98 */
99 @Override
100 public Object eGet(int featureID, boolean resolve, boolean coreType)
101 {
102 switch (featureID)
103 {
104 case AlloyLanguagePackage.ALS_TYPE_SCOPE__NUMBER:
105 return getNumber();
106 }
107 return super.eGet(featureID, resolve, coreType);
108 }
109
110 /**
111 * <!-- begin-user-doc -->
112 * <!-- end-user-doc -->
113 * @generated
114 */
115 @Override
116 public void eSet(int featureID, Object newValue)
117 {
118 switch (featureID)
119 {
120 case AlloyLanguagePackage.ALS_TYPE_SCOPE__NUMBER:
121 setNumber((Integer)newValue);
122 return;
123 }
124 super.eSet(featureID, newValue);
125 }
126
127 /**
128 * <!-- begin-user-doc -->
129 * <!-- end-user-doc -->
130 * @generated
131 */
132 @Override
133 public void eUnset(int featureID)
134 {
135 switch (featureID)
136 {
137 case AlloyLanguagePackage.ALS_TYPE_SCOPE__NUMBER:
138 setNumber(NUMBER_EDEFAULT);
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 {
152 switch (featureID)
153 {
154 case AlloyLanguagePackage.ALS_TYPE_SCOPE__NUMBER:
155 return number != NUMBER_EDEFAULT;
156 }
157 return super.eIsSet(featureID);
158 }
159
160 /**
161 * <!-- begin-user-doc -->
162 * <!-- end-user-doc -->
163 * @generated
164 */
165 @Override
166 public String toString()
167 {
168 if (eIsProxy()) return super.toString();
169
170 StringBuffer result = new StringBuffer(super.toString());
171 result.append(" (number: ");
172 result.append(number);
173 result.append(')');
174 return result.toString();
175 }
176
177} //ALSTypeScopeImpl
diff --git a/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSUnaryMinusImpl.java b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSUnaryMinusImpl.java
new file mode 100644
index 00000000..e4e33969
--- /dev/null
+++ b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSUnaryMinusImpl.java
@@ -0,0 +1,193 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSTerm;
6import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSUnaryMinus;
7import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguagePackage;
8
9import org.eclipse.emf.common.notify.Notification;
10import org.eclipse.emf.common.notify.NotificationChain;
11
12import org.eclipse.emf.ecore.EClass;
13import org.eclipse.emf.ecore.InternalEObject;
14
15import org.eclipse.emf.ecore.impl.ENotificationImpl;
16
17/**
18 * <!-- begin-user-doc -->
19 * An implementation of the model object '<em><b>ALS Unary Minus</b></em>'.
20 * <!-- end-user-doc -->
21 * <p>
22 * The following features are implemented:
23 * </p>
24 * <ul>
25 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSUnaryMinusImpl#getOperand <em>Operand</em>}</li>
26 * </ul>
27 *
28 * @generated
29 */
30public class ALSUnaryMinusImpl extends ALSTermImpl implements ALSUnaryMinus
31{
32 /**
33 * The cached value of the '{@link #getOperand() <em>Operand</em>}' containment reference.
34 * <!-- begin-user-doc -->
35 * <!-- end-user-doc -->
36 * @see #getOperand()
37 * @generated
38 * @ordered
39 */
40 protected ALSTerm operand;
41
42 /**
43 * <!-- begin-user-doc -->
44 * <!-- end-user-doc -->
45 * @generated
46 */
47 protected ALSUnaryMinusImpl()
48 {
49 super();
50 }
51
52 /**
53 * <!-- begin-user-doc -->
54 * <!-- end-user-doc -->
55 * @generated
56 */
57 @Override
58 protected EClass eStaticClass()
59 {
60 return AlloyLanguagePackage.Literals.ALS_UNARY_MINUS;
61 }
62
63 /**
64 * <!-- begin-user-doc -->
65 * <!-- end-user-doc -->
66 * @generated
67 */
68 public ALSTerm getOperand()
69 {
70 return operand;
71 }
72
73 /**
74 * <!-- begin-user-doc -->
75 * <!-- end-user-doc -->
76 * @generated
77 */
78 public NotificationChain basicSetOperand(ALSTerm newOperand, NotificationChain msgs)
79 {
80 ALSTerm oldOperand = operand;
81 operand = newOperand;
82 if (eNotificationRequired())
83 {
84 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_UNARY_MINUS__OPERAND, oldOperand, newOperand);
85 if (msgs == null) msgs = notification; else msgs.add(notification);
86 }
87 return msgs;
88 }
89
90 /**
91 * <!-- begin-user-doc -->
92 * <!-- end-user-doc -->
93 * @generated
94 */
95 public void setOperand(ALSTerm newOperand)
96 {
97 if (newOperand != operand)
98 {
99 NotificationChain msgs = null;
100 if (operand != null)
101 msgs = ((InternalEObject)operand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_UNARY_MINUS__OPERAND, null, msgs);
102 if (newOperand != null)
103 msgs = ((InternalEObject)newOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_UNARY_MINUS__OPERAND, null, msgs);
104 msgs = basicSetOperand(newOperand, msgs);
105 if (msgs != null) msgs.dispatch();
106 }
107 else if (eNotificationRequired())
108 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_UNARY_MINUS__OPERAND, newOperand, newOperand));
109 }
110
111 /**
112 * <!-- begin-user-doc -->
113 * <!-- end-user-doc -->
114 * @generated
115 */
116 @Override
117 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
118 {
119 switch (featureID)
120 {
121 case AlloyLanguagePackage.ALS_UNARY_MINUS__OPERAND:
122 return basicSetOperand(null, msgs);
123 }
124 return super.eInverseRemove(otherEnd, featureID, msgs);
125 }
126
127 /**
128 * <!-- begin-user-doc -->
129 * <!-- end-user-doc -->
130 * @generated
131 */
132 @Override
133 public Object eGet(int featureID, boolean resolve, boolean coreType)
134 {
135 switch (featureID)
136 {
137 case AlloyLanguagePackage.ALS_UNARY_MINUS__OPERAND:
138 return getOperand();
139 }
140 return super.eGet(featureID, resolve, coreType);
141 }
142
143 /**
144 * <!-- begin-user-doc -->
145 * <!-- end-user-doc -->
146 * @generated
147 */
148 @Override
149 public void eSet(int featureID, Object newValue)
150 {
151 switch (featureID)
152 {
153 case AlloyLanguagePackage.ALS_UNARY_MINUS__OPERAND:
154 setOperand((ALSTerm)newValue);
155 return;
156 }
157 super.eSet(featureID, newValue);
158 }
159
160 /**
161 * <!-- begin-user-doc -->
162 * <!-- end-user-doc -->
163 * @generated
164 */
165 @Override
166 public void eUnset(int featureID)
167 {
168 switch (featureID)
169 {
170 case AlloyLanguagePackage.ALS_UNARY_MINUS__OPERAND:
171 setOperand((ALSTerm)null);
172 return;
173 }
174 super.eUnset(featureID);
175 }
176
177 /**
178 * <!-- begin-user-doc -->
179 * <!-- end-user-doc -->
180 * @generated
181 */
182 @Override
183 public boolean eIsSet(int featureID)
184 {
185 switch (featureID)
186 {
187 case AlloyLanguagePackage.ALS_UNARY_MINUS__OPERAND:
188 return operand != null;
189 }
190 return super.eIsSet(featureID);
191 }
192
193} //ALSUnaryMinusImpl
diff --git a/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSUnivImpl.java b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSUnivImpl.java
new file mode 100644
index 00000000..f7696943
--- /dev/null
+++ b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSUnivImpl.java
@@ -0,0 +1,40 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSUniv;
6import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguagePackage;
7
8import org.eclipse.emf.ecore.EClass;
9
10/**
11 * <!-- begin-user-doc -->
12 * An implementation of the model object '<em><b>ALS Univ</b></em>'.
13 * <!-- end-user-doc -->
14 *
15 * @generated
16 */
17public class ALSUnivImpl extends ALSTermImpl implements ALSUniv
18{
19 /**
20 * <!-- begin-user-doc -->
21 * <!-- end-user-doc -->
22 * @generated
23 */
24 protected ALSUnivImpl()
25 {
26 super();
27 }
28
29 /**
30 * <!-- begin-user-doc -->
31 * <!-- end-user-doc -->
32 * @generated
33 */
34 @Override
35 protected EClass eStaticClass()
36 {
37 return AlloyLanguagePackage.Literals.ALS_UNIV;
38 }
39
40} //ALSUnivImpl
diff --git a/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSVariableDeclarationImpl.java b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSVariableDeclarationImpl.java
new file mode 100644
index 00000000..de26d088
--- /dev/null
+++ b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSVariableDeclarationImpl.java
@@ -0,0 +1,193 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSTerm;
6import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSVariableDeclaration;
7import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguagePackage;
8
9import org.eclipse.emf.common.notify.Notification;
10import org.eclipse.emf.common.notify.NotificationChain;
11
12import org.eclipse.emf.ecore.EClass;
13import org.eclipse.emf.ecore.InternalEObject;
14
15import org.eclipse.emf.ecore.impl.ENotificationImpl;
16
17/**
18 * <!-- begin-user-doc -->
19 * An implementation of the model object '<em><b>ALS Variable Declaration</b></em>'.
20 * <!-- end-user-doc -->
21 * <p>
22 * The following features are implemented:
23 * </p>
24 * <ul>
25 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSVariableDeclarationImpl#getRange <em>Range</em>}</li>
26 * </ul>
27 *
28 * @generated
29 */
30public class ALSVariableDeclarationImpl extends ALSRelationDeclarationImpl implements ALSVariableDeclaration
31{
32 /**
33 * The cached value of the '{@link #getRange() <em>Range</em>}' containment reference.
34 * <!-- begin-user-doc -->
35 * <!-- end-user-doc -->
36 * @see #getRange()
37 * @generated
38 * @ordered
39 */
40 protected ALSTerm range;
41
42 /**
43 * <!-- begin-user-doc -->
44 * <!-- end-user-doc -->
45 * @generated
46 */
47 protected ALSVariableDeclarationImpl()
48 {
49 super();
50 }
51
52 /**
53 * <!-- begin-user-doc -->
54 * <!-- end-user-doc -->
55 * @generated
56 */
57 @Override
58 protected EClass eStaticClass()
59 {
60 return AlloyLanguagePackage.Literals.ALS_VARIABLE_DECLARATION;
61 }
62
63 /**
64 * <!-- begin-user-doc -->
65 * <!-- end-user-doc -->
66 * @generated
67 */
68 public ALSTerm getRange()
69 {
70 return range;
71 }
72
73 /**
74 * <!-- begin-user-doc -->
75 * <!-- end-user-doc -->
76 * @generated
77 */
78 public NotificationChain basicSetRange(ALSTerm newRange, NotificationChain msgs)
79 {
80 ALSTerm oldRange = range;
81 range = newRange;
82 if (eNotificationRequired())
83 {
84 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_VARIABLE_DECLARATION__RANGE, oldRange, newRange);
85 if (msgs == null) msgs = notification; else msgs.add(notification);
86 }
87 return msgs;
88 }
89
90 /**
91 * <!-- begin-user-doc -->
92 * <!-- end-user-doc -->
93 * @generated
94 */
95 public void setRange(ALSTerm newRange)
96 {
97 if (newRange != range)
98 {
99 NotificationChain msgs = null;
100 if (range != null)
101 msgs = ((InternalEObject)range).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_VARIABLE_DECLARATION__RANGE, null, msgs);
102 if (newRange != null)
103 msgs = ((InternalEObject)newRange).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_VARIABLE_DECLARATION__RANGE, null, msgs);
104 msgs = basicSetRange(newRange, msgs);
105 if (msgs != null) msgs.dispatch();
106 }
107 else if (eNotificationRequired())
108 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_VARIABLE_DECLARATION__RANGE, newRange, newRange));
109 }
110
111 /**
112 * <!-- begin-user-doc -->
113 * <!-- end-user-doc -->
114 * @generated
115 */
116 @Override
117 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
118 {
119 switch (featureID)
120 {
121 case AlloyLanguagePackage.ALS_VARIABLE_DECLARATION__RANGE:
122 return basicSetRange(null, msgs);
123 }
124 return super.eInverseRemove(otherEnd, featureID, msgs);
125 }
126
127 /**
128 * <!-- begin-user-doc -->
129 * <!-- end-user-doc -->
130 * @generated
131 */
132 @Override
133 public Object eGet(int featureID, boolean resolve, boolean coreType)
134 {
135 switch (featureID)
136 {
137 case AlloyLanguagePackage.ALS_VARIABLE_DECLARATION__RANGE:
138 return getRange();
139 }
140 return super.eGet(featureID, resolve, coreType);
141 }
142
143 /**
144 * <!-- begin-user-doc -->
145 * <!-- end-user-doc -->
146 * @generated
147 */
148 @Override
149 public void eSet(int featureID, Object newValue)
150 {
151 switch (featureID)
152 {
153 case AlloyLanguagePackage.ALS_VARIABLE_DECLARATION__RANGE:
154 setRange((ALSTerm)newValue);
155 return;
156 }
157 super.eSet(featureID, newValue);
158 }
159
160 /**
161 * <!-- begin-user-doc -->
162 * <!-- end-user-doc -->
163 * @generated
164 */
165 @Override
166 public void eUnset(int featureID)
167 {
168 switch (featureID)
169 {
170 case AlloyLanguagePackage.ALS_VARIABLE_DECLARATION__RANGE:
171 setRange((ALSTerm)null);
172 return;
173 }
174 super.eUnset(featureID);
175 }
176
177 /**
178 * <!-- begin-user-doc -->
179 * <!-- end-user-doc -->
180 * @generated
181 */
182 @Override
183 public boolean eIsSet(int featureID)
184 {
185 switch (featureID)
186 {
187 case AlloyLanguagePackage.ALS_VARIABLE_DECLARATION__RANGE:
188 return range != null;
189 }
190 return super.eIsSet(featureID);
191 }
192
193} //ALSVariableDeclarationImpl
diff --git a/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/AlSTransitiveClosureImpl.java b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/AlSTransitiveClosureImpl.java
new file mode 100644
index 00000000..fdacf84e
--- /dev/null
+++ b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/AlSTransitiveClosureImpl.java
@@ -0,0 +1,193 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSTerm;
6import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlSTransitiveClosure;
7import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguagePackage;
8
9import org.eclipse.emf.common.notify.Notification;
10import org.eclipse.emf.common.notify.NotificationChain;
11
12import org.eclipse.emf.ecore.EClass;
13import org.eclipse.emf.ecore.InternalEObject;
14
15import org.eclipse.emf.ecore.impl.ENotificationImpl;
16
17/**
18 * <!-- begin-user-doc -->
19 * An implementation of the model object '<em><b>Al STransitive Closure</b></em>'.
20 * <!-- end-user-doc -->
21 * <p>
22 * The following features are implemented:
23 * </p>
24 * <ul>
25 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.AlSTransitiveClosureImpl#getOperand <em>Operand</em>}</li>
26 * </ul>
27 *
28 * @generated
29 */
30public class AlSTransitiveClosureImpl extends ALSTermImpl implements AlSTransitiveClosure
31{
32 /**
33 * The cached value of the '{@link #getOperand() <em>Operand</em>}' containment reference.
34 * <!-- begin-user-doc -->
35 * <!-- end-user-doc -->
36 * @see #getOperand()
37 * @generated
38 * @ordered
39 */
40 protected ALSTerm operand;
41
42 /**
43 * <!-- begin-user-doc -->
44 * <!-- end-user-doc -->
45 * @generated
46 */
47 protected AlSTransitiveClosureImpl()
48 {
49 super();
50 }
51
52 /**
53 * <!-- begin-user-doc -->
54 * <!-- end-user-doc -->
55 * @generated
56 */
57 @Override
58 protected EClass eStaticClass()
59 {
60 return AlloyLanguagePackage.Literals.AL_STRANSITIVE_CLOSURE;
61 }
62
63 /**
64 * <!-- begin-user-doc -->
65 * <!-- end-user-doc -->
66 * @generated
67 */
68 public ALSTerm getOperand()
69 {
70 return operand;
71 }
72
73 /**
74 * <!-- begin-user-doc -->
75 * <!-- end-user-doc -->
76 * @generated
77 */
78 public NotificationChain basicSetOperand(ALSTerm newOperand, NotificationChain msgs)
79 {
80 ALSTerm oldOperand = operand;
81 operand = newOperand;
82 if (eNotificationRequired())
83 {
84 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.AL_STRANSITIVE_CLOSURE__OPERAND, oldOperand, newOperand);
85 if (msgs == null) msgs = notification; else msgs.add(notification);
86 }
87 return msgs;
88 }
89
90 /**
91 * <!-- begin-user-doc -->
92 * <!-- end-user-doc -->
93 * @generated
94 */
95 public void setOperand(ALSTerm newOperand)
96 {
97 if (newOperand != operand)
98 {
99 NotificationChain msgs = null;
100 if (operand != null)
101 msgs = ((InternalEObject)operand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.AL_STRANSITIVE_CLOSURE__OPERAND, null, msgs);
102 if (newOperand != null)
103 msgs = ((InternalEObject)newOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.AL_STRANSITIVE_CLOSURE__OPERAND, null, msgs);
104 msgs = basicSetOperand(newOperand, msgs);
105 if (msgs != null) msgs.dispatch();
106 }
107 else if (eNotificationRequired())
108 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.AL_STRANSITIVE_CLOSURE__OPERAND, newOperand, newOperand));
109 }
110
111 /**
112 * <!-- begin-user-doc -->
113 * <!-- end-user-doc -->
114 * @generated
115 */
116 @Override
117 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
118 {
119 switch (featureID)
120 {
121 case AlloyLanguagePackage.AL_STRANSITIVE_CLOSURE__OPERAND:
122 return basicSetOperand(null, msgs);
123 }
124 return super.eInverseRemove(otherEnd, featureID, msgs);
125 }
126
127 /**
128 * <!-- begin-user-doc -->
129 * <!-- end-user-doc -->
130 * @generated
131 */
132 @Override
133 public Object eGet(int featureID, boolean resolve, boolean coreType)
134 {
135 switch (featureID)
136 {
137 case AlloyLanguagePackage.AL_STRANSITIVE_CLOSURE__OPERAND:
138 return getOperand();
139 }
140 return super.eGet(featureID, resolve, coreType);
141 }
142
143 /**
144 * <!-- begin-user-doc -->
145 * <!-- end-user-doc -->
146 * @generated
147 */
148 @Override
149 public void eSet(int featureID, Object newValue)
150 {
151 switch (featureID)
152 {
153 case AlloyLanguagePackage.AL_STRANSITIVE_CLOSURE__OPERAND:
154 setOperand((ALSTerm)newValue);
155 return;
156 }
157 super.eSet(featureID, newValue);
158 }
159
160 /**
161 * <!-- begin-user-doc -->
162 * <!-- end-user-doc -->
163 * @generated
164 */
165 @Override
166 public void eUnset(int featureID)
167 {
168 switch (featureID)
169 {
170 case AlloyLanguagePackage.AL_STRANSITIVE_CLOSURE__OPERAND:
171 setOperand((ALSTerm)null);
172 return;
173 }
174 super.eUnset(featureID);
175 }
176
177 /**
178 * <!-- begin-user-doc -->
179 * <!-- end-user-doc -->
180 * @generated
181 */
182 @Override
183 public boolean eIsSet(int featureID)
184 {
185 switch (featureID)
186 {
187 case AlloyLanguagePackage.AL_STRANSITIVE_CLOSURE__OPERAND:
188 return operand != null;
189 }
190 return super.eIsSet(featureID);
191 }
192
193} //AlSTransitiveClosureImpl
diff --git a/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/AlloyLanguageFactoryImpl.java b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/AlloyLanguageFactoryImpl.java
new file mode 100644
index 00000000..45d92dca
--- /dev/null
+++ b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/AlloyLanguageFactoryImpl.java
@@ -0,0 +1,801 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.alloyLanguage.*;
6
7import org.eclipse.emf.ecore.EClass;
8import org.eclipse.emf.ecore.EDataType;
9import org.eclipse.emf.ecore.EObject;
10import org.eclipse.emf.ecore.EPackage;
11
12import org.eclipse.emf.ecore.impl.EFactoryImpl;
13
14import org.eclipse.emf.ecore.plugin.EcorePlugin;
15
16/**
17 * <!-- begin-user-doc -->
18 * An implementation of the model <b>Factory</b>.
19 * <!-- end-user-doc -->
20 * @generated
21 */
22public class AlloyLanguageFactoryImpl extends EFactoryImpl implements AlloyLanguageFactory
23{
24 /**
25 * Creates the default factory implementation.
26 * <!-- begin-user-doc -->
27 * <!-- end-user-doc -->
28 * @generated
29 */
30 public static AlloyLanguageFactory init()
31 {
32 try
33 {
34 AlloyLanguageFactory theAlloyLanguageFactory = (AlloyLanguageFactory)EPackage.Registry.INSTANCE.getEFactory(AlloyLanguagePackage.eNS_URI);
35 if (theAlloyLanguageFactory != null)
36 {
37 return theAlloyLanguageFactory;
38 }
39 }
40 catch (Exception exception)
41 {
42 EcorePlugin.INSTANCE.log(exception);
43 }
44 return new AlloyLanguageFactoryImpl();
45 }
46
47 /**
48 * Creates an instance of the factory.
49 * <!-- begin-user-doc -->
50 * <!-- end-user-doc -->
51 * @generated
52 */
53 public AlloyLanguageFactoryImpl()
54 {
55 super();
56 }
57
58 /**
59 * <!-- begin-user-doc -->
60 * <!-- end-user-doc -->
61 * @generated
62 */
63 @Override
64 public EObject create(EClass eClass)
65 {
66 switch (eClass.getClassifierID())
67 {
68 case AlloyLanguagePackage.ALS_DOCUMENT: return createALSDocument();
69 case AlloyLanguagePackage.ALS_RELATION_DECLARATION: return createALSRelationDeclaration();
70 case AlloyLanguagePackage.ALS_TYPE_DECLARATION: return createALSTypeDeclaration();
71 case AlloyLanguagePackage.ALS_ENUM_DECLARATION: return createALSEnumDeclaration();
72 case AlloyLanguagePackage.ALS_ENUM_LITERAL: return createALSEnumLiteral();
73 case AlloyLanguagePackage.ALS_SIGNATURE_DECLARATION: return createALSSignatureDeclaration();
74 case AlloyLanguagePackage.ALS_SIGNATURE_BODY: return createALSSignatureBody();
75 case AlloyLanguagePackage.ALS_FIELD_DECLARATION: return createALSFieldDeclaration();
76 case AlloyLanguagePackage.ALS_DEFINITION: return createALSDefinition();
77 case AlloyLanguagePackage.ALS_FUNCTION_DEFINITION: return createALSFunctionDefinition();
78 case AlloyLanguagePackage.ALS_RELATION_DEFINITION: return createALSRelationDefinition();
79 case AlloyLanguagePackage.ALS_FACT_DECLARATION: return createALSFactDeclaration();
80 case AlloyLanguagePackage.ALS_TERM: return createALSTerm();
81 case AlloyLanguagePackage.ALS_VARIABLE_DECLARATION: return createALSVariableDeclaration();
82 case AlloyLanguagePackage.ALS_RUN_COMMAND: return createALSRunCommand();
83 case AlloyLanguagePackage.ALS_TYPE_SCOPE: return createALSTypeScope();
84 case AlloyLanguagePackage.ALS_SIG_SCOPE: return createALSSigScope();
85 case AlloyLanguagePackage.ALS_INT_SCOPE: return createALSIntScope();
86 case AlloyLanguagePackage.ALS_QUANTIFIED_EX: return createALSQuantifiedEx();
87 case AlloyLanguagePackage.ALS_OR: return createALSOr();
88 case AlloyLanguagePackage.ALS_IFF: return createALSIff();
89 case AlloyLanguagePackage.ALS_IMPL: return createALSImpl();
90 case AlloyLanguagePackage.ALS_AND: return createALSAnd();
91 case AlloyLanguagePackage.ALS_EQUALS: return createALSEquals();
92 case AlloyLanguagePackage.ALS_NOT_EQUALS: return createALSNotEquals();
93 case AlloyLanguagePackage.ALS_SUBSET: return createALSSubset();
94 case AlloyLanguagePackage.ALS_LESS: return createALSLess();
95 case AlloyLanguagePackage.ALS_LEQ: return createALSLeq();
96 case AlloyLanguagePackage.ALS_MORE: return createALSMore();
97 case AlloyLanguagePackage.ALS_MEQ: return createALSMeq();
98 case AlloyLanguagePackage.ALS_OVERRIDE: return createALSOverride();
99 case AlloyLanguagePackage.ALS_RANGE_RESTRICTION_RIGHT: return createALSRangeRestrictionRight();
100 case AlloyLanguagePackage.ALS_RANGE_RESTRICTION_LEFT: return createALSRangeRestrictionLeft();
101 case AlloyLanguagePackage.ALS_JOIN: return createALSJoin();
102 case AlloyLanguagePackage.ALS_MINUS: return createALSMinus();
103 case AlloyLanguagePackage.ALS_PLUS: return createALSPlus();
104 case AlloyLanguagePackage.ALS_INTERSECTION: return createALSIntersection();
105 case AlloyLanguagePackage.ALS_DIRECT_PRODUCT: return createALSDirectProduct();
106 case AlloyLanguagePackage.ALS_NOT: return createALSNot();
107 case AlloyLanguagePackage.ALS_INVERSE_RELATION: return createALSInverseRelation();
108 case AlloyLanguagePackage.AL_STRANSITIVE_CLOSURE: return createAlSTransitiveClosure();
109 case AlloyLanguagePackage.ALS_REFLECTIVE_TRANSITIVE_CLOSURE: return createALSReflectiveTransitiveClosure();
110 case AlloyLanguagePackage.ALS_CARDINALITY: return createALSCardinality();
111 case AlloyLanguagePackage.ALS_UNARY_MINUS: return createALSUnaryMinus();
112 case AlloyLanguagePackage.ALS_SUM: return createALSSum();
113 case AlloyLanguagePackage.ALS_FUNCTION_CALL: return createALSFunctionCall();
114 case AlloyLanguagePackage.ALS_NONE: return createALSNone();
115 case AlloyLanguagePackage.ALS_IDEN: return createALSIden();
116 case AlloyLanguagePackage.ALS_UNIV: return createALSUniv();
117 case AlloyLanguagePackage.ALS_INT: return createALSInt();
118 case AlloyLanguagePackage.ALS_REFERENCE: return createALSReference();
119 case AlloyLanguagePackage.ALS_NUMBER_LITERAL: return createALSNumberLiteral();
120 default:
121 throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
122 }
123 }
124
125 /**
126 * <!-- begin-user-doc -->
127 * <!-- end-user-doc -->
128 * @generated
129 */
130 @Override
131 public Object createFromString(EDataType eDataType, String initialValue)
132 {
133 switch (eDataType.getClassifierID())
134 {
135 case AlloyLanguagePackage.ALS_MULTIPLICITY:
136 return createALSMultiplicityFromString(eDataType, initialValue);
137 case AlloyLanguagePackage.ALS_NUMERIC_OPERATOR:
138 return createALSNumericOperatorFromString(eDataType, initialValue);
139 default:
140 throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
141 }
142 }
143
144 /**
145 * <!-- begin-user-doc -->
146 * <!-- end-user-doc -->
147 * @generated
148 */
149 @Override
150 public String convertToString(EDataType eDataType, Object instanceValue)
151 {
152 switch (eDataType.getClassifierID())
153 {
154 case AlloyLanguagePackage.ALS_MULTIPLICITY:
155 return convertALSMultiplicityToString(eDataType, instanceValue);
156 case AlloyLanguagePackage.ALS_NUMERIC_OPERATOR:
157 return convertALSNumericOperatorToString(eDataType, instanceValue);
158 default:
159 throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
160 }
161 }
162
163 /**
164 * <!-- begin-user-doc -->
165 * <!-- end-user-doc -->
166 * @generated
167 */
168 public ALSDocument createALSDocument()
169 {
170 ALSDocumentImpl alsDocument = new ALSDocumentImpl();
171 return alsDocument;
172 }
173
174 /**
175 * <!-- begin-user-doc -->
176 * <!-- end-user-doc -->
177 * @generated
178 */
179 public ALSRelationDeclaration createALSRelationDeclaration()
180 {
181 ALSRelationDeclarationImpl alsRelationDeclaration = new ALSRelationDeclarationImpl();
182 return alsRelationDeclaration;
183 }
184
185 /**
186 * <!-- begin-user-doc -->
187 * <!-- end-user-doc -->
188 * @generated
189 */
190 public ALSTypeDeclaration createALSTypeDeclaration()
191 {
192 ALSTypeDeclarationImpl alsTypeDeclaration = new ALSTypeDeclarationImpl();
193 return alsTypeDeclaration;
194 }
195
196 /**
197 * <!-- begin-user-doc -->
198 * <!-- end-user-doc -->
199 * @generated
200 */
201 public ALSEnumDeclaration createALSEnumDeclaration()
202 {
203 ALSEnumDeclarationImpl alsEnumDeclaration = new ALSEnumDeclarationImpl();
204 return alsEnumDeclaration;
205 }
206
207 /**
208 * <!-- begin-user-doc -->
209 * <!-- end-user-doc -->
210 * @generated
211 */
212 public ALSEnumLiteral createALSEnumLiteral()
213 {
214 ALSEnumLiteralImpl alsEnumLiteral = new ALSEnumLiteralImpl();
215 return alsEnumLiteral;
216 }
217
218 /**
219 * <!-- begin-user-doc -->
220 * <!-- end-user-doc -->
221 * @generated
222 */
223 public ALSSignatureDeclaration createALSSignatureDeclaration()
224 {
225 ALSSignatureDeclarationImpl alsSignatureDeclaration = new ALSSignatureDeclarationImpl();
226 return alsSignatureDeclaration;
227 }
228
229 /**
230 * <!-- begin-user-doc -->
231 * <!-- end-user-doc -->
232 * @generated
233 */
234 public ALSSignatureBody createALSSignatureBody()
235 {
236 ALSSignatureBodyImpl alsSignatureBody = new ALSSignatureBodyImpl();
237 return alsSignatureBody;
238 }
239
240 /**
241 * <!-- begin-user-doc -->
242 * <!-- end-user-doc -->
243 * @generated
244 */
245 public ALSFieldDeclaration createALSFieldDeclaration()
246 {
247 ALSFieldDeclarationImpl alsFieldDeclaration = new ALSFieldDeclarationImpl();
248 return alsFieldDeclaration;
249 }
250
251 /**
252 * <!-- begin-user-doc -->
253 * <!-- end-user-doc -->
254 * @generated
255 */
256 public ALSDefinition createALSDefinition()
257 {
258 ALSDefinitionImpl alsDefinition = new ALSDefinitionImpl();
259 return alsDefinition;
260 }
261
262 /**
263 * <!-- begin-user-doc -->
264 * <!-- end-user-doc -->
265 * @generated
266 */
267 public ALSFunctionDefinition createALSFunctionDefinition()
268 {
269 ALSFunctionDefinitionImpl alsFunctionDefinition = new ALSFunctionDefinitionImpl();
270 return alsFunctionDefinition;
271 }
272
273 /**
274 * <!-- begin-user-doc -->
275 * <!-- end-user-doc -->
276 * @generated
277 */
278 public ALSRelationDefinition createALSRelationDefinition()
279 {
280 ALSRelationDefinitionImpl alsRelationDefinition = new ALSRelationDefinitionImpl();
281 return alsRelationDefinition;
282 }
283
284 /**
285 * <!-- begin-user-doc -->
286 * <!-- end-user-doc -->
287 * @generated
288 */
289 public ALSFactDeclaration createALSFactDeclaration()
290 {
291 ALSFactDeclarationImpl alsFactDeclaration = new ALSFactDeclarationImpl();
292 return alsFactDeclaration;
293 }
294
295 /**
296 * <!-- begin-user-doc -->
297 * <!-- end-user-doc -->
298 * @generated
299 */
300 public ALSTerm createALSTerm()
301 {
302 ALSTermImpl alsTerm = new ALSTermImpl();
303 return alsTerm;
304 }
305
306 /**
307 * <!-- begin-user-doc -->
308 * <!-- end-user-doc -->
309 * @generated
310 */
311 public ALSVariableDeclaration createALSVariableDeclaration()
312 {
313 ALSVariableDeclarationImpl alsVariableDeclaration = new ALSVariableDeclarationImpl();
314 return alsVariableDeclaration;
315 }
316
317 /**
318 * <!-- begin-user-doc -->
319 * <!-- end-user-doc -->
320 * @generated
321 */
322 public ALSRunCommand createALSRunCommand()
323 {
324 ALSRunCommandImpl alsRunCommand = new ALSRunCommandImpl();
325 return alsRunCommand;
326 }
327
328 /**
329 * <!-- begin-user-doc -->
330 * <!-- end-user-doc -->
331 * @generated
332 */
333 public ALSTypeScope createALSTypeScope()
334 {
335 ALSTypeScopeImpl alsTypeScope = new ALSTypeScopeImpl();
336 return alsTypeScope;
337 }
338
339 /**
340 * <!-- begin-user-doc -->
341 * <!-- end-user-doc -->
342 * @generated
343 */
344 public ALSSigScope createALSSigScope()
345 {
346 ALSSigScopeImpl alsSigScope = new ALSSigScopeImpl();
347 return alsSigScope;
348 }
349
350 /**
351 * <!-- begin-user-doc -->
352 * <!-- end-user-doc -->
353 * @generated
354 */
355 public ALSIntScope createALSIntScope()
356 {
357 ALSIntScopeImpl alsIntScope = new ALSIntScopeImpl();
358 return alsIntScope;
359 }
360
361 /**
362 * <!-- begin-user-doc -->
363 * <!-- end-user-doc -->
364 * @generated
365 */
366 public ALSQuantifiedEx createALSQuantifiedEx()
367 {
368 ALSQuantifiedExImpl alsQuantifiedEx = new ALSQuantifiedExImpl();
369 return alsQuantifiedEx;
370 }
371
372 /**
373 * <!-- begin-user-doc -->
374 * <!-- end-user-doc -->
375 * @generated
376 */
377 public ALSOr createALSOr()
378 {
379 ALSOrImpl alsOr = new ALSOrImpl();
380 return alsOr;
381 }
382
383 /**
384 * <!-- begin-user-doc -->
385 * <!-- end-user-doc -->
386 * @generated
387 */
388 public ALSIff createALSIff()
389 {
390 ALSIffImpl alsIff = new ALSIffImpl();
391 return alsIff;
392 }
393
394 /**
395 * <!-- begin-user-doc -->
396 * <!-- end-user-doc -->
397 * @generated
398 */
399 public ALSImpl createALSImpl()
400 {
401 ALSImplImpl alsImpl = new ALSImplImpl();
402 return alsImpl;
403 }
404
405 /**
406 * <!-- begin-user-doc -->
407 * <!-- end-user-doc -->
408 * @generated
409 */
410 public ALSAnd createALSAnd()
411 {
412 ALSAndImpl alsAnd = new ALSAndImpl();
413 return alsAnd;
414 }
415
416 /**
417 * <!-- begin-user-doc -->
418 * <!-- end-user-doc -->
419 * @generated
420 */
421 public ALSEquals createALSEquals()
422 {
423 ALSEqualsImpl alsEquals = new ALSEqualsImpl();
424 return alsEquals;
425 }
426
427 /**
428 * <!-- begin-user-doc -->
429 * <!-- end-user-doc -->
430 * @generated
431 */
432 public ALSNotEquals createALSNotEquals()
433 {
434 ALSNotEqualsImpl alsNotEquals = new ALSNotEqualsImpl();
435 return alsNotEquals;
436 }
437
438 /**
439 * <!-- begin-user-doc -->
440 * <!-- end-user-doc -->
441 * @generated
442 */
443 public ALSSubset createALSSubset()
444 {
445 ALSSubsetImpl alsSubset = new ALSSubsetImpl();
446 return alsSubset;
447 }
448
449 /**
450 * <!-- begin-user-doc -->
451 * <!-- end-user-doc -->
452 * @generated
453 */
454 public ALSLess createALSLess()
455 {
456 ALSLessImpl alsLess = new ALSLessImpl();
457 return alsLess;
458 }
459
460 /**
461 * <!-- begin-user-doc -->
462 * <!-- end-user-doc -->
463 * @generated
464 */
465 public ALSLeq createALSLeq()
466 {
467 ALSLeqImpl alsLeq = new ALSLeqImpl();
468 return alsLeq;
469 }
470
471 /**
472 * <!-- begin-user-doc -->
473 * <!-- end-user-doc -->
474 * @generated
475 */
476 public ALSMore createALSMore()
477 {
478 ALSMoreImpl alsMore = new ALSMoreImpl();
479 return alsMore;
480 }
481
482 /**
483 * <!-- begin-user-doc -->
484 * <!-- end-user-doc -->
485 * @generated
486 */
487 public ALSMeq createALSMeq()
488 {
489 ALSMeqImpl alsMeq = new ALSMeqImpl();
490 return alsMeq;
491 }
492
493 /**
494 * <!-- begin-user-doc -->
495 * <!-- end-user-doc -->
496 * @generated
497 */
498 public ALSOverride createALSOverride()
499 {
500 ALSOverrideImpl alsOverride = new ALSOverrideImpl();
501 return alsOverride;
502 }
503
504 /**
505 * <!-- begin-user-doc -->
506 * <!-- end-user-doc -->
507 * @generated
508 */
509 public ALSRangeRestrictionRight createALSRangeRestrictionRight()
510 {
511 ALSRangeRestrictionRightImpl alsRangeRestrictionRight = new ALSRangeRestrictionRightImpl();
512 return alsRangeRestrictionRight;
513 }
514
515 /**
516 * <!-- begin-user-doc -->
517 * <!-- end-user-doc -->
518 * @generated
519 */
520 public ALSRangeRestrictionLeft createALSRangeRestrictionLeft()
521 {
522 ALSRangeRestrictionLeftImpl alsRangeRestrictionLeft = new ALSRangeRestrictionLeftImpl();
523 return alsRangeRestrictionLeft;
524 }
525
526 /**
527 * <!-- begin-user-doc -->
528 * <!-- end-user-doc -->
529 * @generated
530 */
531 public ALSJoin createALSJoin()
532 {
533 ALSJoinImpl alsJoin = new ALSJoinImpl();
534 return alsJoin;
535 }
536
537 /**
538 * <!-- begin-user-doc -->
539 * <!-- end-user-doc -->
540 * @generated
541 */
542 public ALSMinus createALSMinus()
543 {
544 ALSMinusImpl alsMinus = new ALSMinusImpl();
545 return alsMinus;
546 }
547
548 /**
549 * <!-- begin-user-doc -->
550 * <!-- end-user-doc -->
551 * @generated
552 */
553 public ALSPlus createALSPlus()
554 {
555 ALSPlusImpl alsPlus = new ALSPlusImpl();
556 return alsPlus;
557 }
558
559 /**
560 * <!-- begin-user-doc -->
561 * <!-- end-user-doc -->
562 * @generated
563 */
564 public ALSIntersection createALSIntersection()
565 {
566 ALSIntersectionImpl alsIntersection = new ALSIntersectionImpl();
567 return alsIntersection;
568 }
569
570 /**
571 * <!-- begin-user-doc -->
572 * <!-- end-user-doc -->
573 * @generated
574 */
575 public ALSDirectProduct createALSDirectProduct()
576 {
577 ALSDirectProductImpl alsDirectProduct = new ALSDirectProductImpl();
578 return alsDirectProduct;
579 }
580
581 /**
582 * <!-- begin-user-doc -->
583 * <!-- end-user-doc -->
584 * @generated
585 */
586 public ALSNot createALSNot()
587 {
588 ALSNotImpl alsNot = new ALSNotImpl();
589 return alsNot;
590 }
591
592 /**
593 * <!-- begin-user-doc -->
594 * <!-- end-user-doc -->
595 * @generated
596 */
597 public ALSInverseRelation createALSInverseRelation()
598 {
599 ALSInverseRelationImpl alsInverseRelation = new ALSInverseRelationImpl();
600 return alsInverseRelation;
601 }
602
603 /**
604 * <!-- begin-user-doc -->
605 * <!-- end-user-doc -->
606 * @generated
607 */
608 public AlSTransitiveClosure createAlSTransitiveClosure()
609 {
610 AlSTransitiveClosureImpl alSTransitiveClosure = new AlSTransitiveClosureImpl();
611 return alSTransitiveClosure;
612 }
613
614 /**
615 * <!-- begin-user-doc -->
616 * <!-- end-user-doc -->
617 * @generated
618 */
619 public ALSReflectiveTransitiveClosure createALSReflectiveTransitiveClosure()
620 {
621 ALSReflectiveTransitiveClosureImpl alsReflectiveTransitiveClosure = new ALSReflectiveTransitiveClosureImpl();
622 return alsReflectiveTransitiveClosure;
623 }
624
625 /**
626 * <!-- begin-user-doc -->
627 * <!-- end-user-doc -->
628 * @generated
629 */
630 public ALSCardinality createALSCardinality()
631 {
632 ALSCardinalityImpl alsCardinality = new ALSCardinalityImpl();
633 return alsCardinality;
634 }
635
636 /**
637 * <!-- begin-user-doc -->
638 * <!-- end-user-doc -->
639 * @generated
640 */
641 public ALSUnaryMinus createALSUnaryMinus()
642 {
643 ALSUnaryMinusImpl alsUnaryMinus = new ALSUnaryMinusImpl();
644 return alsUnaryMinus;
645 }
646
647 /**
648 * <!-- begin-user-doc -->
649 * <!-- end-user-doc -->
650 * @generated
651 */
652 public ALSSum createALSSum()
653 {
654 ALSSumImpl alsSum = new ALSSumImpl();
655 return alsSum;
656 }
657
658 /**
659 * <!-- begin-user-doc -->
660 * <!-- end-user-doc -->
661 * @generated
662 */
663 public ALSFunctionCall createALSFunctionCall()
664 {
665 ALSFunctionCallImpl alsFunctionCall = new ALSFunctionCallImpl();
666 return alsFunctionCall;
667 }
668
669 /**
670 * <!-- begin-user-doc -->
671 * <!-- end-user-doc -->
672 * @generated
673 */
674 public ALSNone createALSNone()
675 {
676 ALSNoneImpl alsNone = new ALSNoneImpl();
677 return alsNone;
678 }
679
680 /**
681 * <!-- begin-user-doc -->
682 * <!-- end-user-doc -->
683 * @generated
684 */
685 public ALSIden createALSIden()
686 {
687 ALSIdenImpl alsIden = new ALSIdenImpl();
688 return alsIden;
689 }
690
691 /**
692 * <!-- begin-user-doc -->
693 * <!-- end-user-doc -->
694 * @generated
695 */
696 public ALSUniv createALSUniv()
697 {
698 ALSUnivImpl alsUniv = new ALSUnivImpl();
699 return alsUniv;
700 }
701
702 /**
703 * <!-- begin-user-doc -->
704 * <!-- end-user-doc -->
705 * @generated
706 */
707 public ALSInt createALSInt()
708 {
709 ALSIntImpl alsInt = new ALSIntImpl();
710 return alsInt;
711 }
712
713 /**
714 * <!-- begin-user-doc -->
715 * <!-- end-user-doc -->
716 * @generated
717 */
718 public ALSReference createALSReference()
719 {
720 ALSReferenceImpl alsReference = new ALSReferenceImpl();
721 return alsReference;
722 }
723
724 /**
725 * <!-- begin-user-doc -->
726 * <!-- end-user-doc -->
727 * @generated
728 */
729 public ALSNumberLiteral createALSNumberLiteral()
730 {
731 ALSNumberLiteralImpl alsNumberLiteral = new ALSNumberLiteralImpl();
732 return alsNumberLiteral;
733 }
734
735 /**
736 * <!-- begin-user-doc -->
737 * <!-- end-user-doc -->
738 * @generated
739 */
740 public ALSMultiplicity createALSMultiplicityFromString(EDataType eDataType, String initialValue)
741 {
742 ALSMultiplicity result = ALSMultiplicity.get(initialValue);
743 if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
744 return result;
745 }
746
747 /**
748 * <!-- begin-user-doc -->
749 * <!-- end-user-doc -->
750 * @generated
751 */
752 public String convertALSMultiplicityToString(EDataType eDataType, Object instanceValue)
753 {
754 return instanceValue == null ? null : instanceValue.toString();
755 }
756
757 /**
758 * <!-- begin-user-doc -->
759 * <!-- end-user-doc -->
760 * @generated
761 */
762 public ALSNumericOperator createALSNumericOperatorFromString(EDataType eDataType, String initialValue)
763 {
764 ALSNumericOperator result = ALSNumericOperator.get(initialValue);
765 if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
766 return result;
767 }
768
769 /**
770 * <!-- begin-user-doc -->
771 * <!-- end-user-doc -->
772 * @generated
773 */
774 public String convertALSNumericOperatorToString(EDataType eDataType, Object instanceValue)
775 {
776 return instanceValue == null ? null : instanceValue.toString();
777 }
778
779 /**
780 * <!-- begin-user-doc -->
781 * <!-- end-user-doc -->
782 * @generated
783 */
784 public AlloyLanguagePackage getAlloyLanguagePackage()
785 {
786 return (AlloyLanguagePackage)getEPackage();
787 }
788
789 /**
790 * <!-- begin-user-doc -->
791 * <!-- end-user-doc -->
792 * @deprecated
793 * @generated
794 */
795 @Deprecated
796 public static AlloyLanguagePackage getPackage()
797 {
798 return AlloyLanguagePackage.eINSTANCE;
799 }
800
801} //AlloyLanguageFactoryImpl
diff --git a/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/AlloyLanguagePackageImpl.java b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/AlloyLanguagePackageImpl.java
new file mode 100644
index 00000000..1fd90aa9
--- /dev/null
+++ b/Solvers/Alloy-Solver/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/AlloyLanguagePackageImpl.java
@@ -0,0 +1,2417 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSAnd;
6import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSCardinality;
7import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSDefinition;
8import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSDirectProduct;
9import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSDocument;
10import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSEnumDeclaration;
11import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSEnumLiteral;
12import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSEquals;
13import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSFactDeclaration;
14import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSFieldDeclaration;
15import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSFunctionCall;
16import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSFunctionDefinition;
17import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSIden;
18import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSIff;
19import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSImpl;
20import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSInt;
21import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSIntScope;
22import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSIntersection;
23import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSInverseRelation;
24import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSJoin;
25import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSLeq;
26import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSLess;
27import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSMeq;
28import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSMinus;
29import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSMore;
30import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSMultiplicity;
31import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSNone;
32import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSNot;
33import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSNotEquals;
34import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSNumberLiteral;
35import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSNumericOperator;
36import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSOr;
37import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSOverride;
38import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSPlus;
39import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSQuantifiedEx;
40import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSRangeRestrictionLeft;
41import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSRangeRestrictionRight;
42import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSReference;
43import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSReflectiveTransitiveClosure;
44import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSRelationDeclaration;
45import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSRelationDefinition;
46import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSRunCommand;
47import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSSigScope;
48import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSSignatureBody;
49import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSSignatureDeclaration;
50import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSSubset;
51import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSSum;
52import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSTerm;
53import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSTypeDeclaration;
54import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSTypeScope;
55import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSUnaryMinus;
56import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSUniv;
57import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSVariableDeclaration;
58import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlSTransitiveClosure;
59import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguageFactory;
60import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguagePackage;
61
62import org.eclipse.emf.ecore.EAttribute;
63import org.eclipse.emf.ecore.EClass;
64import org.eclipse.emf.ecore.EEnum;
65import org.eclipse.emf.ecore.EPackage;
66import org.eclipse.emf.ecore.EReference;
67
68import org.eclipse.emf.ecore.impl.EPackageImpl;
69
70/**
71 * <!-- begin-user-doc -->
72 * An implementation of the model <b>Package</b>.
73 * <!-- end-user-doc -->
74 * @generated
75 */
76public class AlloyLanguagePackageImpl extends EPackageImpl implements AlloyLanguagePackage
77{
78 /**
79 * <!-- begin-user-doc -->
80 * <!-- end-user-doc -->
81 * @generated
82 */
83 private EClass alsDocumentEClass = null;
84
85 /**
86 * <!-- begin-user-doc -->
87 * <!-- end-user-doc -->
88 * @generated
89 */
90 private EClass alsRelationDeclarationEClass = null;
91
92 /**
93 * <!-- begin-user-doc -->
94 * <!-- end-user-doc -->
95 * @generated
96 */
97 private EClass alsTypeDeclarationEClass = null;
98
99 /**
100 * <!-- begin-user-doc -->
101 * <!-- end-user-doc -->
102 * @generated
103 */
104 private EClass alsEnumDeclarationEClass = null;
105
106 /**
107 * <!-- begin-user-doc -->
108 * <!-- end-user-doc -->
109 * @generated
110 */
111 private EClass alsEnumLiteralEClass = null;
112
113 /**
114 * <!-- begin-user-doc -->
115 * <!-- end-user-doc -->
116 * @generated
117 */
118 private EClass alsSignatureDeclarationEClass = null;
119
120 /**
121 * <!-- begin-user-doc -->
122 * <!-- end-user-doc -->
123 * @generated
124 */
125 private EClass alsSignatureBodyEClass = null;
126
127 /**
128 * <!-- begin-user-doc -->
129 * <!-- end-user-doc -->
130 * @generated
131 */
132 private EClass alsFieldDeclarationEClass = null;
133
134 /**
135 * <!-- begin-user-doc -->
136 * <!-- end-user-doc -->
137 * @generated
138 */
139 private EClass alsDefinitionEClass = null;
140
141 /**
142 * <!-- begin-user-doc -->
143 * <!-- end-user-doc -->
144 * @generated
145 */
146 private EClass alsFunctionDefinitionEClass = null;
147
148 /**
149 * <!-- begin-user-doc -->
150 * <!-- end-user-doc -->
151 * @generated
152 */
153 private EClass alsRelationDefinitionEClass = null;
154
155 /**
156 * <!-- begin-user-doc -->
157 * <!-- end-user-doc -->
158 * @generated
159 */
160 private EClass alsFactDeclarationEClass = null;
161
162 /**
163 * <!-- begin-user-doc -->
164 * <!-- end-user-doc -->
165 * @generated
166 */
167 private EClass alsTermEClass = null;
168
169 /**
170 * <!-- begin-user-doc -->
171 * <!-- end-user-doc -->
172 * @generated
173 */
174 private EClass alsVariableDeclarationEClass = null;
175
176 /**
177 * <!-- begin-user-doc -->
178 * <!-- end-user-doc -->
179 * @generated
180 */
181 private EClass alsRunCommandEClass = null;
182
183 /**
184 * <!-- begin-user-doc -->
185 * <!-- end-user-doc -->
186 * @generated
187 */
188 private EClass alsTypeScopeEClass = null;
189
190 /**
191 * <!-- begin-user-doc -->
192 * <!-- end-user-doc -->
193 * @generated
194 */
195 private EClass alsSigScopeEClass = null;
196
197 /**
198 * <!-- begin-user-doc -->
199 * <!-- end-user-doc -->
200 * @generated
201 */
202 private EClass alsIntScopeEClass = null;
203
204 /**
205 * <!-- begin-user-doc -->
206 * <!-- end-user-doc -->
207 * @generated
208 */
209 private EClass alsQuantifiedExEClass = null;
210
211 /**
212 * <!-- begin-user-doc -->
213 * <!-- end-user-doc -->
214 * @generated
215 */
216 private EClass alsOrEClass = null;
217
218 /**
219 * <!-- begin-user-doc -->
220 * <!-- end-user-doc -->
221 * @generated
222 */
223 private EClass alsIffEClass = null;
224
225 /**
226 * <!-- begin-user-doc -->
227 * <!-- end-user-doc -->
228 * @generated
229 */
230 private EClass alsImplEClass = null;
231
232 /**
233 * <!-- begin-user-doc -->
234 * <!-- end-user-doc -->
235 * @generated
236 */
237 private EClass alsAndEClass = null;
238
239 /**
240 * <!-- begin-user-doc -->
241 * <!-- end-user-doc -->
242 * @generated
243 */
244 private EClass alsEqualsEClass = null;
245
246 /**
247 * <!-- begin-user-doc -->
248 * <!-- end-user-doc -->
249 * @generated
250 */
251 private EClass alsNotEqualsEClass = null;
252
253 /**
254 * <!-- begin-user-doc -->
255 * <!-- end-user-doc -->
256 * @generated
257 */
258 private EClass alsSubsetEClass = null;
259
260 /**
261 * <!-- begin-user-doc -->
262 * <!-- end-user-doc -->
263 * @generated
264 */
265 private EClass alsLessEClass = null;
266
267 /**
268 * <!-- begin-user-doc -->
269 * <!-- end-user-doc -->
270 * @generated
271 */
272 private EClass alsLeqEClass = null;
273
274 /**
275 * <!-- begin-user-doc -->
276 * <!-- end-user-doc -->
277 * @generated
278 */
279 private EClass alsMoreEClass = null;
280
281 /**
282 * <!-- begin-user-doc -->
283 * <!-- end-user-doc -->
284 * @generated
285 */
286 private EClass alsMeqEClass = null;
287
288 /**
289 * <!-- begin-user-doc -->
290 * <!-- end-user-doc -->
291 * @generated
292 */
293 private EClass alsOverrideEClass = null;
294
295 /**
296 * <!-- begin-user-doc -->
297 * <!-- end-user-doc -->
298 * @generated
299 */
300 private EClass alsRangeRestrictionRightEClass = null;
301
302 /**
303 * <!-- begin-user-doc -->
304 * <!-- end-user-doc -->
305 * @generated
306 */
307 private EClass alsRangeRestrictionLeftEClass = null;
308
309 /**
310 * <!-- begin-user-doc -->
311 * <!-- end-user-doc -->
312 * @generated
313 */
314 private EClass alsJoinEClass = null;
315
316 /**
317 * <!-- begin-user-doc -->
318 * <!-- end-user-doc -->
319 * @generated
320 */
321 private EClass alsMinusEClass = null;
322
323 /**
324 * <!-- begin-user-doc -->
325 * <!-- end-user-doc -->
326 * @generated
327 */
328 private EClass alsPlusEClass = null;
329
330 /**
331 * <!-- begin-user-doc -->
332 * <!-- end-user-doc -->
333 * @generated
334 */
335 private EClass alsIntersectionEClass = null;
336
337 /**
338 * <!-- begin-user-doc -->
339 * <!-- end-user-doc -->
340 * @generated
341 */
342 private EClass alsDirectProductEClass = null;
343
344 /**
345 * <!-- begin-user-doc -->
346 * <!-- end-user-doc -->
347 * @generated
348 */
349 private EClass alsNotEClass = null;
350
351 /**
352 * <!-- begin-user-doc -->
353 * <!-- end-user-doc -->
354 * @generated
355 */
356 private EClass alsInverseRelationEClass = null;
357
358 /**
359 * <!-- begin-user-doc -->
360 * <!-- end-user-doc -->
361 * @generated
362 */
363 private EClass alSTransitiveClosureEClass = null;
364
365 /**
366 * <!-- begin-user-doc -->
367 * <!-- end-user-doc -->
368 * @generated
369 */
370 private EClass alsReflectiveTransitiveClosureEClass = null;
371
372 /**
373 * <!-- begin-user-doc -->
374 * <!-- end-user-doc -->
375 * @generated
376 */
377 private EClass alsCardinalityEClass = null;
378
379 /**
380 * <!-- begin-user-doc -->
381 * <!-- end-user-doc -->
382 * @generated
383 */
384 private EClass alsUnaryMinusEClass = null;
385
386 /**
387 * <!-- begin-user-doc -->
388 * <!-- end-user-doc -->
389 * @generated
390 */
391 private EClass alsSumEClass = null;
392
393 /**
394 * <!-- begin-user-doc -->
395 * <!-- end-user-doc -->
396 * @generated
397 */
398 private EClass alsFunctionCallEClass = null;
399
400 /**
401 * <!-- begin-user-doc -->
402 * <!-- end-user-doc -->
403 * @generated
404 */
405 private EClass alsNoneEClass = null;
406
407 /**
408 * <!-- begin-user-doc -->
409 * <!-- end-user-doc -->
410 * @generated
411 */
412 private EClass alsIdenEClass = null;
413
414 /**
415 * <!-- begin-user-doc -->
416 * <!-- end-user-doc -->
417 * @generated
418 */
419 private EClass alsUnivEClass = null;
420
421 /**
422 * <!-- begin-user-doc -->
423 * <!-- end-user-doc -->
424 * @generated
425 */
426 private EClass alsIntEClass = null;
427
428 /**
429 * <!-- begin-user-doc -->
430 * <!-- end-user-doc -->
431 * @generated
432 */
433 private EClass alsReferenceEClass = null;
434
435 /**
436 * <!-- begin-user-doc -->
437 * <!-- end-user-doc -->
438 * @generated
439 */
440 private EClass alsNumberLiteralEClass = null;
441
442 /**
443 * <!-- begin-user-doc -->
444 * <!-- end-user-doc -->
445 * @generated
446 */
447 private EEnum alsMultiplicityEEnum = null;
448
449 /**
450 * <!-- begin-user-doc -->
451 * <!-- end-user-doc -->
452 * @generated
453 */
454 private EEnum alsNumericOperatorEEnum = null;
455
456 /**
457 * Creates an instance of the model <b>Package</b>, registered with
458 * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
459 * package URI value.
460 * <p>Note: the correct way to create the package is via the static
461 * factory method {@link #init init()}, which also performs
462 * initialization of the package, or returns the registered package,
463 * if one already exists.
464 * <!-- begin-user-doc -->
465 * <!-- end-user-doc -->
466 * @see org.eclipse.emf.ecore.EPackage.Registry
467 * @see hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguagePackage#eNS_URI
468 * @see #init()
469 * @generated
470 */
471 private AlloyLanguagePackageImpl()
472 {
473 super(eNS_URI, AlloyLanguageFactory.eINSTANCE);
474 }
475
476 /**
477 * <!-- begin-user-doc -->
478 * <!-- end-user-doc -->
479 * @generated
480 */
481 private static boolean isInited = false;
482
483 /**
484 * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
485 *
486 * <p>This method is used to initialize {@link AlloyLanguagePackage#eINSTANCE} when that field is accessed.
487 * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
488 * <!-- begin-user-doc -->
489 * <!-- end-user-doc -->
490 * @see #eNS_URI
491 * @see #createPackageContents()
492 * @see #initializePackageContents()
493 * @generated
494 */
495 public static AlloyLanguagePackage init()
496 {
497 if (isInited) return (AlloyLanguagePackage)EPackage.Registry.INSTANCE.getEPackage(AlloyLanguagePackage.eNS_URI);
498
499 // Obtain or create and register package
500 AlloyLanguagePackageImpl theAlloyLanguagePackage = (AlloyLanguagePackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof AlloyLanguagePackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new AlloyLanguagePackageImpl());
501
502 isInited = true;
503
504 // Create package meta-data objects
505 theAlloyLanguagePackage.createPackageContents();
506
507 // Initialize created meta-data
508 theAlloyLanguagePackage.initializePackageContents();
509
510 // Mark meta-data to indicate it can't be changed
511 theAlloyLanguagePackage.freeze();
512
513
514 // Update the registry and return the package
515 EPackage.Registry.INSTANCE.put(AlloyLanguagePackage.eNS_URI, theAlloyLanguagePackage);
516 return theAlloyLanguagePackage;
517 }
518
519 /**
520 * <!-- begin-user-doc -->
521 * <!-- end-user-doc -->
522 * @generated
523 */
524 public EClass getALSDocument()
525 {
526 return alsDocumentEClass;
527 }
528
529 /**
530 * <!-- begin-user-doc -->
531 * <!-- end-user-doc -->
532 * @generated
533 */
534 public EReference getALSDocument_EnumDeclarations()
535 {
536 return (EReference)alsDocumentEClass.getEStructuralFeatures().get(0);
537 }
538
539 /**
540 * <!-- begin-user-doc -->
541 * <!-- end-user-doc -->
542 * @generated
543 */
544 public EReference getALSDocument_SignatureBodies()
545 {
546 return (EReference)alsDocumentEClass.getEStructuralFeatures().get(1);
547 }
548
549 /**
550 * <!-- begin-user-doc -->
551 * <!-- end-user-doc -->
552 * @generated
553 */
554 public EReference getALSDocument_FunctionDefinitions()
555 {
556 return (EReference)alsDocumentEClass.getEStructuralFeatures().get(2);
557 }
558
559 /**
560 * <!-- begin-user-doc -->
561 * <!-- end-user-doc -->
562 * @generated
563 */
564 public EReference getALSDocument_RelationDefinitions()
565 {
566 return (EReference)alsDocumentEClass.getEStructuralFeatures().get(3);
567 }
568
569 /**
570 * <!-- begin-user-doc -->
571 * <!-- end-user-doc -->
572 * @generated
573 */
574 public EReference getALSDocument_FactDeclarations()
575 {
576 return (EReference)alsDocumentEClass.getEStructuralFeatures().get(4);
577 }
578
579 /**
580 * <!-- begin-user-doc -->
581 * <!-- end-user-doc -->
582 * @generated
583 */
584 public EReference getALSDocument_RunCommand()
585 {
586 return (EReference)alsDocumentEClass.getEStructuralFeatures().get(5);
587 }
588
589 /**
590 * <!-- begin-user-doc -->
591 * <!-- end-user-doc -->
592 * @generated
593 */
594 public EClass getALSRelationDeclaration()
595 {
596 return alsRelationDeclarationEClass;
597 }
598
599 /**
600 * <!-- begin-user-doc -->
601 * <!-- end-user-doc -->
602 * @generated
603 */
604 public EAttribute getALSRelationDeclaration_Name()
605 {
606 return (EAttribute)alsRelationDeclarationEClass.getEStructuralFeatures().get(0);
607 }
608
609 /**
610 * <!-- begin-user-doc -->
611 * <!-- end-user-doc -->
612 * @generated
613 */
614 public EClass getALSTypeDeclaration()
615 {
616 return alsTypeDeclarationEClass;
617 }
618
619 /**
620 * <!-- begin-user-doc -->
621 * <!-- end-user-doc -->
622 * @generated
623 */
624 public EClass getALSEnumDeclaration()
625 {
626 return alsEnumDeclarationEClass;
627 }
628
629 /**
630 * <!-- begin-user-doc -->
631 * <!-- end-user-doc -->
632 * @generated
633 */
634 public EReference getALSEnumDeclaration_Literal()
635 {
636 return (EReference)alsEnumDeclarationEClass.getEStructuralFeatures().get(0);
637 }
638
639 /**
640 * <!-- begin-user-doc -->
641 * <!-- end-user-doc -->
642 * @generated
643 */
644 public EClass getALSEnumLiteral()
645 {
646 return alsEnumLiteralEClass;
647 }
648
649 /**
650 * <!-- begin-user-doc -->
651 * <!-- end-user-doc -->
652 * @generated
653 */
654 public EClass getALSSignatureDeclaration()
655 {
656 return alsSignatureDeclarationEClass;
657 }
658
659 /**
660 * <!-- begin-user-doc -->
661 * <!-- end-user-doc -->
662 * @generated
663 */
664 public EClass getALSSignatureBody()
665 {
666 return alsSignatureBodyEClass;
667 }
668
669 /**
670 * <!-- begin-user-doc -->
671 * <!-- end-user-doc -->
672 * @generated
673 */
674 public EAttribute getALSSignatureBody_Multiplicity()
675 {
676 return (EAttribute)alsSignatureBodyEClass.getEStructuralFeatures().get(0);
677 }
678
679 /**
680 * <!-- begin-user-doc -->
681 * <!-- end-user-doc -->
682 * @generated
683 */
684 public EAttribute getALSSignatureBody_Abstract()
685 {
686 return (EAttribute)alsSignatureBodyEClass.getEStructuralFeatures().get(1);
687 }
688
689 /**
690 * <!-- begin-user-doc -->
691 * <!-- end-user-doc -->
692 * @generated
693 */
694 public EReference getALSSignatureBody_Declarations()
695 {
696 return (EReference)alsSignatureBodyEClass.getEStructuralFeatures().get(2);
697 }
698
699 /**
700 * <!-- begin-user-doc -->
701 * <!-- end-user-doc -->
702 * @generated
703 */
704 public EReference getALSSignatureBody_Supertype()
705 {
706 return (EReference)alsSignatureBodyEClass.getEStructuralFeatures().get(3);
707 }
708
709 /**
710 * <!-- begin-user-doc -->
711 * <!-- end-user-doc -->
712 * @generated
713 */
714 public EReference getALSSignatureBody_Superset()
715 {
716 return (EReference)alsSignatureBodyEClass.getEStructuralFeatures().get(4);
717 }
718
719 /**
720 * <!-- begin-user-doc -->
721 * <!-- end-user-doc -->
722 * @generated
723 */
724 public EReference getALSSignatureBody_Fields()
725 {
726 return (EReference)alsSignatureBodyEClass.getEStructuralFeatures().get(5);
727 }
728
729 /**
730 * <!-- begin-user-doc -->
731 * <!-- end-user-doc -->
732 * @generated
733 */
734 public EClass getALSFieldDeclaration()
735 {
736 return alsFieldDeclarationEClass;
737 }
738
739 /**
740 * <!-- begin-user-doc -->
741 * <!-- end-user-doc -->
742 * @generated
743 */
744 public EAttribute getALSFieldDeclaration_Multiplicity()
745 {
746 return (EAttribute)alsFieldDeclarationEClass.getEStructuralFeatures().get(0);
747 }
748
749 /**
750 * <!-- begin-user-doc -->
751 * <!-- end-user-doc -->
752 * @generated
753 */
754 public EReference getALSFieldDeclaration_Type()
755 {
756 return (EReference)alsFieldDeclarationEClass.getEStructuralFeatures().get(1);
757 }
758
759 /**
760 * <!-- begin-user-doc -->
761 * <!-- end-user-doc -->
762 * @generated
763 */
764 public EClass getALSDefinition()
765 {
766 return alsDefinitionEClass;
767 }
768
769 /**
770 * <!-- begin-user-doc -->
771 * <!-- end-user-doc -->
772 * @generated
773 */
774 public EAttribute getALSDefinition_Name()
775 {
776 return (EAttribute)alsDefinitionEClass.getEStructuralFeatures().get(0);
777 }
778
779 /**
780 * <!-- begin-user-doc -->
781 * <!-- end-user-doc -->
782 * @generated
783 */
784 public EReference getALSDefinition_Variables()
785 {
786 return (EReference)alsDefinitionEClass.getEStructuralFeatures().get(1);
787 }
788
789 /**
790 * <!-- begin-user-doc -->
791 * <!-- end-user-doc -->
792 * @generated
793 */
794 public EReference getALSDefinition_Value()
795 {
796 return (EReference)alsDefinitionEClass.getEStructuralFeatures().get(2);
797 }
798
799 /**
800 * <!-- begin-user-doc -->
801 * <!-- end-user-doc -->
802 * @generated
803 */
804 public EClass getALSFunctionDefinition()
805 {
806 return alsFunctionDefinitionEClass;
807 }
808
809 /**
810 * <!-- begin-user-doc -->
811 * <!-- end-user-doc -->
812 * @generated
813 */
814 public EReference getALSFunctionDefinition_Type()
815 {
816 return (EReference)alsFunctionDefinitionEClass.getEStructuralFeatures().get(0);
817 }
818
819 /**
820 * <!-- begin-user-doc -->
821 * <!-- end-user-doc -->
822 * @generated
823 */
824 public EClass getALSRelationDefinition()
825 {
826 return alsRelationDefinitionEClass;
827 }
828
829 /**
830 * <!-- begin-user-doc -->
831 * <!-- end-user-doc -->
832 * @generated
833 */
834 public EClass getALSFactDeclaration()
835 {
836 return alsFactDeclarationEClass;
837 }
838
839 /**
840 * <!-- begin-user-doc -->
841 * <!-- end-user-doc -->
842 * @generated
843 */
844 public EAttribute getALSFactDeclaration_Name()
845 {
846 return (EAttribute)alsFactDeclarationEClass.getEStructuralFeatures().get(0);
847 }
848
849 /**
850 * <!-- begin-user-doc -->
851 * <!-- end-user-doc -->
852 * @generated
853 */
854 public EReference getALSFactDeclaration_Term()
855 {
856 return (EReference)alsFactDeclarationEClass.getEStructuralFeatures().get(1);
857 }
858
859 /**
860 * <!-- begin-user-doc -->
861 * <!-- end-user-doc -->
862 * @generated
863 */
864 public EClass getALSTerm()
865 {
866 return alsTermEClass;
867 }
868
869 /**
870 * <!-- begin-user-doc -->
871 * <!-- end-user-doc -->
872 * @generated
873 */
874 public EClass getALSVariableDeclaration()
875 {
876 return alsVariableDeclarationEClass;
877 }
878
879 /**
880 * <!-- begin-user-doc -->
881 * <!-- end-user-doc -->
882 * @generated
883 */
884 public EReference getALSVariableDeclaration_Range()
885 {
886 return (EReference)alsVariableDeclarationEClass.getEStructuralFeatures().get(0);
887 }
888
889 /**
890 * <!-- begin-user-doc -->
891 * <!-- end-user-doc -->
892 * @generated
893 */
894 public EClass getALSRunCommand()
895 {
896 return alsRunCommandEClass;
897 }
898
899 /**
900 * <!-- begin-user-doc -->
901 * <!-- end-user-doc -->
902 * @generated
903 */
904 public EReference getALSRunCommand_TypeScopes()
905 {
906 return (EReference)alsRunCommandEClass.getEStructuralFeatures().get(0);
907 }
908
909 /**
910 * <!-- begin-user-doc -->
911 * <!-- end-user-doc -->
912 * @generated
913 */
914 public EClass getALSTypeScope()
915 {
916 return alsTypeScopeEClass;
917 }
918
919 /**
920 * <!-- begin-user-doc -->
921 * <!-- end-user-doc -->
922 * @generated
923 */
924 public EAttribute getALSTypeScope_Number()
925 {
926 return (EAttribute)alsTypeScopeEClass.getEStructuralFeatures().get(0);
927 }
928
929 /**
930 * <!-- begin-user-doc -->
931 * <!-- end-user-doc -->
932 * @generated
933 */
934 public EClass getALSSigScope()
935 {
936 return alsSigScopeEClass;
937 }
938
939 /**
940 * <!-- begin-user-doc -->
941 * <!-- end-user-doc -->
942 * @generated
943 */
944 public EAttribute getALSSigScope_Exactly()
945 {
946 return (EAttribute)alsSigScopeEClass.getEStructuralFeatures().get(0);
947 }
948
949 /**
950 * <!-- begin-user-doc -->
951 * <!-- end-user-doc -->
952 * @generated
953 */
954 public EReference getALSSigScope_Type()
955 {
956 return (EReference)alsSigScopeEClass.getEStructuralFeatures().get(1);
957 }
958
959 /**
960 * <!-- begin-user-doc -->
961 * <!-- end-user-doc -->
962 * @generated
963 */
964 public EClass getALSIntScope()
965 {
966 return alsIntScopeEClass;
967 }
968
969 /**
970 * <!-- begin-user-doc -->
971 * <!-- end-user-doc -->
972 * @generated
973 */
974 public EClass getALSQuantifiedEx()
975 {
976 return alsQuantifiedExEClass;
977 }
978
979 /**
980 * <!-- begin-user-doc -->
981 * <!-- end-user-doc -->
982 * @generated
983 */
984 public EAttribute getALSQuantifiedEx_Type()
985 {
986 return (EAttribute)alsQuantifiedExEClass.getEStructuralFeatures().get(0);
987 }
988
989 /**
990 * <!-- begin-user-doc -->
991 * <!-- end-user-doc -->
992 * @generated
993 */
994 public EAttribute getALSQuantifiedEx_Disj()
995 {
996 return (EAttribute)alsQuantifiedExEClass.getEStructuralFeatures().get(1);
997 }
998
999 /**
1000 * <!-- begin-user-doc -->
1001 * <!-- end-user-doc -->
1002 * @generated
1003 */
1004 public EReference getALSQuantifiedEx_Variables()
1005 {
1006 return (EReference)alsQuantifiedExEClass.getEStructuralFeatures().get(2);
1007 }
1008
1009 /**
1010 * <!-- begin-user-doc -->
1011 * <!-- end-user-doc -->
1012 * @generated
1013 */
1014 public EReference getALSQuantifiedEx_Expression()
1015 {
1016 return (EReference)alsQuantifiedExEClass.getEStructuralFeatures().get(3);
1017 }
1018
1019 /**
1020 * <!-- begin-user-doc -->
1021 * <!-- end-user-doc -->
1022 * @generated
1023 */
1024 public EClass getALSOr()
1025 {
1026 return alsOrEClass;
1027 }
1028
1029 /**
1030 * <!-- begin-user-doc -->
1031 * <!-- end-user-doc -->
1032 * @generated
1033 */
1034 public EReference getALSOr_LeftOperand()
1035 {
1036 return (EReference)alsOrEClass.getEStructuralFeatures().get(0);
1037 }
1038
1039 /**
1040 * <!-- begin-user-doc -->
1041 * <!-- end-user-doc -->
1042 * @generated
1043 */
1044 public EReference getALSOr_RightOperand()
1045 {
1046 return (EReference)alsOrEClass.getEStructuralFeatures().get(1);
1047 }
1048
1049 /**
1050 * <!-- begin-user-doc -->
1051 * <!-- end-user-doc -->
1052 * @generated
1053 */
1054 public EClass getALSIff()
1055 {
1056 return alsIffEClass;
1057 }
1058
1059 /**
1060 * <!-- begin-user-doc -->
1061 * <!-- end-user-doc -->
1062 * @generated
1063 */
1064 public EReference getALSIff_LeftOperand()
1065 {
1066 return (EReference)alsIffEClass.getEStructuralFeatures().get(0);
1067 }
1068
1069 /**
1070 * <!-- begin-user-doc -->
1071 * <!-- end-user-doc -->
1072 * @generated
1073 */
1074 public EReference getALSIff_RightOperand()
1075 {
1076 return (EReference)alsIffEClass.getEStructuralFeatures().get(1);
1077 }
1078
1079 /**
1080 * <!-- begin-user-doc -->
1081 * <!-- end-user-doc -->
1082 * @generated
1083 */
1084 public EClass getALSImpl()
1085 {
1086 return alsImplEClass;
1087 }
1088
1089 /**
1090 * <!-- begin-user-doc -->
1091 * <!-- end-user-doc -->
1092 * @generated
1093 */
1094 public EReference getALSImpl_LeftOperand()
1095 {
1096 return (EReference)alsImplEClass.getEStructuralFeatures().get(0);
1097 }
1098
1099 /**
1100 * <!-- begin-user-doc -->
1101 * <!-- end-user-doc -->
1102 * @generated
1103 */
1104 public EReference getALSImpl_RightOperand()
1105 {
1106 return (EReference)alsImplEClass.getEStructuralFeatures().get(1);
1107 }
1108
1109 /**
1110 * <!-- begin-user-doc -->
1111 * <!-- end-user-doc -->
1112 * @generated
1113 */
1114 public EReference getALSImpl_ElseOperand()
1115 {
1116 return (EReference)alsImplEClass.getEStructuralFeatures().get(2);
1117 }
1118
1119 /**
1120 * <!-- begin-user-doc -->
1121 * <!-- end-user-doc -->
1122 * @generated
1123 */
1124 public EClass getALSAnd()
1125 {
1126 return alsAndEClass;
1127 }
1128
1129 /**
1130 * <!-- begin-user-doc -->
1131 * <!-- end-user-doc -->
1132 * @generated
1133 */
1134 public EReference getALSAnd_LeftOperand()
1135 {
1136 return (EReference)alsAndEClass.getEStructuralFeatures().get(0);
1137 }
1138
1139 /**
1140 * <!-- begin-user-doc -->
1141 * <!-- end-user-doc -->
1142 * @generated
1143 */
1144 public EReference getALSAnd_RightOperand()
1145 {
1146 return (EReference)alsAndEClass.getEStructuralFeatures().get(1);
1147 }
1148
1149 /**
1150 * <!-- begin-user-doc -->
1151 * <!-- end-user-doc -->
1152 * @generated
1153 */
1154 public EClass getALSEquals()
1155 {
1156 return alsEqualsEClass;
1157 }
1158
1159 /**
1160 * <!-- begin-user-doc -->
1161 * <!-- end-user-doc -->
1162 * @generated
1163 */
1164 public EReference getALSEquals_LeftOperand()
1165 {
1166 return (EReference)alsEqualsEClass.getEStructuralFeatures().get(0);
1167 }
1168
1169 /**
1170 * <!-- begin-user-doc -->
1171 * <!-- end-user-doc -->
1172 * @generated
1173 */
1174 public EReference getALSEquals_RightOperand()
1175 {
1176 return (EReference)alsEqualsEClass.getEStructuralFeatures().get(1);
1177 }
1178
1179 /**
1180 * <!-- begin-user-doc -->
1181 * <!-- end-user-doc -->
1182 * @generated
1183 */
1184 public EClass getALSNotEquals()
1185 {
1186 return alsNotEqualsEClass;
1187 }
1188
1189 /**
1190 * <!-- begin-user-doc -->
1191 * <!-- end-user-doc -->
1192 * @generated
1193 */
1194 public EReference getALSNotEquals_LeftOperand()
1195 {
1196 return (EReference)alsNotEqualsEClass.getEStructuralFeatures().get(0);
1197 }
1198
1199 /**
1200 * <!-- begin-user-doc -->
1201 * <!-- end-user-doc -->
1202 * @generated
1203 */
1204 public EReference getALSNotEquals_RightOperand()
1205 {
1206 return (EReference)alsNotEqualsEClass.getEStructuralFeatures().get(1);
1207 }
1208
1209 /**
1210 * <!-- begin-user-doc -->
1211 * <!-- end-user-doc -->
1212 * @generated
1213 */
1214 public EClass getALSSubset()
1215 {
1216 return alsSubsetEClass;
1217 }
1218
1219 /**
1220 * <!-- begin-user-doc -->
1221 * <!-- end-user-doc -->
1222 * @generated
1223 */
1224 public EReference getALSSubset_LeftOperand()
1225 {
1226 return (EReference)alsSubsetEClass.getEStructuralFeatures().get(0);
1227 }
1228
1229 /**
1230 * <!-- begin-user-doc -->
1231 * <!-- end-user-doc -->
1232 * @generated
1233 */
1234 public EReference getALSSubset_RightOperand()
1235 {
1236 return (EReference)alsSubsetEClass.getEStructuralFeatures().get(1);
1237 }
1238
1239 /**
1240 * <!-- begin-user-doc -->
1241 * <!-- end-user-doc -->
1242 * @generated
1243 */
1244 public EClass getALSLess()
1245 {
1246 return alsLessEClass;
1247 }
1248
1249 /**
1250 * <!-- begin-user-doc -->
1251 * <!-- end-user-doc -->
1252 * @generated
1253 */
1254 public EReference getALSLess_LeftOperand()
1255 {
1256 return (EReference)alsLessEClass.getEStructuralFeatures().get(0);
1257 }
1258
1259 /**
1260 * <!-- begin-user-doc -->
1261 * <!-- end-user-doc -->
1262 * @generated
1263 */
1264 public EReference getALSLess_RightOperand()
1265 {
1266 return (EReference)alsLessEClass.getEStructuralFeatures().get(1);
1267 }
1268
1269 /**
1270 * <!-- begin-user-doc -->
1271 * <!-- end-user-doc -->
1272 * @generated
1273 */
1274 public EClass getALSLeq()
1275 {
1276 return alsLeqEClass;
1277 }
1278
1279 /**
1280 * <!-- begin-user-doc -->
1281 * <!-- end-user-doc -->
1282 * @generated
1283 */
1284 public EReference getALSLeq_LeftOperand()
1285 {
1286 return (EReference)alsLeqEClass.getEStructuralFeatures().get(0);
1287 }
1288
1289 /**
1290 * <!-- begin-user-doc -->
1291 * <!-- end-user-doc -->
1292 * @generated
1293 */
1294 public EReference getALSLeq_RightOperand()
1295 {
1296 return (EReference)alsLeqEClass.getEStructuralFeatures().get(1);
1297 }
1298
1299 /**
1300 * <!-- begin-user-doc -->
1301 * <!-- end-user-doc -->
1302 * @generated
1303 */
1304 public EClass getALSMore()
1305 {
1306 return alsMoreEClass;
1307 }
1308
1309 /**
1310 * <!-- begin-user-doc -->
1311 * <!-- end-user-doc -->
1312 * @generated
1313 */
1314 public EReference getALSMore_LeftOperand()
1315 {
1316 return (EReference)alsMoreEClass.getEStructuralFeatures().get(0);
1317 }
1318
1319 /**
1320 * <!-- begin-user-doc -->
1321 * <!-- end-user-doc -->
1322 * @generated
1323 */
1324 public EReference getALSMore_RightOperand()
1325 {
1326 return (EReference)alsMoreEClass.getEStructuralFeatures().get(1);
1327 }
1328
1329 /**
1330 * <!-- begin-user-doc -->
1331 * <!-- end-user-doc -->
1332 * @generated
1333 */
1334 public EClass getALSMeq()
1335 {
1336 return alsMeqEClass;
1337 }
1338
1339 /**
1340 * <!-- begin-user-doc -->
1341 * <!-- end-user-doc -->
1342 * @generated
1343 */
1344 public EReference getALSMeq_LeftOperand()
1345 {
1346 return (EReference)alsMeqEClass.getEStructuralFeatures().get(0);
1347 }
1348
1349 /**
1350 * <!-- begin-user-doc -->
1351 * <!-- end-user-doc -->
1352 * @generated
1353 */
1354 public EReference getALSMeq_RightOperand()
1355 {
1356 return (EReference)alsMeqEClass.getEStructuralFeatures().get(1);
1357 }
1358
1359 /**
1360 * <!-- begin-user-doc -->
1361 * <!-- end-user-doc -->
1362 * @generated
1363 */
1364 public EClass getALSOverride()
1365 {
1366 return alsOverrideEClass;
1367 }
1368
1369 /**
1370 * <!-- begin-user-doc -->
1371 * <!-- end-user-doc -->
1372 * @generated
1373 */
1374 public EReference getALSOverride_LeftOperand()
1375 {
1376 return (EReference)alsOverrideEClass.getEStructuralFeatures().get(0);
1377 }
1378
1379 /**
1380 * <!-- begin-user-doc -->
1381 * <!-- end-user-doc -->
1382 * @generated
1383 */
1384 public EReference getALSOverride_RightOperand()
1385 {
1386 return (EReference)alsOverrideEClass.getEStructuralFeatures().get(1);
1387 }
1388
1389 /**
1390 * <!-- begin-user-doc -->
1391 * <!-- end-user-doc -->
1392 * @generated
1393 */
1394 public EClass getALSRangeRestrictionRight()
1395 {
1396 return alsRangeRestrictionRightEClass;
1397 }
1398
1399 /**
1400 * <!-- begin-user-doc -->
1401 * <!-- end-user-doc -->
1402 * @generated
1403 */
1404 public EReference getALSRangeRestrictionRight_Relation()
1405 {
1406 return (EReference)alsRangeRestrictionRightEClass.getEStructuralFeatures().get(0);
1407 }
1408
1409 /**
1410 * <!-- begin-user-doc -->
1411 * <!-- end-user-doc -->
1412 * @generated
1413 */
1414 public EReference getALSRangeRestrictionRight_Filter()
1415 {
1416 return (EReference)alsRangeRestrictionRightEClass.getEStructuralFeatures().get(1);
1417 }
1418
1419 /**
1420 * <!-- begin-user-doc -->
1421 * <!-- end-user-doc -->
1422 * @generated
1423 */
1424 public EClass getALSRangeRestrictionLeft()
1425 {
1426 return alsRangeRestrictionLeftEClass;
1427 }
1428
1429 /**
1430 * <!-- begin-user-doc -->
1431 * <!-- end-user-doc -->
1432 * @generated
1433 */
1434 public EReference getALSRangeRestrictionLeft_Filter()
1435 {
1436 return (EReference)alsRangeRestrictionLeftEClass.getEStructuralFeatures().get(0);
1437 }
1438
1439 /**
1440 * <!-- begin-user-doc -->
1441 * <!-- end-user-doc -->
1442 * @generated
1443 */
1444 public EReference getALSRangeRestrictionLeft_Relation()
1445 {
1446 return (EReference)alsRangeRestrictionLeftEClass.getEStructuralFeatures().get(1);
1447 }
1448
1449 /**
1450 * <!-- begin-user-doc -->
1451 * <!-- end-user-doc -->
1452 * @generated
1453 */
1454 public EClass getALSJoin()
1455 {
1456 return alsJoinEClass;
1457 }
1458
1459 /**
1460 * <!-- begin-user-doc -->
1461 * <!-- end-user-doc -->
1462 * @generated
1463 */
1464 public EReference getALSJoin_LeftOperand()
1465 {
1466 return (EReference)alsJoinEClass.getEStructuralFeatures().get(0);
1467 }
1468
1469 /**
1470 * <!-- begin-user-doc -->
1471 * <!-- end-user-doc -->
1472 * @generated
1473 */
1474 public EReference getALSJoin_RightOperand()
1475 {
1476 return (EReference)alsJoinEClass.getEStructuralFeatures().get(1);
1477 }
1478
1479 /**
1480 * <!-- begin-user-doc -->
1481 * <!-- end-user-doc -->
1482 * @generated
1483 */
1484 public EClass getALSMinus()
1485 {
1486 return alsMinusEClass;
1487 }
1488
1489 /**
1490 * <!-- begin-user-doc -->
1491 * <!-- end-user-doc -->
1492 * @generated
1493 */
1494 public EReference getALSMinus_LeftOperand()
1495 {
1496 return (EReference)alsMinusEClass.getEStructuralFeatures().get(0);
1497 }
1498
1499 /**
1500 * <!-- begin-user-doc -->
1501 * <!-- end-user-doc -->
1502 * @generated
1503 */
1504 public EReference getALSMinus_RightOperand()
1505 {
1506 return (EReference)alsMinusEClass.getEStructuralFeatures().get(1);
1507 }
1508
1509 /**
1510 * <!-- begin-user-doc -->
1511 * <!-- end-user-doc -->
1512 * @generated
1513 */
1514 public EClass getALSPlus()
1515 {
1516 return alsPlusEClass;
1517 }
1518
1519 /**
1520 * <!-- begin-user-doc -->
1521 * <!-- end-user-doc -->
1522 * @generated
1523 */
1524 public EReference getALSPlus_LeftOperand()
1525 {
1526 return (EReference)alsPlusEClass.getEStructuralFeatures().get(0);
1527 }
1528
1529 /**
1530 * <!-- begin-user-doc -->
1531 * <!-- end-user-doc -->
1532 * @generated
1533 */
1534 public EReference getALSPlus_RightOperand()
1535 {
1536 return (EReference)alsPlusEClass.getEStructuralFeatures().get(1);
1537 }
1538
1539 /**
1540 * <!-- begin-user-doc -->
1541 * <!-- end-user-doc -->
1542 * @generated
1543 */
1544 public EClass getALSIntersection()
1545 {
1546 return alsIntersectionEClass;
1547 }
1548
1549 /**
1550 * <!-- begin-user-doc -->
1551 * <!-- end-user-doc -->
1552 * @generated
1553 */
1554 public EReference getALSIntersection_LeftOperand()
1555 {
1556 return (EReference)alsIntersectionEClass.getEStructuralFeatures().get(0);
1557 }
1558
1559 /**
1560 * <!-- begin-user-doc -->
1561 * <!-- end-user-doc -->
1562 * @generated
1563 */
1564 public EReference getALSIntersection_RightOperand()
1565 {
1566 return (EReference)alsIntersectionEClass.getEStructuralFeatures().get(1);
1567 }
1568
1569 /**
1570 * <!-- begin-user-doc -->
1571 * <!-- end-user-doc -->
1572 * @generated
1573 */
1574 public EClass getALSDirectProduct()
1575 {
1576 return alsDirectProductEClass;
1577 }
1578
1579 /**
1580 * <!-- begin-user-doc -->
1581 * <!-- end-user-doc -->
1582 * @generated
1583 */
1584 public EReference getALSDirectProduct_LeftOperand()
1585 {
1586 return (EReference)alsDirectProductEClass.getEStructuralFeatures().get(0);
1587 }
1588
1589 /**
1590 * <!-- begin-user-doc -->
1591 * <!-- end-user-doc -->
1592 * @generated
1593 */
1594 public EAttribute getALSDirectProduct_LeftMultiplicit()
1595 {
1596 return (EAttribute)alsDirectProductEClass.getEStructuralFeatures().get(1);
1597 }
1598
1599 /**
1600 * <!-- begin-user-doc -->
1601 * <!-- end-user-doc -->
1602 * @generated
1603 */
1604 public EAttribute getALSDirectProduct_RightMultiplicit()
1605 {
1606 return (EAttribute)alsDirectProductEClass.getEStructuralFeatures().get(2);
1607 }
1608
1609 /**
1610 * <!-- begin-user-doc -->
1611 * <!-- end-user-doc -->
1612 * @generated
1613 */
1614 public EReference getALSDirectProduct_RightOperand()
1615 {
1616 return (EReference)alsDirectProductEClass.getEStructuralFeatures().get(3);
1617 }
1618
1619 /**
1620 * <!-- begin-user-doc -->
1621 * <!-- end-user-doc -->
1622 * @generated
1623 */
1624 public EClass getALSNot()
1625 {
1626 return alsNotEClass;
1627 }
1628
1629 /**
1630 * <!-- begin-user-doc -->
1631 * <!-- end-user-doc -->
1632 * @generated
1633 */
1634 public EReference getALSNot_Operand()
1635 {
1636 return (EReference)alsNotEClass.getEStructuralFeatures().get(0);
1637 }
1638
1639 /**
1640 * <!-- begin-user-doc -->
1641 * <!-- end-user-doc -->
1642 * @generated
1643 */
1644 public EClass getALSInverseRelation()
1645 {
1646 return alsInverseRelationEClass;
1647 }
1648
1649 /**
1650 * <!-- begin-user-doc -->
1651 * <!-- end-user-doc -->
1652 * @generated
1653 */
1654 public EReference getALSInverseRelation_Operand()
1655 {
1656 return (EReference)alsInverseRelationEClass.getEStructuralFeatures().get(0);
1657 }
1658
1659 /**
1660 * <!-- begin-user-doc -->
1661 * <!-- end-user-doc -->
1662 * @generated
1663 */
1664 public EClass getAlSTransitiveClosure()
1665 {
1666 return alSTransitiveClosureEClass;
1667 }
1668
1669 /**
1670 * <!-- begin-user-doc -->
1671 * <!-- end-user-doc -->
1672 * @generated
1673 */
1674 public EReference getAlSTransitiveClosure_Operand()
1675 {
1676 return (EReference)alSTransitiveClosureEClass.getEStructuralFeatures().get(0);
1677 }
1678
1679 /**
1680 * <!-- begin-user-doc -->
1681 * <!-- end-user-doc -->
1682 * @generated
1683 */
1684 public EClass getALSReflectiveTransitiveClosure()
1685 {
1686 return alsReflectiveTransitiveClosureEClass;
1687 }
1688
1689 /**
1690 * <!-- begin-user-doc -->
1691 * <!-- end-user-doc -->
1692 * @generated
1693 */
1694 public EReference getALSReflectiveTransitiveClosure_Operand()
1695 {
1696 return (EReference)alsReflectiveTransitiveClosureEClass.getEStructuralFeatures().get(0);
1697 }
1698
1699 /**
1700 * <!-- begin-user-doc -->
1701 * <!-- end-user-doc -->
1702 * @generated
1703 */
1704 public EClass getALSCardinality()
1705 {
1706 return alsCardinalityEClass;
1707 }
1708
1709 /**
1710 * <!-- begin-user-doc -->
1711 * <!-- end-user-doc -->
1712 * @generated
1713 */
1714 public EReference getALSCardinality_Operand()
1715 {
1716 return (EReference)alsCardinalityEClass.getEStructuralFeatures().get(0);
1717 }
1718
1719 /**
1720 * <!-- begin-user-doc -->
1721 * <!-- end-user-doc -->
1722 * @generated
1723 */
1724 public EClass getALSUnaryMinus()
1725 {
1726 return alsUnaryMinusEClass;
1727 }
1728
1729 /**
1730 * <!-- begin-user-doc -->
1731 * <!-- end-user-doc -->
1732 * @generated
1733 */
1734 public EReference getALSUnaryMinus_Operand()
1735 {
1736 return (EReference)alsUnaryMinusEClass.getEStructuralFeatures().get(0);
1737 }
1738
1739 /**
1740 * <!-- begin-user-doc -->
1741 * <!-- end-user-doc -->
1742 * @generated
1743 */
1744 public EClass getALSSum()
1745 {
1746 return alsSumEClass;
1747 }
1748
1749 /**
1750 * <!-- begin-user-doc -->
1751 * <!-- end-user-doc -->
1752 * @generated
1753 */
1754 public EReference getALSSum_Variables()
1755 {
1756 return (EReference)alsSumEClass.getEStructuralFeatures().get(0);
1757 }
1758
1759 /**
1760 * <!-- begin-user-doc -->
1761 * <!-- end-user-doc -->
1762 * @generated
1763 */
1764 public EReference getALSSum_Expression()
1765 {
1766 return (EReference)alsSumEClass.getEStructuralFeatures().get(1);
1767 }
1768
1769 /**
1770 * <!-- begin-user-doc -->
1771 * <!-- end-user-doc -->
1772 * @generated
1773 */
1774 public EClass getALSFunctionCall()
1775 {
1776 return alsFunctionCallEClass;
1777 }
1778
1779 /**
1780 * <!-- begin-user-doc -->
1781 * <!-- end-user-doc -->
1782 * @generated
1783 */
1784 public EReference getALSFunctionCall_ReferredDefinition()
1785 {
1786 return (EReference)alsFunctionCallEClass.getEStructuralFeatures().get(0);
1787 }
1788
1789 /**
1790 * <!-- begin-user-doc -->
1791 * <!-- end-user-doc -->
1792 * @generated
1793 */
1794 public EAttribute getALSFunctionCall_ReferredNumericOperator()
1795 {
1796 return (EAttribute)alsFunctionCallEClass.getEStructuralFeatures().get(1);
1797 }
1798
1799 /**
1800 * <!-- begin-user-doc -->
1801 * <!-- end-user-doc -->
1802 * @generated
1803 */
1804 public EReference getALSFunctionCall_Params()
1805 {
1806 return (EReference)alsFunctionCallEClass.getEStructuralFeatures().get(2);
1807 }
1808
1809 /**
1810 * <!-- begin-user-doc -->
1811 * <!-- end-user-doc -->
1812 * @generated
1813 */
1814 public EClass getALSNone()
1815 {
1816 return alsNoneEClass;
1817 }
1818
1819 /**
1820 * <!-- begin-user-doc -->
1821 * <!-- end-user-doc -->
1822 * @generated
1823 */
1824 public EClass getALSIden()
1825 {
1826 return alsIdenEClass;
1827 }
1828
1829 /**
1830 * <!-- begin-user-doc -->
1831 * <!-- end-user-doc -->
1832 * @generated
1833 */
1834 public EClass getALSUniv()
1835 {
1836 return alsUnivEClass;
1837 }
1838
1839 /**
1840 * <!-- begin-user-doc -->
1841 * <!-- end-user-doc -->
1842 * @generated
1843 */
1844 public EClass getALSInt()
1845 {
1846 return alsIntEClass;
1847 }
1848
1849 /**
1850 * <!-- begin-user-doc -->
1851 * <!-- end-user-doc -->
1852 * @generated
1853 */
1854 public EClass getALSReference()
1855 {
1856 return alsReferenceEClass;
1857 }
1858
1859 /**
1860 * <!-- begin-user-doc -->
1861 * <!-- end-user-doc -->
1862 * @generated
1863 */
1864 public EReference getALSReference_Referred()
1865 {
1866 return (EReference)alsReferenceEClass.getEStructuralFeatures().get(0);
1867 }
1868
1869 /**
1870 * <!-- begin-user-doc -->
1871 * <!-- end-user-doc -->
1872 * @generated
1873 */
1874 public EClass getALSNumberLiteral()
1875 {
1876 return alsNumberLiteralEClass;
1877 }
1878
1879 /**
1880 * <!-- begin-user-doc -->
1881 * <!-- end-user-doc -->
1882 * @generated
1883 */
1884 public EAttribute getALSNumberLiteral_Value()
1885 {
1886 return (EAttribute)alsNumberLiteralEClass.getEStructuralFeatures().get(0);
1887 }
1888
1889 /**
1890 * <!-- begin-user-doc -->
1891 * <!-- end-user-doc -->
1892 * @generated
1893 */
1894 public EEnum getALSMultiplicity()
1895 {
1896 return alsMultiplicityEEnum;
1897 }
1898
1899 /**
1900 * <!-- begin-user-doc -->
1901 * <!-- end-user-doc -->
1902 * @generated
1903 */
1904 public EEnum getALSNumericOperator()
1905 {
1906 return alsNumericOperatorEEnum;
1907 }
1908
1909 /**
1910 * <!-- begin-user-doc -->
1911 * <!-- end-user-doc -->
1912 * @generated
1913 */
1914 public AlloyLanguageFactory getAlloyLanguageFactory()
1915 {
1916 return (AlloyLanguageFactory)getEFactoryInstance();
1917 }
1918
1919 /**
1920 * <!-- begin-user-doc -->
1921 * <!-- end-user-doc -->
1922 * @generated
1923 */
1924 private boolean isCreated = false;
1925
1926 /**
1927 * Creates the meta-model objects for the package. This method is
1928 * guarded to have no affect on any invocation but its first.
1929 * <!-- begin-user-doc -->
1930 * <!-- end-user-doc -->
1931 * @generated
1932 */
1933 public void createPackageContents()
1934 {
1935 if (isCreated) return;
1936 isCreated = true;
1937
1938 // Create classes and their features
1939 alsDocumentEClass = createEClass(ALS_DOCUMENT);
1940 createEReference(alsDocumentEClass, ALS_DOCUMENT__ENUM_DECLARATIONS);
1941 createEReference(alsDocumentEClass, ALS_DOCUMENT__SIGNATURE_BODIES);
1942 createEReference(alsDocumentEClass, ALS_DOCUMENT__FUNCTION_DEFINITIONS);
1943 createEReference(alsDocumentEClass, ALS_DOCUMENT__RELATION_DEFINITIONS);
1944 createEReference(alsDocumentEClass, ALS_DOCUMENT__FACT_DECLARATIONS);
1945 createEReference(alsDocumentEClass, ALS_DOCUMENT__RUN_COMMAND);
1946
1947 alsRelationDeclarationEClass = createEClass(ALS_RELATION_DECLARATION);
1948 createEAttribute(alsRelationDeclarationEClass, ALS_RELATION_DECLARATION__NAME);
1949
1950 alsTypeDeclarationEClass = createEClass(ALS_TYPE_DECLARATION);
1951
1952 alsEnumDeclarationEClass = createEClass(ALS_ENUM_DECLARATION);
1953 createEReference(alsEnumDeclarationEClass, ALS_ENUM_DECLARATION__LITERAL);
1954
1955 alsEnumLiteralEClass = createEClass(ALS_ENUM_LITERAL);
1956
1957 alsSignatureDeclarationEClass = createEClass(ALS_SIGNATURE_DECLARATION);
1958
1959 alsSignatureBodyEClass = createEClass(ALS_SIGNATURE_BODY);
1960 createEAttribute(alsSignatureBodyEClass, ALS_SIGNATURE_BODY__MULTIPLICITY);
1961 createEAttribute(alsSignatureBodyEClass, ALS_SIGNATURE_BODY__ABSTRACT);
1962 createEReference(alsSignatureBodyEClass, ALS_SIGNATURE_BODY__DECLARATIONS);
1963 createEReference(alsSignatureBodyEClass, ALS_SIGNATURE_BODY__SUPERTYPE);
1964 createEReference(alsSignatureBodyEClass, ALS_SIGNATURE_BODY__SUPERSET);
1965 createEReference(alsSignatureBodyEClass, ALS_SIGNATURE_BODY__FIELDS);
1966
1967 alsFieldDeclarationEClass = createEClass(ALS_FIELD_DECLARATION);
1968 createEAttribute(alsFieldDeclarationEClass, ALS_FIELD_DECLARATION__MULTIPLICITY);
1969 createEReference(alsFieldDeclarationEClass, ALS_FIELD_DECLARATION__TYPE);
1970
1971 alsDefinitionEClass = createEClass(ALS_DEFINITION);
1972 createEAttribute(alsDefinitionEClass, ALS_DEFINITION__NAME);
1973 createEReference(alsDefinitionEClass, ALS_DEFINITION__VARIABLES);
1974 createEReference(alsDefinitionEClass, ALS_DEFINITION__VALUE);
1975
1976 alsFunctionDefinitionEClass = createEClass(ALS_FUNCTION_DEFINITION);
1977 createEReference(alsFunctionDefinitionEClass, ALS_FUNCTION_DEFINITION__TYPE);
1978
1979 alsRelationDefinitionEClass = createEClass(ALS_RELATION_DEFINITION);
1980
1981 alsFactDeclarationEClass = createEClass(ALS_FACT_DECLARATION);
1982 createEAttribute(alsFactDeclarationEClass, ALS_FACT_DECLARATION__NAME);
1983 createEReference(alsFactDeclarationEClass, ALS_FACT_DECLARATION__TERM);
1984
1985 alsTermEClass = createEClass(ALS_TERM);
1986
1987 alsVariableDeclarationEClass = createEClass(ALS_VARIABLE_DECLARATION);
1988 createEReference(alsVariableDeclarationEClass, ALS_VARIABLE_DECLARATION__RANGE);
1989
1990 alsRunCommandEClass = createEClass(ALS_RUN_COMMAND);
1991 createEReference(alsRunCommandEClass, ALS_RUN_COMMAND__TYPE_SCOPES);
1992
1993 alsTypeScopeEClass = createEClass(ALS_TYPE_SCOPE);
1994 createEAttribute(alsTypeScopeEClass, ALS_TYPE_SCOPE__NUMBER);
1995
1996 alsSigScopeEClass = createEClass(ALS_SIG_SCOPE);
1997 createEAttribute(alsSigScopeEClass, ALS_SIG_SCOPE__EXACTLY);
1998 createEReference(alsSigScopeEClass, ALS_SIG_SCOPE__TYPE);
1999
2000 alsIntScopeEClass = createEClass(ALS_INT_SCOPE);
2001
2002 alsQuantifiedExEClass = createEClass(ALS_QUANTIFIED_EX);
2003 createEAttribute(alsQuantifiedExEClass, ALS_QUANTIFIED_EX__TYPE);
2004 createEAttribute(alsQuantifiedExEClass, ALS_QUANTIFIED_EX__DISJ);
2005 createEReference(alsQuantifiedExEClass, ALS_QUANTIFIED_EX__VARIABLES);
2006 createEReference(alsQuantifiedExEClass, ALS_QUANTIFIED_EX__EXPRESSION);
2007
2008 alsOrEClass = createEClass(ALS_OR);
2009 createEReference(alsOrEClass, ALS_OR__LEFT_OPERAND);
2010 createEReference(alsOrEClass, ALS_OR__RIGHT_OPERAND);
2011
2012 alsIffEClass = createEClass(ALS_IFF);
2013 createEReference(alsIffEClass, ALS_IFF__LEFT_OPERAND);
2014 createEReference(alsIffEClass, ALS_IFF__RIGHT_OPERAND);
2015
2016 alsImplEClass = createEClass(ALS_IMPL);
2017 createEReference(alsImplEClass, ALS_IMPL__LEFT_OPERAND);
2018 createEReference(alsImplEClass, ALS_IMPL__RIGHT_OPERAND);
2019 createEReference(alsImplEClass, ALS_IMPL__ELSE_OPERAND);
2020
2021 alsAndEClass = createEClass(ALS_AND);
2022 createEReference(alsAndEClass, ALS_AND__LEFT_OPERAND);
2023 createEReference(alsAndEClass, ALS_AND__RIGHT_OPERAND);
2024
2025 alsEqualsEClass = createEClass(ALS_EQUALS);
2026 createEReference(alsEqualsEClass, ALS_EQUALS__LEFT_OPERAND);
2027 createEReference(alsEqualsEClass, ALS_EQUALS__RIGHT_OPERAND);
2028
2029 alsNotEqualsEClass = createEClass(ALS_NOT_EQUALS);
2030 createEReference(alsNotEqualsEClass, ALS_NOT_EQUALS__LEFT_OPERAND);
2031 createEReference(alsNotEqualsEClass, ALS_NOT_EQUALS__RIGHT_OPERAND);
2032
2033 alsSubsetEClass = createEClass(ALS_SUBSET);
2034 createEReference(alsSubsetEClass, ALS_SUBSET__LEFT_OPERAND);
2035 createEReference(alsSubsetEClass, ALS_SUBSET__RIGHT_OPERAND);
2036
2037 alsLessEClass = createEClass(ALS_LESS);
2038 createEReference(alsLessEClass, ALS_LESS__LEFT_OPERAND);
2039 createEReference(alsLessEClass, ALS_LESS__RIGHT_OPERAND);
2040
2041 alsLeqEClass = createEClass(ALS_LEQ);
2042 createEReference(alsLeqEClass, ALS_LEQ__LEFT_OPERAND);
2043 createEReference(alsLeqEClass, ALS_LEQ__RIGHT_OPERAND);
2044
2045 alsMoreEClass = createEClass(ALS_MORE);
2046 createEReference(alsMoreEClass, ALS_MORE__LEFT_OPERAND);
2047 createEReference(alsMoreEClass, ALS_MORE__RIGHT_OPERAND);
2048
2049 alsMeqEClass = createEClass(ALS_MEQ);
2050 createEReference(alsMeqEClass, ALS_MEQ__LEFT_OPERAND);
2051 createEReference(alsMeqEClass, ALS_MEQ__RIGHT_OPERAND);
2052
2053 alsOverrideEClass = createEClass(ALS_OVERRIDE);
2054 createEReference(alsOverrideEClass, ALS_OVERRIDE__LEFT_OPERAND);
2055 createEReference(alsOverrideEClass, ALS_OVERRIDE__RIGHT_OPERAND);
2056
2057 alsRangeRestrictionRightEClass = createEClass(ALS_RANGE_RESTRICTION_RIGHT);
2058 createEReference(alsRangeRestrictionRightEClass, ALS_RANGE_RESTRICTION_RIGHT__RELATION);
2059 createEReference(alsRangeRestrictionRightEClass, ALS_RANGE_RESTRICTION_RIGHT__FILTER);
2060
2061 alsRangeRestrictionLeftEClass = createEClass(ALS_RANGE_RESTRICTION_LEFT);
2062 createEReference(alsRangeRestrictionLeftEClass, ALS_RANGE_RESTRICTION_LEFT__FILTER);
2063 createEReference(alsRangeRestrictionLeftEClass, ALS_RANGE_RESTRICTION_LEFT__RELATION);
2064
2065 alsJoinEClass = createEClass(ALS_JOIN);
2066 createEReference(alsJoinEClass, ALS_JOIN__LEFT_OPERAND);
2067 createEReference(alsJoinEClass, ALS_JOIN__RIGHT_OPERAND);
2068
2069 alsMinusEClass = createEClass(ALS_MINUS);
2070 createEReference(alsMinusEClass, ALS_MINUS__LEFT_OPERAND);
2071 createEReference(alsMinusEClass, ALS_MINUS__RIGHT_OPERAND);
2072
2073 alsPlusEClass = createEClass(ALS_PLUS);
2074 createEReference(alsPlusEClass, ALS_PLUS__LEFT_OPERAND);
2075 createEReference(alsPlusEClass, ALS_PLUS__RIGHT_OPERAND);
2076
2077 alsIntersectionEClass = createEClass(ALS_INTERSECTION);
2078 createEReference(alsIntersectionEClass, ALS_INTERSECTION__LEFT_OPERAND);
2079 createEReference(alsIntersectionEClass, ALS_INTERSECTION__RIGHT_OPERAND);
2080
2081 alsDirectProductEClass = createEClass(ALS_DIRECT_PRODUCT);
2082 createEReference(alsDirectProductEClass, ALS_DIRECT_PRODUCT__LEFT_OPERAND);
2083 createEAttribute(alsDirectProductEClass, ALS_DIRECT_PRODUCT__LEFT_MULTIPLICIT);
2084 createEAttribute(alsDirectProductEClass, ALS_DIRECT_PRODUCT__RIGHT_MULTIPLICIT);
2085 createEReference(alsDirectProductEClass, ALS_DIRECT_PRODUCT__RIGHT_OPERAND);
2086
2087 alsNotEClass = createEClass(ALS_NOT);
2088 createEReference(alsNotEClass, ALS_NOT__OPERAND);
2089
2090 alsInverseRelationEClass = createEClass(ALS_INVERSE_RELATION);
2091 createEReference(alsInverseRelationEClass, ALS_INVERSE_RELATION__OPERAND);
2092
2093 alSTransitiveClosureEClass = createEClass(AL_STRANSITIVE_CLOSURE);
2094 createEReference(alSTransitiveClosureEClass, AL_STRANSITIVE_CLOSURE__OPERAND);
2095
2096 alsReflectiveTransitiveClosureEClass = createEClass(ALS_REFLECTIVE_TRANSITIVE_CLOSURE);
2097 createEReference(alsReflectiveTransitiveClosureEClass, ALS_REFLECTIVE_TRANSITIVE_CLOSURE__OPERAND);
2098
2099 alsCardinalityEClass = createEClass(ALS_CARDINALITY);
2100 createEReference(alsCardinalityEClass, ALS_CARDINALITY__OPERAND);
2101
2102 alsUnaryMinusEClass = createEClass(ALS_UNARY_MINUS);
2103 createEReference(alsUnaryMinusEClass, ALS_UNARY_MINUS__OPERAND);
2104
2105 alsSumEClass = createEClass(ALS_SUM);
2106 createEReference(alsSumEClass, ALS_SUM__VARIABLES);
2107 createEReference(alsSumEClass, ALS_SUM__EXPRESSION);
2108
2109 alsFunctionCallEClass = createEClass(ALS_FUNCTION_CALL);
2110 createEReference(alsFunctionCallEClass, ALS_FUNCTION_CALL__REFERRED_DEFINITION);
2111 createEAttribute(alsFunctionCallEClass, ALS_FUNCTION_CALL__REFERRED_NUMERIC_OPERATOR);
2112 createEReference(alsFunctionCallEClass, ALS_FUNCTION_CALL__PARAMS);
2113
2114 alsNoneEClass = createEClass(ALS_NONE);
2115
2116 alsIdenEClass = createEClass(ALS_IDEN);
2117
2118 alsUnivEClass = createEClass(ALS_UNIV);
2119
2120 alsIntEClass = createEClass(ALS_INT);
2121
2122 alsReferenceEClass = createEClass(ALS_REFERENCE);
2123 createEReference(alsReferenceEClass, ALS_REFERENCE__REFERRED);
2124
2125 alsNumberLiteralEClass = createEClass(ALS_NUMBER_LITERAL);
2126 createEAttribute(alsNumberLiteralEClass, ALS_NUMBER_LITERAL__VALUE);
2127
2128 // Create enums
2129 alsMultiplicityEEnum = createEEnum(ALS_MULTIPLICITY);
2130 alsNumericOperatorEEnum = createEEnum(ALS_NUMERIC_OPERATOR);
2131 }
2132
2133 /**
2134 * <!-- begin-user-doc -->
2135 * <!-- end-user-doc -->
2136 * @generated
2137 */
2138 private boolean isInitialized = false;
2139
2140 /**
2141 * Complete the initialization of the package and its meta-model. This
2142 * method is guarded to have no affect on any invocation but its first.
2143 * <!-- begin-user-doc -->
2144 * <!-- end-user-doc -->
2145 * @generated
2146 */
2147 public void initializePackageContents()
2148 {
2149 if (isInitialized) return;
2150 isInitialized = true;
2151
2152 // Initialize package
2153 setName(eNAME);
2154 setNsPrefix(eNS_PREFIX);
2155 setNsURI(eNS_URI);
2156
2157 // Create type parameters
2158
2159 // Set bounds for type parameters
2160
2161 // Add supertypes to classes
2162 alsTypeDeclarationEClass.getESuperTypes().add(this.getALSRelationDeclaration());
2163 alsEnumDeclarationEClass.getESuperTypes().add(this.getALSTypeDeclaration());
2164 alsEnumLiteralEClass.getESuperTypes().add(this.getALSRelationDeclaration());
2165 alsSignatureDeclarationEClass.getESuperTypes().add(this.getALSTypeDeclaration());
2166 alsFieldDeclarationEClass.getESuperTypes().add(this.getALSRelationDeclaration());
2167 alsFunctionDefinitionEClass.getESuperTypes().add(this.getALSDefinition());
2168 alsRelationDefinitionEClass.getESuperTypes().add(this.getALSDefinition());
2169 alsVariableDeclarationEClass.getESuperTypes().add(this.getALSRelationDeclaration());
2170 alsSigScopeEClass.getESuperTypes().add(this.getALSTypeScope());
2171 alsIntScopeEClass.getESuperTypes().add(this.getALSTypeScope());
2172 alsQuantifiedExEClass.getESuperTypes().add(this.getALSTerm());
2173 alsOrEClass.getESuperTypes().add(this.getALSTerm());
2174 alsIffEClass.getESuperTypes().add(this.getALSTerm());
2175 alsImplEClass.getESuperTypes().add(this.getALSTerm());
2176 alsAndEClass.getESuperTypes().add(this.getALSTerm());
2177 alsEqualsEClass.getESuperTypes().add(this.getALSTerm());
2178 alsNotEqualsEClass.getESuperTypes().add(this.getALSTerm());
2179 alsSubsetEClass.getESuperTypes().add(this.getALSTerm());
2180 alsLessEClass.getESuperTypes().add(this.getALSTerm());
2181 alsLeqEClass.getESuperTypes().add(this.getALSTerm());
2182 alsMoreEClass.getESuperTypes().add(this.getALSTerm());
2183 alsMeqEClass.getESuperTypes().add(this.getALSTerm());
2184 alsOverrideEClass.getESuperTypes().add(this.getALSTerm());
2185 alsRangeRestrictionRightEClass.getESuperTypes().add(this.getALSTerm());
2186 alsRangeRestrictionLeftEClass.getESuperTypes().add(this.getALSTerm());
2187 alsJoinEClass.getESuperTypes().add(this.getALSTerm());
2188 alsMinusEClass.getESuperTypes().add(this.getALSTerm());
2189 alsPlusEClass.getESuperTypes().add(this.getALSTerm());
2190 alsIntersectionEClass.getESuperTypes().add(this.getALSTerm());
2191 alsDirectProductEClass.getESuperTypes().add(this.getALSTerm());
2192 alsNotEClass.getESuperTypes().add(this.getALSTerm());
2193 alsInverseRelationEClass.getESuperTypes().add(this.getALSTerm());
2194 alSTransitiveClosureEClass.getESuperTypes().add(this.getALSTerm());
2195 alsReflectiveTransitiveClosureEClass.getESuperTypes().add(this.getALSTerm());
2196 alsCardinalityEClass.getESuperTypes().add(this.getALSTerm());
2197 alsUnaryMinusEClass.getESuperTypes().add(this.getALSTerm());
2198 alsSumEClass.getESuperTypes().add(this.getALSTerm());
2199 alsFunctionCallEClass.getESuperTypes().add(this.getALSTerm());
2200 alsNoneEClass.getESuperTypes().add(this.getALSTerm());
2201 alsIdenEClass.getESuperTypes().add(this.getALSTerm());
2202 alsUnivEClass.getESuperTypes().add(this.getALSTerm());
2203 alsIntEClass.getESuperTypes().add(this.getALSTerm());
2204 alsReferenceEClass.getESuperTypes().add(this.getALSTerm());
2205 alsNumberLiteralEClass.getESuperTypes().add(this.getALSTerm());
2206
2207 // Initialize classes and features; add operations and parameters
2208 initEClass(alsDocumentEClass, ALSDocument.class, "ALSDocument", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2209 initEReference(getALSDocument_EnumDeclarations(), this.getALSEnumDeclaration(), null, "enumDeclarations", null, 0, -1, ALSDocument.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2210 initEReference(getALSDocument_SignatureBodies(), this.getALSSignatureBody(), null, "signatureBodies", null, 0, -1, ALSDocument.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2211 initEReference(getALSDocument_FunctionDefinitions(), this.getALSFunctionDefinition(), null, "functionDefinitions", null, 0, -1, ALSDocument.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2212 initEReference(getALSDocument_RelationDefinitions(), this.getALSRelationDefinition(), null, "relationDefinitions", null, 0, -1, ALSDocument.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2213 initEReference(getALSDocument_FactDeclarations(), this.getALSFactDeclaration(), null, "factDeclarations", null, 0, -1, ALSDocument.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2214 initEReference(getALSDocument_RunCommand(), this.getALSRunCommand(), null, "runCommand", null, 0, 1, ALSDocument.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2215
2216 initEClass(alsRelationDeclarationEClass, ALSRelationDeclaration.class, "ALSRelationDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2217 initEAttribute(getALSRelationDeclaration_Name(), ecorePackage.getEString(), "name", null, 0, 1, ALSRelationDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2218
2219 initEClass(alsTypeDeclarationEClass, ALSTypeDeclaration.class, "ALSTypeDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2220
2221 initEClass(alsEnumDeclarationEClass, ALSEnumDeclaration.class, "ALSEnumDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2222 initEReference(getALSEnumDeclaration_Literal(), this.getALSEnumLiteral(), null, "literal", null, 0, -1, ALSEnumDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2223
2224 initEClass(alsEnumLiteralEClass, ALSEnumLiteral.class, "ALSEnumLiteral", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2225
2226 initEClass(alsSignatureDeclarationEClass, ALSSignatureDeclaration.class, "ALSSignatureDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2227
2228 initEClass(alsSignatureBodyEClass, ALSSignatureBody.class, "ALSSignatureBody", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2229 initEAttribute(getALSSignatureBody_Multiplicity(), this.getALSMultiplicity(), "multiplicity", null, 0, 1, ALSSignatureBody.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2230 initEAttribute(getALSSignatureBody_Abstract(), ecorePackage.getEBoolean(), "abstract", null, 0, 1, ALSSignatureBody.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2231 initEReference(getALSSignatureBody_Declarations(), this.getALSSignatureDeclaration(), null, "declarations", null, 0, -1, ALSSignatureBody.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2232 initEReference(getALSSignatureBody_Supertype(), this.getALSSignatureDeclaration(), null, "supertype", null, 0, 1, ALSSignatureBody.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2233 initEReference(getALSSignatureBody_Superset(), this.getALSSignatureDeclaration(), null, "superset", null, 0, -1, ALSSignatureBody.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2234 initEReference(getALSSignatureBody_Fields(), this.getALSFieldDeclaration(), null, "fields", null, 0, -1, ALSSignatureBody.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2235
2236 initEClass(alsFieldDeclarationEClass, ALSFieldDeclaration.class, "ALSFieldDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2237 initEAttribute(getALSFieldDeclaration_Multiplicity(), this.getALSMultiplicity(), "multiplicity", null, 0, 1, ALSFieldDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2238 initEReference(getALSFieldDeclaration_Type(), this.getALSTerm(), null, "type", null, 0, 1, ALSFieldDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2239
2240 initEClass(alsDefinitionEClass, ALSDefinition.class, "ALSDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2241 initEAttribute(getALSDefinition_Name(), ecorePackage.getEString(), "name", null, 0, 1, ALSDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2242 initEReference(getALSDefinition_Variables(), this.getALSVariableDeclaration(), null, "variables", null, 0, -1, ALSDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2243 initEReference(getALSDefinition_Value(), this.getALSTerm(), null, "value", null, 0, 1, ALSDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2244
2245 initEClass(alsFunctionDefinitionEClass, ALSFunctionDefinition.class, "ALSFunctionDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2246 initEReference(getALSFunctionDefinition_Type(), this.getALSTerm(), null, "type", null, 0, 1, ALSFunctionDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2247
2248 initEClass(alsRelationDefinitionEClass, ALSRelationDefinition.class, "ALSRelationDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2249
2250 initEClass(alsFactDeclarationEClass, ALSFactDeclaration.class, "ALSFactDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2251 initEAttribute(getALSFactDeclaration_Name(), ecorePackage.getEString(), "name", null, 0, 1, ALSFactDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2252 initEReference(getALSFactDeclaration_Term(), this.getALSTerm(), null, "term", null, 0, 1, ALSFactDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2253
2254 initEClass(alsTermEClass, ALSTerm.class, "ALSTerm", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2255
2256 initEClass(alsVariableDeclarationEClass, ALSVariableDeclaration.class, "ALSVariableDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2257 initEReference(getALSVariableDeclaration_Range(), this.getALSTerm(), null, "range", null, 0, 1, ALSVariableDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2258
2259 initEClass(alsRunCommandEClass, ALSRunCommand.class, "ALSRunCommand", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2260 initEReference(getALSRunCommand_TypeScopes(), this.getALSTypeScope(), null, "typeScopes", null, 0, -1, ALSRunCommand.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2261
2262 initEClass(alsTypeScopeEClass, ALSTypeScope.class, "ALSTypeScope", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2263 initEAttribute(getALSTypeScope_Number(), ecorePackage.getEInt(), "number", null, 0, 1, ALSTypeScope.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2264
2265 initEClass(alsSigScopeEClass, ALSSigScope.class, "ALSSigScope", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2266 initEAttribute(getALSSigScope_Exactly(), ecorePackage.getEBoolean(), "exactly", null, 0, 1, ALSSigScope.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2267 initEReference(getALSSigScope_Type(), this.getALSSignatureDeclaration(), null, "type", null, 0, 1, ALSSigScope.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2268
2269 initEClass(alsIntScopeEClass, ALSIntScope.class, "ALSIntScope", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2270
2271 initEClass(alsQuantifiedExEClass, ALSQuantifiedEx.class, "ALSQuantifiedEx", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2272 initEAttribute(getALSQuantifiedEx_Type(), this.getALSMultiplicity(), "type", null, 0, 1, ALSQuantifiedEx.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2273 initEAttribute(getALSQuantifiedEx_Disj(), ecorePackage.getEBoolean(), "disj", null, 0, 1, ALSQuantifiedEx.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2274 initEReference(getALSQuantifiedEx_Variables(), this.getALSVariableDeclaration(), null, "variables", null, 0, -1, ALSQuantifiedEx.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2275 initEReference(getALSQuantifiedEx_Expression(), this.getALSTerm(), null, "expression", null, 0, 1, ALSQuantifiedEx.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2276
2277 initEClass(alsOrEClass, ALSOr.class, "ALSOr", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2278 initEReference(getALSOr_LeftOperand(), this.getALSTerm(), null, "leftOperand", null, 0, 1, ALSOr.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2279 initEReference(getALSOr_RightOperand(), this.getALSTerm(), null, "rightOperand", null, 0, 1, ALSOr.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2280
2281 initEClass(alsIffEClass, ALSIff.class, "ALSIff", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2282 initEReference(getALSIff_LeftOperand(), this.getALSTerm(), null, "leftOperand", null, 0, 1, ALSIff.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2283 initEReference(getALSIff_RightOperand(), this.getALSTerm(), null, "rightOperand", null, 0, 1, ALSIff.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2284
2285 initEClass(alsImplEClass, ALSImpl.class, "ALSImpl", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2286 initEReference(getALSImpl_LeftOperand(), this.getALSTerm(), null, "leftOperand", null, 0, 1, ALSImpl.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2287 initEReference(getALSImpl_RightOperand(), this.getALSTerm(), null, "rightOperand", null, 0, 1, ALSImpl.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2288 initEReference(getALSImpl_ElseOperand(), this.getALSTerm(), null, "elseOperand", null, 0, 1, ALSImpl.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2289
2290 initEClass(alsAndEClass, ALSAnd.class, "ALSAnd", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2291 initEReference(getALSAnd_LeftOperand(), this.getALSTerm(), null, "leftOperand", null, 0, 1, ALSAnd.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2292 initEReference(getALSAnd_RightOperand(), this.getALSTerm(), null, "rightOperand", null, 0, 1, ALSAnd.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2293
2294 initEClass(alsEqualsEClass, ALSEquals.class, "ALSEquals", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2295 initEReference(getALSEquals_LeftOperand(), this.getALSTerm(), null, "leftOperand", null, 0, 1, ALSEquals.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2296 initEReference(getALSEquals_RightOperand(), this.getALSTerm(), null, "rightOperand", null, 0, 1, ALSEquals.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2297
2298 initEClass(alsNotEqualsEClass, ALSNotEquals.class, "ALSNotEquals", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2299 initEReference(getALSNotEquals_LeftOperand(), this.getALSTerm(), null, "leftOperand", null, 0, 1, ALSNotEquals.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2300 initEReference(getALSNotEquals_RightOperand(), this.getALSTerm(), null, "rightOperand", null, 0, 1, ALSNotEquals.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2301
2302 initEClass(alsSubsetEClass, ALSSubset.class, "ALSSubset", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2303 initEReference(getALSSubset_LeftOperand(), this.getALSTerm(), null, "leftOperand", null, 0, 1, ALSSubset.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2304 initEReference(getALSSubset_RightOperand(), this.getALSTerm(), null, "rightOperand", null, 0, 1, ALSSubset.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2305
2306 initEClass(alsLessEClass, ALSLess.class, "ALSLess", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2307 initEReference(getALSLess_LeftOperand(), this.getALSTerm(), null, "leftOperand", null, 0, 1, ALSLess.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2308 initEReference(getALSLess_RightOperand(), this.getALSTerm(), null, "rightOperand", null, 0, 1, ALSLess.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2309
2310 initEClass(alsLeqEClass, ALSLeq.class, "ALSLeq", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2311 initEReference(getALSLeq_LeftOperand(), this.getALSTerm(), null, "leftOperand", null, 0, 1, ALSLeq.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2312 initEReference(getALSLeq_RightOperand(), this.getALSTerm(), null, "rightOperand", null, 0, 1, ALSLeq.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2313
2314 initEClass(alsMoreEClass, ALSMore.class, "ALSMore", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2315 initEReference(getALSMore_LeftOperand(), this.getALSTerm(), null, "leftOperand", null, 0, 1, ALSMore.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2316 initEReference(getALSMore_RightOperand(), this.getALSTerm(), null, "rightOperand", null, 0, 1, ALSMore.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2317
2318 initEClass(alsMeqEClass, ALSMeq.class, "ALSMeq", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2319 initEReference(getALSMeq_LeftOperand(), this.getALSTerm(), null, "leftOperand", null, 0, 1, ALSMeq.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2320 initEReference(getALSMeq_RightOperand(), this.getALSTerm(), null, "rightOperand", null, 0, 1, ALSMeq.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2321
2322 initEClass(alsOverrideEClass, ALSOverride.class, "ALSOverride", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2323 initEReference(getALSOverride_LeftOperand(), this.getALSTerm(), null, "leftOperand", null, 0, 1, ALSOverride.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2324 initEReference(getALSOverride_RightOperand(), this.getALSTerm(), null, "rightOperand", null, 0, 1, ALSOverride.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2325
2326 initEClass(alsRangeRestrictionRightEClass, ALSRangeRestrictionRight.class, "ALSRangeRestrictionRight", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2327 initEReference(getALSRangeRestrictionRight_Relation(), this.getALSTerm(), null, "relation", null, 0, 1, ALSRangeRestrictionRight.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2328 initEReference(getALSRangeRestrictionRight_Filter(), this.getALSTerm(), null, "filter", null, 0, 1, ALSRangeRestrictionRight.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2329
2330 initEClass(alsRangeRestrictionLeftEClass, ALSRangeRestrictionLeft.class, "ALSRangeRestrictionLeft", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2331 initEReference(getALSRangeRestrictionLeft_Filter(), this.getALSTerm(), null, "filter", null, 0, 1, ALSRangeRestrictionLeft.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2332 initEReference(getALSRangeRestrictionLeft_Relation(), this.getALSTerm(), null, "relation", null, 0, 1, ALSRangeRestrictionLeft.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2333
2334 initEClass(alsJoinEClass, ALSJoin.class, "ALSJoin", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2335 initEReference(getALSJoin_LeftOperand(), this.getALSTerm(), null, "leftOperand", null, 0, 1, ALSJoin.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2336 initEReference(getALSJoin_RightOperand(), this.getALSTerm(), null, "rightOperand", null, 0, 1, ALSJoin.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2337
2338 initEClass(alsMinusEClass, ALSMinus.class, "ALSMinus", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2339 initEReference(getALSMinus_LeftOperand(), this.getALSTerm(), null, "leftOperand", null, 0, 1, ALSMinus.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2340 initEReference(getALSMinus_RightOperand(), this.getALSTerm(), null, "rightOperand", null, 0, 1, ALSMinus.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2341
2342 initEClass(alsPlusEClass, ALSPlus.class, "ALSPlus", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2343 initEReference(getALSPlus_LeftOperand(), this.getALSTerm(), null, "leftOperand", null, 0, 1, ALSPlus.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2344 initEReference(getALSPlus_RightOperand(), this.getALSTerm(), null, "rightOperand", null, 0, 1, ALSPlus.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2345
2346 initEClass(alsIntersectionEClass, ALSIntersection.class, "ALSIntersection", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2347 initEReference(getALSIntersection_LeftOperand(), this.getALSTerm(), null, "leftOperand", null, 0, 1, ALSIntersection.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2348 initEReference(getALSIntersection_RightOperand(), this.getALSTerm(), null, "rightOperand", null, 0, 1, ALSIntersection.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2349
2350 initEClass(alsDirectProductEClass, ALSDirectProduct.class, "ALSDirectProduct", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2351 initEReference(getALSDirectProduct_LeftOperand(), this.getALSTerm(), null, "leftOperand", null, 0, 1, ALSDirectProduct.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2352 initEAttribute(getALSDirectProduct_LeftMultiplicit(), this.getALSMultiplicity(), "leftMultiplicit", null, 0, 1, ALSDirectProduct.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2353 initEAttribute(getALSDirectProduct_RightMultiplicit(), this.getALSMultiplicity(), "rightMultiplicit", null, 0, 1, ALSDirectProduct.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2354 initEReference(getALSDirectProduct_RightOperand(), this.getALSTerm(), null, "rightOperand", null, 0, 1, ALSDirectProduct.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2355
2356 initEClass(alsNotEClass, ALSNot.class, "ALSNot", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2357 initEReference(getALSNot_Operand(), this.getALSTerm(), null, "operand", null, 0, 1, ALSNot.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2358
2359 initEClass(alsInverseRelationEClass, ALSInverseRelation.class, "ALSInverseRelation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2360 initEReference(getALSInverseRelation_Operand(), this.getALSTerm(), null, "operand", null, 0, 1, ALSInverseRelation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2361
2362 initEClass(alSTransitiveClosureEClass, AlSTransitiveClosure.class, "AlSTransitiveClosure", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2363 initEReference(getAlSTransitiveClosure_Operand(), this.getALSTerm(), null, "operand", null, 0, 1, AlSTransitiveClosure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2364
2365 initEClass(alsReflectiveTransitiveClosureEClass, ALSReflectiveTransitiveClosure.class, "ALSReflectiveTransitiveClosure", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2366 initEReference(getALSReflectiveTransitiveClosure_Operand(), this.getALSTerm(), null, "operand", null, 0, 1, ALSReflectiveTransitiveClosure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2367
2368 initEClass(alsCardinalityEClass, ALSCardinality.class, "ALSCardinality", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2369 initEReference(getALSCardinality_Operand(), this.getALSTerm(), null, "operand", null, 0, 1, ALSCardinality.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2370
2371 initEClass(alsUnaryMinusEClass, ALSUnaryMinus.class, "ALSUnaryMinus", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2372 initEReference(getALSUnaryMinus_Operand(), this.getALSTerm(), null, "operand", null, 0, 1, ALSUnaryMinus.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2373
2374 initEClass(alsSumEClass, ALSSum.class, "ALSSum", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2375 initEReference(getALSSum_Variables(), this.getALSVariableDeclaration(), null, "variables", null, 0, -1, ALSSum.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2376 initEReference(getALSSum_Expression(), this.getALSTerm(), null, "expression", null, 0, 1, ALSSum.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2377
2378 initEClass(alsFunctionCallEClass, ALSFunctionCall.class, "ALSFunctionCall", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2379 initEReference(getALSFunctionCall_ReferredDefinition(), this.getALSDefinition(), null, "referredDefinition", null, 0, 1, ALSFunctionCall.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2380 initEAttribute(getALSFunctionCall_ReferredNumericOperator(), this.getALSNumericOperator(), "referredNumericOperator", null, 0, 1, ALSFunctionCall.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2381 initEReference(getALSFunctionCall_Params(), this.getALSTerm(), null, "params", null, 0, -1, ALSFunctionCall.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2382
2383 initEClass(alsNoneEClass, ALSNone.class, "ALSNone", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2384
2385 initEClass(alsIdenEClass, ALSIden.class, "ALSIden", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2386
2387 initEClass(alsUnivEClass, ALSUniv.class, "ALSUniv", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2388
2389 initEClass(alsIntEClass, ALSInt.class, "ALSInt", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2390
2391 initEClass(alsReferenceEClass, ALSReference.class, "ALSReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2392 initEReference(getALSReference_Referred(), this.getALSRelationDeclaration(), null, "referred", null, 0, 1, ALSReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2393
2394 initEClass(alsNumberLiteralEClass, ALSNumberLiteral.class, "ALSNumberLiteral", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2395 initEAttribute(getALSNumberLiteral_Value(), ecorePackage.getEInt(), "value", null, 0, 1, ALSNumberLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2396
2397 // Initialize enums and add enum literals
2398 initEEnum(alsMultiplicityEEnum, ALSMultiplicity.class, "ALSMultiplicity");
2399 addEEnumLiteral(alsMultiplicityEEnum, ALSMultiplicity.ALL);
2400 addEEnumLiteral(alsMultiplicityEEnum, ALSMultiplicity.NO);
2401 addEEnumLiteral(alsMultiplicityEEnum, ALSMultiplicity.SOME);
2402 addEEnumLiteral(alsMultiplicityEEnum, ALSMultiplicity.LONE);
2403 addEEnumLiteral(alsMultiplicityEEnum, ALSMultiplicity.ONE);
2404 addEEnumLiteral(alsMultiplicityEEnum, ALSMultiplicity.SET);
2405
2406 initEEnum(alsNumericOperatorEEnum, ALSNumericOperator.class, "ALSNumericOperator");
2407 addEEnumLiteral(alsNumericOperatorEEnum, ALSNumericOperator.PLUS);
2408 addEEnumLiteral(alsNumericOperatorEEnum, ALSNumericOperator.SUB);
2409 addEEnumLiteral(alsNumericOperatorEEnum, ALSNumericOperator.MUL);
2410 addEEnumLiteral(alsNumericOperatorEEnum, ALSNumericOperator.REM);
2411 addEEnumLiteral(alsNumericOperatorEEnum, ALSNumericOperator.DIV);
2412
2413 // Create resource
2414 createResource(eNS_URI);
2415 }
2416
2417} //AlloyLanguagePackageImpl