diff options
author | OszkarSemerath <oszka@152.66.252.189> | 2017-06-10 19:05:05 +0200 |
---|---|---|
committer | OszkarSemerath <oszka@152.66.252.189> | 2017-06-10 19:05:05 +0200 |
commit | 60f01f46ba232ed6416054f0a6115cb2a9b70b4e (patch) | |
tree | 5edf8aeb07abc51f3fec63bbd15c926e1de09552 /Framework/hu.bme.mit.inf.dslreasoner.logic.model/ecore-gen/hu/bme/mit/inf/dslreasoner/logic/model/logicresult/impl/LogicResultImpl.java | |
parent | Initial commit, migrating from SVN (diff) | |
download | VIATRA-Generator-60f01f46ba232ed6416054f0a6115cb2a9b70b4e.tar.gz VIATRA-Generator-60f01f46ba232ed6416054f0a6115cb2a9b70b4e.tar.zst VIATRA-Generator-60f01f46ba232ed6416054f0a6115cb2a9b70b4e.zip |
Migrating Additional projects
Diffstat (limited to 'Framework/hu.bme.mit.inf.dslreasoner.logic.model/ecore-gen/hu/bme/mit/inf/dslreasoner/logic/model/logicresult/impl/LogicResultImpl.java')
-rw-r--r-- | Framework/hu.bme.mit.inf.dslreasoner.logic.model/ecore-gen/hu/bme/mit/inf/dslreasoner/logic/model/logicresult/impl/LogicResultImpl.java | 346 |
1 files changed, 346 insertions, 0 deletions
diff --git a/Framework/hu.bme.mit.inf.dslreasoner.logic.model/ecore-gen/hu/bme/mit/inf/dslreasoner/logic/model/logicresult/impl/LogicResultImpl.java b/Framework/hu.bme.mit.inf.dslreasoner.logic.model/ecore-gen/hu/bme/mit/inf/dslreasoner/logic/model/logicresult/impl/LogicResultImpl.java new file mode 100644 index 00000000..1bd5c833 --- /dev/null +++ b/Framework/hu.bme.mit.inf.dslreasoner.logic.model/ecore-gen/hu/bme/mit/inf/dslreasoner/logic/model/logicresult/impl/LogicResultImpl.java | |||
@@ -0,0 +1,346 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.logic.model.logicresult.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.logic.model.logicproblem.LogicProblem; | ||
6 | |||
7 | import hu.bme.mit.inf.dslreasoner.logic.model.logicresult.LogicResult; | ||
8 | import hu.bme.mit.inf.dslreasoner.logic.model.logicresult.LogicresultPackage; | ||
9 | import hu.bme.mit.inf.dslreasoner.logic.model.logicresult.Statistics; | ||
10 | |||
11 | import java.util.Collection; | ||
12 | import org.eclipse.emf.common.notify.Notification; | ||
13 | import org.eclipse.emf.common.notify.NotificationChain; | ||
14 | |||
15 | import org.eclipse.emf.common.util.EList; | ||
16 | import org.eclipse.emf.ecore.EClass; | ||
17 | import org.eclipse.emf.ecore.InternalEObject; | ||
18 | |||
19 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
20 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
21 | import org.eclipse.emf.ecore.util.EDataTypeUniqueEList; | ||
22 | |||
23 | /** | ||
24 | * <!-- begin-user-doc --> | ||
25 | * An implementation of the model object '<em><b>Logic Result</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.logic.model.logicresult.impl.LogicResultImpl#getProblem <em>Problem</em>}</li> | ||
32 | * <li>{@link hu.bme.mit.inf.dslreasoner.logic.model.logicresult.impl.LogicResultImpl#getStatistics <em>Statistics</em>}</li> | ||
33 | * <li>{@link hu.bme.mit.inf.dslreasoner.logic.model.logicresult.impl.LogicResultImpl#getTrace <em>Trace</em>}</li> | ||
34 | * <li>{@link hu.bme.mit.inf.dslreasoner.logic.model.logicresult.impl.LogicResultImpl#getRepresentation <em>Representation</em>}</li> | ||
35 | * </ul> | ||
36 | * | ||
37 | * @generated | ||
38 | */ | ||
39 | public abstract class LogicResultImpl extends MinimalEObjectImpl.Container implements LogicResult { | ||
40 | /** | ||
41 | * The cached value of the '{@link #getProblem() <em>Problem</em>}' reference. | ||
42 | * <!-- begin-user-doc --> | ||
43 | * <!-- end-user-doc --> | ||
44 | * @see #getProblem() | ||
45 | * @generated | ||
46 | * @ordered | ||
47 | */ | ||
48 | protected LogicProblem problem; | ||
49 | |||
50 | /** | ||
51 | * The cached value of the '{@link #getStatistics() <em>Statistics</em>}' containment reference. | ||
52 | * <!-- begin-user-doc --> | ||
53 | * <!-- end-user-doc --> | ||
54 | * @see #getStatistics() | ||
55 | * @generated | ||
56 | * @ordered | ||
57 | */ | ||
58 | protected Statistics statistics; | ||
59 | |||
60 | /** | ||
61 | * The default value of the '{@link #getTrace() <em>Trace</em>}' attribute. | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @see #getTrace() | ||
65 | * @generated | ||
66 | * @ordered | ||
67 | */ | ||
68 | protected static final Object TRACE_EDEFAULT = null; | ||
69 | |||
70 | /** | ||
71 | * The cached value of the '{@link #getTrace() <em>Trace</em>}' attribute. | ||
72 | * <!-- begin-user-doc --> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @see #getTrace() | ||
75 | * @generated | ||
76 | * @ordered | ||
77 | */ | ||
78 | protected Object trace = TRACE_EDEFAULT; | ||
79 | |||
80 | /** | ||
81 | * The cached value of the '{@link #getRepresentation() <em>Representation</em>}' attribute list. | ||
82 | * <!-- begin-user-doc --> | ||
83 | * <!-- end-user-doc --> | ||
84 | * @see #getRepresentation() | ||
85 | * @generated | ||
86 | * @ordered | ||
87 | */ | ||
88 | protected EList<Object> representation; | ||
89 | |||
90 | /** | ||
91 | * <!-- begin-user-doc --> | ||
92 | * <!-- end-user-doc --> | ||
93 | * @generated | ||
94 | */ | ||
95 | protected LogicResultImpl() { | ||
96 | super(); | ||
97 | } | ||
98 | |||
99 | /** | ||
100 | * <!-- begin-user-doc --> | ||
101 | * <!-- end-user-doc --> | ||
102 | * @generated | ||
103 | */ | ||
104 | @Override | ||
105 | protected EClass eStaticClass() { | ||
106 | return LogicresultPackage.Literals.LOGIC_RESULT; | ||
107 | } | ||
108 | |||
109 | /** | ||
110 | * <!-- begin-user-doc --> | ||
111 | * <!-- end-user-doc --> | ||
112 | * @generated | ||
113 | */ | ||
114 | public LogicProblem getProblem() { | ||
115 | if (problem != null && problem.eIsProxy()) { | ||
116 | InternalEObject oldProblem = (InternalEObject)problem; | ||
117 | problem = (LogicProblem)eResolveProxy(oldProblem); | ||
118 | if (problem != oldProblem) { | ||
119 | if (eNotificationRequired()) | ||
120 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, LogicresultPackage.LOGIC_RESULT__PROBLEM, oldProblem, problem)); | ||
121 | } | ||
122 | } | ||
123 | return problem; | ||
124 | } | ||
125 | |||
126 | /** | ||
127 | * <!-- begin-user-doc --> | ||
128 | * <!-- end-user-doc --> | ||
129 | * @generated | ||
130 | */ | ||
131 | public LogicProblem basicGetProblem() { | ||
132 | return problem; | ||
133 | } | ||
134 | |||
135 | /** | ||
136 | * <!-- begin-user-doc --> | ||
137 | * <!-- end-user-doc --> | ||
138 | * @generated | ||
139 | */ | ||
140 | public void setProblem(LogicProblem newProblem) { | ||
141 | LogicProblem oldProblem = problem; | ||
142 | problem = newProblem; | ||
143 | if (eNotificationRequired()) | ||
144 | eNotify(new ENotificationImpl(this, Notification.SET, LogicresultPackage.LOGIC_RESULT__PROBLEM, oldProblem, problem)); | ||
145 | } | ||
146 | |||
147 | /** | ||
148 | * <!-- begin-user-doc --> | ||
149 | * <!-- end-user-doc --> | ||
150 | * @generated | ||
151 | */ | ||
152 | public Statistics getStatistics() { | ||
153 | return statistics; | ||
154 | } | ||
155 | |||
156 | /** | ||
157 | * <!-- begin-user-doc --> | ||
158 | * <!-- end-user-doc --> | ||
159 | * @generated | ||
160 | */ | ||
161 | public NotificationChain basicSetStatistics(Statistics newStatistics, NotificationChain msgs) { | ||
162 | Statistics oldStatistics = statistics; | ||
163 | statistics = newStatistics; | ||
164 | if (eNotificationRequired()) { | ||
165 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, LogicresultPackage.LOGIC_RESULT__STATISTICS, oldStatistics, newStatistics); | ||
166 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
167 | } | ||
168 | return msgs; | ||
169 | } | ||
170 | |||
171 | /** | ||
172 | * <!-- begin-user-doc --> | ||
173 | * <!-- end-user-doc --> | ||
174 | * @generated | ||
175 | */ | ||
176 | public void setStatistics(Statistics newStatistics) { | ||
177 | if (newStatistics != statistics) { | ||
178 | NotificationChain msgs = null; | ||
179 | if (statistics != null) | ||
180 | msgs = ((InternalEObject)statistics).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - LogicresultPackage.LOGIC_RESULT__STATISTICS, null, msgs); | ||
181 | if (newStatistics != null) | ||
182 | msgs = ((InternalEObject)newStatistics).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - LogicresultPackage.LOGIC_RESULT__STATISTICS, null, msgs); | ||
183 | msgs = basicSetStatistics(newStatistics, msgs); | ||
184 | if (msgs != null) msgs.dispatch(); | ||
185 | } | ||
186 | else if (eNotificationRequired()) | ||
187 | eNotify(new ENotificationImpl(this, Notification.SET, LogicresultPackage.LOGIC_RESULT__STATISTICS, newStatistics, newStatistics)); | ||
188 | } | ||
189 | |||
190 | /** | ||
191 | * <!-- begin-user-doc --> | ||
192 | * <!-- end-user-doc --> | ||
193 | * @generated | ||
194 | */ | ||
195 | public Object getTrace() { | ||
196 | return trace; | ||
197 | } | ||
198 | |||
199 | /** | ||
200 | * <!-- begin-user-doc --> | ||
201 | * <!-- end-user-doc --> | ||
202 | * @generated | ||
203 | */ | ||
204 | public void setTrace(Object newTrace) { | ||
205 | Object oldTrace = trace; | ||
206 | trace = newTrace; | ||
207 | if (eNotificationRequired()) | ||
208 | eNotify(new ENotificationImpl(this, Notification.SET, LogicresultPackage.LOGIC_RESULT__TRACE, oldTrace, trace)); | ||
209 | } | ||
210 | |||
211 | /** | ||
212 | * <!-- begin-user-doc --> | ||
213 | * <!-- end-user-doc --> | ||
214 | * @generated | ||
215 | */ | ||
216 | public EList<Object> getRepresentation() { | ||
217 | if (representation == null) { | ||
218 | representation = new EDataTypeUniqueEList<Object>(Object.class, this, LogicresultPackage.LOGIC_RESULT__REPRESENTATION); | ||
219 | } | ||
220 | return representation; | ||
221 | } | ||
222 | |||
223 | /** | ||
224 | * <!-- begin-user-doc --> | ||
225 | * <!-- end-user-doc --> | ||
226 | * @generated | ||
227 | */ | ||
228 | @Override | ||
229 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
230 | switch (featureID) { | ||
231 | case LogicresultPackage.LOGIC_RESULT__STATISTICS: | ||
232 | return basicSetStatistics(null, msgs); | ||
233 | } | ||
234 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
235 | } | ||
236 | |||
237 | /** | ||
238 | * <!-- begin-user-doc --> | ||
239 | * <!-- end-user-doc --> | ||
240 | * @generated | ||
241 | */ | ||
242 | @Override | ||
243 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
244 | switch (featureID) { | ||
245 | case LogicresultPackage.LOGIC_RESULT__PROBLEM: | ||
246 | if (resolve) return getProblem(); | ||
247 | return basicGetProblem(); | ||
248 | case LogicresultPackage.LOGIC_RESULT__STATISTICS: | ||
249 | return getStatistics(); | ||
250 | case LogicresultPackage.LOGIC_RESULT__TRACE: | ||
251 | return getTrace(); | ||
252 | case LogicresultPackage.LOGIC_RESULT__REPRESENTATION: | ||
253 | return getRepresentation(); | ||
254 | } | ||
255 | return super.eGet(featureID, resolve, coreType); | ||
256 | } | ||
257 | |||
258 | /** | ||
259 | * <!-- begin-user-doc --> | ||
260 | * <!-- end-user-doc --> | ||
261 | * @generated | ||
262 | */ | ||
263 | @SuppressWarnings("unchecked") | ||
264 | @Override | ||
265 | public void eSet(int featureID, Object newValue) { | ||
266 | switch (featureID) { | ||
267 | case LogicresultPackage.LOGIC_RESULT__PROBLEM: | ||
268 | setProblem((LogicProblem)newValue); | ||
269 | return; | ||
270 | case LogicresultPackage.LOGIC_RESULT__STATISTICS: | ||
271 | setStatistics((Statistics)newValue); | ||
272 | return; | ||
273 | case LogicresultPackage.LOGIC_RESULT__TRACE: | ||
274 | setTrace(newValue); | ||
275 | return; | ||
276 | case LogicresultPackage.LOGIC_RESULT__REPRESENTATION: | ||
277 | getRepresentation().clear(); | ||
278 | getRepresentation().addAll((Collection<? extends Object>)newValue); | ||
279 | return; | ||
280 | } | ||
281 | super.eSet(featureID, newValue); | ||
282 | } | ||
283 | |||
284 | /** | ||
285 | * <!-- begin-user-doc --> | ||
286 | * <!-- end-user-doc --> | ||
287 | * @generated | ||
288 | */ | ||
289 | @Override | ||
290 | public void eUnset(int featureID) { | ||
291 | switch (featureID) { | ||
292 | case LogicresultPackage.LOGIC_RESULT__PROBLEM: | ||
293 | setProblem((LogicProblem)null); | ||
294 | return; | ||
295 | case LogicresultPackage.LOGIC_RESULT__STATISTICS: | ||
296 | setStatistics((Statistics)null); | ||
297 | return; | ||
298 | case LogicresultPackage.LOGIC_RESULT__TRACE: | ||
299 | setTrace(TRACE_EDEFAULT); | ||
300 | return; | ||
301 | case LogicresultPackage.LOGIC_RESULT__REPRESENTATION: | ||
302 | getRepresentation().clear(); | ||
303 | return; | ||
304 | } | ||
305 | super.eUnset(featureID); | ||
306 | } | ||
307 | |||
308 | /** | ||
309 | * <!-- begin-user-doc --> | ||
310 | * <!-- end-user-doc --> | ||
311 | * @generated | ||
312 | */ | ||
313 | @Override | ||
314 | public boolean eIsSet(int featureID) { | ||
315 | switch (featureID) { | ||
316 | case LogicresultPackage.LOGIC_RESULT__PROBLEM: | ||
317 | return problem != null; | ||
318 | case LogicresultPackage.LOGIC_RESULT__STATISTICS: | ||
319 | return statistics != null; | ||
320 | case LogicresultPackage.LOGIC_RESULT__TRACE: | ||
321 | return TRACE_EDEFAULT == null ? trace != null : !TRACE_EDEFAULT.equals(trace); | ||
322 | case LogicresultPackage.LOGIC_RESULT__REPRESENTATION: | ||
323 | return representation != null && !representation.isEmpty(); | ||
324 | } | ||
325 | return super.eIsSet(featureID); | ||
326 | } | ||
327 | |||
328 | /** | ||
329 | * <!-- begin-user-doc --> | ||
330 | * <!-- end-user-doc --> | ||
331 | * @generated | ||
332 | */ | ||
333 | @Override | ||
334 | public String toString() { | ||
335 | if (eIsProxy()) return super.toString(); | ||
336 | |||
337 | StringBuffer result = new StringBuffer(super.toString()); | ||
338 | result.append(" (trace: "); | ||
339 | result.append(trace); | ||
340 | result.append(", representation: "); | ||
341 | result.append(representation); | ||
342 | result.append(')'); | ||
343 | return result.toString(); | ||
344 | } | ||
345 | |||
346 | } //LogicResultImpl | ||