Zakir Meer | 5724609 | 2019-02-12 17:13:44 +0100 | [diff] [blame] | 1 | package templates.m2m.sw |
| 2 | |
Zakir Meer | 695e292 | 2019-02-13 13:10:06 +0100 | [diff] [blame] | 3 | import com.inchron.realtime.root.model.Component |
Zakir Meer | 3c1a57c | 2019-02-13 17:03:03 +0100 | [diff] [blame] | 4 | import org.eclipse.app4mc.amalthea.model.Task |
Zakir Meer | 3c1a57c | 2019-02-13 17:03:03 +0100 | [diff] [blame] | 5 | import templates.AbstractAmaltheaInchronTransformer |
| 6 | import templates.utils.AmltCacheModel |
Zakir Meer | 5724609 | 2019-02-12 17:13:44 +0100 | [diff] [blame] | 7 | |
Harald Mackamul | 505789c | 2019-02-14 14:28:17 +0100 | [diff] [blame] | 8 | class TaskTransformer extends AbstractAmaltheaInchronTransformer { |
| 9 | |
Zakir Meer | 695e292 | 2019-02-13 13:10:06 +0100 | [diff] [blame] | 10 | var AmltCacheModel cacheModel |
Zakir Meer | 3c1a57c | 2019-02-13 17:03:03 +0100 | [diff] [blame] | 11 | |
Harald Mackamul | 505789c | 2019-02-14 14:28:17 +0100 | [diff] [blame] | 12 | def create inchronModelFactory.createProcess createProcess(Task amltTask, Component inchronComponent) { |
Zakir Meer | 3c1a57c | 2019-02-13 17:03:03 +0100 | [diff] [blame] | 13 | |
Harald Mackamul | 505789c | 2019-02-14 14:28:17 +0100 | [diff] [blame] | 14 | cacheModel = customObjsStore.getInstance(AmltCacheModel) |
| 15 | |
Zakir Meer | 695e292 | 2019-02-13 13:10:06 +0100 | [diff] [blame] | 16 | cacheModel.addAmltProcess_InchronComponent(amltTask, inchronComponent) |
Harald Mackamul | 505789c | 2019-02-14 14:28:17 +0100 | [diff] [blame] | 17 | it.name = amltTask.name |
Zakir Meer | 695e292 | 2019-02-13 13:10:06 +0100 | [diff] [blame] | 18 | |
Zakir Meer | 5724609 | 2019-02-12 17:13:44 +0100 | [diff] [blame] | 19 | } |
Zakir Meer | 3c1a57c | 2019-02-13 17:03:03 +0100 | [diff] [blame] | 20 | |
Harald Mackamul | 505789c | 2019-02-14 14:28:17 +0100 | [diff] [blame] | 21 | } |