Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » Match rule (assigning the default target element of another rule)
Match rule (assigning the default target element of another rule) [message #104989] Thu, 14 May 2009 19:02 Go to next message
Nikos Mising name is currently offline Nikos Mising nameFriend
Messages: 11
Registered: July 2009
Junior Member
Dear colleagues,

I am new in M2M (I work with it as part of the work for my PhD) with ATL
and so please excuse me if I make simple questions.

I read the ATL User guide and have an issue when writing the rules:

rule Goal2UseCase {
from
i : SAG!Goal
to
o_1 : SUC!UseCase (
name <- i.name,
interacter <- thisModule.resolveTemp(i.depender, 'o_n'),
interacter <- thisModule.resolveTemp(i.dependee, 'o_n')
)
}

rule Actor2Role {
from
i : SAG!Actor
to
o_n : SUC!Role (
name <- i.name
)
}

The problem is in adding the line:
interacter <- thisModule.resolveTemp(i.dependee, 'o_n')
If I ommit this line the code works fine. The dependee reference of
SAG!Goal is optional and can be multiple. The depender reference has
always a unique value.

How can I add the optional multiple references to SUC!UseCase.interacter?

Thank you,
Nikos Spanoudakis
Re: [ATL] Match rule (assigning the default target element of another rule) [message #104991 is a reply to message #104989] Thu, 14 May 2009 20:46 Go to previous message
Nikos Mising name is currently offline Nikos Mising nameFriend
Messages: 11
Registered: July 2009
Junior Member
ooops i forget the [ATL] prefix
Previous Topic:[ATL] Using two input models
Next Topic:[ATL] Loading a model by its URI programmatically
Goto Forum:
  


Current Time: Fri Apr 26 22:27:40 GMT 2024

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

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

Back to the top