aboutsummaryrefslogtreecommitdiffstats
path: root/Solvers/Alloy-Solver2/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-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl')
-rw-r--r--Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSAndImpl.java264
-rw-r--r--Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSCardinalityImpl.java193
-rw-r--r--Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSDefinitionImpl.java312
-rw-r--r--Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSDirectProductImpl.java392
-rw-r--r--Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSDocumentImpl.java397
-rw-r--r--Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSEnumDeclarationImpl.java165
-rw-r--r--Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSEnumLiteralImpl.java40
-rw-r--r--Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSEqualsImpl.java264
-rw-r--r--Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSFactDeclarationImpl.java265
-rw-r--r--Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSFieldDeclarationImpl.java265
-rw-r--r--Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSFunctionCallImpl.java306
-rw-r--r--Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSFunctionDefinitionImpl.java193
-rw-r--r--Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSIdenImpl.java40
-rw-r--r--Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSIffImpl.java264
-rw-r--r--Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSImplImpl.java335
-rw-r--r--Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSIntImpl.java40
-rw-r--r--Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSIntScopeImpl.java40
-rw-r--r--Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSIntersectionImpl.java264
-rw-r--r--Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSInverseRelationImpl.java193
-rw-r--r--Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSJoinImpl.java264
-rw-r--r--Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSLeqImpl.java264
-rw-r--r--Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSLessImpl.java264
-rw-r--r--Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSMeqImpl.java264
-rw-r--r--Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSMinusImpl.java264
-rw-r--r--Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSMoreImpl.java264
-rw-r--r--Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSNoneImpl.java40
-rw-r--r--Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSNotEqualsImpl.java264
-rw-r--r--Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSNotImpl.java193
-rw-r--r--Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSNumberLiteralImpl.java176
-rw-r--r--Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSOrImpl.java264
-rw-r--r--Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSOverrideImpl.java264
-rw-r--r--Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSPlusImpl.java264
-rw-r--r--Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSQuantifiedExImpl.java368
-rw-r--r--Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSRangeRestrictionLeftImpl.java264
-rw-r--r--Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSRangeRestrictionRightImpl.java264
-rw-r--r--Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSReferenceImpl.java172
-rw-r--r--Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSReflectiveTransitiveClosureImpl.java193
-rw-r--r--Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSRelationDeclarationImpl.java177
-rw-r--r--Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSRelationDefinitionImpl.java40
-rw-r--r--Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSRunCommandImpl.java167
-rw-r--r--Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSSigScopeImpl.java243
-rw-r--r--Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSSignatureBodyImpl.java438
-rw-r--r--Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSSignatureDeclarationImpl.java40
-rw-r--r--Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSStringImpl.java40
-rw-r--r--Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSStringLiteralImpl.java176
-rw-r--r--Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSStringScopeImpl.java40
-rw-r--r--Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSSubsetImpl.java264
-rw-r--r--Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSSumImpl.java240
-rw-r--r--Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSTermImpl.java42
-rw-r--r--Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSTypeDeclarationImpl.java40
-rw-r--r--Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSTypeScopeImpl.java177
-rw-r--r--Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSUnaryMinusImpl.java193
-rw-r--r--Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSUnivImpl.java40
-rw-r--r--Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSVariableDeclarationImpl.java193
-rw-r--r--Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/AlSTransitiveClosureImpl.java193
-rw-r--r--Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/AlloyLanguageFactoryImpl.java837
-rw-r--r--Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/AlloyLanguagePackageImpl.java2498
57 files changed, 14620 insertions, 0 deletions
diff --git a/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSAndImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSAndImpl.java
new file mode 100644
index 00000000..0401917d
--- /dev/null
+++ b/Solvers/Alloy-Solver2/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-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSCardinalityImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSCardinalityImpl.java
new file mode 100644
index 00000000..9625adb4
--- /dev/null
+++ b/Solvers/Alloy-Solver2/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-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSDefinitionImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSDefinitionImpl.java
new file mode 100644
index 00000000..e4251d72
--- /dev/null
+++ b/Solvers/Alloy-Solver2/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-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSDirectProductImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSDirectProductImpl.java
new file mode 100644
index 00000000..a80d74fe
--- /dev/null
+++ b/Solvers/Alloy-Solver2/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-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSDocumentImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSDocumentImpl.java
new file mode 100644
index 00000000..008fba7c
--- /dev/null
+++ b/Solvers/Alloy-Solver2/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-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSEnumDeclarationImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSEnumDeclarationImpl.java
new file mode 100644
index 00000000..1b510870
--- /dev/null
+++ b/Solvers/Alloy-Solver2/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-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSEnumLiteralImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSEnumLiteralImpl.java
new file mode 100644
index 00000000..6de8f4f5
--- /dev/null
+++ b/Solvers/Alloy-Solver2/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-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSEqualsImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSEqualsImpl.java
new file mode 100644
index 00000000..562013dd
--- /dev/null
+++ b/Solvers/Alloy-Solver2/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-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSFactDeclarationImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSFactDeclarationImpl.java
new file mode 100644
index 00000000..406c69a8
--- /dev/null
+++ b/Solvers/Alloy-Solver2/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-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSFieldDeclarationImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSFieldDeclarationImpl.java
new file mode 100644
index 00000000..0bc3aa1c
--- /dev/null
+++ b/Solvers/Alloy-Solver2/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-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSFunctionCallImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSFunctionCallImpl.java
new file mode 100644
index 00000000..f3083503
--- /dev/null
+++ b/Solvers/Alloy-Solver2/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-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSFunctionDefinitionImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSFunctionDefinitionImpl.java
new file mode 100644
index 00000000..b484da48
--- /dev/null
+++ b/Solvers/Alloy-Solver2/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-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSIdenImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSIdenImpl.java
new file mode 100644
index 00000000..99d000c7
--- /dev/null
+++ b/Solvers/Alloy-Solver2/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-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSIffImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSIffImpl.java
new file mode 100644
index 00000000..33ef6891
--- /dev/null
+++ b/Solvers/Alloy-Solver2/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-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSImplImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSImplImpl.java
new file mode 100644
index 00000000..a16c6239
--- /dev/null
+++ b/Solvers/Alloy-Solver2/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-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSIntImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSIntImpl.java
new file mode 100644
index 00000000..46481f79
--- /dev/null
+++ b/Solvers/Alloy-Solver2/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-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSIntScopeImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSIntScopeImpl.java
new file mode 100644
index 00000000..a7beb21b
--- /dev/null
+++ b/Solvers/Alloy-Solver2/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-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSIntersectionImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSIntersectionImpl.java
new file mode 100644
index 00000000..020d2322
--- /dev/null
+++ b/Solvers/Alloy-Solver2/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-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSInverseRelationImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSInverseRelationImpl.java
new file mode 100644
index 00000000..916ba94f
--- /dev/null
+++ b/Solvers/Alloy-Solver2/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-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSJoinImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSJoinImpl.java
new file mode 100644
index 00000000..edf5c551
--- /dev/null
+++ b/Solvers/Alloy-Solver2/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-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSLeqImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSLeqImpl.java
new file mode 100644
index 00000000..be88c9bb
--- /dev/null
+++ b/Solvers/Alloy-Solver2/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-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSLessImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSLessImpl.java
new file mode 100644
index 00000000..4c6b4282
--- /dev/null
+++ b/Solvers/Alloy-Solver2/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-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSMeqImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSMeqImpl.java
new file mode 100644
index 00000000..13b95995
--- /dev/null
+++ b/Solvers/Alloy-Solver2/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-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSMinusImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSMinusImpl.java
new file mode 100644
index 00000000..974e1b46
--- /dev/null
+++ b/Solvers/Alloy-Solver2/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-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSMoreImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSMoreImpl.java
new file mode 100644
index 00000000..9180d68f
--- /dev/null
+++ b/Solvers/Alloy-Solver2/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-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSNoneImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSNoneImpl.java
new file mode 100644
index 00000000..7791e5cd
--- /dev/null
+++ b/Solvers/Alloy-Solver2/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-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSNotEqualsImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSNotEqualsImpl.java
new file mode 100644
index 00000000..783b2386
--- /dev/null
+++ b/Solvers/Alloy-Solver2/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-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSNotImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSNotImpl.java
new file mode 100644
index 00000000..c1230df7
--- /dev/null
+++ b/Solvers/Alloy-Solver2/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-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSNumberLiteralImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSNumberLiteralImpl.java
new file mode 100644
index 00000000..bf0a7224
--- /dev/null
+++ b/Solvers/Alloy-Solver2/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-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSOrImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSOrImpl.java
new file mode 100644
index 00000000..3d9bd2ef
--- /dev/null
+++ b/Solvers/Alloy-Solver2/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-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSOverrideImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSOverrideImpl.java
new file mode 100644
index 00000000..f56b6e4c
--- /dev/null
+++ b/Solvers/Alloy-Solver2/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-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSPlusImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSPlusImpl.java
new file mode 100644
index 00000000..57c83ca5
--- /dev/null
+++ b/Solvers/Alloy-Solver2/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-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSQuantifiedExImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSQuantifiedExImpl.java
new file mode 100644
index 00000000..a0a37cd3
--- /dev/null
+++ b/Solvers/Alloy-Solver2/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-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSRangeRestrictionLeftImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSRangeRestrictionLeftImpl.java
new file mode 100644
index 00000000..f29d5f07
--- /dev/null
+++ b/Solvers/Alloy-Solver2/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-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSRangeRestrictionRightImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSRangeRestrictionRightImpl.java
new file mode 100644
index 00000000..4602e3c8
--- /dev/null
+++ b/Solvers/Alloy-Solver2/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-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSReferenceImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSReferenceImpl.java
new file mode 100644
index 00000000..593c8a94
--- /dev/null
+++ b/Solvers/Alloy-Solver2/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-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSReflectiveTransitiveClosureImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSReflectiveTransitiveClosureImpl.java
new file mode 100644
index 00000000..efe3a67e
--- /dev/null
+++ b/Solvers/Alloy-Solver2/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-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSRelationDeclarationImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSRelationDeclarationImpl.java
new file mode 100644
index 00000000..e93196b0
--- /dev/null
+++ b/Solvers/Alloy-Solver2/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-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSRelationDefinitionImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSRelationDefinitionImpl.java
new file mode 100644
index 00000000..38014e58
--- /dev/null
+++ b/Solvers/Alloy-Solver2/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-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSRunCommandImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSRunCommandImpl.java
new file mode 100644
index 00000000..f3a909dc
--- /dev/null
+++ b/Solvers/Alloy-Solver2/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-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSSigScopeImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSSigScopeImpl.java
new file mode 100644
index 00000000..18f22c3f
--- /dev/null
+++ b/Solvers/Alloy-Solver2/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-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSSignatureBodyImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSSignatureBodyImpl.java
new file mode 100644
index 00000000..40452b63
--- /dev/null
+++ b/Solvers/Alloy-Solver2/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-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSSignatureDeclarationImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSSignatureDeclarationImpl.java
new file mode 100644
index 00000000..aff258ff
--- /dev/null
+++ b/Solvers/Alloy-Solver2/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-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSStringImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSStringImpl.java
new file mode 100644
index 00000000..fa26bdb3
--- /dev/null
+++ b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSStringImpl.java
@@ -0,0 +1,40 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSString;
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 String</b></em>'.
13 * <!-- end-user-doc -->
14 *
15 * @generated
16 */
17public class ALSStringImpl extends ALSTermImpl implements ALSString
18{
19 /**
20 * <!-- begin-user-doc -->
21 * <!-- end-user-doc -->
22 * @generated
23 */
24 protected ALSStringImpl()
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_STRING;
38 }
39
40} //ALSStringImpl
diff --git a/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSStringLiteralImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSStringLiteralImpl.java
new file mode 100644
index 00000000..c3fede10
--- /dev/null
+++ b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSStringLiteralImpl.java
@@ -0,0 +1,176 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSStringLiteral;
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 String 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.ALSStringLiteralImpl#getValue <em>Value</em>}</li>
23 * </ul>
24 *
25 * @generated
26 */
27public class ALSStringLiteralImpl extends ALSTermImpl implements ALSStringLiteral
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 String VALUE_EDEFAULT = null;
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 String value = VALUE_EDEFAULT;
48
49 /**
50 * <!-- begin-user-doc -->
51 * <!-- end-user-doc -->
52 * @generated
53 */
54 protected ALSStringLiteralImpl()
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_STRING_LITERAL;
68 }
69
70 /**
71 * <!-- begin-user-doc -->
72 * <!-- end-user-doc -->
73 * @generated
74 */
75 public String getValue()
76 {
77 return value;
78 }
79
80 /**
81 * <!-- begin-user-doc -->
82 * <!-- end-user-doc -->
83 * @generated
84 */
85 public void setValue(String newValue)
86 {
87 String oldValue = value;
88 value = newValue;
89 if (eNotificationRequired())
90 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_STRING_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_STRING_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_STRING_LITERAL__VALUE:
120 setValue((String)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_STRING_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_STRING_LITERAL__VALUE:
154 return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value);
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} //ALSStringLiteralImpl
diff --git a/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSStringScopeImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSStringScopeImpl.java
new file mode 100644
index 00000000..87c7aaf3
--- /dev/null
+++ b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSStringScopeImpl.java
@@ -0,0 +1,40 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSStringScope;
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 String Scope</b></em>'.
13 * <!-- end-user-doc -->
14 *
15 * @generated
16 */
17public class ALSStringScopeImpl extends ALSTypeScopeImpl implements ALSStringScope
18{
19 /**
20 * <!-- begin-user-doc -->
21 * <!-- end-user-doc -->
22 * @generated
23 */
24 protected ALSStringScopeImpl()
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_STRING_SCOPE;
38 }
39
40} //ALSStringScopeImpl
diff --git a/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSSubsetImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSSubsetImpl.java
new file mode 100644
index 00000000..420debb2
--- /dev/null
+++ b/Solvers/Alloy-Solver2/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-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSSumImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSSumImpl.java
new file mode 100644
index 00000000..1321a1f1
--- /dev/null
+++ b/Solvers/Alloy-Solver2/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-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSTermImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSTermImpl.java
new file mode 100644
index 00000000..12e791b9
--- /dev/null
+++ b/Solvers/Alloy-Solver2/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-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSTypeDeclarationImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSTypeDeclarationImpl.java
new file mode 100644
index 00000000..138efd7e
--- /dev/null
+++ b/Solvers/Alloy-Solver2/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-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSTypeScopeImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSTypeScopeImpl.java
new file mode 100644
index 00000000..48f9c484
--- /dev/null
+++ b/Solvers/Alloy-Solver2/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-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSUnaryMinusImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSUnaryMinusImpl.java
new file mode 100644
index 00000000..7b4b48c5
--- /dev/null
+++ b/Solvers/Alloy-Solver2/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-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSUnivImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSUnivImpl.java
new file mode 100644
index 00000000..a2dbcbc9
--- /dev/null
+++ b/Solvers/Alloy-Solver2/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-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSVariableDeclarationImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSVariableDeclarationImpl.java
new file mode 100644
index 00000000..60d8c237
--- /dev/null
+++ b/Solvers/Alloy-Solver2/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-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/AlSTransitiveClosureImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/AlSTransitiveClosureImpl.java
new file mode 100644
index 00000000..a475d5b4
--- /dev/null
+++ b/Solvers/Alloy-Solver2/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-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/AlloyLanguageFactoryImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/AlloyLanguageFactoryImpl.java
new file mode 100644
index 00000000..f4cb167b
--- /dev/null
+++ b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/AlloyLanguageFactoryImpl.java
@@ -0,0 +1,837 @@
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_STRING_SCOPE: return createALSStringScope();
87 case AlloyLanguagePackage.ALS_QUANTIFIED_EX: return createALSQuantifiedEx();
88 case AlloyLanguagePackage.ALS_OR: return createALSOr();
89 case AlloyLanguagePackage.ALS_IFF: return createALSIff();
90 case AlloyLanguagePackage.ALS_IMPL: return createALSImpl();
91 case AlloyLanguagePackage.ALS_AND: return createALSAnd();
92 case AlloyLanguagePackage.ALS_EQUALS: return createALSEquals();
93 case AlloyLanguagePackage.ALS_NOT_EQUALS: return createALSNotEquals();
94 case AlloyLanguagePackage.ALS_SUBSET: return createALSSubset();
95 case AlloyLanguagePackage.ALS_LESS: return createALSLess();
96 case AlloyLanguagePackage.ALS_LEQ: return createALSLeq();
97 case AlloyLanguagePackage.ALS_MORE: return createALSMore();
98 case AlloyLanguagePackage.ALS_MEQ: return createALSMeq();
99 case AlloyLanguagePackage.ALS_OVERRIDE: return createALSOverride();
100 case AlloyLanguagePackage.ALS_RANGE_RESTRICTION_RIGHT: return createALSRangeRestrictionRight();
101 case AlloyLanguagePackage.ALS_RANGE_RESTRICTION_LEFT: return createALSRangeRestrictionLeft();
102 case AlloyLanguagePackage.ALS_JOIN: return createALSJoin();
103 case AlloyLanguagePackage.ALS_MINUS: return createALSMinus();
104 case AlloyLanguagePackage.ALS_PLUS: return createALSPlus();
105 case AlloyLanguagePackage.ALS_INTERSECTION: return createALSIntersection();
106 case AlloyLanguagePackage.ALS_DIRECT_PRODUCT: return createALSDirectProduct();
107 case AlloyLanguagePackage.ALS_NOT: return createALSNot();
108 case AlloyLanguagePackage.ALS_INVERSE_RELATION: return createALSInverseRelation();
109 case AlloyLanguagePackage.AL_STRANSITIVE_CLOSURE: return createAlSTransitiveClosure();
110 case AlloyLanguagePackage.ALS_REFLECTIVE_TRANSITIVE_CLOSURE: return createALSReflectiveTransitiveClosure();
111 case AlloyLanguagePackage.ALS_CARDINALITY: return createALSCardinality();
112 case AlloyLanguagePackage.ALS_UNARY_MINUS: return createALSUnaryMinus();
113 case AlloyLanguagePackage.ALS_SUM: return createALSSum();
114 case AlloyLanguagePackage.ALS_FUNCTION_CALL: return createALSFunctionCall();
115 case AlloyLanguagePackage.ALS_NONE: return createALSNone();
116 case AlloyLanguagePackage.ALS_IDEN: return createALSIden();
117 case AlloyLanguagePackage.ALS_UNIV: return createALSUniv();
118 case AlloyLanguagePackage.ALS_INT: return createALSInt();
119 case AlloyLanguagePackage.ALS_STRING: return createALSString();
120 case AlloyLanguagePackage.ALS_REFERENCE: return createALSReference();
121 case AlloyLanguagePackage.ALS_NUMBER_LITERAL: return createALSNumberLiteral();
122 case AlloyLanguagePackage.ALS_STRING_LITERAL: return createALSStringLiteral();
123 default:
124 throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
125 }
126 }
127
128 /**
129 * <!-- begin-user-doc -->
130 * <!-- end-user-doc -->
131 * @generated
132 */
133 @Override
134 public Object createFromString(EDataType eDataType, String initialValue)
135 {
136 switch (eDataType.getClassifierID())
137 {
138 case AlloyLanguagePackage.ALS_MULTIPLICITY:
139 return createALSMultiplicityFromString(eDataType, initialValue);
140 case AlloyLanguagePackage.ALS_NUMERIC_OPERATOR:
141 return createALSNumericOperatorFromString(eDataType, initialValue);
142 default:
143 throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
144 }
145 }
146
147 /**
148 * <!-- begin-user-doc -->
149 * <!-- end-user-doc -->
150 * @generated
151 */
152 @Override
153 public String convertToString(EDataType eDataType, Object instanceValue)
154 {
155 switch (eDataType.getClassifierID())
156 {
157 case AlloyLanguagePackage.ALS_MULTIPLICITY:
158 return convertALSMultiplicityToString(eDataType, instanceValue);
159 case AlloyLanguagePackage.ALS_NUMERIC_OPERATOR:
160 return convertALSNumericOperatorToString(eDataType, instanceValue);
161 default:
162 throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
163 }
164 }
165
166 /**
167 * <!-- begin-user-doc -->
168 * <!-- end-user-doc -->
169 * @generated
170 */
171 public ALSDocument createALSDocument()
172 {
173 ALSDocumentImpl alsDocument = new ALSDocumentImpl();
174 return alsDocument;
175 }
176
177 /**
178 * <!-- begin-user-doc -->
179 * <!-- end-user-doc -->
180 * @generated
181 */
182 public ALSRelationDeclaration createALSRelationDeclaration()
183 {
184 ALSRelationDeclarationImpl alsRelationDeclaration = new ALSRelationDeclarationImpl();
185 return alsRelationDeclaration;
186 }
187
188 /**
189 * <!-- begin-user-doc -->
190 * <!-- end-user-doc -->
191 * @generated
192 */
193 public ALSTypeDeclaration createALSTypeDeclaration()
194 {
195 ALSTypeDeclarationImpl alsTypeDeclaration = new ALSTypeDeclarationImpl();
196 return alsTypeDeclaration;
197 }
198
199 /**
200 * <!-- begin-user-doc -->
201 * <!-- end-user-doc -->
202 * @generated
203 */
204 public ALSEnumDeclaration createALSEnumDeclaration()
205 {
206 ALSEnumDeclarationImpl alsEnumDeclaration = new ALSEnumDeclarationImpl();
207 return alsEnumDeclaration;
208 }
209
210 /**
211 * <!-- begin-user-doc -->
212 * <!-- end-user-doc -->
213 * @generated
214 */
215 public ALSEnumLiteral createALSEnumLiteral()
216 {
217 ALSEnumLiteralImpl alsEnumLiteral = new ALSEnumLiteralImpl();
218 return alsEnumLiteral;
219 }
220
221 /**
222 * <!-- begin-user-doc -->
223 * <!-- end-user-doc -->
224 * @generated
225 */
226 public ALSSignatureDeclaration createALSSignatureDeclaration()
227 {
228 ALSSignatureDeclarationImpl alsSignatureDeclaration = new ALSSignatureDeclarationImpl();
229 return alsSignatureDeclaration;
230 }
231
232 /**
233 * <!-- begin-user-doc -->
234 * <!-- end-user-doc -->
235 * @generated
236 */
237 public ALSSignatureBody createALSSignatureBody()
238 {
239 ALSSignatureBodyImpl alsSignatureBody = new ALSSignatureBodyImpl();
240 return alsSignatureBody;
241 }
242
243 /**
244 * <!-- begin-user-doc -->
245 * <!-- end-user-doc -->
246 * @generated
247 */
248 public ALSFieldDeclaration createALSFieldDeclaration()
249 {
250 ALSFieldDeclarationImpl alsFieldDeclaration = new ALSFieldDeclarationImpl();
251 return alsFieldDeclaration;
252 }
253
254 /**
255 * <!-- begin-user-doc -->
256 * <!-- end-user-doc -->
257 * @generated
258 */
259 public ALSDefinition createALSDefinition()
260 {
261 ALSDefinitionImpl alsDefinition = new ALSDefinitionImpl();
262 return alsDefinition;
263 }
264
265 /**
266 * <!-- begin-user-doc -->
267 * <!-- end-user-doc -->
268 * @generated
269 */
270 public ALSFunctionDefinition createALSFunctionDefinition()
271 {
272 ALSFunctionDefinitionImpl alsFunctionDefinition = new ALSFunctionDefinitionImpl();
273 return alsFunctionDefinition;
274 }
275
276 /**
277 * <!-- begin-user-doc -->
278 * <!-- end-user-doc -->
279 * @generated
280 */
281 public ALSRelationDefinition createALSRelationDefinition()
282 {
283 ALSRelationDefinitionImpl alsRelationDefinition = new ALSRelationDefinitionImpl();
284 return alsRelationDefinition;
285 }
286
287 /**
288 * <!-- begin-user-doc -->
289 * <!-- end-user-doc -->
290 * @generated
291 */
292 public ALSFactDeclaration createALSFactDeclaration()
293 {
294 ALSFactDeclarationImpl alsFactDeclaration = new ALSFactDeclarationImpl();
295 return alsFactDeclaration;
296 }
297
298 /**
299 * <!-- begin-user-doc -->
300 * <!-- end-user-doc -->
301 * @generated
302 */
303 public ALSTerm createALSTerm()
304 {
305 ALSTermImpl alsTerm = new ALSTermImpl();
306 return alsTerm;
307 }
308
309 /**
310 * <!-- begin-user-doc -->
311 * <!-- end-user-doc -->
312 * @generated
313 */
314 public ALSVariableDeclaration createALSVariableDeclaration()
315 {
316 ALSVariableDeclarationImpl alsVariableDeclaration = new ALSVariableDeclarationImpl();
317 return alsVariableDeclaration;
318 }
319
320 /**
321 * <!-- begin-user-doc -->
322 * <!-- end-user-doc -->
323 * @generated
324 */
325 public ALSRunCommand createALSRunCommand()
326 {
327 ALSRunCommandImpl alsRunCommand = new ALSRunCommandImpl();
328 return alsRunCommand;
329 }
330
331 /**
332 * <!-- begin-user-doc -->
333 * <!-- end-user-doc -->
334 * @generated
335 */
336 public ALSTypeScope createALSTypeScope()
337 {
338 ALSTypeScopeImpl alsTypeScope = new ALSTypeScopeImpl();
339 return alsTypeScope;
340 }
341
342 /**
343 * <!-- begin-user-doc -->
344 * <!-- end-user-doc -->
345 * @generated
346 */
347 public ALSSigScope createALSSigScope()
348 {
349 ALSSigScopeImpl alsSigScope = new ALSSigScopeImpl();
350 return alsSigScope;
351 }
352
353 /**
354 * <!-- begin-user-doc -->
355 * <!-- end-user-doc -->
356 * @generated
357 */
358 public ALSIntScope createALSIntScope()
359 {
360 ALSIntScopeImpl alsIntScope = new ALSIntScopeImpl();
361 return alsIntScope;
362 }
363
364 /**
365 * <!-- begin-user-doc -->
366 * <!-- end-user-doc -->
367 * @generated
368 */
369 public ALSStringScope createALSStringScope()
370 {
371 ALSStringScopeImpl alsStringScope = new ALSStringScopeImpl();
372 return alsStringScope;
373 }
374
375 /**
376 * <!-- begin-user-doc -->
377 * <!-- end-user-doc -->
378 * @generated
379 */
380 public ALSQuantifiedEx createALSQuantifiedEx()
381 {
382 ALSQuantifiedExImpl alsQuantifiedEx = new ALSQuantifiedExImpl();
383 return alsQuantifiedEx;
384 }
385
386 /**
387 * <!-- begin-user-doc -->
388 * <!-- end-user-doc -->
389 * @generated
390 */
391 public ALSOr createALSOr()
392 {
393 ALSOrImpl alsOr = new ALSOrImpl();
394 return alsOr;
395 }
396
397 /**
398 * <!-- begin-user-doc -->
399 * <!-- end-user-doc -->
400 * @generated
401 */
402 public ALSIff createALSIff()
403 {
404 ALSIffImpl alsIff = new ALSIffImpl();
405 return alsIff;
406 }
407
408 /**
409 * <!-- begin-user-doc -->
410 * <!-- end-user-doc -->
411 * @generated
412 */
413 public ALSImpl createALSImpl()
414 {
415 ALSImplImpl alsImpl = new ALSImplImpl();
416 return alsImpl;
417 }
418
419 /**
420 * <!-- begin-user-doc -->
421 * <!-- end-user-doc -->
422 * @generated
423 */
424 public ALSAnd createALSAnd()
425 {
426 ALSAndImpl alsAnd = new ALSAndImpl();
427 return alsAnd;
428 }
429
430 /**
431 * <!-- begin-user-doc -->
432 * <!-- end-user-doc -->
433 * @generated
434 */
435 public ALSEquals createALSEquals()
436 {
437 ALSEqualsImpl alsEquals = new ALSEqualsImpl();
438 return alsEquals;
439 }
440
441 /**
442 * <!-- begin-user-doc -->
443 * <!-- end-user-doc -->
444 * @generated
445 */
446 public ALSNotEquals createALSNotEquals()
447 {
448 ALSNotEqualsImpl alsNotEquals = new ALSNotEqualsImpl();
449 return alsNotEquals;
450 }
451
452 /**
453 * <!-- begin-user-doc -->
454 * <!-- end-user-doc -->
455 * @generated
456 */
457 public ALSSubset createALSSubset()
458 {
459 ALSSubsetImpl alsSubset = new ALSSubsetImpl();
460 return alsSubset;
461 }
462
463 /**
464 * <!-- begin-user-doc -->
465 * <!-- end-user-doc -->
466 * @generated
467 */
468 public ALSLess createALSLess()
469 {
470 ALSLessImpl alsLess = new ALSLessImpl();
471 return alsLess;
472 }
473
474 /**
475 * <!-- begin-user-doc -->
476 * <!-- end-user-doc -->
477 * @generated
478 */
479 public ALSLeq createALSLeq()
480 {
481 ALSLeqImpl alsLeq = new ALSLeqImpl();
482 return alsLeq;
483 }
484
485 /**
486 * <!-- begin-user-doc -->
487 * <!-- end-user-doc -->
488 * @generated
489 */
490 public ALSMore createALSMore()
491 {
492 ALSMoreImpl alsMore = new ALSMoreImpl();
493 return alsMore;
494 }
495
496 /**
497 * <!-- begin-user-doc -->
498 * <!-- end-user-doc -->
499 * @generated
500 */
501 public ALSMeq createALSMeq()
502 {
503 ALSMeqImpl alsMeq = new ALSMeqImpl();
504 return alsMeq;
505 }
506
507 /**
508 * <!-- begin-user-doc -->
509 * <!-- end-user-doc -->
510 * @generated
511 */
512 public ALSOverride createALSOverride()
513 {
514 ALSOverrideImpl alsOverride = new ALSOverrideImpl();
515 return alsOverride;
516 }
517
518 /**
519 * <!-- begin-user-doc -->
520 * <!-- end-user-doc -->
521 * @generated
522 */
523 public ALSRangeRestrictionRight createALSRangeRestrictionRight()
524 {
525 ALSRangeRestrictionRightImpl alsRangeRestrictionRight = new ALSRangeRestrictionRightImpl();
526 return alsRangeRestrictionRight;
527 }
528
529 /**
530 * <!-- begin-user-doc -->
531 * <!-- end-user-doc -->
532 * @generated
533 */
534 public ALSRangeRestrictionLeft createALSRangeRestrictionLeft()
535 {
536 ALSRangeRestrictionLeftImpl alsRangeRestrictionLeft = new ALSRangeRestrictionLeftImpl();
537 return alsRangeRestrictionLeft;
538 }
539
540 /**
541 * <!-- begin-user-doc -->
542 * <!-- end-user-doc -->
543 * @generated
544 */
545 public ALSJoin createALSJoin()
546 {
547 ALSJoinImpl alsJoin = new ALSJoinImpl();
548 return alsJoin;
549 }
550
551 /**
552 * <!-- begin-user-doc -->
553 * <!-- end-user-doc -->
554 * @generated
555 */
556 public ALSMinus createALSMinus()
557 {
558 ALSMinusImpl alsMinus = new ALSMinusImpl();
559 return alsMinus;
560 }
561
562 /**
563 * <!-- begin-user-doc -->
564 * <!-- end-user-doc -->
565 * @generated
566 */
567 public ALSPlus createALSPlus()
568 {
569 ALSPlusImpl alsPlus = new ALSPlusImpl();
570 return alsPlus;
571 }
572
573 /**
574 * <!-- begin-user-doc -->
575 * <!-- end-user-doc -->
576 * @generated
577 */
578 public ALSIntersection createALSIntersection()
579 {
580 ALSIntersectionImpl alsIntersection = new ALSIntersectionImpl();
581 return alsIntersection;
582 }
583
584 /**
585 * <!-- begin-user-doc -->
586 * <!-- end-user-doc -->
587 * @generated
588 */
589 public ALSDirectProduct createALSDirectProduct()
590 {
591 ALSDirectProductImpl alsDirectProduct = new ALSDirectProductImpl();
592 return alsDirectProduct;
593 }
594
595 /**
596 * <!-- begin-user-doc -->
597 * <!-- end-user-doc -->
598 * @generated
599 */
600 public ALSNot createALSNot()
601 {
602 ALSNotImpl alsNot = new ALSNotImpl();
603 return alsNot;
604 }
605
606 /**
607 * <!-- begin-user-doc -->
608 * <!-- end-user-doc -->
609 * @generated
610 */
611 public ALSInverseRelation createALSInverseRelation()
612 {
613 ALSInverseRelationImpl alsInverseRelation = new ALSInverseRelationImpl();
614 return alsInverseRelation;
615 }
616
617 /**
618 * <!-- begin-user-doc -->
619 * <!-- end-user-doc -->
620 * @generated
621 */
622 public AlSTransitiveClosure createAlSTransitiveClosure()
623 {
624 AlSTransitiveClosureImpl alSTransitiveClosure = new AlSTransitiveClosureImpl();
625 return alSTransitiveClosure;
626 }
627
628 /**
629 * <!-- begin-user-doc -->
630 * <!-- end-user-doc -->
631 * @generated
632 */
633 public ALSReflectiveTransitiveClosure createALSReflectiveTransitiveClosure()
634 {
635 ALSReflectiveTransitiveClosureImpl alsReflectiveTransitiveClosure = new ALSReflectiveTransitiveClosureImpl();
636 return alsReflectiveTransitiveClosure;
637 }
638
639 /**
640 * <!-- begin-user-doc -->
641 * <!-- end-user-doc -->
642 * @generated
643 */
644 public ALSCardinality createALSCardinality()
645 {
646 ALSCardinalityImpl alsCardinality = new ALSCardinalityImpl();
647 return alsCardinality;
648 }
649
650 /**
651 * <!-- begin-user-doc -->
652 * <!-- end-user-doc -->
653 * @generated
654 */
655 public ALSUnaryMinus createALSUnaryMinus()
656 {
657 ALSUnaryMinusImpl alsUnaryMinus = new ALSUnaryMinusImpl();
658 return alsUnaryMinus;
659 }
660
661 /**
662 * <!-- begin-user-doc -->
663 * <!-- end-user-doc -->
664 * @generated
665 */
666 public ALSSum createALSSum()
667 {
668 ALSSumImpl alsSum = new ALSSumImpl();
669 return alsSum;
670 }
671
672 /**
673 * <!-- begin-user-doc -->
674 * <!-- end-user-doc -->
675 * @generated
676 */
677 public ALSFunctionCall createALSFunctionCall()
678 {
679 ALSFunctionCallImpl alsFunctionCall = new ALSFunctionCallImpl();
680 return alsFunctionCall;
681 }
682
683 /**
684 * <!-- begin-user-doc -->
685 * <!-- end-user-doc -->
686 * @generated
687 */
688 public ALSNone createALSNone()
689 {
690 ALSNoneImpl alsNone = new ALSNoneImpl();
691 return alsNone;
692 }
693
694 /**
695 * <!-- begin-user-doc -->
696 * <!-- end-user-doc -->
697 * @generated
698 */
699 public ALSIden createALSIden()
700 {
701 ALSIdenImpl alsIden = new ALSIdenImpl();
702 return alsIden;
703 }
704
705 /**
706 * <!-- begin-user-doc -->
707 * <!-- end-user-doc -->
708 * @generated
709 */
710 public ALSUniv createALSUniv()
711 {
712 ALSUnivImpl alsUniv = new ALSUnivImpl();
713 return alsUniv;
714 }
715
716 /**
717 * <!-- begin-user-doc -->
718 * <!-- end-user-doc -->
719 * @generated
720 */
721 public ALSInt createALSInt()
722 {
723 ALSIntImpl alsInt = new ALSIntImpl();
724 return alsInt;
725 }
726
727 /**
728 * <!-- begin-user-doc -->
729 * <!-- end-user-doc -->
730 * @generated
731 */
732 public ALSString createALSString()
733 {
734 ALSStringImpl alsString = new ALSStringImpl();
735 return alsString;
736 }
737
738 /**
739 * <!-- begin-user-doc -->
740 * <!-- end-user-doc -->
741 * @generated
742 */
743 public ALSReference createALSReference()
744 {
745 ALSReferenceImpl alsReference = new ALSReferenceImpl();
746 return alsReference;
747 }
748
749 /**
750 * <!-- begin-user-doc -->
751 * <!-- end-user-doc -->
752 * @generated
753 */
754 public ALSNumberLiteral createALSNumberLiteral()
755 {
756 ALSNumberLiteralImpl alsNumberLiteral = new ALSNumberLiteralImpl();
757 return alsNumberLiteral;
758 }
759
760 /**
761 * <!-- begin-user-doc -->
762 * <!-- end-user-doc -->
763 * @generated
764 */
765 public ALSStringLiteral createALSStringLiteral()
766 {
767 ALSStringLiteralImpl alsStringLiteral = new ALSStringLiteralImpl();
768 return alsStringLiteral;
769 }
770
771 /**
772 * <!-- begin-user-doc -->
773 * <!-- end-user-doc -->
774 * @generated
775 */
776 public ALSMultiplicity createALSMultiplicityFromString(EDataType eDataType, String initialValue)
777 {
778 ALSMultiplicity result = ALSMultiplicity.get(initialValue);
779 if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
780 return result;
781 }
782
783 /**
784 * <!-- begin-user-doc -->
785 * <!-- end-user-doc -->
786 * @generated
787 */
788 public String convertALSMultiplicityToString(EDataType eDataType, Object instanceValue)
789 {
790 return instanceValue == null ? null : instanceValue.toString();
791 }
792
793 /**
794 * <!-- begin-user-doc -->
795 * <!-- end-user-doc -->
796 * @generated
797 */
798 public ALSNumericOperator createALSNumericOperatorFromString(EDataType eDataType, String initialValue)
799 {
800 ALSNumericOperator result = ALSNumericOperator.get(initialValue);
801 if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
802 return result;
803 }
804
805 /**
806 * <!-- begin-user-doc -->
807 * <!-- end-user-doc -->
808 * @generated
809 */
810 public String convertALSNumericOperatorToString(EDataType eDataType, Object instanceValue)
811 {
812 return instanceValue == null ? null : instanceValue.toString();
813 }
814
815 /**
816 * <!-- begin-user-doc -->
817 * <!-- end-user-doc -->
818 * @generated
819 */
820 public AlloyLanguagePackage getAlloyLanguagePackage()
821 {
822 return (AlloyLanguagePackage)getEPackage();
823 }
824
825 /**
826 * <!-- begin-user-doc -->
827 * <!-- end-user-doc -->
828 * @deprecated
829 * @generated
830 */
831 @Deprecated
832 public static AlloyLanguagePackage getPackage()
833 {
834 return AlloyLanguagePackage.eINSTANCE;
835 }
836
837} //AlloyLanguageFactoryImpl
diff --git a/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/AlloyLanguagePackageImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/AlloyLanguagePackageImpl.java
new file mode 100644
index 00000000..768840c9
--- /dev/null
+++ b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/AlloyLanguagePackageImpl.java
@@ -0,0 +1,2498 @@
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.ALSString;
51import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSStringLiteral;
52import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSStringScope;
53import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSSubset;
54import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSSum;
55import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSTerm;
56import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSTypeDeclaration;
57import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSTypeScope;
58import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSUnaryMinus;
59import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSUniv;
60import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSVariableDeclaration;
61import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlSTransitiveClosure;
62import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguageFactory;
63import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguagePackage;
64
65import org.eclipse.emf.ecore.EAttribute;
66import org.eclipse.emf.ecore.EClass;
67import org.eclipse.emf.ecore.EEnum;
68import org.eclipse.emf.ecore.EPackage;
69import org.eclipse.emf.ecore.EReference;
70
71import org.eclipse.emf.ecore.impl.EPackageImpl;
72
73/**
74 * <!-- begin-user-doc -->
75 * An implementation of the model <b>Package</b>.
76 * <!-- end-user-doc -->
77 * @generated
78 */
79public class AlloyLanguagePackageImpl extends EPackageImpl implements AlloyLanguagePackage
80{
81 /**
82 * <!-- begin-user-doc -->
83 * <!-- end-user-doc -->
84 * @generated
85 */
86 private EClass alsDocumentEClass = null;
87
88 /**
89 * <!-- begin-user-doc -->
90 * <!-- end-user-doc -->
91 * @generated
92 */
93 private EClass alsRelationDeclarationEClass = null;
94
95 /**
96 * <!-- begin-user-doc -->
97 * <!-- end-user-doc -->
98 * @generated
99 */
100 private EClass alsTypeDeclarationEClass = null;
101
102 /**
103 * <!-- begin-user-doc -->
104 * <!-- end-user-doc -->
105 * @generated
106 */
107 private EClass alsEnumDeclarationEClass = null;
108
109 /**
110 * <!-- begin-user-doc -->
111 * <!-- end-user-doc -->
112 * @generated
113 */
114 private EClass alsEnumLiteralEClass = null;
115
116 /**
117 * <!-- begin-user-doc -->
118 * <!-- end-user-doc -->
119 * @generated
120 */
121 private EClass alsSignatureDeclarationEClass = null;
122
123 /**
124 * <!-- begin-user-doc -->
125 * <!-- end-user-doc -->
126 * @generated
127 */
128 private EClass alsSignatureBodyEClass = null;
129
130 /**
131 * <!-- begin-user-doc -->
132 * <!-- end-user-doc -->
133 * @generated
134 */
135 private EClass alsFieldDeclarationEClass = null;
136
137 /**
138 * <!-- begin-user-doc -->
139 * <!-- end-user-doc -->
140 * @generated
141 */
142 private EClass alsDefinitionEClass = null;
143
144 /**
145 * <!-- begin-user-doc -->
146 * <!-- end-user-doc -->
147 * @generated
148 */
149 private EClass alsFunctionDefinitionEClass = null;
150
151 /**
152 * <!-- begin-user-doc -->
153 * <!-- end-user-doc -->
154 * @generated
155 */
156 private EClass alsRelationDefinitionEClass = null;
157
158 /**
159 * <!-- begin-user-doc -->
160 * <!-- end-user-doc -->
161 * @generated
162 */
163 private EClass alsFactDeclarationEClass = null;
164
165 /**
166 * <!-- begin-user-doc -->
167 * <!-- end-user-doc -->
168 * @generated
169 */
170 private EClass alsTermEClass = null;
171
172 /**
173 * <!-- begin-user-doc -->
174 * <!-- end-user-doc -->
175 * @generated
176 */
177 private EClass alsVariableDeclarationEClass = null;
178
179 /**
180 * <!-- begin-user-doc -->
181 * <!-- end-user-doc -->
182 * @generated
183 */
184 private EClass alsRunCommandEClass = null;
185
186 /**
187 * <!-- begin-user-doc -->
188 * <!-- end-user-doc -->
189 * @generated
190 */
191 private EClass alsTypeScopeEClass = null;
192
193 /**
194 * <!-- begin-user-doc -->
195 * <!-- end-user-doc -->
196 * @generated
197 */
198 private EClass alsSigScopeEClass = null;
199
200 /**
201 * <!-- begin-user-doc -->
202 * <!-- end-user-doc -->
203 * @generated
204 */
205 private EClass alsIntScopeEClass = null;
206
207 /**
208 * <!-- begin-user-doc -->
209 * <!-- end-user-doc -->
210 * @generated
211 */
212 private EClass alsStringScopeEClass = null;
213
214 /**
215 * <!-- begin-user-doc -->
216 * <!-- end-user-doc -->
217 * @generated
218 */
219 private EClass alsQuantifiedExEClass = null;
220
221 /**
222 * <!-- begin-user-doc -->
223 * <!-- end-user-doc -->
224 * @generated
225 */
226 private EClass alsOrEClass = null;
227
228 /**
229 * <!-- begin-user-doc -->
230 * <!-- end-user-doc -->
231 * @generated
232 */
233 private EClass alsIffEClass = null;
234
235 /**
236 * <!-- begin-user-doc -->
237 * <!-- end-user-doc -->
238 * @generated
239 */
240 private EClass alsImplEClass = null;
241
242 /**
243 * <!-- begin-user-doc -->
244 * <!-- end-user-doc -->
245 * @generated
246 */
247 private EClass alsAndEClass = null;
248
249 /**
250 * <!-- begin-user-doc -->
251 * <!-- end-user-doc -->
252 * @generated
253 */
254 private EClass alsEqualsEClass = null;
255
256 /**
257 * <!-- begin-user-doc -->
258 * <!-- end-user-doc -->
259 * @generated
260 */
261 private EClass alsNotEqualsEClass = null;
262
263 /**
264 * <!-- begin-user-doc -->
265 * <!-- end-user-doc -->
266 * @generated
267 */
268 private EClass alsSubsetEClass = null;
269
270 /**
271 * <!-- begin-user-doc -->
272 * <!-- end-user-doc -->
273 * @generated
274 */
275 private EClass alsLessEClass = null;
276
277 /**
278 * <!-- begin-user-doc -->
279 * <!-- end-user-doc -->
280 * @generated
281 */
282 private EClass alsLeqEClass = null;
283
284 /**
285 * <!-- begin-user-doc -->
286 * <!-- end-user-doc -->
287 * @generated
288 */
289 private EClass alsMoreEClass = null;
290
291 /**
292 * <!-- begin-user-doc -->
293 * <!-- end-user-doc -->
294 * @generated
295 */
296 private EClass alsMeqEClass = null;
297
298 /**
299 * <!-- begin-user-doc -->
300 * <!-- end-user-doc -->
301 * @generated
302 */
303 private EClass alsOverrideEClass = null;
304
305 /**
306 * <!-- begin-user-doc -->
307 * <!-- end-user-doc -->
308 * @generated
309 */
310 private EClass alsRangeRestrictionRightEClass = null;
311
312 /**
313 * <!-- begin-user-doc -->
314 * <!-- end-user-doc -->
315 * @generated
316 */
317 private EClass alsRangeRestrictionLeftEClass = null;
318
319 /**
320 * <!-- begin-user-doc -->
321 * <!-- end-user-doc -->
322 * @generated
323 */
324 private EClass alsJoinEClass = null;
325
326 /**
327 * <!-- begin-user-doc -->
328 * <!-- end-user-doc -->
329 * @generated
330 */
331 private EClass alsMinusEClass = null;
332
333 /**
334 * <!-- begin-user-doc -->
335 * <!-- end-user-doc -->
336 * @generated
337 */
338 private EClass alsPlusEClass = null;
339
340 /**
341 * <!-- begin-user-doc -->
342 * <!-- end-user-doc -->
343 * @generated
344 */
345 private EClass alsIntersectionEClass = null;
346
347 /**
348 * <!-- begin-user-doc -->
349 * <!-- end-user-doc -->
350 * @generated
351 */
352 private EClass alsDirectProductEClass = null;
353
354 /**
355 * <!-- begin-user-doc -->
356 * <!-- end-user-doc -->
357 * @generated
358 */
359 private EClass alsNotEClass = null;
360
361 /**
362 * <!-- begin-user-doc -->
363 * <!-- end-user-doc -->
364 * @generated
365 */
366 private EClass alsInverseRelationEClass = null;
367
368 /**
369 * <!-- begin-user-doc -->
370 * <!-- end-user-doc -->
371 * @generated
372 */
373 private EClass alSTransitiveClosureEClass = null;
374
375 /**
376 * <!-- begin-user-doc -->
377 * <!-- end-user-doc -->
378 * @generated
379 */
380 private EClass alsReflectiveTransitiveClosureEClass = null;
381
382 /**
383 * <!-- begin-user-doc -->
384 * <!-- end-user-doc -->
385 * @generated
386 */
387 private EClass alsCardinalityEClass = null;
388
389 /**
390 * <!-- begin-user-doc -->
391 * <!-- end-user-doc -->
392 * @generated
393 */
394 private EClass alsUnaryMinusEClass = null;
395
396 /**
397 * <!-- begin-user-doc -->
398 * <!-- end-user-doc -->
399 * @generated
400 */
401 private EClass alsSumEClass = null;
402
403 /**
404 * <!-- begin-user-doc -->
405 * <!-- end-user-doc -->
406 * @generated
407 */
408 private EClass alsFunctionCallEClass = null;
409
410 /**
411 * <!-- begin-user-doc -->
412 * <!-- end-user-doc -->
413 * @generated
414 */
415 private EClass alsNoneEClass = null;
416
417 /**
418 * <!-- begin-user-doc -->
419 * <!-- end-user-doc -->
420 * @generated
421 */
422 private EClass alsIdenEClass = null;
423
424 /**
425 * <!-- begin-user-doc -->
426 * <!-- end-user-doc -->
427 * @generated
428 */
429 private EClass alsUnivEClass = null;
430
431 /**
432 * <!-- begin-user-doc -->
433 * <!-- end-user-doc -->
434 * @generated
435 */
436 private EClass alsIntEClass = null;
437
438 /**
439 * <!-- begin-user-doc -->
440 * <!-- end-user-doc -->
441 * @generated
442 */
443 private EClass alsStringEClass = null;
444
445 /**
446 * <!-- begin-user-doc -->
447 * <!-- end-user-doc -->
448 * @generated
449 */
450 private EClass alsReferenceEClass = null;
451
452 /**
453 * <!-- begin-user-doc -->
454 * <!-- end-user-doc -->
455 * @generated
456 */
457 private EClass alsNumberLiteralEClass = null;
458
459 /**
460 * <!-- begin-user-doc -->
461 * <!-- end-user-doc -->
462 * @generated
463 */
464 private EClass alsStringLiteralEClass = null;
465
466 /**
467 * <!-- begin-user-doc -->
468 * <!-- end-user-doc -->
469 * @generated
470 */
471 private EEnum alsMultiplicityEEnum = null;
472
473 /**
474 * <!-- begin-user-doc -->
475 * <!-- end-user-doc -->
476 * @generated
477 */
478 private EEnum alsNumericOperatorEEnum = null;
479
480 /**
481 * Creates an instance of the model <b>Package</b>, registered with
482 * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
483 * package URI value.
484 * <p>Note: the correct way to create the package is via the static
485 * factory method {@link #init init()}, which also performs
486 * initialization of the package, or returns the registered package,
487 * if one already exists.
488 * <!-- begin-user-doc -->
489 * <!-- end-user-doc -->
490 * @see org.eclipse.emf.ecore.EPackage.Registry
491 * @see hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguagePackage#eNS_URI
492 * @see #init()
493 * @generated
494 */
495 private AlloyLanguagePackageImpl()
496 {
497 super(eNS_URI, AlloyLanguageFactory.eINSTANCE);
498 }
499
500 /**
501 * <!-- begin-user-doc -->
502 * <!-- end-user-doc -->
503 * @generated
504 */
505 private static boolean isInited = false;
506
507 /**
508 * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
509 *
510 * <p>This method is used to initialize {@link AlloyLanguagePackage#eINSTANCE} when that field is accessed.
511 * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
512 * <!-- begin-user-doc -->
513 * <!-- end-user-doc -->
514 * @see #eNS_URI
515 * @see #createPackageContents()
516 * @see #initializePackageContents()
517 * @generated
518 */
519 public static AlloyLanguagePackage init()
520 {
521 if (isInited) return (AlloyLanguagePackage)EPackage.Registry.INSTANCE.getEPackage(AlloyLanguagePackage.eNS_URI);
522
523 // Obtain or create and register package
524 AlloyLanguagePackageImpl theAlloyLanguagePackage = (AlloyLanguagePackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof AlloyLanguagePackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new AlloyLanguagePackageImpl());
525
526 isInited = true;
527
528 // Create package meta-data objects
529 theAlloyLanguagePackage.createPackageContents();
530
531 // Initialize created meta-data
532 theAlloyLanguagePackage.initializePackageContents();
533
534 // Mark meta-data to indicate it can't be changed
535 theAlloyLanguagePackage.freeze();
536
537
538 // Update the registry and return the package
539 EPackage.Registry.INSTANCE.put(AlloyLanguagePackage.eNS_URI, theAlloyLanguagePackage);
540 return theAlloyLanguagePackage;
541 }
542
543 /**
544 * <!-- begin-user-doc -->
545 * <!-- end-user-doc -->
546 * @generated
547 */
548 public EClass getALSDocument()
549 {
550 return alsDocumentEClass;
551 }
552
553 /**
554 * <!-- begin-user-doc -->
555 * <!-- end-user-doc -->
556 * @generated
557 */
558 public EReference getALSDocument_EnumDeclarations()
559 {
560 return (EReference)alsDocumentEClass.getEStructuralFeatures().get(0);
561 }
562
563 /**
564 * <!-- begin-user-doc -->
565 * <!-- end-user-doc -->
566 * @generated
567 */
568 public EReference getALSDocument_SignatureBodies()
569 {
570 return (EReference)alsDocumentEClass.getEStructuralFeatures().get(1);
571 }
572
573 /**
574 * <!-- begin-user-doc -->
575 * <!-- end-user-doc -->
576 * @generated
577 */
578 public EReference getALSDocument_FunctionDefinitions()
579 {
580 return (EReference)alsDocumentEClass.getEStructuralFeatures().get(2);
581 }
582
583 /**
584 * <!-- begin-user-doc -->
585 * <!-- end-user-doc -->
586 * @generated
587 */
588 public EReference getALSDocument_RelationDefinitions()
589 {
590 return (EReference)alsDocumentEClass.getEStructuralFeatures().get(3);
591 }
592
593 /**
594 * <!-- begin-user-doc -->
595 * <!-- end-user-doc -->
596 * @generated
597 */
598 public EReference getALSDocument_FactDeclarations()
599 {
600 return (EReference)alsDocumentEClass.getEStructuralFeatures().get(4);
601 }
602
603 /**
604 * <!-- begin-user-doc -->
605 * <!-- end-user-doc -->
606 * @generated
607 */
608 public EReference getALSDocument_RunCommand()
609 {
610 return (EReference)alsDocumentEClass.getEStructuralFeatures().get(5);
611 }
612
613 /**
614 * <!-- begin-user-doc -->
615 * <!-- end-user-doc -->
616 * @generated
617 */
618 public EClass getALSRelationDeclaration()
619 {
620 return alsRelationDeclarationEClass;
621 }
622
623 /**
624 * <!-- begin-user-doc -->
625 * <!-- end-user-doc -->
626 * @generated
627 */
628 public EAttribute getALSRelationDeclaration_Name()
629 {
630 return (EAttribute)alsRelationDeclarationEClass.getEStructuralFeatures().get(0);
631 }
632
633 /**
634 * <!-- begin-user-doc -->
635 * <!-- end-user-doc -->
636 * @generated
637 */
638 public EClass getALSTypeDeclaration()
639 {
640 return alsTypeDeclarationEClass;
641 }
642
643 /**
644 * <!-- begin-user-doc -->
645 * <!-- end-user-doc -->
646 * @generated
647 */
648 public EClass getALSEnumDeclaration()
649 {
650 return alsEnumDeclarationEClass;
651 }
652
653 /**
654 * <!-- begin-user-doc -->
655 * <!-- end-user-doc -->
656 * @generated
657 */
658 public EReference getALSEnumDeclaration_Literal()
659 {
660 return (EReference)alsEnumDeclarationEClass.getEStructuralFeatures().get(0);
661 }
662
663 /**
664 * <!-- begin-user-doc -->
665 * <!-- end-user-doc -->
666 * @generated
667 */
668 public EClass getALSEnumLiteral()
669 {
670 return alsEnumLiteralEClass;
671 }
672
673 /**
674 * <!-- begin-user-doc -->
675 * <!-- end-user-doc -->
676 * @generated
677 */
678 public EClass getALSSignatureDeclaration()
679 {
680 return alsSignatureDeclarationEClass;
681 }
682
683 /**
684 * <!-- begin-user-doc -->
685 * <!-- end-user-doc -->
686 * @generated
687 */
688 public EClass getALSSignatureBody()
689 {
690 return alsSignatureBodyEClass;
691 }
692
693 /**
694 * <!-- begin-user-doc -->
695 * <!-- end-user-doc -->
696 * @generated
697 */
698 public EAttribute getALSSignatureBody_Multiplicity()
699 {
700 return (EAttribute)alsSignatureBodyEClass.getEStructuralFeatures().get(0);
701 }
702
703 /**
704 * <!-- begin-user-doc -->
705 * <!-- end-user-doc -->
706 * @generated
707 */
708 public EAttribute getALSSignatureBody_Abstract()
709 {
710 return (EAttribute)alsSignatureBodyEClass.getEStructuralFeatures().get(1);
711 }
712
713 /**
714 * <!-- begin-user-doc -->
715 * <!-- end-user-doc -->
716 * @generated
717 */
718 public EReference getALSSignatureBody_Declarations()
719 {
720 return (EReference)alsSignatureBodyEClass.getEStructuralFeatures().get(2);
721 }
722
723 /**
724 * <!-- begin-user-doc -->
725 * <!-- end-user-doc -->
726 * @generated
727 */
728 public EReference getALSSignatureBody_Supertype()
729 {
730 return (EReference)alsSignatureBodyEClass.getEStructuralFeatures().get(3);
731 }
732
733 /**
734 * <!-- begin-user-doc -->
735 * <!-- end-user-doc -->
736 * @generated
737 */
738 public EReference getALSSignatureBody_Superset()
739 {
740 return (EReference)alsSignatureBodyEClass.getEStructuralFeatures().get(4);
741 }
742
743 /**
744 * <!-- begin-user-doc -->
745 * <!-- end-user-doc -->
746 * @generated
747 */
748 public EReference getALSSignatureBody_Fields()
749 {
750 return (EReference)alsSignatureBodyEClass.getEStructuralFeatures().get(5);
751 }
752
753 /**
754 * <!-- begin-user-doc -->
755 * <!-- end-user-doc -->
756 * @generated
757 */
758 public EClass getALSFieldDeclaration()
759 {
760 return alsFieldDeclarationEClass;
761 }
762
763 /**
764 * <!-- begin-user-doc -->
765 * <!-- end-user-doc -->
766 * @generated
767 */
768 public EAttribute getALSFieldDeclaration_Multiplicity()
769 {
770 return (EAttribute)alsFieldDeclarationEClass.getEStructuralFeatures().get(0);
771 }
772
773 /**
774 * <!-- begin-user-doc -->
775 * <!-- end-user-doc -->
776 * @generated
777 */
778 public EReference getALSFieldDeclaration_Type()
779 {
780 return (EReference)alsFieldDeclarationEClass.getEStructuralFeatures().get(1);
781 }
782
783 /**
784 * <!-- begin-user-doc -->
785 * <!-- end-user-doc -->
786 * @generated
787 */
788 public EClass getALSDefinition()
789 {
790 return alsDefinitionEClass;
791 }
792
793 /**
794 * <!-- begin-user-doc -->
795 * <!-- end-user-doc -->
796 * @generated
797 */
798 public EAttribute getALSDefinition_Name()
799 {
800 return (EAttribute)alsDefinitionEClass.getEStructuralFeatures().get(0);
801 }
802
803 /**
804 * <!-- begin-user-doc -->
805 * <!-- end-user-doc -->
806 * @generated
807 */
808 public EReference getALSDefinition_Variables()
809 {
810 return (EReference)alsDefinitionEClass.getEStructuralFeatures().get(1);
811 }
812
813 /**
814 * <!-- begin-user-doc -->
815 * <!-- end-user-doc -->
816 * @generated
817 */
818 public EReference getALSDefinition_Value()
819 {
820 return (EReference)alsDefinitionEClass.getEStructuralFeatures().get(2);
821 }
822
823 /**
824 * <!-- begin-user-doc -->
825 * <!-- end-user-doc -->
826 * @generated
827 */
828 public EClass getALSFunctionDefinition()
829 {
830 return alsFunctionDefinitionEClass;
831 }
832
833 /**
834 * <!-- begin-user-doc -->
835 * <!-- end-user-doc -->
836 * @generated
837 */
838 public EReference getALSFunctionDefinition_Type()
839 {
840 return (EReference)alsFunctionDefinitionEClass.getEStructuralFeatures().get(0);
841 }
842
843 /**
844 * <!-- begin-user-doc -->
845 * <!-- end-user-doc -->
846 * @generated
847 */
848 public EClass getALSRelationDefinition()
849 {
850 return alsRelationDefinitionEClass;
851 }
852
853 /**
854 * <!-- begin-user-doc -->
855 * <!-- end-user-doc -->
856 * @generated
857 */
858 public EClass getALSFactDeclaration()
859 {
860 return alsFactDeclarationEClass;
861 }
862
863 /**
864 * <!-- begin-user-doc -->
865 * <!-- end-user-doc -->
866 * @generated
867 */
868 public EAttribute getALSFactDeclaration_Name()
869 {
870 return (EAttribute)alsFactDeclarationEClass.getEStructuralFeatures().get(0);
871 }
872
873 /**
874 * <!-- begin-user-doc -->
875 * <!-- end-user-doc -->
876 * @generated
877 */
878 public EReference getALSFactDeclaration_Term()
879 {
880 return (EReference)alsFactDeclarationEClass.getEStructuralFeatures().get(1);
881 }
882
883 /**
884 * <!-- begin-user-doc -->
885 * <!-- end-user-doc -->
886 * @generated
887 */
888 public EClass getALSTerm()
889 {
890 return alsTermEClass;
891 }
892
893 /**
894 * <!-- begin-user-doc -->
895 * <!-- end-user-doc -->
896 * @generated
897 */
898 public EClass getALSVariableDeclaration()
899 {
900 return alsVariableDeclarationEClass;
901 }
902
903 /**
904 * <!-- begin-user-doc -->
905 * <!-- end-user-doc -->
906 * @generated
907 */
908 public EReference getALSVariableDeclaration_Range()
909 {
910 return (EReference)alsVariableDeclarationEClass.getEStructuralFeatures().get(0);
911 }
912
913 /**
914 * <!-- begin-user-doc -->
915 * <!-- end-user-doc -->
916 * @generated
917 */
918 public EClass getALSRunCommand()
919 {
920 return alsRunCommandEClass;
921 }
922
923 /**
924 * <!-- begin-user-doc -->
925 * <!-- end-user-doc -->
926 * @generated
927 */
928 public EReference getALSRunCommand_TypeScopes()
929 {
930 return (EReference)alsRunCommandEClass.getEStructuralFeatures().get(0);
931 }
932
933 /**
934 * <!-- begin-user-doc -->
935 * <!-- end-user-doc -->
936 * @generated
937 */
938 public EClass getALSTypeScope()
939 {
940 return alsTypeScopeEClass;
941 }
942
943 /**
944 * <!-- begin-user-doc -->
945 * <!-- end-user-doc -->
946 * @generated
947 */
948 public EAttribute getALSTypeScope_Number()
949 {
950 return (EAttribute)alsTypeScopeEClass.getEStructuralFeatures().get(0);
951 }
952
953 /**
954 * <!-- begin-user-doc -->
955 * <!-- end-user-doc -->
956 * @generated
957 */
958 public EClass getALSSigScope()
959 {
960 return alsSigScopeEClass;
961 }
962
963 /**
964 * <!-- begin-user-doc -->
965 * <!-- end-user-doc -->
966 * @generated
967 */
968 public EAttribute getALSSigScope_Exactly()
969 {
970 return (EAttribute)alsSigScopeEClass.getEStructuralFeatures().get(0);
971 }
972
973 /**
974 * <!-- begin-user-doc -->
975 * <!-- end-user-doc -->
976 * @generated
977 */
978 public EReference getALSSigScope_Type()
979 {
980 return (EReference)alsSigScopeEClass.getEStructuralFeatures().get(1);
981 }
982
983 /**
984 * <!-- begin-user-doc -->
985 * <!-- end-user-doc -->
986 * @generated
987 */
988 public EClass getALSIntScope()
989 {
990 return alsIntScopeEClass;
991 }
992
993 /**
994 * <!-- begin-user-doc -->
995 * <!-- end-user-doc -->
996 * @generated
997 */
998 public EClass getALSStringScope()
999 {
1000 return alsStringScopeEClass;
1001 }
1002
1003 /**
1004 * <!-- begin-user-doc -->
1005 * <!-- end-user-doc -->
1006 * @generated
1007 */
1008 public EClass getALSQuantifiedEx()
1009 {
1010 return alsQuantifiedExEClass;
1011 }
1012
1013 /**
1014 * <!-- begin-user-doc -->
1015 * <!-- end-user-doc -->
1016 * @generated
1017 */
1018 public EAttribute getALSQuantifiedEx_Type()
1019 {
1020 return (EAttribute)alsQuantifiedExEClass.getEStructuralFeatures().get(0);
1021 }
1022
1023 /**
1024 * <!-- begin-user-doc -->
1025 * <!-- end-user-doc -->
1026 * @generated
1027 */
1028 public EAttribute getALSQuantifiedEx_Disj()
1029 {
1030 return (EAttribute)alsQuantifiedExEClass.getEStructuralFeatures().get(1);
1031 }
1032
1033 /**
1034 * <!-- begin-user-doc -->
1035 * <!-- end-user-doc -->
1036 * @generated
1037 */
1038 public EReference getALSQuantifiedEx_Variables()
1039 {
1040 return (EReference)alsQuantifiedExEClass.getEStructuralFeatures().get(2);
1041 }
1042
1043 /**
1044 * <!-- begin-user-doc -->
1045 * <!-- end-user-doc -->
1046 * @generated
1047 */
1048 public EReference getALSQuantifiedEx_Expression()
1049 {
1050 return (EReference)alsQuantifiedExEClass.getEStructuralFeatures().get(3);
1051 }
1052
1053 /**
1054 * <!-- begin-user-doc -->
1055 * <!-- end-user-doc -->
1056 * @generated
1057 */
1058 public EClass getALSOr()
1059 {
1060 return alsOrEClass;
1061 }
1062
1063 /**
1064 * <!-- begin-user-doc -->
1065 * <!-- end-user-doc -->
1066 * @generated
1067 */
1068 public EReference getALSOr_LeftOperand()
1069 {
1070 return (EReference)alsOrEClass.getEStructuralFeatures().get(0);
1071 }
1072
1073 /**
1074 * <!-- begin-user-doc -->
1075 * <!-- end-user-doc -->
1076 * @generated
1077 */
1078 public EReference getALSOr_RightOperand()
1079 {
1080 return (EReference)alsOrEClass.getEStructuralFeatures().get(1);
1081 }
1082
1083 /**
1084 * <!-- begin-user-doc -->
1085 * <!-- end-user-doc -->
1086 * @generated
1087 */
1088 public EClass getALSIff()
1089 {
1090 return alsIffEClass;
1091 }
1092
1093 /**
1094 * <!-- begin-user-doc -->
1095 * <!-- end-user-doc -->
1096 * @generated
1097 */
1098 public EReference getALSIff_LeftOperand()
1099 {
1100 return (EReference)alsIffEClass.getEStructuralFeatures().get(0);
1101 }
1102
1103 /**
1104 * <!-- begin-user-doc -->
1105 * <!-- end-user-doc -->
1106 * @generated
1107 */
1108 public EReference getALSIff_RightOperand()
1109 {
1110 return (EReference)alsIffEClass.getEStructuralFeatures().get(1);
1111 }
1112
1113 /**
1114 * <!-- begin-user-doc -->
1115 * <!-- end-user-doc -->
1116 * @generated
1117 */
1118 public EClass getALSImpl()
1119 {
1120 return alsImplEClass;
1121 }
1122
1123 /**
1124 * <!-- begin-user-doc -->
1125 * <!-- end-user-doc -->
1126 * @generated
1127 */
1128 public EReference getALSImpl_LeftOperand()
1129 {
1130 return (EReference)alsImplEClass.getEStructuralFeatures().get(0);
1131 }
1132
1133 /**
1134 * <!-- begin-user-doc -->
1135 * <!-- end-user-doc -->
1136 * @generated
1137 */
1138 public EReference getALSImpl_RightOperand()
1139 {
1140 return (EReference)alsImplEClass.getEStructuralFeatures().get(1);
1141 }
1142
1143 /**
1144 * <!-- begin-user-doc -->
1145 * <!-- end-user-doc -->
1146 * @generated
1147 */
1148 public EReference getALSImpl_ElseOperand()
1149 {
1150 return (EReference)alsImplEClass.getEStructuralFeatures().get(2);
1151 }
1152
1153 /**
1154 * <!-- begin-user-doc -->
1155 * <!-- end-user-doc -->
1156 * @generated
1157 */
1158 public EClass getALSAnd()
1159 {
1160 return alsAndEClass;
1161 }
1162
1163 /**
1164 * <!-- begin-user-doc -->
1165 * <!-- end-user-doc -->
1166 * @generated
1167 */
1168 public EReference getALSAnd_LeftOperand()
1169 {
1170 return (EReference)alsAndEClass.getEStructuralFeatures().get(0);
1171 }
1172
1173 /**
1174 * <!-- begin-user-doc -->
1175 * <!-- end-user-doc -->
1176 * @generated
1177 */
1178 public EReference getALSAnd_RightOperand()
1179 {
1180 return (EReference)alsAndEClass.getEStructuralFeatures().get(1);
1181 }
1182
1183 /**
1184 * <!-- begin-user-doc -->
1185 * <!-- end-user-doc -->
1186 * @generated
1187 */
1188 public EClass getALSEquals()
1189 {
1190 return alsEqualsEClass;
1191 }
1192
1193 /**
1194 * <!-- begin-user-doc -->
1195 * <!-- end-user-doc -->
1196 * @generated
1197 */
1198 public EReference getALSEquals_LeftOperand()
1199 {
1200 return (EReference)alsEqualsEClass.getEStructuralFeatures().get(0);
1201 }
1202
1203 /**
1204 * <!-- begin-user-doc -->
1205 * <!-- end-user-doc -->
1206 * @generated
1207 */
1208 public EReference getALSEquals_RightOperand()
1209 {
1210 return (EReference)alsEqualsEClass.getEStructuralFeatures().get(1);
1211 }
1212
1213 /**
1214 * <!-- begin-user-doc -->
1215 * <!-- end-user-doc -->
1216 * @generated
1217 */
1218 public EClass getALSNotEquals()
1219 {
1220 return alsNotEqualsEClass;
1221 }
1222
1223 /**
1224 * <!-- begin-user-doc -->
1225 * <!-- end-user-doc -->
1226 * @generated
1227 */
1228 public EReference getALSNotEquals_LeftOperand()
1229 {
1230 return (EReference)alsNotEqualsEClass.getEStructuralFeatures().get(0);
1231 }
1232
1233 /**
1234 * <!-- begin-user-doc -->
1235 * <!-- end-user-doc -->
1236 * @generated
1237 */
1238 public EReference getALSNotEquals_RightOperand()
1239 {
1240 return (EReference)alsNotEqualsEClass.getEStructuralFeatures().get(1);
1241 }
1242
1243 /**
1244 * <!-- begin-user-doc -->
1245 * <!-- end-user-doc -->
1246 * @generated
1247 */
1248 public EClass getALSSubset()
1249 {
1250 return alsSubsetEClass;
1251 }
1252
1253 /**
1254 * <!-- begin-user-doc -->
1255 * <!-- end-user-doc -->
1256 * @generated
1257 */
1258 public EReference getALSSubset_LeftOperand()
1259 {
1260 return (EReference)alsSubsetEClass.getEStructuralFeatures().get(0);
1261 }
1262
1263 /**
1264 * <!-- begin-user-doc -->
1265 * <!-- end-user-doc -->
1266 * @generated
1267 */
1268 public EReference getALSSubset_RightOperand()
1269 {
1270 return (EReference)alsSubsetEClass.getEStructuralFeatures().get(1);
1271 }
1272
1273 /**
1274 * <!-- begin-user-doc -->
1275 * <!-- end-user-doc -->
1276 * @generated
1277 */
1278 public EClass getALSLess()
1279 {
1280 return alsLessEClass;
1281 }
1282
1283 /**
1284 * <!-- begin-user-doc -->
1285 * <!-- end-user-doc -->
1286 * @generated
1287 */
1288 public EReference getALSLess_LeftOperand()
1289 {
1290 return (EReference)alsLessEClass.getEStructuralFeatures().get(0);
1291 }
1292
1293 /**
1294 * <!-- begin-user-doc -->
1295 * <!-- end-user-doc -->
1296 * @generated
1297 */
1298 public EReference getALSLess_RightOperand()
1299 {
1300 return (EReference)alsLessEClass.getEStructuralFeatures().get(1);
1301 }
1302
1303 /**
1304 * <!-- begin-user-doc -->
1305 * <!-- end-user-doc -->
1306 * @generated
1307 */
1308 public EClass getALSLeq()
1309 {
1310 return alsLeqEClass;
1311 }
1312
1313 /**
1314 * <!-- begin-user-doc -->
1315 * <!-- end-user-doc -->
1316 * @generated
1317 */
1318 public EReference getALSLeq_LeftOperand()
1319 {
1320 return (EReference)alsLeqEClass.getEStructuralFeatures().get(0);
1321 }
1322
1323 /**
1324 * <!-- begin-user-doc -->
1325 * <!-- end-user-doc -->
1326 * @generated
1327 */
1328 public EReference getALSLeq_RightOperand()
1329 {
1330 return (EReference)alsLeqEClass.getEStructuralFeatures().get(1);
1331 }
1332
1333 /**
1334 * <!-- begin-user-doc -->
1335 * <!-- end-user-doc -->
1336 * @generated
1337 */
1338 public EClass getALSMore()
1339 {
1340 return alsMoreEClass;
1341 }
1342
1343 /**
1344 * <!-- begin-user-doc -->
1345 * <!-- end-user-doc -->
1346 * @generated
1347 */
1348 public EReference getALSMore_LeftOperand()
1349 {
1350 return (EReference)alsMoreEClass.getEStructuralFeatures().get(0);
1351 }
1352
1353 /**
1354 * <!-- begin-user-doc -->
1355 * <!-- end-user-doc -->
1356 * @generated
1357 */
1358 public EReference getALSMore_RightOperand()
1359 {
1360 return (EReference)alsMoreEClass.getEStructuralFeatures().get(1);
1361 }
1362
1363 /**
1364 * <!-- begin-user-doc -->
1365 * <!-- end-user-doc -->
1366 * @generated
1367 */
1368 public EClass getALSMeq()
1369 {
1370 return alsMeqEClass;
1371 }
1372
1373 /**
1374 * <!-- begin-user-doc -->
1375 * <!-- end-user-doc -->
1376 * @generated
1377 */
1378 public EReference getALSMeq_LeftOperand()
1379 {
1380 return (EReference)alsMeqEClass.getEStructuralFeatures().get(0);
1381 }
1382
1383 /**
1384 * <!-- begin-user-doc -->
1385 * <!-- end-user-doc -->
1386 * @generated
1387 */
1388 public EReference getALSMeq_RightOperand()
1389 {
1390 return (EReference)alsMeqEClass.getEStructuralFeatures().get(1);
1391 }
1392
1393 /**
1394 * <!-- begin-user-doc -->
1395 * <!-- end-user-doc -->
1396 * @generated
1397 */
1398 public EClass getALSOverride()
1399 {
1400 return alsOverrideEClass;
1401 }
1402
1403 /**
1404 * <!-- begin-user-doc -->
1405 * <!-- end-user-doc -->
1406 * @generated
1407 */
1408 public EReference getALSOverride_LeftOperand()
1409 {
1410 return (EReference)alsOverrideEClass.getEStructuralFeatures().get(0);
1411 }
1412
1413 /**
1414 * <!-- begin-user-doc -->
1415 * <!-- end-user-doc -->
1416 * @generated
1417 */
1418 public EReference getALSOverride_RightOperand()
1419 {
1420 return (EReference)alsOverrideEClass.getEStructuralFeatures().get(1);
1421 }
1422
1423 /**
1424 * <!-- begin-user-doc -->
1425 * <!-- end-user-doc -->
1426 * @generated
1427 */
1428 public EClass getALSRangeRestrictionRight()
1429 {
1430 return alsRangeRestrictionRightEClass;
1431 }
1432
1433 /**
1434 * <!-- begin-user-doc -->
1435 * <!-- end-user-doc -->
1436 * @generated
1437 */
1438 public EReference getALSRangeRestrictionRight_Relation()
1439 {
1440 return (EReference)alsRangeRestrictionRightEClass.getEStructuralFeatures().get(0);
1441 }
1442
1443 /**
1444 * <!-- begin-user-doc -->
1445 * <!-- end-user-doc -->
1446 * @generated
1447 */
1448 public EReference getALSRangeRestrictionRight_Filter()
1449 {
1450 return (EReference)alsRangeRestrictionRightEClass.getEStructuralFeatures().get(1);
1451 }
1452
1453 /**
1454 * <!-- begin-user-doc -->
1455 * <!-- end-user-doc -->
1456 * @generated
1457 */
1458 public EClass getALSRangeRestrictionLeft()
1459 {
1460 return alsRangeRestrictionLeftEClass;
1461 }
1462
1463 /**
1464 * <!-- begin-user-doc -->
1465 * <!-- end-user-doc -->
1466 * @generated
1467 */
1468 public EReference getALSRangeRestrictionLeft_Filter()
1469 {
1470 return (EReference)alsRangeRestrictionLeftEClass.getEStructuralFeatures().get(0);
1471 }
1472
1473 /**
1474 * <!-- begin-user-doc -->
1475 * <!-- end-user-doc -->
1476 * @generated
1477 */
1478 public EReference getALSRangeRestrictionLeft_Relation()
1479 {
1480 return (EReference)alsRangeRestrictionLeftEClass.getEStructuralFeatures().get(1);
1481 }
1482
1483 /**
1484 * <!-- begin-user-doc -->
1485 * <!-- end-user-doc -->
1486 * @generated
1487 */
1488 public EClass getALSJoin()
1489 {
1490 return alsJoinEClass;
1491 }
1492
1493 /**
1494 * <!-- begin-user-doc -->
1495 * <!-- end-user-doc -->
1496 * @generated
1497 */
1498 public EReference getALSJoin_LeftOperand()
1499 {
1500 return (EReference)alsJoinEClass.getEStructuralFeatures().get(0);
1501 }
1502
1503 /**
1504 * <!-- begin-user-doc -->
1505 * <!-- end-user-doc -->
1506 * @generated
1507 */
1508 public EReference getALSJoin_RightOperand()
1509 {
1510 return (EReference)alsJoinEClass.getEStructuralFeatures().get(1);
1511 }
1512
1513 /**
1514 * <!-- begin-user-doc -->
1515 * <!-- end-user-doc -->
1516 * @generated
1517 */
1518 public EClass getALSMinus()
1519 {
1520 return alsMinusEClass;
1521 }
1522
1523 /**
1524 * <!-- begin-user-doc -->
1525 * <!-- end-user-doc -->
1526 * @generated
1527 */
1528 public EReference getALSMinus_LeftOperand()
1529 {
1530 return (EReference)alsMinusEClass.getEStructuralFeatures().get(0);
1531 }
1532
1533 /**
1534 * <!-- begin-user-doc -->
1535 * <!-- end-user-doc -->
1536 * @generated
1537 */
1538 public EReference getALSMinus_RightOperand()
1539 {
1540 return (EReference)alsMinusEClass.getEStructuralFeatures().get(1);
1541 }
1542
1543 /**
1544 * <!-- begin-user-doc -->
1545 * <!-- end-user-doc -->
1546 * @generated
1547 */
1548 public EClass getALSPlus()
1549 {
1550 return alsPlusEClass;
1551 }
1552
1553 /**
1554 * <!-- begin-user-doc -->
1555 * <!-- end-user-doc -->
1556 * @generated
1557 */
1558 public EReference getALSPlus_LeftOperand()
1559 {
1560 return (EReference)alsPlusEClass.getEStructuralFeatures().get(0);
1561 }
1562
1563 /**
1564 * <!-- begin-user-doc -->
1565 * <!-- end-user-doc -->
1566 * @generated
1567 */
1568 public EReference getALSPlus_RightOperand()
1569 {
1570 return (EReference)alsPlusEClass.getEStructuralFeatures().get(1);
1571 }
1572
1573 /**
1574 * <!-- begin-user-doc -->
1575 * <!-- end-user-doc -->
1576 * @generated
1577 */
1578 public EClass getALSIntersection()
1579 {
1580 return alsIntersectionEClass;
1581 }
1582
1583 /**
1584 * <!-- begin-user-doc -->
1585 * <!-- end-user-doc -->
1586 * @generated
1587 */
1588 public EReference getALSIntersection_LeftOperand()
1589 {
1590 return (EReference)alsIntersectionEClass.getEStructuralFeatures().get(0);
1591 }
1592
1593 /**
1594 * <!-- begin-user-doc -->
1595 * <!-- end-user-doc -->
1596 * @generated
1597 */
1598 public EReference getALSIntersection_RightOperand()
1599 {
1600 return (EReference)alsIntersectionEClass.getEStructuralFeatures().get(1);
1601 }
1602
1603 /**
1604 * <!-- begin-user-doc -->
1605 * <!-- end-user-doc -->
1606 * @generated
1607 */
1608 public EClass getALSDirectProduct()
1609 {
1610 return alsDirectProductEClass;
1611 }
1612
1613 /**
1614 * <!-- begin-user-doc -->
1615 * <!-- end-user-doc -->
1616 * @generated
1617 */
1618 public EReference getALSDirectProduct_LeftOperand()
1619 {
1620 return (EReference)alsDirectProductEClass.getEStructuralFeatures().get(0);
1621 }
1622
1623 /**
1624 * <!-- begin-user-doc -->
1625 * <!-- end-user-doc -->
1626 * @generated
1627 */
1628 public EAttribute getALSDirectProduct_LeftMultiplicit()
1629 {
1630 return (EAttribute)alsDirectProductEClass.getEStructuralFeatures().get(1);
1631 }
1632
1633 /**
1634 * <!-- begin-user-doc -->
1635 * <!-- end-user-doc -->
1636 * @generated
1637 */
1638 public EAttribute getALSDirectProduct_RightMultiplicit()
1639 {
1640 return (EAttribute)alsDirectProductEClass.getEStructuralFeatures().get(2);
1641 }
1642
1643 /**
1644 * <!-- begin-user-doc -->
1645 * <!-- end-user-doc -->
1646 * @generated
1647 */
1648 public EReference getALSDirectProduct_RightOperand()
1649 {
1650 return (EReference)alsDirectProductEClass.getEStructuralFeatures().get(3);
1651 }
1652
1653 /**
1654 * <!-- begin-user-doc -->
1655 * <!-- end-user-doc -->
1656 * @generated
1657 */
1658 public EClass getALSNot()
1659 {
1660 return alsNotEClass;
1661 }
1662
1663 /**
1664 * <!-- begin-user-doc -->
1665 * <!-- end-user-doc -->
1666 * @generated
1667 */
1668 public EReference getALSNot_Operand()
1669 {
1670 return (EReference)alsNotEClass.getEStructuralFeatures().get(0);
1671 }
1672
1673 /**
1674 * <!-- begin-user-doc -->
1675 * <!-- end-user-doc -->
1676 * @generated
1677 */
1678 public EClass getALSInverseRelation()
1679 {
1680 return alsInverseRelationEClass;
1681 }
1682
1683 /**
1684 * <!-- begin-user-doc -->
1685 * <!-- end-user-doc -->
1686 * @generated
1687 */
1688 public EReference getALSInverseRelation_Operand()
1689 {
1690 return (EReference)alsInverseRelationEClass.getEStructuralFeatures().get(0);
1691 }
1692
1693 /**
1694 * <!-- begin-user-doc -->
1695 * <!-- end-user-doc -->
1696 * @generated
1697 */
1698 public EClass getAlSTransitiveClosure()
1699 {
1700 return alSTransitiveClosureEClass;
1701 }
1702
1703 /**
1704 * <!-- begin-user-doc -->
1705 * <!-- end-user-doc -->
1706 * @generated
1707 */
1708 public EReference getAlSTransitiveClosure_Operand()
1709 {
1710 return (EReference)alSTransitiveClosureEClass.getEStructuralFeatures().get(0);
1711 }
1712
1713 /**
1714 * <!-- begin-user-doc -->
1715 * <!-- end-user-doc -->
1716 * @generated
1717 */
1718 public EClass getALSReflectiveTransitiveClosure()
1719 {
1720 return alsReflectiveTransitiveClosureEClass;
1721 }
1722
1723 /**
1724 * <!-- begin-user-doc -->
1725 * <!-- end-user-doc -->
1726 * @generated
1727 */
1728 public EReference getALSReflectiveTransitiveClosure_Operand()
1729 {
1730 return (EReference)alsReflectiveTransitiveClosureEClass.getEStructuralFeatures().get(0);
1731 }
1732
1733 /**
1734 * <!-- begin-user-doc -->
1735 * <!-- end-user-doc -->
1736 * @generated
1737 */
1738 public EClass getALSCardinality()
1739 {
1740 return alsCardinalityEClass;
1741 }
1742
1743 /**
1744 * <!-- begin-user-doc -->
1745 * <!-- end-user-doc -->
1746 * @generated
1747 */
1748 public EReference getALSCardinality_Operand()
1749 {
1750 return (EReference)alsCardinalityEClass.getEStructuralFeatures().get(0);
1751 }
1752
1753 /**
1754 * <!-- begin-user-doc -->
1755 * <!-- end-user-doc -->
1756 * @generated
1757 */
1758 public EClass getALSUnaryMinus()
1759 {
1760 return alsUnaryMinusEClass;
1761 }
1762
1763 /**
1764 * <!-- begin-user-doc -->
1765 * <!-- end-user-doc -->
1766 * @generated
1767 */
1768 public EReference getALSUnaryMinus_Operand()
1769 {
1770 return (EReference)alsUnaryMinusEClass.getEStructuralFeatures().get(0);
1771 }
1772
1773 /**
1774 * <!-- begin-user-doc -->
1775 * <!-- end-user-doc -->
1776 * @generated
1777 */
1778 public EClass getALSSum()
1779 {
1780 return alsSumEClass;
1781 }
1782
1783 /**
1784 * <!-- begin-user-doc -->
1785 * <!-- end-user-doc -->
1786 * @generated
1787 */
1788 public EReference getALSSum_Variables()
1789 {
1790 return (EReference)alsSumEClass.getEStructuralFeatures().get(0);
1791 }
1792
1793 /**
1794 * <!-- begin-user-doc -->
1795 * <!-- end-user-doc -->
1796 * @generated
1797 */
1798 public EReference getALSSum_Expression()
1799 {
1800 return (EReference)alsSumEClass.getEStructuralFeatures().get(1);
1801 }
1802
1803 /**
1804 * <!-- begin-user-doc -->
1805 * <!-- end-user-doc -->
1806 * @generated
1807 */
1808 public EClass getALSFunctionCall()
1809 {
1810 return alsFunctionCallEClass;
1811 }
1812
1813 /**
1814 * <!-- begin-user-doc -->
1815 * <!-- end-user-doc -->
1816 * @generated
1817 */
1818 public EReference getALSFunctionCall_ReferredDefinition()
1819 {
1820 return (EReference)alsFunctionCallEClass.getEStructuralFeatures().get(0);
1821 }
1822
1823 /**
1824 * <!-- begin-user-doc -->
1825 * <!-- end-user-doc -->
1826 * @generated
1827 */
1828 public EAttribute getALSFunctionCall_ReferredNumericOperator()
1829 {
1830 return (EAttribute)alsFunctionCallEClass.getEStructuralFeatures().get(1);
1831 }
1832
1833 /**
1834 * <!-- begin-user-doc -->
1835 * <!-- end-user-doc -->
1836 * @generated
1837 */
1838 public EReference getALSFunctionCall_Params()
1839 {
1840 return (EReference)alsFunctionCallEClass.getEStructuralFeatures().get(2);
1841 }
1842
1843 /**
1844 * <!-- begin-user-doc -->
1845 * <!-- end-user-doc -->
1846 * @generated
1847 */
1848 public EClass getALSNone()
1849 {
1850 return alsNoneEClass;
1851 }
1852
1853 /**
1854 * <!-- begin-user-doc -->
1855 * <!-- end-user-doc -->
1856 * @generated
1857 */
1858 public EClass getALSIden()
1859 {
1860 return alsIdenEClass;
1861 }
1862
1863 /**
1864 * <!-- begin-user-doc -->
1865 * <!-- end-user-doc -->
1866 * @generated
1867 */
1868 public EClass getALSUniv()
1869 {
1870 return alsUnivEClass;
1871 }
1872
1873 /**
1874 * <!-- begin-user-doc -->
1875 * <!-- end-user-doc -->
1876 * @generated
1877 */
1878 public EClass getALSInt()
1879 {
1880 return alsIntEClass;
1881 }
1882
1883 /**
1884 * <!-- begin-user-doc -->
1885 * <!-- end-user-doc -->
1886 * @generated
1887 */
1888 public EClass getALSString()
1889 {
1890 return alsStringEClass;
1891 }
1892
1893 /**
1894 * <!-- begin-user-doc -->
1895 * <!-- end-user-doc -->
1896 * @generated
1897 */
1898 public EClass getALSReference()
1899 {
1900 return alsReferenceEClass;
1901 }
1902
1903 /**
1904 * <!-- begin-user-doc -->
1905 * <!-- end-user-doc -->
1906 * @generated
1907 */
1908 public EReference getALSReference_Referred()
1909 {
1910 return (EReference)alsReferenceEClass.getEStructuralFeatures().get(0);
1911 }
1912
1913 /**
1914 * <!-- begin-user-doc -->
1915 * <!-- end-user-doc -->
1916 * @generated
1917 */
1918 public EClass getALSNumberLiteral()
1919 {
1920 return alsNumberLiteralEClass;
1921 }
1922
1923 /**
1924 * <!-- begin-user-doc -->
1925 * <!-- end-user-doc -->
1926 * @generated
1927 */
1928 public EAttribute getALSNumberLiteral_Value()
1929 {
1930 return (EAttribute)alsNumberLiteralEClass.getEStructuralFeatures().get(0);
1931 }
1932
1933 /**
1934 * <!-- begin-user-doc -->
1935 * <!-- end-user-doc -->
1936 * @generated
1937 */
1938 public EClass getALSStringLiteral()
1939 {
1940 return alsStringLiteralEClass;
1941 }
1942
1943 /**
1944 * <!-- begin-user-doc -->
1945 * <!-- end-user-doc -->
1946 * @generated
1947 */
1948 public EAttribute getALSStringLiteral_Value()
1949 {
1950 return (EAttribute)alsStringLiteralEClass.getEStructuralFeatures().get(0);
1951 }
1952
1953 /**
1954 * <!-- begin-user-doc -->
1955 * <!-- end-user-doc -->
1956 * @generated
1957 */
1958 public EEnum getALSMultiplicity()
1959 {
1960 return alsMultiplicityEEnum;
1961 }
1962
1963 /**
1964 * <!-- begin-user-doc -->
1965 * <!-- end-user-doc -->
1966 * @generated
1967 */
1968 public EEnum getALSNumericOperator()
1969 {
1970 return alsNumericOperatorEEnum;
1971 }
1972
1973 /**
1974 * <!-- begin-user-doc -->
1975 * <!-- end-user-doc -->
1976 * @generated
1977 */
1978 public AlloyLanguageFactory getAlloyLanguageFactory()
1979 {
1980 return (AlloyLanguageFactory)getEFactoryInstance();
1981 }
1982
1983 /**
1984 * <!-- begin-user-doc -->
1985 * <!-- end-user-doc -->
1986 * @generated
1987 */
1988 private boolean isCreated = false;
1989
1990 /**
1991 * Creates the meta-model objects for the package. This method is
1992 * guarded to have no affect on any invocation but its first.
1993 * <!-- begin-user-doc -->
1994 * <!-- end-user-doc -->
1995 * @generated
1996 */
1997 public void createPackageContents()
1998 {
1999 if (isCreated) return;
2000 isCreated = true;
2001
2002 // Create classes and their features
2003 alsDocumentEClass = createEClass(ALS_DOCUMENT);
2004 createEReference(alsDocumentEClass, ALS_DOCUMENT__ENUM_DECLARATIONS);
2005 createEReference(alsDocumentEClass, ALS_DOCUMENT__SIGNATURE_BODIES);
2006 createEReference(alsDocumentEClass, ALS_DOCUMENT__FUNCTION_DEFINITIONS);
2007 createEReference(alsDocumentEClass, ALS_DOCUMENT__RELATION_DEFINITIONS);
2008 createEReference(alsDocumentEClass, ALS_DOCUMENT__FACT_DECLARATIONS);
2009 createEReference(alsDocumentEClass, ALS_DOCUMENT__RUN_COMMAND);
2010
2011 alsRelationDeclarationEClass = createEClass(ALS_RELATION_DECLARATION);
2012 createEAttribute(alsRelationDeclarationEClass, ALS_RELATION_DECLARATION__NAME);
2013
2014 alsTypeDeclarationEClass = createEClass(ALS_TYPE_DECLARATION);
2015
2016 alsEnumDeclarationEClass = createEClass(ALS_ENUM_DECLARATION);
2017 createEReference(alsEnumDeclarationEClass, ALS_ENUM_DECLARATION__LITERAL);
2018
2019 alsEnumLiteralEClass = createEClass(ALS_ENUM_LITERAL);
2020
2021 alsSignatureDeclarationEClass = createEClass(ALS_SIGNATURE_DECLARATION);
2022
2023 alsSignatureBodyEClass = createEClass(ALS_SIGNATURE_BODY);
2024 createEAttribute(alsSignatureBodyEClass, ALS_SIGNATURE_BODY__MULTIPLICITY);
2025 createEAttribute(alsSignatureBodyEClass, ALS_SIGNATURE_BODY__ABSTRACT);
2026 createEReference(alsSignatureBodyEClass, ALS_SIGNATURE_BODY__DECLARATIONS);
2027 createEReference(alsSignatureBodyEClass, ALS_SIGNATURE_BODY__SUPERTYPE);
2028 createEReference(alsSignatureBodyEClass, ALS_SIGNATURE_BODY__SUPERSET);
2029 createEReference(alsSignatureBodyEClass, ALS_SIGNATURE_BODY__FIELDS);
2030
2031 alsFieldDeclarationEClass = createEClass(ALS_FIELD_DECLARATION);
2032 createEAttribute(alsFieldDeclarationEClass, ALS_FIELD_DECLARATION__MULTIPLICITY);
2033 createEReference(alsFieldDeclarationEClass, ALS_FIELD_DECLARATION__TYPE);
2034
2035 alsDefinitionEClass = createEClass(ALS_DEFINITION);
2036 createEAttribute(alsDefinitionEClass, ALS_DEFINITION__NAME);
2037 createEReference(alsDefinitionEClass, ALS_DEFINITION__VARIABLES);
2038 createEReference(alsDefinitionEClass, ALS_DEFINITION__VALUE);
2039
2040 alsFunctionDefinitionEClass = createEClass(ALS_FUNCTION_DEFINITION);
2041 createEReference(alsFunctionDefinitionEClass, ALS_FUNCTION_DEFINITION__TYPE);
2042
2043 alsRelationDefinitionEClass = createEClass(ALS_RELATION_DEFINITION);
2044
2045 alsFactDeclarationEClass = createEClass(ALS_FACT_DECLARATION);
2046 createEAttribute(alsFactDeclarationEClass, ALS_FACT_DECLARATION__NAME);
2047 createEReference(alsFactDeclarationEClass, ALS_FACT_DECLARATION__TERM);
2048
2049 alsTermEClass = createEClass(ALS_TERM);
2050
2051 alsVariableDeclarationEClass = createEClass(ALS_VARIABLE_DECLARATION);
2052 createEReference(alsVariableDeclarationEClass, ALS_VARIABLE_DECLARATION__RANGE);
2053
2054 alsRunCommandEClass = createEClass(ALS_RUN_COMMAND);
2055 createEReference(alsRunCommandEClass, ALS_RUN_COMMAND__TYPE_SCOPES);
2056
2057 alsTypeScopeEClass = createEClass(ALS_TYPE_SCOPE);
2058 createEAttribute(alsTypeScopeEClass, ALS_TYPE_SCOPE__NUMBER);
2059
2060 alsSigScopeEClass = createEClass(ALS_SIG_SCOPE);
2061 createEAttribute(alsSigScopeEClass, ALS_SIG_SCOPE__EXACTLY);
2062 createEReference(alsSigScopeEClass, ALS_SIG_SCOPE__TYPE);
2063
2064 alsIntScopeEClass = createEClass(ALS_INT_SCOPE);
2065
2066 alsStringScopeEClass = createEClass(ALS_STRING_SCOPE);
2067
2068 alsQuantifiedExEClass = createEClass(ALS_QUANTIFIED_EX);
2069 createEAttribute(alsQuantifiedExEClass, ALS_QUANTIFIED_EX__TYPE);
2070 createEAttribute(alsQuantifiedExEClass, ALS_QUANTIFIED_EX__DISJ);
2071 createEReference(alsQuantifiedExEClass, ALS_QUANTIFIED_EX__VARIABLES);
2072 createEReference(alsQuantifiedExEClass, ALS_QUANTIFIED_EX__EXPRESSION);
2073
2074 alsOrEClass = createEClass(ALS_OR);
2075 createEReference(alsOrEClass, ALS_OR__LEFT_OPERAND);
2076 createEReference(alsOrEClass, ALS_OR__RIGHT_OPERAND);
2077
2078 alsIffEClass = createEClass(ALS_IFF);
2079 createEReference(alsIffEClass, ALS_IFF__LEFT_OPERAND);
2080 createEReference(alsIffEClass, ALS_IFF__RIGHT_OPERAND);
2081
2082 alsImplEClass = createEClass(ALS_IMPL);
2083 createEReference(alsImplEClass, ALS_IMPL__LEFT_OPERAND);
2084 createEReference(alsImplEClass, ALS_IMPL__RIGHT_OPERAND);
2085 createEReference(alsImplEClass, ALS_IMPL__ELSE_OPERAND);
2086
2087 alsAndEClass = createEClass(ALS_AND);
2088 createEReference(alsAndEClass, ALS_AND__LEFT_OPERAND);
2089 createEReference(alsAndEClass, ALS_AND__RIGHT_OPERAND);
2090
2091 alsEqualsEClass = createEClass(ALS_EQUALS);
2092 createEReference(alsEqualsEClass, ALS_EQUALS__LEFT_OPERAND);
2093 createEReference(alsEqualsEClass, ALS_EQUALS__RIGHT_OPERAND);
2094
2095 alsNotEqualsEClass = createEClass(ALS_NOT_EQUALS);
2096 createEReference(alsNotEqualsEClass, ALS_NOT_EQUALS__LEFT_OPERAND);
2097 createEReference(alsNotEqualsEClass, ALS_NOT_EQUALS__RIGHT_OPERAND);
2098
2099 alsSubsetEClass = createEClass(ALS_SUBSET);
2100 createEReference(alsSubsetEClass, ALS_SUBSET__LEFT_OPERAND);
2101 createEReference(alsSubsetEClass, ALS_SUBSET__RIGHT_OPERAND);
2102
2103 alsLessEClass = createEClass(ALS_LESS);
2104 createEReference(alsLessEClass, ALS_LESS__LEFT_OPERAND);
2105 createEReference(alsLessEClass, ALS_LESS__RIGHT_OPERAND);
2106
2107 alsLeqEClass = createEClass(ALS_LEQ);
2108 createEReference(alsLeqEClass, ALS_LEQ__LEFT_OPERAND);
2109 createEReference(alsLeqEClass, ALS_LEQ__RIGHT_OPERAND);
2110
2111 alsMoreEClass = createEClass(ALS_MORE);
2112 createEReference(alsMoreEClass, ALS_MORE__LEFT_OPERAND);
2113 createEReference(alsMoreEClass, ALS_MORE__RIGHT_OPERAND);
2114
2115 alsMeqEClass = createEClass(ALS_MEQ);
2116 createEReference(alsMeqEClass, ALS_MEQ__LEFT_OPERAND);
2117 createEReference(alsMeqEClass, ALS_MEQ__RIGHT_OPERAND);
2118
2119 alsOverrideEClass = createEClass(ALS_OVERRIDE);
2120 createEReference(alsOverrideEClass, ALS_OVERRIDE__LEFT_OPERAND);
2121 createEReference(alsOverrideEClass, ALS_OVERRIDE__RIGHT_OPERAND);
2122
2123 alsRangeRestrictionRightEClass = createEClass(ALS_RANGE_RESTRICTION_RIGHT);
2124 createEReference(alsRangeRestrictionRightEClass, ALS_RANGE_RESTRICTION_RIGHT__RELATION);
2125 createEReference(alsRangeRestrictionRightEClass, ALS_RANGE_RESTRICTION_RIGHT__FILTER);
2126
2127 alsRangeRestrictionLeftEClass = createEClass(ALS_RANGE_RESTRICTION_LEFT);
2128 createEReference(alsRangeRestrictionLeftEClass, ALS_RANGE_RESTRICTION_LEFT__FILTER);
2129 createEReference(alsRangeRestrictionLeftEClass, ALS_RANGE_RESTRICTION_LEFT__RELATION);
2130
2131 alsJoinEClass = createEClass(ALS_JOIN);
2132 createEReference(alsJoinEClass, ALS_JOIN__LEFT_OPERAND);
2133 createEReference(alsJoinEClass, ALS_JOIN__RIGHT_OPERAND);
2134
2135 alsMinusEClass = createEClass(ALS_MINUS);
2136 createEReference(alsMinusEClass, ALS_MINUS__LEFT_OPERAND);
2137 createEReference(alsMinusEClass, ALS_MINUS__RIGHT_OPERAND);
2138
2139 alsPlusEClass = createEClass(ALS_PLUS);
2140 createEReference(alsPlusEClass, ALS_PLUS__LEFT_OPERAND);
2141 createEReference(alsPlusEClass, ALS_PLUS__RIGHT_OPERAND);
2142
2143 alsIntersectionEClass = createEClass(ALS_INTERSECTION);
2144 createEReference(alsIntersectionEClass, ALS_INTERSECTION__LEFT_OPERAND);
2145 createEReference(alsIntersectionEClass, ALS_INTERSECTION__RIGHT_OPERAND);
2146
2147 alsDirectProductEClass = createEClass(ALS_DIRECT_PRODUCT);
2148 createEReference(alsDirectProductEClass, ALS_DIRECT_PRODUCT__LEFT_OPERAND);
2149 createEAttribute(alsDirectProductEClass, ALS_DIRECT_PRODUCT__LEFT_MULTIPLICIT);
2150 createEAttribute(alsDirectProductEClass, ALS_DIRECT_PRODUCT__RIGHT_MULTIPLICIT);
2151 createEReference(alsDirectProductEClass, ALS_DIRECT_PRODUCT__RIGHT_OPERAND);
2152
2153 alsNotEClass = createEClass(ALS_NOT);
2154 createEReference(alsNotEClass, ALS_NOT__OPERAND);
2155
2156 alsInverseRelationEClass = createEClass(ALS_INVERSE_RELATION);
2157 createEReference(alsInverseRelationEClass, ALS_INVERSE_RELATION__OPERAND);
2158
2159 alSTransitiveClosureEClass = createEClass(AL_STRANSITIVE_CLOSURE);
2160 createEReference(alSTransitiveClosureEClass, AL_STRANSITIVE_CLOSURE__OPERAND);
2161
2162 alsReflectiveTransitiveClosureEClass = createEClass(ALS_REFLECTIVE_TRANSITIVE_CLOSURE);
2163 createEReference(alsReflectiveTransitiveClosureEClass, ALS_REFLECTIVE_TRANSITIVE_CLOSURE__OPERAND);
2164
2165 alsCardinalityEClass = createEClass(ALS_CARDINALITY);
2166 createEReference(alsCardinalityEClass, ALS_CARDINALITY__OPERAND);
2167
2168 alsUnaryMinusEClass = createEClass(ALS_UNARY_MINUS);
2169 createEReference(alsUnaryMinusEClass, ALS_UNARY_MINUS__OPERAND);
2170
2171 alsSumEClass = createEClass(ALS_SUM);
2172 createEReference(alsSumEClass, ALS_SUM__VARIABLES);
2173 createEReference(alsSumEClass, ALS_SUM__EXPRESSION);
2174
2175 alsFunctionCallEClass = createEClass(ALS_FUNCTION_CALL);
2176 createEReference(alsFunctionCallEClass, ALS_FUNCTION_CALL__REFERRED_DEFINITION);
2177 createEAttribute(alsFunctionCallEClass, ALS_FUNCTION_CALL__REFERRED_NUMERIC_OPERATOR);
2178 createEReference(alsFunctionCallEClass, ALS_FUNCTION_CALL__PARAMS);
2179
2180 alsNoneEClass = createEClass(ALS_NONE);
2181
2182 alsIdenEClass = createEClass(ALS_IDEN);
2183
2184 alsUnivEClass = createEClass(ALS_UNIV);
2185
2186 alsIntEClass = createEClass(ALS_INT);
2187
2188 alsStringEClass = createEClass(ALS_STRING);
2189
2190 alsReferenceEClass = createEClass(ALS_REFERENCE);
2191 createEReference(alsReferenceEClass, ALS_REFERENCE__REFERRED);
2192
2193 alsNumberLiteralEClass = createEClass(ALS_NUMBER_LITERAL);
2194 createEAttribute(alsNumberLiteralEClass, ALS_NUMBER_LITERAL__VALUE);
2195
2196 alsStringLiteralEClass = createEClass(ALS_STRING_LITERAL);
2197 createEAttribute(alsStringLiteralEClass, ALS_STRING_LITERAL__VALUE);
2198
2199 // Create enums
2200 alsMultiplicityEEnum = createEEnum(ALS_MULTIPLICITY);
2201 alsNumericOperatorEEnum = createEEnum(ALS_NUMERIC_OPERATOR);
2202 }
2203
2204 /**
2205 * <!-- begin-user-doc -->
2206 * <!-- end-user-doc -->
2207 * @generated
2208 */
2209 private boolean isInitialized = false;
2210
2211 /**
2212 * Complete the initialization of the package and its meta-model. This
2213 * method is guarded to have no affect on any invocation but its first.
2214 * <!-- begin-user-doc -->
2215 * <!-- end-user-doc -->
2216 * @generated
2217 */
2218 public void initializePackageContents()
2219 {
2220 if (isInitialized) return;
2221 isInitialized = true;
2222
2223 // Initialize package
2224 setName(eNAME);
2225 setNsPrefix(eNS_PREFIX);
2226 setNsURI(eNS_URI);
2227
2228 // Create type parameters
2229
2230 // Set bounds for type parameters
2231
2232 // Add supertypes to classes
2233 alsTypeDeclarationEClass.getESuperTypes().add(this.getALSRelationDeclaration());
2234 alsEnumDeclarationEClass.getESuperTypes().add(this.getALSTypeDeclaration());
2235 alsEnumLiteralEClass.getESuperTypes().add(this.getALSRelationDeclaration());
2236 alsSignatureDeclarationEClass.getESuperTypes().add(this.getALSTypeDeclaration());
2237 alsFieldDeclarationEClass.getESuperTypes().add(this.getALSRelationDeclaration());
2238 alsFunctionDefinitionEClass.getESuperTypes().add(this.getALSDefinition());
2239 alsRelationDefinitionEClass.getESuperTypes().add(this.getALSDefinition());
2240 alsVariableDeclarationEClass.getESuperTypes().add(this.getALSRelationDeclaration());
2241 alsSigScopeEClass.getESuperTypes().add(this.getALSTypeScope());
2242 alsIntScopeEClass.getESuperTypes().add(this.getALSTypeScope());
2243 alsStringScopeEClass.getESuperTypes().add(this.getALSTypeScope());
2244 alsQuantifiedExEClass.getESuperTypes().add(this.getALSTerm());
2245 alsOrEClass.getESuperTypes().add(this.getALSTerm());
2246 alsIffEClass.getESuperTypes().add(this.getALSTerm());
2247 alsImplEClass.getESuperTypes().add(this.getALSTerm());
2248 alsAndEClass.getESuperTypes().add(this.getALSTerm());
2249 alsEqualsEClass.getESuperTypes().add(this.getALSTerm());
2250 alsNotEqualsEClass.getESuperTypes().add(this.getALSTerm());
2251 alsSubsetEClass.getESuperTypes().add(this.getALSTerm());
2252 alsLessEClass.getESuperTypes().add(this.getALSTerm());
2253 alsLeqEClass.getESuperTypes().add(this.getALSTerm());
2254 alsMoreEClass.getESuperTypes().add(this.getALSTerm());
2255 alsMeqEClass.getESuperTypes().add(this.getALSTerm());
2256 alsOverrideEClass.getESuperTypes().add(this.getALSTerm());
2257 alsRangeRestrictionRightEClass.getESuperTypes().add(this.getALSTerm());
2258 alsRangeRestrictionLeftEClass.getESuperTypes().add(this.getALSTerm());
2259 alsJoinEClass.getESuperTypes().add(this.getALSTerm());
2260 alsMinusEClass.getESuperTypes().add(this.getALSTerm());
2261 alsPlusEClass.getESuperTypes().add(this.getALSTerm());
2262 alsIntersectionEClass.getESuperTypes().add(this.getALSTerm());
2263 alsDirectProductEClass.getESuperTypes().add(this.getALSTerm());
2264 alsNotEClass.getESuperTypes().add(this.getALSTerm());
2265 alsInverseRelationEClass.getESuperTypes().add(this.getALSTerm());
2266 alSTransitiveClosureEClass.getESuperTypes().add(this.getALSTerm());
2267 alsReflectiveTransitiveClosureEClass.getESuperTypes().add(this.getALSTerm());
2268 alsCardinalityEClass.getESuperTypes().add(this.getALSTerm());
2269 alsUnaryMinusEClass.getESuperTypes().add(this.getALSTerm());
2270 alsSumEClass.getESuperTypes().add(this.getALSTerm());
2271 alsFunctionCallEClass.getESuperTypes().add(this.getALSTerm());
2272 alsNoneEClass.getESuperTypes().add(this.getALSTerm());
2273 alsIdenEClass.getESuperTypes().add(this.getALSTerm());
2274 alsUnivEClass.getESuperTypes().add(this.getALSTerm());
2275 alsIntEClass.getESuperTypes().add(this.getALSTerm());
2276 alsStringEClass.getESuperTypes().add(this.getALSTerm());
2277 alsReferenceEClass.getESuperTypes().add(this.getALSTerm());
2278 alsNumberLiteralEClass.getESuperTypes().add(this.getALSTerm());
2279 alsStringLiteralEClass.getESuperTypes().add(this.getALSTerm());
2280
2281 // Initialize classes and features; add operations and parameters
2282 initEClass(alsDocumentEClass, ALSDocument.class, "ALSDocument", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2283 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);
2284 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);
2285 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);
2286 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);
2287 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);
2288 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);
2289
2290 initEClass(alsRelationDeclarationEClass, ALSRelationDeclaration.class, "ALSRelationDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2291 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);
2292
2293 initEClass(alsTypeDeclarationEClass, ALSTypeDeclaration.class, "ALSTypeDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2294
2295 initEClass(alsEnumDeclarationEClass, ALSEnumDeclaration.class, "ALSEnumDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2296 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);
2297
2298 initEClass(alsEnumLiteralEClass, ALSEnumLiteral.class, "ALSEnumLiteral", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2299
2300 initEClass(alsSignatureDeclarationEClass, ALSSignatureDeclaration.class, "ALSSignatureDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2301
2302 initEClass(alsSignatureBodyEClass, ALSSignatureBody.class, "ALSSignatureBody", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2303 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);
2304 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);
2305 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);
2306 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);
2307 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);
2308 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);
2309
2310 initEClass(alsFieldDeclarationEClass, ALSFieldDeclaration.class, "ALSFieldDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2311 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);
2312 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);
2313
2314 initEClass(alsDefinitionEClass, ALSDefinition.class, "ALSDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2315 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);
2316 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);
2317 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);
2318
2319 initEClass(alsFunctionDefinitionEClass, ALSFunctionDefinition.class, "ALSFunctionDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2320 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);
2321
2322 initEClass(alsRelationDefinitionEClass, ALSRelationDefinition.class, "ALSRelationDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2323
2324 initEClass(alsFactDeclarationEClass, ALSFactDeclaration.class, "ALSFactDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2325 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);
2326 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);
2327
2328 initEClass(alsTermEClass, ALSTerm.class, "ALSTerm", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2329
2330 initEClass(alsVariableDeclarationEClass, ALSVariableDeclaration.class, "ALSVariableDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2331 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);
2332
2333 initEClass(alsRunCommandEClass, ALSRunCommand.class, "ALSRunCommand", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2334 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);
2335
2336 initEClass(alsTypeScopeEClass, ALSTypeScope.class, "ALSTypeScope", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2337 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);
2338
2339 initEClass(alsSigScopeEClass, ALSSigScope.class, "ALSSigScope", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2340 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);
2341 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);
2342
2343 initEClass(alsIntScopeEClass, ALSIntScope.class, "ALSIntScope", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2344
2345 initEClass(alsStringScopeEClass, ALSStringScope.class, "ALSStringScope", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2346
2347 initEClass(alsQuantifiedExEClass, ALSQuantifiedEx.class, "ALSQuantifiedEx", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2348 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);
2349 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);
2350 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);
2351 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);
2352
2353 initEClass(alsOrEClass, ALSOr.class, "ALSOr", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2354 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);
2355 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);
2356
2357 initEClass(alsIffEClass, ALSIff.class, "ALSIff", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2358 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);
2359 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);
2360
2361 initEClass(alsImplEClass, ALSImpl.class, "ALSImpl", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2362 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);
2363 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);
2364 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);
2365
2366 initEClass(alsAndEClass, ALSAnd.class, "ALSAnd", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2367 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);
2368 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);
2369
2370 initEClass(alsEqualsEClass, ALSEquals.class, "ALSEquals", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2371 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);
2372 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);
2373
2374 initEClass(alsNotEqualsEClass, ALSNotEquals.class, "ALSNotEquals", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2375 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);
2376 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);
2377
2378 initEClass(alsSubsetEClass, ALSSubset.class, "ALSSubset", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2379 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);
2380 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);
2381
2382 initEClass(alsLessEClass, ALSLess.class, "ALSLess", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2383 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);
2384 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);
2385
2386 initEClass(alsLeqEClass, ALSLeq.class, "ALSLeq", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2387 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);
2388 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);
2389
2390 initEClass(alsMoreEClass, ALSMore.class, "ALSMore", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2391 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);
2392 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);
2393
2394 initEClass(alsMeqEClass, ALSMeq.class, "ALSMeq", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2395 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);
2396 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);
2397
2398 initEClass(alsOverrideEClass, ALSOverride.class, "ALSOverride", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2399 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);
2400 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);
2401
2402 initEClass(alsRangeRestrictionRightEClass, ALSRangeRestrictionRight.class, "ALSRangeRestrictionRight", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2403 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);
2404 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);
2405
2406 initEClass(alsRangeRestrictionLeftEClass, ALSRangeRestrictionLeft.class, "ALSRangeRestrictionLeft", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2407 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);
2408 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);
2409
2410 initEClass(alsJoinEClass, ALSJoin.class, "ALSJoin", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2411 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);
2412 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);
2413
2414 initEClass(alsMinusEClass, ALSMinus.class, "ALSMinus", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2415 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);
2416 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);
2417
2418 initEClass(alsPlusEClass, ALSPlus.class, "ALSPlus", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2419 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);
2420 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);
2421
2422 initEClass(alsIntersectionEClass, ALSIntersection.class, "ALSIntersection", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2423 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);
2424 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);
2425
2426 initEClass(alsDirectProductEClass, ALSDirectProduct.class, "ALSDirectProduct", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2427 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);
2428 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);
2429 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);
2430 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);
2431
2432 initEClass(alsNotEClass, ALSNot.class, "ALSNot", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2433 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);
2434
2435 initEClass(alsInverseRelationEClass, ALSInverseRelation.class, "ALSInverseRelation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2436 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);
2437
2438 initEClass(alSTransitiveClosureEClass, AlSTransitiveClosure.class, "AlSTransitiveClosure", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2439 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);
2440
2441 initEClass(alsReflectiveTransitiveClosureEClass, ALSReflectiveTransitiveClosure.class, "ALSReflectiveTransitiveClosure", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2442 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);
2443
2444 initEClass(alsCardinalityEClass, ALSCardinality.class, "ALSCardinality", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2445 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);
2446
2447 initEClass(alsUnaryMinusEClass, ALSUnaryMinus.class, "ALSUnaryMinus", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2448 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);
2449
2450 initEClass(alsSumEClass, ALSSum.class, "ALSSum", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2451 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);
2452 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);
2453
2454 initEClass(alsFunctionCallEClass, ALSFunctionCall.class, "ALSFunctionCall", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2455 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);
2456 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);
2457 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);
2458
2459 initEClass(alsNoneEClass, ALSNone.class, "ALSNone", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2460
2461 initEClass(alsIdenEClass, ALSIden.class, "ALSIden", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2462
2463 initEClass(alsUnivEClass, ALSUniv.class, "ALSUniv", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2464
2465 initEClass(alsIntEClass, ALSInt.class, "ALSInt", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2466
2467 initEClass(alsStringEClass, ALSString.class, "ALSString", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2468
2469 initEClass(alsReferenceEClass, ALSReference.class, "ALSReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2470 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);
2471
2472 initEClass(alsNumberLiteralEClass, ALSNumberLiteral.class, "ALSNumberLiteral", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2473 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);
2474
2475 initEClass(alsStringLiteralEClass, ALSStringLiteral.class, "ALSStringLiteral", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
2476 initEAttribute(getALSStringLiteral_Value(), ecorePackage.getEString(), "value", null, 0, 1, ALSStringLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
2477
2478 // Initialize enums and add enum literals
2479 initEEnum(alsMultiplicityEEnum, ALSMultiplicity.class, "ALSMultiplicity");
2480 addEEnumLiteral(alsMultiplicityEEnum, ALSMultiplicity.ALL);
2481 addEEnumLiteral(alsMultiplicityEEnum, ALSMultiplicity.NO);
2482 addEEnumLiteral(alsMultiplicityEEnum, ALSMultiplicity.SOME);
2483 addEEnumLiteral(alsMultiplicityEEnum, ALSMultiplicity.LONE);
2484 addEEnumLiteral(alsMultiplicityEEnum, ALSMultiplicity.ONE);
2485 addEEnumLiteral(alsMultiplicityEEnum, ALSMultiplicity.SET);
2486
2487 initEEnum(alsNumericOperatorEEnum, ALSNumericOperator.class, "ALSNumericOperator");
2488 addEEnumLiteral(alsNumericOperatorEEnum, ALSNumericOperator.PLUS);
2489 addEEnumLiteral(alsNumericOperatorEEnum, ALSNumericOperator.SUB);
2490 addEEnumLiteral(alsNumericOperatorEEnum, ALSNumericOperator.MUL);
2491 addEEnumLiteral(alsNumericOperatorEEnum, ALSNumericOperator.REM);
2492 addEEnumLiteral(alsNumericOperatorEEnum, ALSNumericOperator.DIV);
2493
2494 // Create resource
2495 createResource(eNS_URI);
2496 }
2497
2498} //AlloyLanguagePackageImpl