|
Re: Importing a model from a model [message #1804230 is a reply to message #1804059] |
Wed, 20 March 2019 20:10 |
|
ATL as a language isn't meant to deal with model loading and saving; that's the domain of EMF. EMF can resolve references between models automatically, with the only limitation that you have to refer to an element within the other model, instead of the model itself. I've attached an example, where models conforming to metamodel A can refer to models conforming to metamodel B. It works by using regular EReferences between EClasses of different metamodels.
Alternatively, you could generate an executable version of model A, that will run the transformation on the referenced B models. This executable version could be an Ant script, using the ATL or EMFTVM tasks, for example.
Cheers,
Dennis
|
|
|
|
Powered by
FUDForum. Page generated in 0.01840 seconds