Bug 338064 - inheritance between abstract rules does not work
Summary: inheritance between abstract rules does not work
Status: NEW
Alias: None
Product: MMT.ATL
Classification: Modeling
Component: emfvm (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: mmt-atl.toolkit-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-24 05:45 EST by Mathieu Velten CLA
Modified: 2011-02-24 05:45 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mathieu Velten CLA 2011-02-24 05:45:13 EST
hi,

I am having trouble using inheritance between abstract rules.

I want to use inheritance between abstract rules to have a hierarchy of generic rules without copy/paste common code between them. Here is an example :

abstract rule A {
   from X : xType
   to Y : yType
}
abstract rule B extends A {
   from X : xType
   to Y : yType
}
abstract rule C extends A {
   from X : xType
   to Y : yType
}

rule D extends B {
   from X : xType (condition)
   to Y : yType
}
rule E extends C {
   from X : xType (condition)
   to Y : yType
}

I am using the emf vm and rules that inherit C are just ignored.
It depends of the order since if I inverse B and C rules that inherit B are ignored.

do you have any hint where I should look to fix that if you don't have time to do it ?

Thanks.