Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » How can I tranform a feature of the Parent class accessing from the chield class?
How can I tranform a feature of the Parent class accessing from the chield class? [message #1853606] Mon, 11 July 2022 06:00 Go to next message
Burak Karaduman is currently offline Burak KaradumanFriend
Messages: 84
Registered: July 2018
Member
Hi all,

İs it possible to do something like this.

Rule A(


From a

To b
b.Fet1<-a.fet1
)

Rule ChieldB

From C

To D(
b.Fet2<-c.chieldfet
)

Thank you.

Best regards.

[Updated on: Mon, 11 July 2022 06:00]

Report message to a moderator

Re: How can I tranform a feature of the Parent class accessing from the chield class? [message #1853953 is a reply to message #1853606] Mon, 25 July 2022 13:55 Go to previous message
Gunnar Arndt is currently offline Gunnar ArndtFriend
Messages: 82
Registered: June 2012
Member
It would really help to understand your question if you wrote correct and formatted code.
I don't understand where the 'chield' (child?) relation comes into play.
From your examples I guess you are trying to 'copy' a feature from a transformation source/input object to a target/output one.
That is for sure possible if that feature is of a basic data type like Integer or String.
For the relationship between rules that you seem to be thinking of, rule inheritance is required.
Previous Topic:[ATL] Library in EMFTVM launch config?
Next Topic:helper context overlap for base data types?
Goto Forum:
  


Current Time: Thu Mar 28 14:48:42 GMT 2024

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

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

Back to the top