Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » QVT-OML » Can a mapping call itself?
Can a mapping call itself? [message #1061769] Mon, 03 June 2013 21:01 Go to next message
Emre T is currently offline Emre T
Messages: 119
Registered: April 2013
Senior Member
Hi!

Is there a simple keyword to call a mapping again from its inside? So the mapping should recall itself based on a condition.

Thanks and regards.

[Updated on: Mon, 03 June 2013 21:04]

Report message to a moderator

Re: Can a mapping call itself? [message #1061774 is a reply to message #1061769] Mon, 03 June 2013 21:36 Go to previous messageGo to next message
Ed Willink is currently offline Ed Willink
Messages: 4086
Registered: July 2009
Senior Member
Hi

Have you tried to just call as with any other mapping?

I would expect it to be like a recursive call in many languages. It
works fine until you run out of stack so you must have some guard that
limits infinite recursion.

Regards

Ed Willink


On 03/06/2013 22:01, Can Becker wrote:
> Hi!
>
> How can I call a mapping again from its inside? Or the mapping, which
> disjuncts it? Is there a special way to do that, or just a simple
> keyword?
>
> Thanks and regards.
Re: Can a mapping call itself? [message #1064030 is a reply to message #1061769] Mon, 17 June 2013 11:04 Go to previous message
Christopher Gerking is currently offline Christopher Gerking
Messages: 39
Registered: April 2011
Member
Calling a mapping recursively is usually of little avail, unless you change the input to the mapping on every recursive call. For one and the same input, QVTo does not support recursion since it obtains the previously mapped target element from the trace.
Previous Topic:Libraries necessary to execute transformation programmatically in Juno
Next Topic:Applying Stereotype to model element
Goto Forum:
  


Current Time: Tue Oct 21 07:16:04 GMT 2014

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

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