Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » OclExpression decomposition in ATL HOT(How to decompose an OclExpression decomposition in ATL Higher Order Transformation?)
OclExpression decomposition in ATL HOT [message #1747999] Thu, 17 November 2016 14:43 Go to next message
meriem lahr is currently offline meriem lahrFriend
Messages: 31
Registered: March 2013
Member
Hi all,

I'm writing a higher order transformation in ATL that takes an ATL transformation as input and provides an ATL transformation in output with some changes.

I would like to know if there is a way to decompose an OclExpression (which is a combination of several OCL expressions of different types) to perform some changes in it. For example :

the expression
source.name + source.container.getName()

will become
self.name + self.container.getName()

I have another question : which OCL metamodel can I use to transform an OCL model in HOT independenlty of ATL?

Thank you

Meriem

[Updated on: Thu, 17 November 2016 15:09]

Report message to a moderator

Re: OclExpression decomposition in ATL HOT [message #1748210 is a reply to message #1747999] Mon, 21 November 2016 09:00 Go to previous messageGo to next message
meriem lahr is currently offline meriem lahrFriend
Messages: 31
Registered: March 2013
Member
Anyone can help plz?
Re: OclExpression decomposition in ATL HOT [message #1748283 is a reply to message #1748210] Mon, 21 November 2016 19:47 Go to previous messageGo to next message
louis andia. is currently offline louis andia.Friend
Messages: 47
Registered: November 2016
Member
I recommande you to use a model browser like modisco. You can easily navigate in the atl model of your transformation to find where informations are.
Re: OclExpression decomposition in ATL HOT [message #1748322 is a reply to message #1748283] Tue, 22 November 2016 09:33 Go to previous messageGo to next message
meriem lahr is currently offline meriem lahrFriend
Messages: 31
Registered: March 2013
Member
Hi Louis,

Thank you for your answer. I would like to get my output transformation by executing the HOT, without using a tool. Is there a way to implement this at the ATL level?
Re: OclExpression decomposition in ATL HOT [message #1748402 is a reply to message #1748322] Tue, 22 November 2016 19:06 Go to previous message
louis andia. is currently offline louis andia.Friend
Messages: 47
Registered: November 2016
Member
My suggestion is about finding the element model, that contain "source" for your example, to apply a rule on this in your atl transformation.
Maybe i just don't understand your request and i'm sorry.
Previous Topic:access to String ATL
Next Topic:ATL - two sources (with restrictions) in one rule
Goto Forum:
  


Current Time: Fri Apr 26 06:07:23 GMT 2024

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

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

Back to the top