diff options
Diffstat (limited to 'Application/org.eclipse.viatra.solver.language.model/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/PathComponentImpl.java')
-rw-r--r-- | Application/org.eclipse.viatra.solver.language.model/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/PathComponentImpl.java | 341 |
1 files changed, 341 insertions, 0 deletions
diff --git a/Application/org.eclipse.viatra.solver.language.model/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/PathComponentImpl.java b/Application/org.eclipse.viatra.solver.language.model/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/PathComponentImpl.java new file mode 100644 index 00000000..afad504d --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language.model/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/PathComponentImpl.java | |||
@@ -0,0 +1,341 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
4 | |||
5 | import org.eclipse.emf.common.notify.Notification; | ||
6 | |||
7 | import org.eclipse.emf.ecore.EClass; | ||
8 | import org.eclipse.emf.ecore.InternalEObject; | ||
9 | |||
10 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
11 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
12 | |||
13 | import org.eclipse.viatra.solver.language.solverLanguage.PathComponent; | ||
14 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.Symbol; | ||
16 | |||
17 | /** | ||
18 | * <!-- begin-user-doc --> | ||
19 | * An implementation of the model object '<em><b>Path Component</b></em>'. | ||
20 | * <!-- end-user-doc --> | ||
21 | * <p> | ||
22 | * The following features are implemented: | ||
23 | * </p> | ||
24 | * <ul> | ||
25 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.PathComponentImpl#getSymbol <em>Symbol</em>}</li> | ||
26 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.PathComponentImpl#isInverse <em>Inverse</em>}</li> | ||
27 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.PathComponentImpl#isTransitiveClosure <em>Transitive Closure</em>}</li> | ||
28 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.PathComponentImpl#isReflexiveTransitiveClosure <em>Reflexive Transitive Closure</em>}</li> | ||
29 | * </ul> | ||
30 | * | ||
31 | * @generated | ||
32 | */ | ||
33 | public class PathComponentImpl extends MinimalEObjectImpl.Container implements PathComponent { | ||
34 | /** | ||
35 | * The cached value of the '{@link #getSymbol() <em>Symbol</em>}' reference. | ||
36 | * <!-- begin-user-doc --> | ||
37 | * <!-- end-user-doc --> | ||
38 | * @see #getSymbol() | ||
39 | * @generated | ||
40 | * @ordered | ||
41 | */ | ||
42 | protected Symbol symbol; | ||
43 | |||
44 | /** | ||
45 | * The default value of the '{@link #isInverse() <em>Inverse</em>}' attribute. | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @see #isInverse() | ||
49 | * @generated | ||
50 | * @ordered | ||
51 | */ | ||
52 | protected static final boolean INVERSE_EDEFAULT = false; | ||
53 | |||
54 | /** | ||
55 | * The cached value of the '{@link #isInverse() <em>Inverse</em>}' attribute. | ||
56 | * <!-- begin-user-doc --> | ||
57 | * <!-- end-user-doc --> | ||
58 | * @see #isInverse() | ||
59 | * @generated | ||
60 | * @ordered | ||
61 | */ | ||
62 | protected boolean inverse = INVERSE_EDEFAULT; | ||
63 | |||
64 | /** | ||
65 | * The default value of the '{@link #isTransitiveClosure() <em>Transitive Closure</em>}' attribute. | ||
66 | * <!-- begin-user-doc --> | ||
67 | * <!-- end-user-doc --> | ||
68 | * @see #isTransitiveClosure() | ||
69 | * @generated | ||
70 | * @ordered | ||
71 | */ | ||
72 | protected static final boolean TRANSITIVE_CLOSURE_EDEFAULT = false; | ||
73 | |||
74 | /** | ||
75 | * The cached value of the '{@link #isTransitiveClosure() <em>Transitive Closure</em>}' attribute. | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <!-- end-user-doc --> | ||
78 | * @see #isTransitiveClosure() | ||
79 | * @generated | ||
80 | * @ordered | ||
81 | */ | ||
82 | protected boolean transitiveClosure = TRANSITIVE_CLOSURE_EDEFAULT; | ||
83 | |||
84 | /** | ||
85 | * The default value of the '{@link #isReflexiveTransitiveClosure() <em>Reflexive Transitive Closure</em>}' attribute. | ||
86 | * <!-- begin-user-doc --> | ||
87 | * <!-- end-user-doc --> | ||
88 | * @see #isReflexiveTransitiveClosure() | ||
89 | * @generated | ||
90 | * @ordered | ||
91 | */ | ||
92 | protected static final boolean REFLEXIVE_TRANSITIVE_CLOSURE_EDEFAULT = false; | ||
93 | |||
94 | /** | ||
95 | * The cached value of the '{@link #isReflexiveTransitiveClosure() <em>Reflexive Transitive Closure</em>}' attribute. | ||
96 | * <!-- begin-user-doc --> | ||
97 | * <!-- end-user-doc --> | ||
98 | * @see #isReflexiveTransitiveClosure() | ||
99 | * @generated | ||
100 | * @ordered | ||
101 | */ | ||
102 | protected boolean reflexiveTransitiveClosure = REFLEXIVE_TRANSITIVE_CLOSURE_EDEFAULT; | ||
103 | |||
104 | /** | ||
105 | * <!-- begin-user-doc --> | ||
106 | * <!-- end-user-doc --> | ||
107 | * @generated | ||
108 | */ | ||
109 | protected PathComponentImpl() { | ||
110 | super(); | ||
111 | } | ||
112 | |||
113 | /** | ||
114 | * <!-- begin-user-doc --> | ||
115 | * <!-- end-user-doc --> | ||
116 | * @generated | ||
117 | */ | ||
118 | @Override | ||
119 | protected EClass eStaticClass() { | ||
120 | return SolverLanguagePackage.Literals.PATH_COMPONENT; | ||
121 | } | ||
122 | |||
123 | /** | ||
124 | * <!-- begin-user-doc --> | ||
125 | * <!-- end-user-doc --> | ||
126 | * @generated | ||
127 | */ | ||
128 | public Symbol getSymbol() { | ||
129 | if (symbol != null && symbol.eIsProxy()) { | ||
130 | InternalEObject oldSymbol = (InternalEObject) symbol; | ||
131 | symbol = (Symbol) eResolveProxy(oldSymbol); | ||
132 | if (symbol != oldSymbol) { | ||
133 | if (eNotificationRequired()) | ||
134 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, | ||
135 | SolverLanguagePackage.PATH_COMPONENT__SYMBOL, oldSymbol, symbol)); | ||
136 | } | ||
137 | } | ||
138 | return symbol; | ||
139 | } | ||
140 | |||
141 | /** | ||
142 | * <!-- begin-user-doc --> | ||
143 | * <!-- end-user-doc --> | ||
144 | * @generated | ||
145 | */ | ||
146 | public Symbol basicGetSymbol() { | ||
147 | return symbol; | ||
148 | } | ||
149 | |||
150 | /** | ||
151 | * <!-- begin-user-doc --> | ||
152 | * <!-- end-user-doc --> | ||
153 | * @generated | ||
154 | */ | ||
155 | public void setSymbol(Symbol newSymbol) { | ||
156 | Symbol oldSymbol = symbol; | ||
157 | symbol = newSymbol; | ||
158 | if (eNotificationRequired()) | ||
159 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.PATH_COMPONENT__SYMBOL, | ||
160 | oldSymbol, symbol)); | ||
161 | } | ||
162 | |||
163 | /** | ||
164 | * <!-- begin-user-doc --> | ||
165 | * <!-- end-user-doc --> | ||
166 | * @generated | ||
167 | */ | ||
168 | public boolean isInverse() { | ||
169 | return inverse; | ||
170 | } | ||
171 | |||
172 | /** | ||
173 | * <!-- begin-user-doc --> | ||
174 | * <!-- end-user-doc --> | ||
175 | * @generated | ||
176 | */ | ||
177 | public void setInverse(boolean newInverse) { | ||
178 | boolean oldInverse = inverse; | ||
179 | inverse = newInverse; | ||
180 | if (eNotificationRequired()) | ||
181 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.PATH_COMPONENT__INVERSE, | ||
182 | oldInverse, inverse)); | ||
183 | } | ||
184 | |||
185 | /** | ||
186 | * <!-- begin-user-doc --> | ||
187 | * <!-- end-user-doc --> | ||
188 | * @generated | ||
189 | */ | ||
190 | public boolean isTransitiveClosure() { | ||
191 | return transitiveClosure; | ||
192 | } | ||
193 | |||
194 | /** | ||
195 | * <!-- begin-user-doc --> | ||
196 | * <!-- end-user-doc --> | ||
197 | * @generated | ||
198 | */ | ||
199 | public void setTransitiveClosure(boolean newTransitiveClosure) { | ||
200 | boolean oldTransitiveClosure = transitiveClosure; | ||
201 | transitiveClosure = newTransitiveClosure; | ||
202 | if (eNotificationRequired()) | ||
203 | eNotify(new ENotificationImpl(this, Notification.SET, | ||
204 | SolverLanguagePackage.PATH_COMPONENT__TRANSITIVE_CLOSURE, oldTransitiveClosure, transitiveClosure)); | ||
205 | } | ||
206 | |||
207 | /** | ||
208 | * <!-- begin-user-doc --> | ||
209 | * <!-- end-user-doc --> | ||
210 | * @generated | ||
211 | */ | ||
212 | public boolean isReflexiveTransitiveClosure() { | ||
213 | return reflexiveTransitiveClosure; | ||
214 | } | ||
215 | |||
216 | /** | ||
217 | * <!-- begin-user-doc --> | ||
218 | * <!-- end-user-doc --> | ||
219 | * @generated | ||
220 | */ | ||
221 | public void setReflexiveTransitiveClosure(boolean newReflexiveTransitiveClosure) { | ||
222 | boolean oldReflexiveTransitiveClosure = reflexiveTransitiveClosure; | ||
223 | reflexiveTransitiveClosure = newReflexiveTransitiveClosure; | ||
224 | if (eNotificationRequired()) | ||
225 | eNotify(new ENotificationImpl(this, Notification.SET, | ||
226 | SolverLanguagePackage.PATH_COMPONENT__REFLEXIVE_TRANSITIVE_CLOSURE, oldReflexiveTransitiveClosure, | ||
227 | reflexiveTransitiveClosure)); | ||
228 | } | ||
229 | |||
230 | /** | ||
231 | * <!-- begin-user-doc --> | ||
232 | * <!-- end-user-doc --> | ||
233 | * @generated | ||
234 | */ | ||
235 | @Override | ||
236 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
237 | switch (featureID) { | ||
238 | case SolverLanguagePackage.PATH_COMPONENT__SYMBOL: | ||
239 | if (resolve) | ||
240 | return getSymbol(); | ||
241 | return basicGetSymbol(); | ||
242 | case SolverLanguagePackage.PATH_COMPONENT__INVERSE: | ||
243 | return isInverse(); | ||
244 | case SolverLanguagePackage.PATH_COMPONENT__TRANSITIVE_CLOSURE: | ||
245 | return isTransitiveClosure(); | ||
246 | case SolverLanguagePackage.PATH_COMPONENT__REFLEXIVE_TRANSITIVE_CLOSURE: | ||
247 | return isReflexiveTransitiveClosure(); | ||
248 | } | ||
249 | return super.eGet(featureID, resolve, coreType); | ||
250 | } | ||
251 | |||
252 | /** | ||
253 | * <!-- begin-user-doc --> | ||
254 | * <!-- end-user-doc --> | ||
255 | * @generated | ||
256 | */ | ||
257 | @Override | ||
258 | public void eSet(int featureID, Object newValue) { | ||
259 | switch (featureID) { | ||
260 | case SolverLanguagePackage.PATH_COMPONENT__SYMBOL: | ||
261 | setSymbol((Symbol) newValue); | ||
262 | return; | ||
263 | case SolverLanguagePackage.PATH_COMPONENT__INVERSE: | ||
264 | setInverse((Boolean) newValue); | ||
265 | return; | ||
266 | case SolverLanguagePackage.PATH_COMPONENT__TRANSITIVE_CLOSURE: | ||
267 | setTransitiveClosure((Boolean) newValue); | ||
268 | return; | ||
269 | case SolverLanguagePackage.PATH_COMPONENT__REFLEXIVE_TRANSITIVE_CLOSURE: | ||
270 | setReflexiveTransitiveClosure((Boolean) newValue); | ||
271 | return; | ||
272 | } | ||
273 | super.eSet(featureID, newValue); | ||
274 | } | ||
275 | |||
276 | /** | ||
277 | * <!-- begin-user-doc --> | ||
278 | * <!-- end-user-doc --> | ||
279 | * @generated | ||
280 | */ | ||
281 | @Override | ||
282 | public void eUnset(int featureID) { | ||
283 | switch (featureID) { | ||
284 | case SolverLanguagePackage.PATH_COMPONENT__SYMBOL: | ||
285 | setSymbol((Symbol) null); | ||
286 | return; | ||
287 | case SolverLanguagePackage.PATH_COMPONENT__INVERSE: | ||
288 | setInverse(INVERSE_EDEFAULT); | ||
289 | return; | ||
290 | case SolverLanguagePackage.PATH_COMPONENT__TRANSITIVE_CLOSURE: | ||
291 | setTransitiveClosure(TRANSITIVE_CLOSURE_EDEFAULT); | ||
292 | return; | ||
293 | case SolverLanguagePackage.PATH_COMPONENT__REFLEXIVE_TRANSITIVE_CLOSURE: | ||
294 | setReflexiveTransitiveClosure(REFLEXIVE_TRANSITIVE_CLOSURE_EDEFAULT); | ||
295 | return; | ||
296 | } | ||
297 | super.eUnset(featureID); | ||
298 | } | ||
299 | |||
300 | /** | ||
301 | * <!-- begin-user-doc --> | ||
302 | * <!-- end-user-doc --> | ||
303 | * @generated | ||
304 | */ | ||
305 | @Override | ||
306 | public boolean eIsSet(int featureID) { | ||
307 | switch (featureID) { | ||
308 | case SolverLanguagePackage.PATH_COMPONENT__SYMBOL: | ||
309 | return symbol != null; | ||
310 | case SolverLanguagePackage.PATH_COMPONENT__INVERSE: | ||
311 | return inverse != INVERSE_EDEFAULT; | ||
312 | case SolverLanguagePackage.PATH_COMPONENT__TRANSITIVE_CLOSURE: | ||
313 | return transitiveClosure != TRANSITIVE_CLOSURE_EDEFAULT; | ||
314 | case SolverLanguagePackage.PATH_COMPONENT__REFLEXIVE_TRANSITIVE_CLOSURE: | ||
315 | return reflexiveTransitiveClosure != REFLEXIVE_TRANSITIVE_CLOSURE_EDEFAULT; | ||
316 | } | ||
317 | return super.eIsSet(featureID); | ||
318 | } | ||
319 | |||
320 | /** | ||
321 | * <!-- begin-user-doc --> | ||
322 | * <!-- end-user-doc --> | ||
323 | * @generated | ||
324 | */ | ||
325 | @Override | ||
326 | public String toString() { | ||
327 | if (eIsProxy()) | ||
328 | return super.toString(); | ||
329 | |||
330 | StringBuilder result = new StringBuilder(super.toString()); | ||
331 | result.append(" (inverse: "); | ||
332 | result.append(inverse); | ||
333 | result.append(", transitiveClosure: "); | ||
334 | result.append(transitiveClosure); | ||
335 | result.append(", reflexiveTransitiveClosure: "); | ||
336 | result.append(reflexiveTransitiveClosure); | ||
337 | result.append(')'); | ||
338 | return result.toString(); | ||
339 | } | ||
340 | |||
341 | } //PathComponentImpl | ||