Ideas for higher-order in QVTo [message #1069700] |
Tue, 16 July 2013 12:23  |
Emilio Salazar Messages: 9 Registered: October 2009 |
Junior Member |
|
|
Hello all,
Firstly, thank you in advance for your help. And secondly, I am aware that what i am asking could sound a kind of weird...
I have a transformation where I need to execute a set of actions on a model.
There would be different kinds of actions, each one with a known interface that I would provide. But the user would be in charge of implement it.
Moreover, the user could provide zero, one or more actions to run in this step. Therefore, I would need to have a sort of "list of actions".
Another issue is that these actions would deal with models (adding, removing or merging information from different input models into the model i am processing), so it would be great if these actions could be implemented in QVTo as well.
To sum up, I was wondering if exists in QVTo something like Java interfaces or higher-order functions in other languages.
Is this possible in QVTo?
Thank you again.
Regards,
Emilio.
[Updated on: Tue, 16 July 2013 12:27] Report message to a moderator
|
|
|
Re: Ideas for higher-order in QVTo [message #1070590 is a reply to message #1069700] |
Thu, 18 July 2013 09:16   |
Ed Willink Messages: 7593 Registered: July 2009 |
Senior Member |
|
|
Hi
I think you have two options.
I use MWE to sequence transformations some of which are QVTo. An MWE
script is just an XML file with a nice DSL editor, so you use QVTo could
auto-generate the MWE script and so overcome it's very limited
expression capabilities.
You could arrange for each of your actions to be a QVTo query, so that
an outer QVTo program sequences nested actions. It may already be
possible to this with blackbox transformations. Perhaps someone who
understand blackboes better thyan me can comment.
Regards
Ed Willink
On 16/07/2013 13:23, Emilio Salazar wrote:
> Hello all,
>
> Firstly, thank you in advance for your help. And secondly, I am aware
> that what i am asking could sound a kind of weird...
>
> I have a transformation where I need to execute a set of actions on a
> model.
>
> There would be different kinds of actions, each one with a known
> interface that I would provide. But the user would be in charge of
> implement it.
> Moreover, the user could provide zero, one or more actions to run in
> this step. Therefore, I would need to have a sort of "list of actions".
>
> Another issue is that this actions would deal with models (adding,
> removing or merging information from different input models into the
> model i am processing), so it would be great if these actions could be
> implemented in QVTo as well.
>
> To sum up, I was wondering if exists in QVTo something like Java
> interfaces or higher-order functions in other languages.
>
> Is this possible in QVTo?
>
> Thank you again.
>
> Regards,
> Emilio.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01862 seconds