diff options
Diffstat (limited to 'Framework/hu.bme.mit.inf.dslreasoner.logic.model/ecore-gen/hu/bme/mit/inf/dslreasoner/logic/model/logiclanguage/impl/NumericOperationImpl.java')
-rw-r--r-- | Framework/hu.bme.mit.inf.dslreasoner.logic.model/ecore-gen/hu/bme/mit/inf/dslreasoner/logic/model/logiclanguage/impl/NumericOperationImpl.java | 245 |
1 files changed, 245 insertions, 0 deletions
diff --git a/Framework/hu.bme.mit.inf.dslreasoner.logic.model/ecore-gen/hu/bme/mit/inf/dslreasoner/logic/model/logiclanguage/impl/NumericOperationImpl.java b/Framework/hu.bme.mit.inf.dslreasoner.logic.model/ecore-gen/hu/bme/mit/inf/dslreasoner/logic/model/logiclanguage/impl/NumericOperationImpl.java new file mode 100644 index 00000000..4e46b43a --- /dev/null +++ b/Framework/hu.bme.mit.inf.dslreasoner.logic.model/ecore-gen/hu/bme/mit/inf/dslreasoner/logic/model/logiclanguage/impl/NumericOperationImpl.java | |||
@@ -0,0 +1,245 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.LogiclanguagePackage; | ||
6 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.NumericOperation; | ||
7 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.Term; | ||
8 | |||
9 | import org.eclipse.emf.common.notify.Notification; | ||
10 | import org.eclipse.emf.common.notify.NotificationChain; | ||
11 | |||
12 | import org.eclipse.emf.ecore.EClass; | ||
13 | import org.eclipse.emf.ecore.InternalEObject; | ||
14 | |||
15 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
16 | |||
17 | /** | ||
18 | * <!-- begin-user-doc --> | ||
19 | * An implementation of the model object '<em><b>Numeric Operation</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.logic.model.logiclanguage.impl.NumericOperationImpl#getLeftOperand <em>Left Operand</em>}</li> | ||
26 | * <li>{@link hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.impl.NumericOperationImpl#getRightOperand <em>Right Operand</em>}</li> | ||
27 | * </ul> | ||
28 | * | ||
29 | * @generated | ||
30 | */ | ||
31 | public abstract class NumericOperationImpl extends TermImpl implements NumericOperation { | ||
32 | /** | ||
33 | * The cached value of the '{@link #getLeftOperand() <em>Left Operand</em>}' containment reference. | ||
34 | * <!-- begin-user-doc --> | ||
35 | * <!-- end-user-doc --> | ||
36 | * @see #getLeftOperand() | ||
37 | * @generated | ||
38 | * @ordered | ||
39 | */ | ||
40 | protected Term leftOperand; | ||
41 | |||
42 | /** | ||
43 | * The cached value of the '{@link #getRightOperand() <em>Right Operand</em>}' containment reference. | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @see #getRightOperand() | ||
47 | * @generated | ||
48 | * @ordered | ||
49 | */ | ||
50 | protected Term rightOperand; | ||
51 | |||
52 | /** | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @generated | ||
56 | */ | ||
57 | protected NumericOperationImpl() { | ||
58 | super(); | ||
59 | } | ||
60 | |||
61 | /** | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @generated | ||
65 | */ | ||
66 | @Override | ||
67 | protected EClass eStaticClass() { | ||
68 | return LogiclanguagePackage.Literals.NUMERIC_OPERATION; | ||
69 | } | ||
70 | |||
71 | /** | ||
72 | * <!-- begin-user-doc --> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @generated | ||
75 | */ | ||
76 | @Override | ||
77 | public Term getLeftOperand() { | ||
78 | return leftOperand; | ||
79 | } | ||
80 | |||
81 | /** | ||
82 | * <!-- begin-user-doc --> | ||
83 | * <!-- end-user-doc --> | ||
84 | * @generated | ||
85 | */ | ||
86 | public NotificationChain basicSetLeftOperand(Term newLeftOperand, NotificationChain msgs) { | ||
87 | Term oldLeftOperand = leftOperand; | ||
88 | leftOperand = newLeftOperand; | ||
89 | if (eNotificationRequired()) { | ||
90 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, LogiclanguagePackage.NUMERIC_OPERATION__LEFT_OPERAND, oldLeftOperand, newLeftOperand); | ||
91 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
92 | } | ||
93 | return msgs; | ||
94 | } | ||
95 | |||
96 | /** | ||
97 | * <!-- begin-user-doc --> | ||
98 | * <!-- end-user-doc --> | ||
99 | * @generated | ||
100 | */ | ||
101 | @Override | ||
102 | public void setLeftOperand(Term newLeftOperand) { | ||
103 | if (newLeftOperand != leftOperand) { | ||
104 | NotificationChain msgs = null; | ||
105 | if (leftOperand != null) | ||
106 | msgs = ((InternalEObject)leftOperand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - LogiclanguagePackage.NUMERIC_OPERATION__LEFT_OPERAND, null, msgs); | ||
107 | if (newLeftOperand != null) | ||
108 | msgs = ((InternalEObject)newLeftOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - LogiclanguagePackage.NUMERIC_OPERATION__LEFT_OPERAND, null, msgs); | ||
109 | msgs = basicSetLeftOperand(newLeftOperand, msgs); | ||
110 | if (msgs != null) msgs.dispatch(); | ||
111 | } | ||
112 | else if (eNotificationRequired()) | ||
113 | eNotify(new ENotificationImpl(this, Notification.SET, LogiclanguagePackage.NUMERIC_OPERATION__LEFT_OPERAND, newLeftOperand, newLeftOperand)); | ||
114 | } | ||
115 | |||
116 | /** | ||
117 | * <!-- begin-user-doc --> | ||
118 | * <!-- end-user-doc --> | ||
119 | * @generated | ||
120 | */ | ||
121 | @Override | ||
122 | public Term getRightOperand() { | ||
123 | return rightOperand; | ||
124 | } | ||
125 | |||
126 | /** | ||
127 | * <!-- begin-user-doc --> | ||
128 | * <!-- end-user-doc --> | ||
129 | * @generated | ||
130 | */ | ||
131 | public NotificationChain basicSetRightOperand(Term newRightOperand, NotificationChain msgs) { | ||
132 | Term oldRightOperand = rightOperand; | ||
133 | rightOperand = newRightOperand; | ||
134 | if (eNotificationRequired()) { | ||
135 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, LogiclanguagePackage.NUMERIC_OPERATION__RIGHT_OPERAND, oldRightOperand, newRightOperand); | ||
136 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
137 | } | ||
138 | return msgs; | ||
139 | } | ||
140 | |||
141 | /** | ||
142 | * <!-- begin-user-doc --> | ||
143 | * <!-- end-user-doc --> | ||
144 | * @generated | ||
145 | */ | ||
146 | @Override | ||
147 | public void setRightOperand(Term newRightOperand) { | ||
148 | if (newRightOperand != rightOperand) { | ||
149 | NotificationChain msgs = null; | ||
150 | if (rightOperand != null) | ||
151 | msgs = ((InternalEObject)rightOperand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - LogiclanguagePackage.NUMERIC_OPERATION__RIGHT_OPERAND, null, msgs); | ||
152 | if (newRightOperand != null) | ||
153 | msgs = ((InternalEObject)newRightOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - LogiclanguagePackage.NUMERIC_OPERATION__RIGHT_OPERAND, null, msgs); | ||
154 | msgs = basicSetRightOperand(newRightOperand, msgs); | ||
155 | if (msgs != null) msgs.dispatch(); | ||
156 | } | ||
157 | else if (eNotificationRequired()) | ||
158 | eNotify(new ENotificationImpl(this, Notification.SET, LogiclanguagePackage.NUMERIC_OPERATION__RIGHT_OPERAND, newRightOperand, newRightOperand)); | ||
159 | } | ||
160 | |||
161 | /** | ||
162 | * <!-- begin-user-doc --> | ||
163 | * <!-- end-user-doc --> | ||
164 | * @generated | ||
165 | */ | ||
166 | @Override | ||
167 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
168 | switch (featureID) { | ||
169 | case LogiclanguagePackage.NUMERIC_OPERATION__LEFT_OPERAND: | ||
170 | return basicSetLeftOperand(null, msgs); | ||
171 | case LogiclanguagePackage.NUMERIC_OPERATION__RIGHT_OPERAND: | ||
172 | return basicSetRightOperand(null, msgs); | ||
173 | } | ||
174 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
175 | } | ||
176 | |||
177 | /** | ||
178 | * <!-- begin-user-doc --> | ||
179 | * <!-- end-user-doc --> | ||
180 | * @generated | ||
181 | */ | ||
182 | @Override | ||
183 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
184 | switch (featureID) { | ||
185 | case LogiclanguagePackage.NUMERIC_OPERATION__LEFT_OPERAND: | ||
186 | return getLeftOperand(); | ||
187 | case LogiclanguagePackage.NUMERIC_OPERATION__RIGHT_OPERAND: | ||
188 | return getRightOperand(); | ||
189 | } | ||
190 | return super.eGet(featureID, resolve, coreType); | ||
191 | } | ||
192 | |||
193 | /** | ||
194 | * <!-- begin-user-doc --> | ||
195 | * <!-- end-user-doc --> | ||
196 | * @generated | ||
197 | */ | ||
198 | @Override | ||
199 | public void eSet(int featureID, Object newValue) { | ||
200 | switch (featureID) { | ||
201 | case LogiclanguagePackage.NUMERIC_OPERATION__LEFT_OPERAND: | ||
202 | setLeftOperand((Term)newValue); | ||
203 | return; | ||
204 | case LogiclanguagePackage.NUMERIC_OPERATION__RIGHT_OPERAND: | ||
205 | setRightOperand((Term)newValue); | ||
206 | return; | ||
207 | } | ||
208 | super.eSet(featureID, newValue); | ||
209 | } | ||
210 | |||
211 | /** | ||
212 | * <!-- begin-user-doc --> | ||
213 | * <!-- end-user-doc --> | ||
214 | * @generated | ||
215 | */ | ||
216 | @Override | ||
217 | public void eUnset(int featureID) { | ||
218 | switch (featureID) { | ||
219 | case LogiclanguagePackage.NUMERIC_OPERATION__LEFT_OPERAND: | ||
220 | setLeftOperand((Term)null); | ||
221 | return; | ||
222 | case LogiclanguagePackage.NUMERIC_OPERATION__RIGHT_OPERAND: | ||
223 | setRightOperand((Term)null); | ||
224 | return; | ||
225 | } | ||
226 | super.eUnset(featureID); | ||
227 | } | ||
228 | |||
229 | /** | ||
230 | * <!-- begin-user-doc --> | ||
231 | * <!-- end-user-doc --> | ||
232 | * @generated | ||
233 | */ | ||
234 | @Override | ||
235 | public boolean eIsSet(int featureID) { | ||
236 | switch (featureID) { | ||
237 | case LogiclanguagePackage.NUMERIC_OPERATION__LEFT_OPERAND: | ||
238 | return leftOperand != null; | ||
239 | case LogiclanguagePackage.NUMERIC_OPERATION__RIGHT_OPERAND: | ||
240 | return rightOperand != null; | ||
241 | } | ||
242 | return super.eIsSet(featureID); | ||
243 | } | ||
244 | |||
245 | } //NumericOperationImpl | ||