Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] How to invoke a lazy rule that produces multiple outputs?
[ATL] How to invoke a lazy rule that produces multiple outputs? [message #105802] Wed, 27 May 2009 15:24 Go to next message
Maria Agustina Cibran is currently offline Maria Agustina CibranFriend
Messages: 13
Registered: July 2009
Junior Member
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
Re: [ATL] How to invoke a lazy rule that produces multiple outputs? [message #105973 is a reply to message #105802] Tue, 02 June 2009 14:54 Go to previous messageGo to next message
Maria Agustina Cibran is currently offline Maria Agustina CibranFriend
Messages: 13
Registered: July 2009
Junior Member
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
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:[ATL] refining
Next Topic:[QVTO] Memory Leak with Intermediate Properties?
Goto Forum:
  


Current Time: Mon Jan 20 03:42:23 GMT 2025

Powered by FUDForum. Page generated in 0.03643 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top