Skip to main content



      Home
Home » Modeling » ATL » Inject operation in ATL 3.0
Inject operation in ATL 3.0 [message #1120783] Sun, 29 September 2013 21:12 Go to next message
Eclipse UserFriend
Hi,

I'm trying to write a HOT transformation for transforming a weaving model into ATL. I want to use "inject" operation in ATL 3.0 (as I saw some examples in ATL 2.0 ) but I'm getting error that the "operation not found" . Does anybody know if inject is supported in ATL 3.0 or not?

BTW I'm using inject for creating the filters for source('from') sections of matched rules and also for creating helpers in the result ATL file.

I really appreciate if you can help me with your advice.

Azadeh
Re: Inject operation in ATL 3.0 [message #1122371 is a reply to message #1120783] Tue, 01 October 2013 09:50 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

You can inject an ATL file as an ATL model by using ATL ANT Tasks and the provided ATL injector (cf. ATL User Guide - ATL Tools section for seeing an example).
It is also possible to use the same injector programmatically via the ATL API (cf. corresponding section onto the ATL documentation).

Best regards,
Re: Inject operation in ATL 3.0 [message #1124937 is a reply to message #1122371] Thu, 03 October 2013 22:38 Go to previous messageGo to next message
Eclipse UserFriend
Thanks Hugo for your reply

But I'm not sure if we are talking about same inject operation. The inject operation I'm trying to use e.g. for adding helpers in my HOT is like :

currentHelper <- 'helper context P1Profile!Element def: isStereotypeApplied(name : String) : Boolean = not self.getAppliedStereotypes()->select(p | p.name=name).isEmpty();'.inject('OUT', 'ebnf2', 'ATL-helper');

currentHelper.module <- thisModule.resolveTemp(AMW!Model.allInstancesFrom('IN').first(), 'atl');

This inject operation in supported in ATL 2.0 but in ATL 3.0 I'm getting error!


thanks,
Azadeh
Re: Inject operation in ATL 3.0 [message #1125396 is a reply to message #1124937] Fri, 04 October 2013 09:11 Go to previous message
Eclipse UserFriend
Hello,

Unfortunately, this specific operation/construct is not maintained anymore in ATL 3.x version.

Best regards,
Previous Topic:Organizing logical combination of boolean expressions in a HOT
Next Topic:resolveTemp crashes the ATL module
Goto Forum:
  


Current Time: Tue Jul 22 18:59:41 EDT 2025

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

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

Back to the top