|
|
Re: [ATL] How to invoke a lazy rule that produces multiple outputs? [message #106053 is a reply to message #105973] |
Thu, 04 June 2009 14:42 |
Eclipse User |
|
|
|
Originally posted by: a-yie.uniandes.edu.co
Hola Agus,
Try with something like this:
unique lazy rule IntRealization2Port {
from
sp : UML!InterfaceRealization
to
out : UML!Port (
name <- 'Port',
type <- class,
isService <- true
),
class: UML!Class (
name <- 'testClass'
),
realisation : UML!InterfaceRealization()
do {
class; -- The varible that you want to return
}
}
On 2009-06-02 16:54:56 +0200, maria-agustina.cibran@thalesgroup.com
(Maria Agustina Cibran) said:
> Hi, I would appreciate if anyone please respond to this issue.
>
> Kind regards
> Agustina
>
> Maria Agustina Cibran wrote:
>
>> Hi,
>
>> I have defined a lazy rule as follows:
>
>> unique lazy rule IntRealization2Port {
>> from
>> sp : UML!InterfaceRealization
>> to
>> out : UML!Port (
>> name <- 'Port',
>> type <- class,
>> isService <- true
>> ),
>> class: UML!Class (
>> name <- 'testClass'
>> ),
>> realisation : UML!InterfaceRealization()
>> }
>
>> How do I invoke this rule in order to retrieve the second output, i.e. class?
>
>> Thanks in advance
>> Agustina
|
|
|
Powered by
FUDForum. Page generated in 0.03643 seconds