Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] how to delete an element used do block in matched rules
[ATL] how to delete an element used do block in matched rules [message #33014] Sat, 21 April 2007 20:13 Go to next message
Eclipse UserFriend
Originally posted by: touzitou.enstimac.fr

Hi..
After using matched rules.. i want to know if it's possible to delete in
do{} sections some elements genrated by matched rules...?
IF yes How we can do it ?
Thank you for answer ...
Re: [ATL] how to delete an element used do block in matched rules [message #33049 is a reply to message #33014] Sun, 22 April 2007 11:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: marcos.didonet-del-fabro.univ-nantes.fr

Hello,

usually you should not modify the output model.

In your case I suggest to put a filter in the guard of the rule to not allow creating the
element.

Regards,

Marcos.

jihed wrote:
> Hi..
> After using matched rules.. i want to know if it's possible to delete in
> do{} sections some elements genrated by matched rules...?
> IF yes How we can do it ?
> Thank you for answer ...
Re: [ATL] how to delete an element used do block in matched rules [message #33152 is a reply to message #33049] Sun, 22 April 2007 14:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: touzitou.enstimac.fr

Hello;
The problem is that making a filter seems to be very heavy(it takes time
to evaluate the guard and compare values) that's why i want to generate
needed elements using called rules applied to the generated model and
after to delete elements i don't need !!

a++

Jihed
Marcos Didonet Del Fabro a écrit :
> Hello,
>
> usually you should not modify the output model.
>
> In your case I suggest to put a filter in the guard of the rule to not
> allow creating the element.
>
> Regards,
>
> Marcos.
>
> jihed wrote:
>> Hi..
>> After using matched rules.. i want to know if it's possible to delete
>> in do{} sections some elements genrated by matched rules...?
>> IF yes How we can do it ?
>> Thank you for answer ...
Re: [ATL] how to delete an element used do block in matched rules [message #34879 is a reply to message #33152] Fri, 27 April 2007 23:36 Go to previous message
Frédéric Jouault is currently offline Frédéric JouaultFriend
Messages: 572
Registered: July 2009
Senior Member
Hello,

Using (unique) lazy rules, you can generate elements only if their
corresponding source elements are referred to (i.e., if you call the
lazy rule on these source elements). This means that you generally do
not end up with too many elements that need to be deleted.


Regards,

Frédéric Jouault


jihed wrote:
> Hello;
> The problem is that making a filter seems to be very heavy(it takes time
> to evaluate the guard and compare values) that's why i want to generate
> needed elements using called rules applied to the generated model and
> after to delete elements i don't need !!
>
> a++
>
> Jihed
> Marcos Didonet Del Fabro a écrit :
>> Hello,
>>
>> usually you should not modify the output model.
>>
>> In your case I suggest to put a filter in the guard of the rule to not
>> allow creating the element.
>>
>> Regards,
>>
>> Marcos.
>>
>> jihed wrote:
>>> Hi..
>>> After using matched rules.. i want to know if it's possible to delete
>>> in do{} sections some elements genrated by matched rules...?
>>> IF yes How we can do it ?
>>> Thank you for answer ...
Previous Topic:ATL and files
Next Topic:[ATL] OCL Transformation
Goto Forum:
  


Current Time: Sat Apr 27 00:17:19 GMT 2024

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

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

Back to the top