Dynamic set of input models [message #1370873] |
Wed, 21 May 2014 05:54 |
Sama Elrawy Messages: 9 Registered: February 2014 |
Junior Member |
|
|
Hello,
In operational QVT, can I take a array of in models as an input of my transformation? knowing that every time I run the transformation I want to use different number of input models.
I mean.. to define a transformation, you define your input/output models. In this example I have 2 in models and 1 out model:
transformation xTransformation(in y:featuremodelview, in z:featuremodelview,out target:featuremodelview);
However, in my transformation I want the input to be a set of in models that may vary in size each time I run the transformation. (so, when I run it for the first time I'll take 2 in models .. when I run it for the second time I'll take 3 in models and so on...)
Note: My transformation merges all the input models regardless of how many of them I have.
Thank you very much in advance, I appreciate your help!
[Updated on: Wed, 21 May 2014 05:58] Report message to a moderator
|
|
|
Re: Dynamic set of input models [message #1371188 is a reply to message #1370873] |
Wed, 21 May 2014 08:56 |
Ed Willink Messages: 7670 Registered: July 2009 |
Senior Member |
|
|
Hi
No, but it would be nice if a Collection of models could be defined.
Raise an OMG issue: http://www.omg.org/report_issue.htm
The workaround is define a Model-of-Models model so that you can pass
multiple models wrapped as a single model.
Regards
Ed Willink
On 21/05/2014 06:54, Sama Elrawy wrote:
> Hello,
> In operational QVT, can I take a array of in models as an input of my
> transformation? knowing that every time I run the transformation I
> want to use different number of input models.
>
> I mean.. to define a transformation, you define your input/output
> models. In this example I have 2 in models and 1 out model:
>
>
> transformation xTransformation(in y:featuremodelview, in
> z:featuremodelview,out target:featuremodelview);
>
>
> However, in my transformation I want the input to be a set of in
> models that may vary in size each time I run the transformation. (so,
> when I run it for the first time I'll take 2 in models .. when I run
> it for the second time I want to get 3 in models and so on...)
>
>
> Thank you very much in advance, I appreciate your help!
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04141 seconds