diff options
author | 2017-06-10 19:05:05 +0200 | |
---|---|---|
committer | 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/StatisticsImpl.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/StatisticsImpl.java')
-rw-r--r-- | Framework/hu.bme.mit.inf.dslreasoner.logic.model/ecore-gen/hu/bme/mit/inf/dslreasoner/logic/model/logicresult/impl/StatisticsImpl.java | 330 |
1 files changed, 330 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/StatisticsImpl.java b/Framework/hu.bme.mit.inf.dslreasoner.logic.model/ecore-gen/hu/bme/mit/inf/dslreasoner/logic/model/logicresult/impl/StatisticsImpl.java new file mode 100644 index 00000000..77d43c97 --- /dev/null +++ b/Framework/hu.bme.mit.inf.dslreasoner.logic.model/ecore-gen/hu/bme/mit/inf/dslreasoner/logic/model/logicresult/impl/StatisticsImpl.java | |||
@@ -0,0 +1,330 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.logic.model.logicresult.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.logic.model.logicresult.LogicresultPackage; | ||
6 | import hu.bme.mit.inf.dslreasoner.logic.model.logicresult.StatisticEntry; | ||
7 | import hu.bme.mit.inf.dslreasoner.logic.model.logicresult.Statistics; | ||
8 | |||
9 | import java.util.Collection; | ||
10 | |||
11 | import org.eclipse.emf.common.notify.Notification; | ||
12 | import org.eclipse.emf.common.notify.NotificationChain; | ||
13 | |||
14 | import org.eclipse.emf.common.util.EList; | ||
15 | |||
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 | |||
22 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
23 | import org.eclipse.emf.ecore.util.InternalEList; | ||
24 | |||
25 | /** | ||
26 | * <!-- begin-user-doc --> | ||
27 | * An implementation of the model object '<em><b>Statistics</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.logic.model.logicresult.impl.StatisticsImpl#getEntries <em>Entries</em>}</li> | ||
34 | * <li>{@link hu.bme.mit.inf.dslreasoner.logic.model.logicresult.impl.StatisticsImpl#getTransformationTime <em>Transformation Time</em>}</li> | ||
35 | * <li>{@link hu.bme.mit.inf.dslreasoner.logic.model.logicresult.impl.StatisticsImpl#getSolverTime <em>Solver Time</em>}</li> | ||
36 | * <li>{@link hu.bme.mit.inf.dslreasoner.logic.model.logicresult.impl.StatisticsImpl#getSolverMemory <em>Solver Memory</em>}</li> | ||
37 | * </ul> | ||
38 | * | ||
39 | * @generated | ||
40 | */ | ||
41 | public class StatisticsImpl extends MinimalEObjectImpl.Container implements Statistics { | ||
42 | /** | ||
43 | * The cached value of the '{@link #getEntries() <em>Entries</em>}' containment reference list. | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @see #getEntries() | ||
47 | * @generated | ||
48 | * @ordered | ||
49 | */ | ||
50 | protected EList<StatisticEntry> entries; | ||
51 | |||
52 | /** | ||
53 | * The default value of the '{@link #getTransformationTime() <em>Transformation Time</em>}' attribute. | ||
54 | * <!-- begin-user-doc --> | ||
55 | * <!-- end-user-doc --> | ||
56 | * @see #getTransformationTime() | ||
57 | * @generated | ||
58 | * @ordered | ||
59 | */ | ||
60 | protected static final int TRANSFORMATION_TIME_EDEFAULT = -1; | ||
61 | |||
62 | /** | ||
63 | * The cached value of the '{@link #getTransformationTime() <em>Transformation Time</em>}' attribute. | ||
64 | * <!-- begin-user-doc --> | ||
65 | * <!-- end-user-doc --> | ||
66 | * @see #getTransformationTime() | ||
67 | * @generated | ||
68 | * @ordered | ||
69 | */ | ||
70 | protected int transformationTime = TRANSFORMATION_TIME_EDEFAULT; | ||
71 | |||
72 | /** | ||
73 | * The default value of the '{@link #getSolverTime() <em>Solver Time</em>}' attribute. | ||
74 | * <!-- begin-user-doc --> | ||
75 | * <!-- end-user-doc --> | ||
76 | * @see #getSolverTime() | ||
77 | * @generated | ||
78 | * @ordered | ||
79 | */ | ||
80 | protected static final int SOLVER_TIME_EDEFAULT = -1; | ||
81 | |||
82 | /** | ||
83 | * The cached value of the '{@link #getSolverTime() <em>Solver Time</em>}' attribute. | ||
84 | * <!-- begin-user-doc --> | ||
85 | * <!-- end-user-doc --> | ||
86 | * @see #getSolverTime() | ||
87 | * @generated | ||
88 | * @ordered | ||
89 | */ | ||
90 | protected int solverTime = SOLVER_TIME_EDEFAULT; | ||
91 | |||
92 | /** | ||
93 | * The default value of the '{@link #getSolverMemory() <em>Solver Memory</em>}' attribute. | ||
94 | * <!-- begin-user-doc --> | ||
95 | * <!-- end-user-doc --> | ||
96 | * @see #getSolverMemory() | ||
97 | * @generated | ||
98 | * @ordered | ||
99 | */ | ||
100 | protected static final int SOLVER_MEMORY_EDEFAULT = -1; | ||
101 | |||
102 | /** | ||
103 | * The cached value of the '{@link #getSolverMemory() <em>Solver Memory</em>}' attribute. | ||
104 | * <!-- begin-user-doc --> | ||
105 | * <!-- end-user-doc --> | ||
106 | * @see #getSolverMemory() | ||
107 | * @generated | ||
108 | * @ordered | ||
109 | */ | ||
110 | protected int solverMemory = SOLVER_MEMORY_EDEFAULT; | ||
111 | |||
112 | /** | ||
113 | * <!-- begin-user-doc --> | ||
114 | * <!-- end-user-doc --> | ||
115 | * @generated | ||
116 | */ | ||
117 | protected StatisticsImpl() { | ||
118 | super(); | ||
119 | } | ||
120 | |||
121 | /** | ||
122 | * <!-- begin-user-doc --> | ||
123 | * <!-- end-user-doc --> | ||
124 | * @generated | ||
125 | */ | ||
126 | @Override | ||
127 | protected EClass eStaticClass() { | ||
128 | return LogicresultPackage.Literals.STATISTICS; | ||
129 | } | ||
130 | |||
131 | /** | ||
132 | * <!-- begin-user-doc --> | ||
133 | * <!-- end-user-doc --> | ||
134 | * @generated | ||
135 | */ | ||
136 | public EList<StatisticEntry> getEntries() { | ||
137 | if (entries == null) { | ||
138 | entries = new EObjectContainmentEList<StatisticEntry>(StatisticEntry.class, this, LogicresultPackage.STATISTICS__ENTRIES); | ||
139 | } | ||
140 | return entries; | ||
141 | } | ||
142 | |||
143 | /** | ||
144 | * <!-- begin-user-doc --> | ||
145 | * <!-- end-user-doc --> | ||
146 | * @generated | ||
147 | */ | ||
148 | public int getTransformationTime() { | ||
149 | return transformationTime; | ||
150 | } | ||
151 | |||
152 | /** | ||
153 | * <!-- begin-user-doc --> | ||
154 | * <!-- end-user-doc --> | ||
155 | * @generated | ||
156 | */ | ||
157 | public void setTransformationTime(int newTransformationTime) { | ||
158 | int oldTransformationTime = transformationTime; | ||
159 | transformationTime = newTransformationTime; | ||
160 | if (eNotificationRequired()) | ||
161 | eNotify(new ENotificationImpl(this, Notification.SET, LogicresultPackage.STATISTICS__TRANSFORMATION_TIME, oldTransformationTime, transformationTime)); | ||
162 | } | ||
163 | |||
164 | /** | ||
165 | * <!-- begin-user-doc --> | ||
166 | * <!-- end-user-doc --> | ||
167 | * @generated | ||
168 | */ | ||
169 | public int getSolverTime() { | ||
170 | return solverTime; | ||
171 | } | ||
172 | |||
173 | /** | ||
174 | * <!-- begin-user-doc --> | ||
175 | * <!-- end-user-doc --> | ||
176 | * @generated | ||
177 | */ | ||
178 | public void setSolverTime(int newSolverTime) { | ||
179 | int oldSolverTime = solverTime; | ||
180 | solverTime = newSolverTime; | ||
181 | if (eNotificationRequired()) | ||
182 | eNotify(new ENotificationImpl(this, Notification.SET, LogicresultPackage.STATISTICS__SOLVER_TIME, oldSolverTime, solverTime)); | ||
183 | } | ||
184 | |||
185 | /** | ||
186 | * <!-- begin-user-doc --> | ||
187 | * <!-- end-user-doc --> | ||
188 | * @generated | ||
189 | */ | ||
190 | public int getSolverMemory() { | ||
191 | return solverMemory; | ||
192 | } | ||
193 | |||
194 | /** | ||
195 | * <!-- begin-user-doc --> | ||
196 | * <!-- end-user-doc --> | ||
197 | * @generated | ||
198 | */ | ||
199 | public void setSolverMemory(int newSolverMemory) { | ||
200 | int oldSolverMemory = solverMemory; | ||
201 | solverMemory = newSolverMemory; | ||
202 | if (eNotificationRequired()) | ||
203 | eNotify(new ENotificationImpl(this, Notification.SET, LogicresultPackage.STATISTICS__SOLVER_MEMORY, oldSolverMemory, solverMemory)); | ||
204 | } | ||
205 | |||
206 | /** | ||
207 | * <!-- begin-user-doc --> | ||
208 | * <!-- end-user-doc --> | ||
209 | * @generated | ||
210 | */ | ||
211 | @Override | ||
212 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
213 | switch (featureID) { | ||
214 | case LogicresultPackage.STATISTICS__ENTRIES: | ||
215 | return ((InternalEList<?>)getEntries()).basicRemove(otherEnd, msgs); | ||
216 | } | ||
217 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
218 | } | ||
219 | |||
220 | /** | ||
221 | * <!-- begin-user-doc --> | ||
222 | * <!-- end-user-doc --> | ||
223 | * @generated | ||
224 | */ | ||
225 | @Override | ||
226 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
227 | switch (featureID) { | ||
228 | case LogicresultPackage.STATISTICS__ENTRIES: | ||
229 | return getEntries(); | ||
230 | case LogicresultPackage.STATISTICS__TRANSFORMATION_TIME: | ||
231 | return getTransformationTime(); | ||
232 | case LogicresultPackage.STATISTICS__SOLVER_TIME: | ||
233 | return getSolverTime(); | ||
234 | case LogicresultPackage.STATISTICS__SOLVER_MEMORY: | ||
235 | return getSolverMemory(); | ||
236 | } | ||
237 | return super.eGet(featureID, resolve, coreType); | ||
238 | } | ||
239 | |||
240 | /** | ||
241 | * <!-- begin-user-doc --> | ||
242 | * <!-- end-user-doc --> | ||
243 | * @generated | ||
244 | */ | ||
245 | @SuppressWarnings("unchecked") | ||
246 | @Override | ||
247 | public void eSet(int featureID, Object newValue) { | ||
248 | switch (featureID) { | ||
249 | case LogicresultPackage.STATISTICS__ENTRIES: | ||
250 | getEntries().clear(); | ||
251 | getEntries().addAll((Collection<? extends StatisticEntry>)newValue); | ||
252 | return; | ||
253 | case LogicresultPackage.STATISTICS__TRANSFORMATION_TIME: | ||
254 | setTransformationTime((Integer)newValue); | ||
255 | return; | ||
256 | case LogicresultPackage.STATISTICS__SOLVER_TIME: | ||
257 | setSolverTime((Integer)newValue); | ||
258 | return; | ||
259 | case LogicresultPackage.STATISTICS__SOLVER_MEMORY: | ||
260 | setSolverMemory((Integer)newValue); | ||
261 | return; | ||
262 | } | ||
263 | super.eSet(featureID, newValue); | ||
264 | } | ||
265 | |||
266 | /** | ||
267 | * <!-- begin-user-doc --> | ||
268 | * <!-- end-user-doc --> | ||
269 | * @generated | ||
270 | */ | ||
271 | @Override | ||
272 | public void eUnset(int featureID) { | ||
273 | switch (featureID) { | ||
274 | case LogicresultPackage.STATISTICS__ENTRIES: | ||
275 | getEntries().clear(); | ||
276 | return; | ||
277 | case LogicresultPackage.STATISTICS__TRANSFORMATION_TIME: | ||
278 | setTransformationTime(TRANSFORMATION_TIME_EDEFAULT); | ||
279 | return; | ||
280 | case LogicresultPackage.STATISTICS__SOLVER_TIME: | ||
281 | setSolverTime(SOLVER_TIME_EDEFAULT); | ||
282 | return; | ||
283 | case LogicresultPackage.STATISTICS__SOLVER_MEMORY: | ||
284 | setSolverMemory(SOLVER_MEMORY_EDEFAULT); | ||
285 | return; | ||
286 | } | ||
287 | super.eUnset(featureID); | ||
288 | } | ||
289 | |||
290 | /** | ||
291 | * <!-- begin-user-doc --> | ||
292 | * <!-- end-user-doc --> | ||
293 | * @generated | ||
294 | */ | ||
295 | @Override | ||
296 | public boolean eIsSet(int featureID) { | ||
297 | switch (featureID) { | ||
298 | case LogicresultPackage.STATISTICS__ENTRIES: | ||
299 | return entries != null && !entries.isEmpty(); | ||
300 | case LogicresultPackage.STATISTICS__TRANSFORMATION_TIME: | ||
301 | return transformationTime != TRANSFORMATION_TIME_EDEFAULT; | ||
302 | case LogicresultPackage.STATISTICS__SOLVER_TIME: | ||
303 | return solverTime != SOLVER_TIME_EDEFAULT; | ||
304 | case LogicresultPackage.STATISTICS__SOLVER_MEMORY: | ||
305 | return solverMemory != SOLVER_MEMORY_EDEFAULT; | ||
306 | } | ||
307 | return super.eIsSet(featureID); | ||
308 | } | ||
309 | |||
310 | /** | ||
311 | * <!-- begin-user-doc --> | ||
312 | * <!-- end-user-doc --> | ||
313 | * @generated | ||
314 | */ | ||
315 | @Override | ||
316 | public String toString() { | ||
317 | if (eIsProxy()) return super.toString(); | ||
318 | |||
319 | StringBuffer result = new StringBuffer(super.toString()); | ||
320 | result.append(" (transformationTime: "); | ||
321 | result.append(transformationTime); | ||
322 | result.append(", solverTime: "); | ||
323 | result.append(solverTime); | ||
324 | result.append(", solverMemory: "); | ||
325 | result.append(solverMemory); | ||
326 | result.append(')'); | ||
327 | return result.toString(); | ||
328 | } | ||
329 | |||
330 | } //StatisticsImpl | ||