|
Re: How to start QVT [message #107365 is a reply to message #107345] |
Fri, 26 June 2009 16:41 |
Radomil Dvorak Messages: 249 Registered: July 2009 |
Senior Member |
|
|
Hi Shekoufeh,
1) use 'Model to Model Transformation/Operational QVT Project' wizard to
create
a new project to hold your transformation. This project is configured
with
QVT Builder
2) you can create new transformation during the project creation or as a
separate
step using 'Model to Model Transformation/Operational QVT
Transformation' wizard.
At the moment, the result is pretty simplistic so you have to continue
as written below
You have to declare the modeltypes which refer to metamodels you want to
involve
in your transformation and main entry operation.
See the snippet bellow taken from wizard 'Examples/Operational
QVT/SimpleUML to RDB Transformation Project'.
//
modeltype UML uses
' http://www.eclipse.org/qvt/1.0.0/Operational/examples/simple uml';
modeltype RDB uses
'http://www.eclipse.org/qvt/1.0.0/Operational/examples/rdb';
transformation Simpleuml_To_Rdb(in uml : UML, out RDB);
main() {
uml.rootObjects()[UML::Model]->map model2RDBModel();
}
mapping UML::Model::model2RDBModel() : RDB::Model {
// call furthe mapping
}
//
Further details on QVT coding you can find in the OMG specification.
In order to execute your transformation you can create
'Operational QVT Interpreter' launch configuration, setup your
input, output and run.
Regards,
/Radek
On Fri, 26 Jun 2009 17:38:23 +0200, shekoufeh <shekoofehko@gmail.com>
wrote:
> Hello,
>
> I want to start using QVT as transformation language.I have already read
> the documentation but I cant start any implementation
> Can you please give me some tips for implementation.
|
|
|
|
Re: How to start QVT [message #107396 is a reply to message #107392] |
Mon, 29 June 2009 15:39 |
Radomil Dvorak Messages: 249 Registered: July 2009 |
Senior Member |
|
|
Hi Shekoufeh,
Sorry for the confusion, now it's clear you refer to 'QVT Declarative'
component.
I answered on behalf of the 'QVT Operational', as it was not obvious what
you are
referring to in your original post.
Then you should use [QVTR] prefix in the subject to get attention of the
QVT Declarative team.
Regards,
/Radek
On Mon, 29 Jun 2009 17:07:04 +0200, shekoufeh <shekoofehko@gmail.com>
wrote:
> First I want to say thanks for the reply.Then I have to say I still can
> not run any qvt implementation in eclipse.
>
> I downloaded the QVT example which transforms Uml to Rdbms. This example
> contains four folders, as bin, metamodel, model and source. In the bin
> folder there exist two files as .qvtrelation and .qvtr, in adition of
> two text files for types which are uml and rdbms.
> Two metamodels are inside metamodel folder and in the form of .ecore. I
> want to ask how is it possible to have ecore with out having the exact
> implementation of metamodel? and where should I write the exact
> metamodel. also I just found the implementation for Rdbms in
> documantation and I could not find anything regarding to uml meta model.
> Then in the model folder we have the source model in .xmi format and by
> executing the whole program we will have the target model. In this
> example I could not see ant qvt core.
> This what I undrestand after spending a week on QVT.
>
> I read some parts of documantation again and try to run this example but
> still can not do that.I know I should have two metamodel,one model and
> one qvt core and one relational code . but I can not see all of them in
> this example
> can you please help me to run this example.
>
> Many thanks,
> Shekoufeh
>
|
|
|
Powered by
FUDForum. Page generated in 0.02946 seconds