Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Model to Model Transformation
Model to Model Transformation [message #724830] Tue, 13 September 2011 10:07 Go to next message
Phoenix  is currently offline Phoenix Friend
Messages: 10
Registered: September 2011
Junior Member
Hello,

I have been given a project to apply certain transformation rules (of a domain specific language) on a model (generated as an instance of a given meta-model) and hence generate another model (instance of the same meta-model) as a result. Basically, I have to show the behavior of the language with respect to its rules.

For example, if we were to consider a math diagram, where the meta-model has been defined in terms of operators, numbers etc and we have a problem like (5-2)*8 then the instance model is as follows:
Math
....... 5
......sub
........2
..... mul
.........8
so, if I apply the subtraction rule then the result after one step will be:

Math
.... 3
......mul
.....8

Also, In case I try to apply Divide rule on this, I should get a message saying something like, Invalid Action.

Could anyone please tell me about this ? I have read certain things about graph transformation rules, but can't really figure out, what and how to use them. I would be glad if someone could help an let me know if it is possible to attain this kind of thing with EMF.

Thanks in advance.
Regards
Ph.
Re: Model to Model Transformation [message #724966 is a reply to message #724830] Tue, 13 September 2011 15:37 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
I suppose you might use ATL for this. But otherwise you'd have to use
the generated API for your model and write it all in Java. It sounds
similar to writing an interpreter.


On 13/09/2011 3:07 AM, Phoenix wrote:
> Hello,
>
> I have been given a project to apply certain transformation
> rules (of a domain specific language) on a model (generated as an
> instance of a given meta-model) and hence generate another model
> (instance of the same meta-model) as a result. Basically, I have to
> show the behavior of the language with respect to its rules.
>
> For example, if we were to consider a math diagram, where the
> meta-model has been defined in terms of operators, numbers etc and we
> have a problem like (5-2)*8 then the instance model is as follows:
> Math
> ....... 5
> ......sub
> ........2
> ..... mul
> .........8 so, if I apply the subtraction rule then the result after
> one step will be:
>
> Math
> .... 3
> ......mul
> .....8
>
> Also, In case I try to apply Divide rule on this, I should get a
> message saying something like, Invalid Action.
>
> Could anyone please tell me about this ? I have read certain
> things about graph transformation rules, but can't really figure out,
> what and how to use them. I would be glad if someone could help an let
> me know if it is possible to attain this kind of thing with EMF.
>
> Thanks in advance.
> Regards Ph.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Model to Model Transformation [message #725006 is a reply to message #724966] Tue, 13 September 2011 18:07 Go to previous messageGo to next message
Phoenix  is currently offline Phoenix Friend
Messages: 10
Registered: September 2011
Junior Member
Hi ED,

Thanks for the reply. I came across EMF Tiger (also read about some comparisons it makes with ATL), is that of any help ? Would you suggest me having a look at that ?

Thanks
Ph.
Re: Model to Model Transformation [message #725033 is a reply to message #725006] Tue, 13 September 2011 18:48 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Are you really looking to transform it or just create a conforming
serialization? I have no basis for opinions about suitable
transformation languages, other than to note that ATL seems quite popular.


On 13/09/2011 11:07 AM, Phoenix wrote:
> Hi ED,
>
> Thanks for the reply. I came across EMF Tiger (also read about
> some comparisons it makes with ATL), is that of any help ? Would you
> suggest me having a look at that ?
>
> Thanks
> Ph.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Model to Model Transformation [message #725052 is a reply to message #725033] Tue, 13 September 2011 19:53 Go to previous messageGo to next message
Phoenix  is currently offline Phoenix Friend
Messages: 10
Registered: September 2011
Junior Member
Thanks, basically I want to show that I can apply certain rules of the language on an instance model and generate another model, based on the same meta-model, so at both ends I will have a model (through which I can later initialize a gmf editor diagram, which will indicate the difference in diagrams of the two models) . So to say, I do not want to make any exogenous transformations, my source and target meta-models are going to be same.

I read about EMF Tiger project and found it interesting, thought it could solve the problem, however I am facing problems in downloading the updates from the site, I get an error something like Unable to Read from repository YYY.

Also, it gives an example of an exogenous transformation which makes it a bit difficult to understand for my domain.

Sorry for the trivial doubts, but I would really appreciate it if you could let me know how I would proceed with any language I decide upon ?

Regards
Ph.
Re: Model to Model Transformation [message #725072 is a reply to message #725052] Tue, 13 September 2011 20:11 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
I don't think EMF Tiger ever really got off the ground, so if you want
to do model transformation, I'd suggest ATL or writing it in Java using
the generated APIs.


On 13/09/2011 12:53 PM, Phoenix wrote:
> Thanks, basically I want to show that I can apply certain rules of the
> language on an instance model and generate another model, based on the
> same meta-model, so at both ends I will have a model (through which I
> can later initialize a gmf editor diagram, which will indicate the
> difference in diagrams of the two models) . So to say, I do not want
> to make any exogenous transformations, my source and target
> meta-models are going to be same.
> I read about EMF Tiger project and found it interesting, thought it
> could solve the problem, however I am facing problems in downloading
> the updates from the site, I get an error something like Unable to
> Read from repository YYY.
> Also, it gives an example of an exogenous transformation which makes
> it a bit difficult to understand for my domain.
>
> Sorry for the trivial doubts, but I would really appreciate it if you
> could let me know how I would proceed with any language I decide upon ?
>
> Regards
> Ph.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Model to Model Transformation [message #725110 is a reply to message #725072] Wed, 14 September 2011 00:50 Go to previous messageGo to next message
Phoenix  is currently offline Phoenix Friend
Messages: 10
Registered: September 2011
Junior Member
Thanks Ed, would it be possible for you to suggest some good resources for ATL considering that I am completely new to this?

And also, a quick hint about how otherwise I can use the generated Java interfaces to do.as in how should I begin.

Regards
Ph.
Re: Model to Model Transformation [message #725112 is a reply to message #725110] Wed, 14 September 2011 01:06 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
They're website looks pretty helpful:

http://eclipse.org/atl/

They have a newsgroup: eclipse.modeling.m2m

On 13/09/2011 5:50 PM, Phoenix wrote:
> Thanks Ed, would it be possible for you to suggest some good resources
> for ATL considering that I am completely new to this?
> And also, a quick hint about how otherwise I can use the generated
> Java interfaces to do.as in how should I begin.
>
> Regards
> Ph.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Model to Model Transformation [message #725319 is a reply to message #725112] Wed, 14 September 2011 14:10 Go to previous message
Phoenix  is currently offline Phoenix Friend
Messages: 10
Registered: September 2011
Junior Member
Thanks Ed, will look into this.Hope I get it sorted out.
Regards
Ph.
Previous Topic:Running as root
Next Topic:Easily set / navigate marks in a code file?
Goto Forum:
  


Current Time: Fri Apr 19 23:31:49 GMT 2024

Powered by FUDForum. Page generated in 0.08721 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top