blob: 2a0902aea5b1639492812ecd388ac94e5043d431 [file] [log] [blame]
Harald Mackamulca6c8b62019-02-14 16:41:16 +01001/**
2 * *******************************************************************************
3 * Copyright (c) 2018-2019 Robert Bosch GmbH.
4 *
5 * This program and the accompanying materials are made
6 * available under the terms of the Eclipse Public License 2.0
7 * which is available at https://www.eclipse.org/legal/epl-2.0/
8 *
9 * SPDX-License-Identifier: EPL-2.0
10 *
11 * Contributors:
12 * Robert Bosch GmbH - initial API and implementation
13 * *******************************************************************************
14 */
15
Zakir Meer9f251f52018-06-17 16:21:31 +020016package templates
17
18import com.inchron.realtime.root.RootFactory
19import com.inchron.realtime.root.model.Model
20import com.inchron.realtime.root.model.ModelFactory
21import com.inchron.realtime.root.model.memory.MemoryFactory
22import com.inchron.realtime.root.model.stimulation.StimulationFactory
23import org.eclipse.app4mc.amalthea.model.Amalthea
24import org.eclipse.app4mc.amalthea.model.AmaltheaFactory
25import org.eclipse.app4mc.transformation.extensions.base.templates.AbstractTransformer
Zakir Meer9f251f52018-06-17 16:21:31 +020026
Sebastian Reiserdde603f2019-04-04 10:07:52 +020027abstract class AbstractAmaltheaInchronTransformer extends AbstractTransformer {
Harald Mackamulca6c8b62019-02-14 16:41:16 +010028
Sebastian Reiserd2cae8b2019-04-03 13:39:33 +020029 public def Amalthea getAmaltheaRoot(){
30 return (customObjsStore.getInstance(Amalthea) as Amalthea)
31 }
Harald Mackamulca6c8b62019-02-14 16:41:16 +010032
Sebastian Reiserd2cae8b2019-04-03 13:39:33 +020033 public def Model getInchronRoot(){
34 return (customObjsStore.getInstance(Model) as Model)
35 }
36
37 /*- Factory initialization */
38 public def getInchronRootFactory(){
39 return RootFactory.eINSTANCE}
Zakir Meer9f251f52018-06-17 16:21:31 +020040
Sebastian Reiserd2cae8b2019-04-03 13:39:33 +020041 public def getInchronModelFactory(){
42 ModelFactory.eINSTANCE}
Zakir Meer9f251f52018-06-17 16:21:31 +020043
Sebastian Reiserd2cae8b2019-04-03 13:39:33 +020044 public def getInchronMemoryFactory(){
45 MemoryFactory.eINSTANCE}
Harald Mackamulca6c8b62019-02-14 16:41:16 +010046
Sebastian Reiserd2cae8b2019-04-03 13:39:33 +020047 public def getInchronStimulationFactory(){
48 StimulationFactory.eINSTANCE}
Zakir Meer9f251f52018-06-17 16:21:31 +020049
Sebastian Reiserd2cae8b2019-04-03 13:39:33 +020050 public def getAmaltheaFactory(){
51 AmaltheaFactory.eINSTANCE}
Harald Mackamulca6c8b62019-02-14 16:41:16 +010052}