Skip to main content



      Home
Home » Modeling » QVT-OML » Can a mapping call itself?
Can a mapping call itself? [message #1061769] Mon, 03 June 2013 17:01 Go to next message
Eclipse UserFriend
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 17:04] by Moderator

Re: Can a mapping call itself? [message #1061774 is a reply to message #1061769] Mon, 03 June 2013 17:36 Go to previous messageGo to next message
Eclipse UserFriend
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 07:04 Go to previous message
Eclipse UserFriend
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: Wed Jul 23 00:14:28 EDT 2025

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

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

Back to the top