Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » Inject operation in ATL 3.0
Inject operation in ATL 3.0 [message #1120783] Mon, 30 September 2013 01:12 Go to next message
azadeh jb is currently offline azadeh jbFriend
Messages: 18
Registered: September 2013
Junior Member
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 13:50 Go to previous messageGo to next message
Hugo Bruneliere is currently offline Hugo BruneliereFriend
Messages: 674
Registered: July 2009
Senior Member
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,


--------------------------------------------------------
Hugo Bruneliere, PhD
NaoMod team (IMT Atlantique & LS2N-CNRS)
Nantes - France
--------------------------------------------------------
Re: Inject operation in ATL 3.0 [message #1124937 is a reply to message #1122371] Fri, 04 October 2013 02:38 Go to previous messageGo to next message
azadeh jb is currently offline azadeh jbFriend
Messages: 18
Registered: September 2013
Junior Member
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 13:11 Go to previous message
Hugo Bruneliere is currently offline Hugo BruneliereFriend
Messages: 674
Registered: July 2009
Senior Member
Hello,

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

Best regards,


--------------------------------------------------------
Hugo Bruneliere, PhD
NaoMod team (IMT Atlantique & LS2N-CNRS)
Nantes - France
--------------------------------------------------------
Previous Topic:Organizing logical combination of boolean expressions in a HOT
Next Topic:resolveTemp crashes the ATL module
Goto Forum:
  


Current Time: Fri Mar 29 13:53:36 GMT 2024

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

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

Back to the top