specifying multiple source pattern in ATL [message #1413134] |
Wed, 27 August 2014 22:08 |
|
When I am looking to the ATL ecore diagram (i.e., its metamodel), the "InPattern" Element in the diagram can have more than one "InPatternElement" elements (i.e., inPattern -> 1..* InPatternElement). If I am not wrong, this means that the "from" part of each rule in ATL can contain more than one element!
(I accessed the Ecore metamodel of ATL from ATL plugin jar file)
for example in the following code:
from
p : MMPerson!Person (p.name = 'Smith')
all the from part is considered as inPattern and p : MMPerson!Person part is considered InPatternElement. So, my first Question: Am I right?
if answer to the first question is YES, it implies that I can have more than one InPatternElement in a source pattern :
from
p1 : MMPerson!Person (p.name = 'Smith'),
p2 : MMPerson!Student
But neither the ATL manual in the following address (ATL Manual) mention this, nor I am able to write such thing and successfully compile.
So my second Question: Is it possible to write a source pattern similar to what I wrote above in ATL? if so, how can I compile the code?
Any suggestion?
Thx
|
|
|
|
Powered by
FUDForum. Page generated in 0.03122 seconds