diff options
author | 2020-05-19 21:18:06 +0200 | |
---|---|---|
committer | 2020-05-19 21:18:06 +0200 | |
commit | b3c1c5b30ae8ea7ebad391c9250b4509d5a4cc9b (patch) | |
tree | ad3222182065b8fac7d9b3d528c4efabf2aa0dd2 /Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/IntervalImpl.java | |
parent | Merge branch 'master' of github.com:viatra/VIATRA-Generator (diff) | |
download | VIATRA-Generator-b3c1c5b30ae8ea7ebad391c9250b4509d5a4cc9b.tar.gz VIATRA-Generator-b3c1c5b30ae8ea7ebad391c9250b4509d5a4cc9b.tar.zst VIATRA-Generator-b3c1c5b30ae8ea7ebad391c9250b4509d5a4cc9b.zip |
Config language WIP
Diffstat (limited to 'Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/IntervalImpl.java')
-rw-r--r-- | Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/IntervalImpl.java | 269 |
1 files changed, 0 insertions, 269 deletions
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/IntervalImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/IntervalImpl.java deleted file mode 100644 index e6107ef8..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/IntervalImpl.java +++ /dev/null | |||
@@ -1,269 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | import org.eclipse.emf.common.notify.NotificationChain; | ||
8 | |||
9 | import org.eclipse.emf.ecore.EClass; | ||
10 | import org.eclipse.emf.ecore.InternalEObject; | ||
11 | |||
12 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
13 | |||
14 | import org.eclipse.viatra.solver.language.solverLanguage.Expression; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.Interval; | ||
16 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
17 | |||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * An implementation of the model object '<em><b>Interval</b></em>'. | ||
21 | * <!-- end-user-doc --> | ||
22 | * <p> | ||
23 | * The following features are implemented: | ||
24 | * </p> | ||
25 | * <ul> | ||
26 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.IntervalImpl#getLowerBound <em>Lower Bound</em>}</li> | ||
27 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.IntervalImpl#getUpperBound <em>Upper Bound</em>}</li> | ||
28 | * </ul> | ||
29 | * | ||
30 | * @generated | ||
31 | */ | ||
32 | public class IntervalImpl extends ExpressionImpl implements Interval | ||
33 | { | ||
34 | /** | ||
35 | * The cached value of the '{@link #getLowerBound() <em>Lower Bound</em>}' containment reference. | ||
36 | * <!-- begin-user-doc --> | ||
37 | * <!-- end-user-doc --> | ||
38 | * @see #getLowerBound() | ||
39 | * @generated | ||
40 | * @ordered | ||
41 | */ | ||
42 | protected Expression lowerBound; | ||
43 | |||
44 | /** | ||
45 | * The cached value of the '{@link #getUpperBound() <em>Upper Bound</em>}' containment reference. | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @see #getUpperBound() | ||
49 | * @generated | ||
50 | * @ordered | ||
51 | */ | ||
52 | protected Expression upperBound; | ||
53 | |||
54 | /** | ||
55 | * <!-- begin-user-doc --> | ||
56 | * <!-- end-user-doc --> | ||
57 | * @generated | ||
58 | */ | ||
59 | protected IntervalImpl() | ||
60 | { | ||
61 | super(); | ||
62 | } | ||
63 | |||
64 | /** | ||
65 | * <!-- begin-user-doc --> | ||
66 | * <!-- end-user-doc --> | ||
67 | * @generated | ||
68 | */ | ||
69 | @Override | ||
70 | protected EClass eStaticClass() | ||
71 | { | ||
72 | return SolverLanguagePackage.Literals.INTERVAL; | ||
73 | } | ||
74 | |||
75 | /** | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <!-- end-user-doc --> | ||
78 | * @generated | ||
79 | */ | ||
80 | @Override | ||
81 | public Expression getLowerBound() | ||
82 | { | ||
83 | return lowerBound; | ||
84 | } | ||
85 | |||
86 | /** | ||
87 | * <!-- begin-user-doc --> | ||
88 | * <!-- end-user-doc --> | ||
89 | * @generated | ||
90 | */ | ||
91 | public NotificationChain basicSetLowerBound(Expression newLowerBound, NotificationChain msgs) | ||
92 | { | ||
93 | Expression oldLowerBound = lowerBound; | ||
94 | lowerBound = newLowerBound; | ||
95 | if (eNotificationRequired()) | ||
96 | { | ||
97 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.INTERVAL__LOWER_BOUND, oldLowerBound, newLowerBound); | ||
98 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
99 | } | ||
100 | return msgs; | ||
101 | } | ||
102 | |||
103 | /** | ||
104 | * <!-- begin-user-doc --> | ||
105 | * <!-- end-user-doc --> | ||
106 | * @generated | ||
107 | */ | ||
108 | @Override | ||
109 | public void setLowerBound(Expression newLowerBound) | ||
110 | { | ||
111 | if (newLowerBound != lowerBound) | ||
112 | { | ||
113 | NotificationChain msgs = null; | ||
114 | if (lowerBound != null) | ||
115 | msgs = ((InternalEObject)lowerBound).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.INTERVAL__LOWER_BOUND, null, msgs); | ||
116 | if (newLowerBound != null) | ||
117 | msgs = ((InternalEObject)newLowerBound).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.INTERVAL__LOWER_BOUND, null, msgs); | ||
118 | msgs = basicSetLowerBound(newLowerBound, msgs); | ||
119 | if (msgs != null) msgs.dispatch(); | ||
120 | } | ||
121 | else if (eNotificationRequired()) | ||
122 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.INTERVAL__LOWER_BOUND, newLowerBound, newLowerBound)); | ||
123 | } | ||
124 | |||
125 | /** | ||
126 | * <!-- begin-user-doc --> | ||
127 | * <!-- end-user-doc --> | ||
128 | * @generated | ||
129 | */ | ||
130 | @Override | ||
131 | public Expression getUpperBound() | ||
132 | { | ||
133 | return upperBound; | ||
134 | } | ||
135 | |||
136 | /** | ||
137 | * <!-- begin-user-doc --> | ||
138 | * <!-- end-user-doc --> | ||
139 | * @generated | ||
140 | */ | ||
141 | public NotificationChain basicSetUpperBound(Expression newUpperBound, NotificationChain msgs) | ||
142 | { | ||
143 | Expression oldUpperBound = upperBound; | ||
144 | upperBound = newUpperBound; | ||
145 | if (eNotificationRequired()) | ||
146 | { | ||
147 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.INTERVAL__UPPER_BOUND, oldUpperBound, newUpperBound); | ||
148 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
149 | } | ||
150 | return msgs; | ||
151 | } | ||
152 | |||
153 | /** | ||
154 | * <!-- begin-user-doc --> | ||
155 | * <!-- end-user-doc --> | ||
156 | * @generated | ||
157 | */ | ||
158 | @Override | ||
159 | public void setUpperBound(Expression newUpperBound) | ||
160 | { | ||
161 | if (newUpperBound != upperBound) | ||
162 | { | ||
163 | NotificationChain msgs = null; | ||
164 | if (upperBound != null) | ||
165 | msgs = ((InternalEObject)upperBound).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.INTERVAL__UPPER_BOUND, null, msgs); | ||
166 | if (newUpperBound != null) | ||
167 | msgs = ((InternalEObject)newUpperBound).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.INTERVAL__UPPER_BOUND, null, msgs); | ||
168 | msgs = basicSetUpperBound(newUpperBound, msgs); | ||
169 | if (msgs != null) msgs.dispatch(); | ||
170 | } | ||
171 | else if (eNotificationRequired()) | ||
172 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.INTERVAL__UPPER_BOUND, newUpperBound, newUpperBound)); | ||
173 | } | ||
174 | |||
175 | /** | ||
176 | * <!-- begin-user-doc --> | ||
177 | * <!-- end-user-doc --> | ||
178 | * @generated | ||
179 | */ | ||
180 | @Override | ||
181 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
182 | { | ||
183 | switch (featureID) | ||
184 | { | ||
185 | case SolverLanguagePackage.INTERVAL__LOWER_BOUND: | ||
186 | return basicSetLowerBound(null, msgs); | ||
187 | case SolverLanguagePackage.INTERVAL__UPPER_BOUND: | ||
188 | return basicSetUpperBound(null, msgs); | ||
189 | } | ||
190 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
191 | } | ||
192 | |||
193 | /** | ||
194 | * <!-- begin-user-doc --> | ||
195 | * <!-- end-user-doc --> | ||
196 | * @generated | ||
197 | */ | ||
198 | @Override | ||
199 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
200 | { | ||
201 | switch (featureID) | ||
202 | { | ||
203 | case SolverLanguagePackage.INTERVAL__LOWER_BOUND: | ||
204 | return getLowerBound(); | ||
205 | case SolverLanguagePackage.INTERVAL__UPPER_BOUND: | ||
206 | return getUpperBound(); | ||
207 | } | ||
208 | return super.eGet(featureID, resolve, coreType); | ||
209 | } | ||
210 | |||
211 | /** | ||
212 | * <!-- begin-user-doc --> | ||
213 | * <!-- end-user-doc --> | ||
214 | * @generated | ||
215 | */ | ||
216 | @Override | ||
217 | public void eSet(int featureID, Object newValue) | ||
218 | { | ||
219 | switch (featureID) | ||
220 | { | ||
221 | case SolverLanguagePackage.INTERVAL__LOWER_BOUND: | ||
222 | setLowerBound((Expression)newValue); | ||
223 | return; | ||
224 | case SolverLanguagePackage.INTERVAL__UPPER_BOUND: | ||
225 | setUpperBound((Expression)newValue); | ||
226 | return; | ||
227 | } | ||
228 | super.eSet(featureID, newValue); | ||
229 | } | ||
230 | |||
231 | /** | ||
232 | * <!-- begin-user-doc --> | ||
233 | * <!-- end-user-doc --> | ||
234 | * @generated | ||
235 | */ | ||
236 | @Override | ||
237 | public void eUnset(int featureID) | ||
238 | { | ||
239 | switch (featureID) | ||
240 | { | ||
241 | case SolverLanguagePackage.INTERVAL__LOWER_BOUND: | ||
242 | setLowerBound((Expression)null); | ||
243 | return; | ||
244 | case SolverLanguagePackage.INTERVAL__UPPER_BOUND: | ||
245 | setUpperBound((Expression)null); | ||
246 | return; | ||
247 | } | ||
248 | super.eUnset(featureID); | ||
249 | } | ||
250 | |||
251 | /** | ||
252 | * <!-- begin-user-doc --> | ||
253 | * <!-- end-user-doc --> | ||
254 | * @generated | ||
255 | */ | ||
256 | @Override | ||
257 | public boolean eIsSet(int featureID) | ||
258 | { | ||
259 | switch (featureID) | ||
260 | { | ||
261 | case SolverLanguagePackage.INTERVAL__LOWER_BOUND: | ||
262 | return lowerBound != null; | ||
263 | case SolverLanguagePackage.INTERVAL__UPPER_BOUND: | ||
264 | return upperBound != null; | ||
265 | } | ||
266 | return super.eIsSet(featureID); | ||
267 | } | ||
268 | |||
269 | } //IntervalImpl | ||