blob: e79057361a373da055f01203697aea001a350aab [file] [log] [blame]
Zakir Meer57246092019-02-12 17:13:44 +01001package templates.m2m.sw
2
Zakir Meer695e2922019-02-13 13:10:06 +01003import com.inchron.realtime.root.model.Component
Zakir Meer3c1a57c2019-02-13 17:03:03 +01004import org.eclipse.app4mc.amalthea.model.Task
Zakir Meer3c1a57c2019-02-13 17:03:03 +01005import templates.AbstractAmaltheaInchronTransformer
6import templates.utils.AmltCacheModel
Zakir Meer57246092019-02-12 17:13:44 +01007
Harald Mackamul505789c2019-02-14 14:28:17 +01008class TaskTransformer extends AbstractAmaltheaInchronTransformer {
9
Zakir Meer695e2922019-02-13 13:10:06 +010010 var AmltCacheModel cacheModel
Zakir Meer3c1a57c2019-02-13 17:03:03 +010011
Harald Mackamul505789c2019-02-14 14:28:17 +010012 def create inchronModelFactory.createProcess createProcess(Task amltTask, Component inchronComponent) {
Zakir Meer3c1a57c2019-02-13 17:03:03 +010013
Harald Mackamul505789c2019-02-14 14:28:17 +010014 cacheModel = customObjsStore.getInstance(AmltCacheModel)
15
Zakir Meer695e2922019-02-13 13:10:06 +010016 cacheModel.addAmltProcess_InchronComponent(amltTask, inchronComponent)
Harald Mackamul505789c2019-02-14 14:28:17 +010017 it.name = amltTask.name
Zakir Meer695e2922019-02-13 13:10:06 +010018
Zakir Meer57246092019-02-12 17:13:44 +010019 }
Zakir Meer3c1a57c2019-02-13 17:03:03 +010020
Harald Mackamul505789c2019-02-14 14:28:17 +010021}