[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.modeling.gmt.amw] Re: Bridge between Domain Specific Languages (DSLs) and UML profiles

hello,


I was preparing an answer to the other post.. I will refactor it here as well :)

I am not aware of a transformation language that is capable of transforming only a subset of a model, using 'anchors'. Typically, current transformation languages transform two complete models. I use specifically ATL.

In your case, you could implement the code to update the model elements in the notification method (this is a simplification of what I said previously of creating a component). But them you will need to understand the EMF API, such as eGet() or eSet() methods.

However, this is more complex than transforming the whole models, because you would have different methods for adding, deleting or updating. For instance, when you add an element you must know the root element. When you delete an element, you should delete all the children.

In this last case, you would need also a weaving model to know which element of the profile and of the DSL are linked, and that for every DSL and profiles linked. In the transformational approach, you need a weaving model only between the metamodels.


Regards,

Marcos.



I'm sorry not asking this way before. -stefan


SKuhn schrieb:
hi folks,

I have a similar use case as described in http://www.eclipse.org/gmt/amw/usecases/umlprofiles/.

In short terms I want to work on an UML Model, translating every DSL-Class to an UML Class with a stereotype of a self-defined UML-profile (lightweight) and back. It should look for my GMF-DSL Editor that he's working on his DSL-Metamodel (described in ecore).

Now I have some concerns using AMW:

1. Is AMW ready for productive use?
2. How can I handle possible data loss for UML Elements that are not representable in MyDSL-MM? I still want to read/write UML Models (or UML conform XMI files) leaving unrecongnized uml-elements unchanged.
3. Is it possible to run the corresponding transformations (EMF) event based? Thereby I could have both models in sync resulting in the option to open Eclipse UML2 editor and my own GMF-DSL-Editor at the same time and work on the same model without versioning conflicts. (optional)


Right now I'm not sure if AMW is the right way. If you want to take a closer look on my set-up / point-of-view, I already described my problem in detail in "Connecting DSL-eCore w/ UML2" at
eclipse.tools.emf as well as
eclipse.modeling.gmt as well as
eclipse.modeling.mdt.uml2tools as well as
eclipse.modeling.mdt.uml2.



Yours sincerly stefan