aboutsummaryrefslogtreecommitdiffstats
path: root/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/GenerationTaskImpl.java
diff options
context:
space:
mode:
Diffstat (limited to 'Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/GenerationTaskImpl.java')
-rw-r--r--Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/GenerationTaskImpl.java951
1 files changed, 951 insertions, 0 deletions
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/GenerationTaskImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/GenerationTaskImpl.java
new file mode 100644
index 00000000..a4c27c8d
--- /dev/null
+++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/GenerationTaskImpl.java
@@ -0,0 +1,951 @@
1/**
2 * generated by Xtext 2.10.0
3 */
4package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl;
5
6import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage;
7import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Config;
8import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.File;
9import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.GenerationTask;
10import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.GraphPattern;
11import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Metamodel;
12import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.PartialModel;
13import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Scope;
14import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Solver;
15
16import org.eclipse.emf.common.notify.Notification;
17import org.eclipse.emf.common.notify.NotificationChain;
18
19import org.eclipse.emf.ecore.EClass;
20import org.eclipse.emf.ecore.InternalEObject;
21
22import org.eclipse.emf.ecore.impl.ENotificationImpl;
23
24/**
25 * <!-- begin-user-doc -->
26 * An implementation of the model object '<em><b>Generation Task</b></em>'.
27 * <!-- end-user-doc -->
28 * <p>
29 * The following features are implemented:
30 * </p>
31 * <ul>
32 * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.GenerationTaskImpl#getMetamodel <em>Metamodel</em>}</li>
33 * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.GenerationTaskImpl#getPartialModel <em>Partial Model</em>}</li>
34 * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.GenerationTaskImpl#getPatterns <em>Patterns</em>}</li>
35 * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.GenerationTaskImpl#getScope <em>Scope</em>}</li>
36 * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.GenerationTaskImpl#getNumber <em>Number</em>}</li>
37 * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.GenerationTaskImpl#getRuns <em>Runs</em>}</li>
38 * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.GenerationTaskImpl#getSolver <em>Solver</em>}</li>
39 * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.GenerationTaskImpl#getConfig <em>Config</em>}</li>
40 * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.GenerationTaskImpl#getTagetFolder <em>Taget Folder</em>}</li>
41 * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.GenerationTaskImpl#getDebugFolder <em>Debug Folder</em>}</li>
42 * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.GenerationTaskImpl#getTargetLogFile <em>Target Log File</em>}</li>
43 * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.GenerationTaskImpl#getTargetStatisticsFile <em>Target Statistics File</em>}</li>
44 * </ul>
45 *
46 * @generated
47 */
48public class GenerationTaskImpl extends TaskImpl implements GenerationTask
49{
50 /**
51 * The cached value of the '{@link #getMetamodel() <em>Metamodel</em>}' containment reference.
52 * <!-- begin-user-doc -->
53 * <!-- end-user-doc -->
54 * @see #getMetamodel()
55 * @generated
56 * @ordered
57 */
58 protected Metamodel metamodel;
59
60 /**
61 * The cached value of the '{@link #getPartialModel() <em>Partial Model</em>}' containment reference.
62 * <!-- begin-user-doc -->
63 * <!-- end-user-doc -->
64 * @see #getPartialModel()
65 * @generated
66 * @ordered
67 */
68 protected PartialModel partialModel;
69
70 /**
71 * The cached value of the '{@link #getPatterns() <em>Patterns</em>}' containment reference.
72 * <!-- begin-user-doc -->
73 * <!-- end-user-doc -->
74 * @see #getPatterns()
75 * @generated
76 * @ordered
77 */
78 protected GraphPattern patterns;
79
80 /**
81 * The cached value of the '{@link #getScope() <em>Scope</em>}' containment reference.
82 * <!-- begin-user-doc -->
83 * <!-- end-user-doc -->
84 * @see #getScope()
85 * @generated
86 * @ordered
87 */
88 protected Scope scope;
89
90 /**
91 * The default value of the '{@link #getNumber() <em>Number</em>}' attribute.
92 * <!-- begin-user-doc -->
93 * <!-- end-user-doc -->
94 * @see #getNumber()
95 * @generated
96 * @ordered
97 */
98 protected static final int NUMBER_EDEFAULT = 0;
99
100 /**
101 * The cached value of the '{@link #getNumber() <em>Number</em>}' attribute.
102 * <!-- begin-user-doc -->
103 * <!-- end-user-doc -->
104 * @see #getNumber()
105 * @generated
106 * @ordered
107 */
108 protected int number = NUMBER_EDEFAULT;
109
110 /**
111 * The default value of the '{@link #getRuns() <em>Runs</em>}' attribute.
112 * <!-- begin-user-doc -->
113 * <!-- end-user-doc -->
114 * @see #getRuns()
115 * @generated
116 * @ordered
117 */
118 protected static final int RUNS_EDEFAULT = 0;
119
120 /**
121 * The cached value of the '{@link #getRuns() <em>Runs</em>}' attribute.
122 * <!-- begin-user-doc -->
123 * <!-- end-user-doc -->
124 * @see #getRuns()
125 * @generated
126 * @ordered
127 */
128 protected int runs = RUNS_EDEFAULT;
129
130 /**
131 * The default value of the '{@link #getSolver() <em>Solver</em>}' attribute.
132 * <!-- begin-user-doc -->
133 * <!-- end-user-doc -->
134 * @see #getSolver()
135 * @generated
136 * @ordered
137 */
138 protected static final Solver SOLVER_EDEFAULT = Solver.SMT_SOLVER;
139
140 /**
141 * The cached value of the '{@link #getSolver() <em>Solver</em>}' attribute.
142 * <!-- begin-user-doc -->
143 * <!-- end-user-doc -->
144 * @see #getSolver()
145 * @generated
146 * @ordered
147 */
148 protected Solver solver = SOLVER_EDEFAULT;
149
150 /**
151 * The cached value of the '{@link #getConfig() <em>Config</em>}' containment reference.
152 * <!-- begin-user-doc -->
153 * <!-- end-user-doc -->
154 * @see #getConfig()
155 * @generated
156 * @ordered
157 */
158 protected Config config;
159
160 /**
161 * The cached value of the '{@link #getTagetFolder() <em>Taget Folder</em>}' containment reference.
162 * <!-- begin-user-doc -->
163 * <!-- end-user-doc -->
164 * @see #getTagetFolder()
165 * @generated
166 * @ordered
167 */
168 protected File tagetFolder;
169
170 /**
171 * The cached value of the '{@link #getDebugFolder() <em>Debug Folder</em>}' containment reference.
172 * <!-- begin-user-doc -->
173 * <!-- end-user-doc -->
174 * @see #getDebugFolder()
175 * @generated
176 * @ordered
177 */
178 protected File debugFolder;
179
180 /**
181 * The cached value of the '{@link #getTargetLogFile() <em>Target Log File</em>}' containment reference.
182 * <!-- begin-user-doc -->
183 * <!-- end-user-doc -->
184 * @see #getTargetLogFile()
185 * @generated
186 * @ordered
187 */
188 protected File targetLogFile;
189
190 /**
191 * The cached value of the '{@link #getTargetStatisticsFile() <em>Target Statistics File</em>}' containment reference.
192 * <!-- begin-user-doc -->
193 * <!-- end-user-doc -->
194 * @see #getTargetStatisticsFile()
195 * @generated
196 * @ordered
197 */
198 protected File targetStatisticsFile;
199
200 /**
201 * <!-- begin-user-doc -->
202 * <!-- end-user-doc -->
203 * @generated
204 */
205 protected GenerationTaskImpl()
206 {
207 super();
208 }
209
210 /**
211 * <!-- begin-user-doc -->
212 * <!-- end-user-doc -->
213 * @generated
214 */
215 @Override
216 protected EClass eStaticClass()
217 {
218 return ApplicationConfigurationPackage.Literals.GENERATION_TASK;
219 }
220
221 /**
222 * <!-- begin-user-doc -->
223 * <!-- end-user-doc -->
224 * @generated
225 */
226 public Metamodel getMetamodel()
227 {
228 return metamodel;
229 }
230
231 /**
232 * <!-- begin-user-doc -->
233 * <!-- end-user-doc -->
234 * @generated
235 */
236 public NotificationChain basicSetMetamodel(Metamodel newMetamodel, NotificationChain msgs)
237 {
238 Metamodel oldMetamodel = metamodel;
239 metamodel = newMetamodel;
240 if (eNotificationRequired())
241 {
242 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__METAMODEL, oldMetamodel, newMetamodel);
243 if (msgs == null) msgs = notification; else msgs.add(notification);
244 }
245 return msgs;
246 }
247
248 /**
249 * <!-- begin-user-doc -->
250 * <!-- end-user-doc -->
251 * @generated
252 */
253 public void setMetamodel(Metamodel newMetamodel)
254 {
255 if (newMetamodel != metamodel)
256 {
257 NotificationChain msgs = null;
258 if (metamodel != null)
259 msgs = ((InternalEObject)metamodel).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GENERATION_TASK__METAMODEL, null, msgs);
260 if (newMetamodel != null)
261 msgs = ((InternalEObject)newMetamodel).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GENERATION_TASK__METAMODEL, null, msgs);
262 msgs = basicSetMetamodel(newMetamodel, msgs);
263 if (msgs != null) msgs.dispatch();
264 }
265 else if (eNotificationRequired())
266 eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__METAMODEL, newMetamodel, newMetamodel));
267 }
268
269 /**
270 * <!-- begin-user-doc -->
271 * <!-- end-user-doc -->
272 * @generated
273 */
274 public PartialModel getPartialModel()
275 {
276 return partialModel;
277 }
278
279 /**
280 * <!-- begin-user-doc -->
281 * <!-- end-user-doc -->
282 * @generated
283 */
284 public NotificationChain basicSetPartialModel(PartialModel newPartialModel, NotificationChain msgs)
285 {
286 PartialModel oldPartialModel = partialModel;
287 partialModel = newPartialModel;
288 if (eNotificationRequired())
289 {
290 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__PARTIAL_MODEL, oldPartialModel, newPartialModel);
291 if (msgs == null) msgs = notification; else msgs.add(notification);
292 }
293 return msgs;
294 }
295
296 /**
297 * <!-- begin-user-doc -->
298 * <!-- end-user-doc -->
299 * @generated
300 */
301 public void setPartialModel(PartialModel newPartialModel)
302 {
303 if (newPartialModel != partialModel)
304 {
305 NotificationChain msgs = null;
306 if (partialModel != null)
307 msgs = ((InternalEObject)partialModel).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GENERATION_TASK__PARTIAL_MODEL, null, msgs);
308 if (newPartialModel != null)
309 msgs = ((InternalEObject)newPartialModel).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GENERATION_TASK__PARTIAL_MODEL, null, msgs);
310 msgs = basicSetPartialModel(newPartialModel, msgs);
311 if (msgs != null) msgs.dispatch();
312 }
313 else if (eNotificationRequired())
314 eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__PARTIAL_MODEL, newPartialModel, newPartialModel));
315 }
316
317 /**
318 * <!-- begin-user-doc -->
319 * <!-- end-user-doc -->
320 * @generated
321 */
322 public GraphPattern getPatterns()
323 {
324 return patterns;
325 }
326
327 /**
328 * <!-- begin-user-doc -->
329 * <!-- end-user-doc -->
330 * @generated
331 */
332 public NotificationChain basicSetPatterns(GraphPattern newPatterns, NotificationChain msgs)
333 {
334 GraphPattern oldPatterns = patterns;
335 patterns = newPatterns;
336 if (eNotificationRequired())
337 {
338 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__PATTERNS, oldPatterns, newPatterns);
339 if (msgs == null) msgs = notification; else msgs.add(notification);
340 }
341 return msgs;
342 }
343
344 /**
345 * <!-- begin-user-doc -->
346 * <!-- end-user-doc -->
347 * @generated
348 */
349 public void setPatterns(GraphPattern newPatterns)
350 {
351 if (newPatterns != patterns)
352 {
353 NotificationChain msgs = null;
354 if (patterns != null)
355 msgs = ((InternalEObject)patterns).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GENERATION_TASK__PATTERNS, null, msgs);
356 if (newPatterns != null)
357 msgs = ((InternalEObject)newPatterns).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GENERATION_TASK__PATTERNS, null, msgs);
358 msgs = basicSetPatterns(newPatterns, msgs);
359 if (msgs != null) msgs.dispatch();
360 }
361 else if (eNotificationRequired())
362 eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__PATTERNS, newPatterns, newPatterns));
363 }
364
365 /**
366 * <!-- begin-user-doc -->
367 * <!-- end-user-doc -->
368 * @generated
369 */
370 public Scope getScope()
371 {
372 return scope;
373 }
374
375 /**
376 * <!-- begin-user-doc -->
377 * <!-- end-user-doc -->
378 * @generated
379 */
380 public NotificationChain basicSetScope(Scope newScope, NotificationChain msgs)
381 {
382 Scope oldScope = scope;
383 scope = newScope;
384 if (eNotificationRequired())
385 {
386 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__SCOPE, oldScope, newScope);
387 if (msgs == null) msgs = notification; else msgs.add(notification);
388 }
389 return msgs;
390 }
391
392 /**
393 * <!-- begin-user-doc -->
394 * <!-- end-user-doc -->
395 * @generated
396 */
397 public void setScope(Scope newScope)
398 {
399 if (newScope != scope)
400 {
401 NotificationChain msgs = null;
402 if (scope != null)
403 msgs = ((InternalEObject)scope).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GENERATION_TASK__SCOPE, null, msgs);
404 if (newScope != null)
405 msgs = ((InternalEObject)newScope).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GENERATION_TASK__SCOPE, null, msgs);
406 msgs = basicSetScope(newScope, msgs);
407 if (msgs != null) msgs.dispatch();
408 }
409 else if (eNotificationRequired())
410 eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__SCOPE, newScope, newScope));
411 }
412
413 /**
414 * <!-- begin-user-doc -->
415 * <!-- end-user-doc -->
416 * @generated
417 */
418 public int getNumber()
419 {
420 return number;
421 }
422
423 /**
424 * <!-- begin-user-doc -->
425 * <!-- end-user-doc -->
426 * @generated
427 */
428 public void setNumber(int newNumber)
429 {
430 int oldNumber = number;
431 number = newNumber;
432 if (eNotificationRequired())
433 eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__NUMBER, oldNumber, number));
434 }
435
436 /**
437 * <!-- begin-user-doc -->
438 * <!-- end-user-doc -->
439 * @generated
440 */
441 public int getRuns()
442 {
443 return runs;
444 }
445
446 /**
447 * <!-- begin-user-doc -->
448 * <!-- end-user-doc -->
449 * @generated
450 */
451 public void setRuns(int newRuns)
452 {
453 int oldRuns = runs;
454 runs = newRuns;
455 if (eNotificationRequired())
456 eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__RUNS, oldRuns, runs));
457 }
458
459 /**
460 * <!-- begin-user-doc -->
461 * <!-- end-user-doc -->
462 * @generated
463 */
464 public Solver getSolver()
465 {
466 return solver;
467 }
468
469 /**
470 * <!-- begin-user-doc -->
471 * <!-- end-user-doc -->
472 * @generated
473 */
474 public void setSolver(Solver newSolver)
475 {
476 Solver oldSolver = solver;
477 solver = newSolver == null ? SOLVER_EDEFAULT : newSolver;
478 if (eNotificationRequired())
479 eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__SOLVER, oldSolver, solver));
480 }
481
482 /**
483 * <!-- begin-user-doc -->
484 * <!-- end-user-doc -->
485 * @generated
486 */
487 public Config getConfig()
488 {
489 return config;
490 }
491
492 /**
493 * <!-- begin-user-doc -->
494 * <!-- end-user-doc -->
495 * @generated
496 */
497 public NotificationChain basicSetConfig(Config newConfig, NotificationChain msgs)
498 {
499 Config oldConfig = config;
500 config = newConfig;
501 if (eNotificationRequired())
502 {
503 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__CONFIG, oldConfig, newConfig);
504 if (msgs == null) msgs = notification; else msgs.add(notification);
505 }
506 return msgs;
507 }
508
509 /**
510 * <!-- begin-user-doc -->
511 * <!-- end-user-doc -->
512 * @generated
513 */
514 public void setConfig(Config newConfig)
515 {
516 if (newConfig != config)
517 {
518 NotificationChain msgs = null;
519 if (config != null)
520 msgs = ((InternalEObject)config).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GENERATION_TASK__CONFIG, null, msgs);
521 if (newConfig != null)
522 msgs = ((InternalEObject)newConfig).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GENERATION_TASK__CONFIG, null, msgs);
523 msgs = basicSetConfig(newConfig, msgs);
524 if (msgs != null) msgs.dispatch();
525 }
526 else if (eNotificationRequired())
527 eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__CONFIG, newConfig, newConfig));
528 }
529
530 /**
531 * <!-- begin-user-doc -->
532 * <!-- end-user-doc -->
533 * @generated
534 */
535 public File getTagetFolder()
536 {
537 return tagetFolder;
538 }
539
540 /**
541 * <!-- begin-user-doc -->
542 * <!-- end-user-doc -->
543 * @generated
544 */
545 public NotificationChain basicSetTagetFolder(File newTagetFolder, NotificationChain msgs)
546 {
547 File oldTagetFolder = tagetFolder;
548 tagetFolder = newTagetFolder;
549 if (eNotificationRequired())
550 {
551 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__TAGET_FOLDER, oldTagetFolder, newTagetFolder);
552 if (msgs == null) msgs = notification; else msgs.add(notification);
553 }
554 return msgs;
555 }
556
557 /**
558 * <!-- begin-user-doc -->
559 * <!-- end-user-doc -->
560 * @generated
561 */
562 public void setTagetFolder(File newTagetFolder)
563 {
564 if (newTagetFolder != tagetFolder)
565 {
566 NotificationChain msgs = null;
567 if (tagetFolder != null)
568 msgs = ((InternalEObject)tagetFolder).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GENERATION_TASK__TAGET_FOLDER, null, msgs);
569 if (newTagetFolder != null)
570 msgs = ((InternalEObject)newTagetFolder).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GENERATION_TASK__TAGET_FOLDER, null, msgs);
571 msgs = basicSetTagetFolder(newTagetFolder, msgs);
572 if (msgs != null) msgs.dispatch();
573 }
574 else if (eNotificationRequired())
575 eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__TAGET_FOLDER, newTagetFolder, newTagetFolder));
576 }
577
578 /**
579 * <!-- begin-user-doc -->
580 * <!-- end-user-doc -->
581 * @generated
582 */
583 public File getDebugFolder()
584 {
585 return debugFolder;
586 }
587
588 /**
589 * <!-- begin-user-doc -->
590 * <!-- end-user-doc -->
591 * @generated
592 */
593 public NotificationChain basicSetDebugFolder(File newDebugFolder, NotificationChain msgs)
594 {
595 File oldDebugFolder = debugFolder;
596 debugFolder = newDebugFolder;
597 if (eNotificationRequired())
598 {
599 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__DEBUG_FOLDER, oldDebugFolder, newDebugFolder);
600 if (msgs == null) msgs = notification; else msgs.add(notification);
601 }
602 return msgs;
603 }
604
605 /**
606 * <!-- begin-user-doc -->
607 * <!-- end-user-doc -->
608 * @generated
609 */
610 public void setDebugFolder(File newDebugFolder)
611 {
612 if (newDebugFolder != debugFolder)
613 {
614 NotificationChain msgs = null;
615 if (debugFolder != null)
616 msgs = ((InternalEObject)debugFolder).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GENERATION_TASK__DEBUG_FOLDER, null, msgs);
617 if (newDebugFolder != null)
618 msgs = ((InternalEObject)newDebugFolder).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GENERATION_TASK__DEBUG_FOLDER, null, msgs);
619 msgs = basicSetDebugFolder(newDebugFolder, msgs);
620 if (msgs != null) msgs.dispatch();
621 }
622 else if (eNotificationRequired())
623 eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__DEBUG_FOLDER, newDebugFolder, newDebugFolder));
624 }
625
626 /**
627 * <!-- begin-user-doc -->
628 * <!-- end-user-doc -->
629 * @generated
630 */
631 public File getTargetLogFile()
632 {
633 return targetLogFile;
634 }
635
636 /**
637 * <!-- begin-user-doc -->
638 * <!-- end-user-doc -->
639 * @generated
640 */
641 public NotificationChain basicSetTargetLogFile(File newTargetLogFile, NotificationChain msgs)
642 {
643 File oldTargetLogFile = targetLogFile;
644 targetLogFile = newTargetLogFile;
645 if (eNotificationRequired())
646 {
647 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__TARGET_LOG_FILE, oldTargetLogFile, newTargetLogFile);
648 if (msgs == null) msgs = notification; else msgs.add(notification);
649 }
650 return msgs;
651 }
652
653 /**
654 * <!-- begin-user-doc -->
655 * <!-- end-user-doc -->
656 * @generated
657 */
658 public void setTargetLogFile(File newTargetLogFile)
659 {
660 if (newTargetLogFile != targetLogFile)
661 {
662 NotificationChain msgs = null;
663 if (targetLogFile != null)
664 msgs = ((InternalEObject)targetLogFile).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GENERATION_TASK__TARGET_LOG_FILE, null, msgs);
665 if (newTargetLogFile != null)
666 msgs = ((InternalEObject)newTargetLogFile).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GENERATION_TASK__TARGET_LOG_FILE, null, msgs);
667 msgs = basicSetTargetLogFile(newTargetLogFile, msgs);
668 if (msgs != null) msgs.dispatch();
669 }
670 else if (eNotificationRequired())
671 eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__TARGET_LOG_FILE, newTargetLogFile, newTargetLogFile));
672 }
673
674 /**
675 * <!-- begin-user-doc -->
676 * <!-- end-user-doc -->
677 * @generated
678 */
679 public File getTargetStatisticsFile()
680 {
681 return targetStatisticsFile;
682 }
683
684 /**
685 * <!-- begin-user-doc -->
686 * <!-- end-user-doc -->
687 * @generated
688 */
689 public NotificationChain basicSetTargetStatisticsFile(File newTargetStatisticsFile, NotificationChain msgs)
690 {
691 File oldTargetStatisticsFile = targetStatisticsFile;
692 targetStatisticsFile = newTargetStatisticsFile;
693 if (eNotificationRequired())
694 {
695 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__TARGET_STATISTICS_FILE, oldTargetStatisticsFile, newTargetStatisticsFile);
696 if (msgs == null) msgs = notification; else msgs.add(notification);
697 }
698 return msgs;
699 }
700
701 /**
702 * <!-- begin-user-doc -->
703 * <!-- end-user-doc -->
704 * @generated
705 */
706 public void setTargetStatisticsFile(File newTargetStatisticsFile)
707 {
708 if (newTargetStatisticsFile != targetStatisticsFile)
709 {
710 NotificationChain msgs = null;
711 if (targetStatisticsFile != null)
712 msgs = ((InternalEObject)targetStatisticsFile).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GENERATION_TASK__TARGET_STATISTICS_FILE, null, msgs);
713 if (newTargetStatisticsFile != null)
714 msgs = ((InternalEObject)newTargetStatisticsFile).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.GENERATION_TASK__TARGET_STATISTICS_FILE, null, msgs);
715 msgs = basicSetTargetStatisticsFile(newTargetStatisticsFile, msgs);
716 if (msgs != null) msgs.dispatch();
717 }
718 else if (eNotificationRequired())
719 eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.GENERATION_TASK__TARGET_STATISTICS_FILE, newTargetStatisticsFile, newTargetStatisticsFile));
720 }
721
722 /**
723 * <!-- begin-user-doc -->
724 * <!-- end-user-doc -->
725 * @generated
726 */
727 @Override
728 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
729 {
730 switch (featureID)
731 {
732 case ApplicationConfigurationPackage.GENERATION_TASK__METAMODEL:
733 return basicSetMetamodel(null, msgs);
734 case ApplicationConfigurationPackage.GENERATION_TASK__PARTIAL_MODEL:
735 return basicSetPartialModel(null, msgs);
736 case ApplicationConfigurationPackage.GENERATION_TASK__PATTERNS:
737 return basicSetPatterns(null, msgs);
738 case ApplicationConfigurationPackage.GENERATION_TASK__SCOPE:
739 return basicSetScope(null, msgs);
740 case ApplicationConfigurationPackage.GENERATION_TASK__CONFIG:
741 return basicSetConfig(null, msgs);
742 case ApplicationConfigurationPackage.GENERATION_TASK__TAGET_FOLDER:
743 return basicSetTagetFolder(null, msgs);
744 case ApplicationConfigurationPackage.GENERATION_TASK__DEBUG_FOLDER:
745 return basicSetDebugFolder(null, msgs);
746 case ApplicationConfigurationPackage.GENERATION_TASK__TARGET_LOG_FILE:
747 return basicSetTargetLogFile(null, msgs);
748 case ApplicationConfigurationPackage.GENERATION_TASK__TARGET_STATISTICS_FILE:
749 return basicSetTargetStatisticsFile(null, msgs);
750 }
751 return super.eInverseRemove(otherEnd, featureID, msgs);
752 }
753
754 /**
755 * <!-- begin-user-doc -->
756 * <!-- end-user-doc -->
757 * @generated
758 */
759 @Override
760 public Object eGet(int featureID, boolean resolve, boolean coreType)
761 {
762 switch (featureID)
763 {
764 case ApplicationConfigurationPackage.GENERATION_TASK__METAMODEL:
765 return getMetamodel();
766 case ApplicationConfigurationPackage.GENERATION_TASK__PARTIAL_MODEL:
767 return getPartialModel();
768 case ApplicationConfigurationPackage.GENERATION_TASK__PATTERNS:
769 return getPatterns();
770 case ApplicationConfigurationPackage.GENERATION_TASK__SCOPE:
771 return getScope();
772 case ApplicationConfigurationPackage.GENERATION_TASK__NUMBER:
773 return getNumber();
774 case ApplicationConfigurationPackage.GENERATION_TASK__RUNS:
775 return getRuns();
776 case ApplicationConfigurationPackage.GENERATION_TASK__SOLVER:
777 return getSolver();
778 case ApplicationConfigurationPackage.GENERATION_TASK__CONFIG:
779 return getConfig();
780 case ApplicationConfigurationPackage.GENERATION_TASK__TAGET_FOLDER:
781 return getTagetFolder();
782 case ApplicationConfigurationPackage.GENERATION_TASK__DEBUG_FOLDER:
783 return getDebugFolder();
784 case ApplicationConfigurationPackage.GENERATION_TASK__TARGET_LOG_FILE:
785 return getTargetLogFile();
786 case ApplicationConfigurationPackage.GENERATION_TASK__TARGET_STATISTICS_FILE:
787 return getTargetStatisticsFile();
788 }
789 return super.eGet(featureID, resolve, coreType);
790 }
791
792 /**
793 * <!-- begin-user-doc -->
794 * <!-- end-user-doc -->
795 * @generated
796 */
797 @Override
798 public void eSet(int featureID, Object newValue)
799 {
800 switch (featureID)
801 {
802 case ApplicationConfigurationPackage.GENERATION_TASK__METAMODEL:
803 setMetamodel((Metamodel)newValue);
804 return;
805 case ApplicationConfigurationPackage.GENERATION_TASK__PARTIAL_MODEL:
806 setPartialModel((PartialModel)newValue);
807 return;
808 case ApplicationConfigurationPackage.GENERATION_TASK__PATTERNS:
809 setPatterns((GraphPattern)newValue);
810 return;
811 case ApplicationConfigurationPackage.GENERATION_TASK__SCOPE:
812 setScope((Scope)newValue);
813 return;
814 case ApplicationConfigurationPackage.GENERATION_TASK__NUMBER:
815 setNumber((Integer)newValue);
816 return;
817 case ApplicationConfigurationPackage.GENERATION_TASK__RUNS:
818 setRuns((Integer)newValue);
819 return;
820 case ApplicationConfigurationPackage.GENERATION_TASK__SOLVER:
821 setSolver((Solver)newValue);
822 return;
823 case ApplicationConfigurationPackage.GENERATION_TASK__CONFIG:
824 setConfig((Config)newValue);
825 return;
826 case ApplicationConfigurationPackage.GENERATION_TASK__TAGET_FOLDER:
827 setTagetFolder((File)newValue);
828 return;
829 case ApplicationConfigurationPackage.GENERATION_TASK__DEBUG_FOLDER:
830 setDebugFolder((File)newValue);
831 return;
832 case ApplicationConfigurationPackage.GENERATION_TASK__TARGET_LOG_FILE:
833 setTargetLogFile((File)newValue);
834 return;
835 case ApplicationConfigurationPackage.GENERATION_TASK__TARGET_STATISTICS_FILE:
836 setTargetStatisticsFile((File)newValue);
837 return;
838 }
839 super.eSet(featureID, newValue);
840 }
841
842 /**
843 * <!-- begin-user-doc -->
844 * <!-- end-user-doc -->
845 * @generated
846 */
847 @Override
848 public void eUnset(int featureID)
849 {
850 switch (featureID)
851 {
852 case ApplicationConfigurationPackage.GENERATION_TASK__METAMODEL:
853 setMetamodel((Metamodel)null);
854 return;
855 case ApplicationConfigurationPackage.GENERATION_TASK__PARTIAL_MODEL:
856 setPartialModel((PartialModel)null);
857 return;
858 case ApplicationConfigurationPackage.GENERATION_TASK__PATTERNS:
859 setPatterns((GraphPattern)null);
860 return;
861 case ApplicationConfigurationPackage.GENERATION_TASK__SCOPE:
862 setScope((Scope)null);
863 return;
864 case ApplicationConfigurationPackage.GENERATION_TASK__NUMBER:
865 setNumber(NUMBER_EDEFAULT);
866 return;
867 case ApplicationConfigurationPackage.GENERATION_TASK__RUNS:
868 setRuns(RUNS_EDEFAULT);
869 return;
870 case ApplicationConfigurationPackage.GENERATION_TASK__SOLVER:
871 setSolver(SOLVER_EDEFAULT);
872 return;
873 case ApplicationConfigurationPackage.GENERATION_TASK__CONFIG:
874 setConfig((Config)null);
875 return;
876 case ApplicationConfigurationPackage.GENERATION_TASK__TAGET_FOLDER:
877 setTagetFolder((File)null);
878 return;
879 case ApplicationConfigurationPackage.GENERATION_TASK__DEBUG_FOLDER:
880 setDebugFolder((File)null);
881 return;
882 case ApplicationConfigurationPackage.GENERATION_TASK__TARGET_LOG_FILE:
883 setTargetLogFile((File)null);
884 return;
885 case ApplicationConfigurationPackage.GENERATION_TASK__TARGET_STATISTICS_FILE:
886 setTargetStatisticsFile((File)null);
887 return;
888 }
889 super.eUnset(featureID);
890 }
891
892 /**
893 * <!-- begin-user-doc -->
894 * <!-- end-user-doc -->
895 * @generated
896 */
897 @Override
898 public boolean eIsSet(int featureID)
899 {
900 switch (featureID)
901 {
902 case ApplicationConfigurationPackage.GENERATION_TASK__METAMODEL:
903 return metamodel != null;
904 case ApplicationConfigurationPackage.GENERATION_TASK__PARTIAL_MODEL:
905 return partialModel != null;
906 case ApplicationConfigurationPackage.GENERATION_TASK__PATTERNS:
907 return patterns != null;
908 case ApplicationConfigurationPackage.GENERATION_TASK__SCOPE:
909 return scope != null;
910 case ApplicationConfigurationPackage.GENERATION_TASK__NUMBER:
911 return number != NUMBER_EDEFAULT;
912 case ApplicationConfigurationPackage.GENERATION_TASK__RUNS:
913 return runs != RUNS_EDEFAULT;
914 case ApplicationConfigurationPackage.GENERATION_TASK__SOLVER:
915 return solver != SOLVER_EDEFAULT;
916 case ApplicationConfigurationPackage.GENERATION_TASK__CONFIG:
917 return config != null;
918 case ApplicationConfigurationPackage.GENERATION_TASK__TAGET_FOLDER:
919 return tagetFolder != null;
920 case ApplicationConfigurationPackage.GENERATION_TASK__DEBUG_FOLDER:
921 return debugFolder != null;
922 case ApplicationConfigurationPackage.GENERATION_TASK__TARGET_LOG_FILE:
923 return targetLogFile != null;
924 case ApplicationConfigurationPackage.GENERATION_TASK__TARGET_STATISTICS_FILE:
925 return targetStatisticsFile != null;
926 }
927 return super.eIsSet(featureID);
928 }
929
930 /**
931 * <!-- begin-user-doc -->
932 * <!-- end-user-doc -->
933 * @generated
934 */
935 @Override
936 public String toString()
937 {
938 if (eIsProxy()) return super.toString();
939
940 StringBuffer result = new StringBuffer(super.toString());
941 result.append(" (number: ");
942 result.append(number);
943 result.append(", runs: ");
944 result.append(runs);
945 result.append(", solver: ");
946 result.append(solver);
947 result.append(')');
948 return result.toString();
949 }
950
951} //GenerationTaskImpl