Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [QVTO] trace file
[QVTO] trace file [message #512673] Sat, 06 February 2010 00:26 Go to next message
mariam  is currently offline mariam Friend
Messages: 8
Registered: July 2009
Junior Member
Hello,
I am having a problem understanding how trace files are generated in qvto.

I think it is automatically generated when the transformation has in and out models.
But what about in-place transformations ? Is there a way to generate a trace file of the executed mappings ?

Another question, can we control what information is stored in the trace file. As far as I know, it only stores a list of mappings that were applied during the transformation.

But what if i also want to store the values of some parameters and the context on which these mappings were applied.. Is that possible ?

Is there any link explaining this, or any examples ?

Thanks a lot





Re: [QVTO] trace file [message #513310 is a reply to message #512673] Tue, 09 February 2010 17:52 Go to previous message
Sergey Boyko is currently offline Sergey BoykoFriend
Messages: 171
Registered: July 2009
Senior Member
Hi mariam ,

Some replies are in-lined below.

Regards,
Sergey

mariam wrote:
> Hello,
> I am having a problem understanding how trace files are generated in qvto.
> I think it is automatically generated when the transformation has in and
> out models. But what about in-place transformations ? Is there a way to
> generate a trace file of the executed mappings ?

Trace is generated automatically upon executing transformation.
Transformation signature (any combination of [in]/[inout]/[out] models,
even empty list) does not matter - trace is always filled with the list
of mappings being executed.
Trace is utilized by resolve*() functions. When transformation finishes
trace is saved to trace file (.trace by default) if specified in launch
configuration.

>
> Another question, can we control what information is stored in the trace
> file. As far as I know, it only stores a list of mappings that were
> applied during the transformation.

No, there's no possibility to save addition information to trace.

> But what if i also want to store the values of some parameters and the
> context on which these mappings were applied.. Is that possible ?

Unfortunately you have to maintain custom trace-like model for that.
Also you can make use of 'eAnnotations' property for example on
instances modified by transformation.

>
> Is there any link explaining this, or any examples ?

Creation of trace records is explained in Section 8.2.1.15 Mapping
Operation, Execution Semantics of QVT specification.

>
> Thanks a lot
>
>
>
>
>
>
Previous Topic:Unable to run org.eclipse.m2m.qvt.oml.econ2009.tutorial
Next Topic:[ATL] Error while copying EEnumLiterals
Goto Forum:
  


Current Time: Sat Aug 17 16:51:32 GMT 2019

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

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

Back to the top