Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] override attribute in sub rules
[ATL] override attribute in sub rules [message #535911] Wed, 26 May 2010 10:10
Sébastien  Gandon is currently offline Sébastien GandonFriend
Messages: 184
Registered: July 2009
Senior Member
Hello,
I have tried to override attribute assignement override in sub rules such as

rule RuleA {
from s : IN!A (s.oclIsOfType(IN!A))
to t : OUT!A (
        attributeA <- newAA
       )
    newAA : OUT!AA
}
rule RuleB extends RuleA{
from s: IN!B 
to t : OUT!B (
        attributeA <- newBB
       )
    newBB : OUT!BB
}

where IN:B inherits from IN!A, OUT!B inherits from OUT!A and OUT!BB inherits from OUT!AA.

This does not work, for RuleB I have
OUT!B.attrbituteA of type OUT!AA instead of type OUT!BB.

It seems that the ATL engine, is interpreting RuleB before RuleA.

Do you have and idea to solve this problem ?

Thank you.

SeB.
Previous Topic:[ATL] I do not understand rule inheritance
Next Topic:[ATL] for
Goto Forum:
  


Current Time: Fri Apr 19 08:17:44 GMT 2024

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

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

Back to the top