Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » ETL & ATL(Problems with the property ¨"thisModule")
icon7.gif  ETL & ATL [message #505253] Mon, 28 December 2009 23:12 Go to next message
c  is currently offline c Friend
Messages: 36
Registered: December 2009
Member
Hello:
I am programming rules with ETL.
I need to be able index like to an operation contextual.
Programming with the language ATL it(he,she) is in use: "thisModule.name_contextual_operation", but the ETL, which is?
Thank you
Re: ETL & ATL [message #505257 is a reply to message #505253] Mon, 28 December 2009 23:18 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi,

In ETL you can define operations with/without a context. Operations with
a context are defined like this:

// Class is the context here
operation Class doSomething() {

}

and invoked like this:

c.doSomething(); // Provided that that c is an instance of Class

Context-less operations are defined like this:

operation doSomethingElse() {

}

and called like this:

doSomethingElse();

I hope this helps.

Cheers,
Dimitris

c wrote:
> Hello:
> I am programming rules with ETL.
> I need to be able index like to an operation contextual.
> Programming with the language ATL it(he,she) is in use:
> "thisModule.name_contextual_operation", but the ETL, which is?
> Thank you


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Re: ETL & ATL [message #505295 is a reply to message #505257] Tue, 29 December 2009 06:24 Go to previous messageGo to next message
c  is currently offline c Friend
Messages: 36
Registered: December 2009
Member
Thank you for answering me.
But my problem is not exactly this.
In ATL I have " helper def: package ........ " and then it writes himself " model <-thisModule.package " and the equivalent one in ETL is: " operation package().... ".
But I do not know call like it is indexed in ETL, that is to say " thisModule.package " says to me that it does not exist.
I want to do " s. Model: = package (); " but me the mistake appears " Property 'Model' not found in object "
Re: ETL & ATL [message #505308 is a reply to message #505295] Tue, 29 December 2009 08:38 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi,

Could you please send me your transformation together with the
metamodels and some sample models so that I can have a closer look at this?

Cheers,
Dimitris

c wrote:
> Thank you for answering me.
> But my problem is not exactly this.
> In ATL I have " helper def: package ........ " and then it writes
> himself " model <-thisModule.package " and the equivalent one in ETL
> is: " operation package().... ".
> But I do not know call like it is indexed in ETL, that is to say "
> thisModule.package " says to me that it does not exist.
> I want to do " s. Model: = package (); " but me the mistake appears
> " Property 'Model' not found in object "


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Re: ETL & ATL [message #584058 is a reply to message #505253] Mon, 28 December 2009 23:18 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi,

In ETL you can define operations with/without a context. Operations with
a context are defined like this:

// Class is the context here
operation Class doSomething() {

}

and invoked like this:

c.doSomething(); // Provided that that c is an instance of Class

Context-less operations are defined like this:

operation doSomethingElse() {

}

and called like this:

doSomethingElse();

I hope this helps.

Cheers,
Dimitris

c wrote:
> Hello:
> I am programming rules with ETL.
> I need to be able index like to an operation contextual.
> Programming with the language ATL it(he,she) is in use:
> "thisModule.name_contextual_operation", but the ETL, which is?
> Thank you


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Re: ETL & ATL [message #584093 is a reply to message #505257] Tue, 29 December 2009 06:24 Go to previous messageGo to next message
c  is currently offline c Friend
Messages: 36
Registered: December 2009
Member
Thank you for answering me.
But my problem is not exactly this.
In ATL I have " helper def: package ........ " and then it writes himself " model <-thisModule.package " and the equivalent one in ETL is: " operation package().... ".
But I do not know call like it is indexed in ETL, that is to say " thisModule.package " says to me that it does not exist.
I want to do " s. Model: = package (); " but me the mistake appears " Property 'Model' not found in object "
Re: ETL & ATL [message #584107 is a reply to message #584093] Tue, 29 December 2009 12:58 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi,

Could you please send me your transformation together with the
metamodels and some sample models so that I can have a closer look at this?

Cheers,
Dimitris

c wrote:
> Thank you for answering me.
> But my problem is not exactly this.
> In ATL I have " helper def: package ........ " and then it writes
> himself " model <-thisModule.package " and the equivalent one in ETL
> is: " operation package().... ".
> But I do not know call like it is indexed in ETL, that is to say "
> thisModule.package " says to me that it does not exist.
> I want to do " s. Model: = package (); " but me the mistake appears
> " Property 'Model' not found in object "


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Previous Topic:ETL & ATL
Next Topic:ETL property isDerived
Goto Forum:
  


Current Time: Fri Apr 19 05:01:16 GMT 2024

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

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

Back to the top