complete a model using ATL [message #486089] |
Wed, 16 September 2009 10:18 |
Eclipse User |
|
|
|
Originally posted by: kanso.marwa.gmail.com
Hello,
I am recently using ATL to complete models, I am wondering if I can create
elements using a unique lazy rule first, and once I have it in my new
model, I complete the rest of this elements informations.
I have an "Architecture without modes" model and a "Mode" model (which is
a simple state automate)
and I am trying to associate for each "Resource" in the Architecture model
the same Mode model !
(so I have one Mode model and I am associating it for each Resource)
the problem is at the states level in the Architecture, where one state is
associated to "toTransitions" and "fromTransitions" elements
and for each "Transition" I have to specify the "fromState" and the
"toState" element
As for the "fromMode" there is no problem but the "toMode" is not created
yet so I can't fill it in the model
I appreciate any possible help,
thanks,
Marwa
|
|
|
Re: complete a model using ATL [message #486949 is a reply to message #486089] |
Mon, 21 September 2009 09:45 |
Alfons Laarman Messages: 35 Registered: July 2009 |
Member |
|
|
Hi,
Did you read the documentation on the ATL execution semantics?
http://wiki.eclipse.org/ATL/User_Guide#Module_execution_sema ntics
The whole point of ATL is that it infers the execution order of dependent
rules automatically (beware this doesnt hold for called rules).
Regards,
Alfons
On 9/16/09 12:18 PM, in article
27a3cf2baff4ed317743c7859f79fad2$1@www.eclipse.org, "marwa"
<kanso.marwa@gmail.com> wrote:
> Hello,
>
> I am recently using ATL to complete models, I am wondering if I can create
> elements using a unique lazy rule first, and once I have it in my new
> model, I complete the rest of this elements informations.
>
> I have an "Architecture without modes" model and a "Mode" model (which is
> a simple state automate)
> and I am trying to associate for each "Resource" in the Architecture model
> the same Mode model !
> (so I have one Mode model and I am associating it for each Resource)
>
> the problem is at the states level in the Architecture, where one state is
> associated to "toTransitions" and "fromTransitions" elements
> and for each "Transition" I have to specify the "fromState" and the
> "toState" element
>
> As for the "fromMode" there is no problem but the "toMode" is not created
> yet so I can't fill it in the model
>
> I appreciate any possible help,
> thanks,
> Marwa
>
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02995 seconds