Using metamodels expressed in UML [message #1848696] |
Tue, 14 December 2021 09:55 |
Yves BERNARD Messages: 146 Registered: July 2014 |
Senior Member |
|
|
What are the formalism supported by ATL for the description of data model in addition to Ecore, if any?
Basically, it would be convenient to me to be able to use metamodels represented in UML. The main reason for that is because some of the metamodel I have to work with, contain property redefinitions.
It seems that specifying property redefinitions is not possible in Ecore.
By the way, I wonder how the UML metamodel has been encoded in Ecore since it includes many property redefinitions and it looks like they are well managed.
Thanks for your help.
Yves
|
|
|
Re: Using metamodels expressed in UML [message #1848710 is a reply to message #1848696] |
Tue, 14 December 2021 17:13 |
|
ATL only supports EMF Ecore for metamodels (except for the old "Regular VM" which can support Netbeans MDR). Any metamodels expressed in another language must be converted to EMF before being usable in ATL. The basic UML tree-based editor has a menu option to convert UML Model elements to Ecore models.
Re. your question about the UML metamodel: the UML Ecore model has generated Java code to go with it. A lot of manually written code was added to this generated code in order to obtain the desired behaviour for the UML metamodel. So, while ATL still uses the Ecore API to interact with the metamodel, the implementation for this API is partly generated, partly hand-written specifically for UML.
Cheers,
Dennis
|
|
|
|
Powered by
FUDForum. Page generated in 0.02024 seconds