Skip to main content


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 TFriend
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 WillinkFriend
Messages: 7655
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 GerkingFriend
Messages: 115
Registered: April 2011
Senior 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: Fri Mar 29 02:07:32 GMT 2024

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

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

Back to the top