[ATL] how to create a refernce from one rule to another [message #554586] |
Mon, 23 August 2010 15:52 |
ebtesam Messages: 5 Registered: August 2010 |
Junior Member |
|
|
Hi all,
Sorry, but I am just beginning to work on ATL. I read ATL user guide but i could not be able to find a solution
this is a part of the code that i work on
rule A2B {
from
s: MM!Fun
to
m: SS!Bored(
rateAssignments <- Sequence {ra} ),
ra: distinct SS!Process foreach (e in s.g)( processIdentifier <- im) ,
im:----
}
rule K2B{
from
t: MM!Happy
to
rt: SS!Process( processIdentifier <- id) ,
id:----
}
My question is, how can rt in the second rule be contained in m the first rule. How can I create a containment reference from m to rt !!
I tried to do this in the first rule but it did not work
rule A2B {
from
s: MM!Fun
to
m: SS!Bored(
rateAssignments <- Sequence {ra, s.rt} ),
ra: distinct SS!Process foreach (e in s.g)( processIdentifier <- im) ,
im:----
}
thanks in advance
[Updated on: Mon, 23 August 2010 15:53] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03043 seconds