Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » QVT relation
QVT relation [message #517282] Fri, 26 February 2010 19:26 Go to next message
shekoufeh Mising name is currently offline shekoufeh Mising nameFriend
Messages: 26
Registered: July 2009
Junior Member
Hello,

I am trying to do a simple transformation in Medini QVT.
I defined two metamodels in ecore format one as TreeMM and the other is NodeMM(respectively for source and target metamodels)

TreeMM: just have one attribute as name+ two Ereferance as parent and child
NodeMM:have one attribute as name + one class of edges +one class of root
in edge class we have source and target az Ereference which have type NodeMM
in root class we have two reference as edges and nodes.

in the next step I created instance of ecore from TreeMM.ecore and called it Tree.XMI

I wrote the transformation in .qvt format as follow:



transformation tree2graph(tree:TreeMM, node:NodeMM) {

-- map each package to a schema
top relation TreeToNode {

tn : String;

checkonly domain tree t : TreeMM::TMM1 {
name = tn
};

enforce domain node n : NodeMM::NMM2 {
name = tn
};

}


no I am trying to execute this transformation

I open new configuration
my first qustion is what should I put in traces directory, is it going to create automatically?is it enough i just give the transformation folder path.

I gave the transformation path and then i run it
I have this error:
Exception accured in transformation
reason:
Error:241:1 syntax error
Error: 1 couldnt repair and continue parse

when I push details:
java.lang.NullpointerException

Re: [Medini QVT] QVT relation [message #517288 is a reply to message #517282] Fri, 26 February 2010 19:37 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 6440
Registered: July 2009
Senior Member
Hi Shekoufeh

Please follow the newsgroup etiquette and use a topic prefix.

The Medini QVT discussion forum is at:

http://projects.ikv.de/qvt/discussion/1

Regards

Ed Willink

On 26/02/2010 19:26, shekoufeh wrote:
> Hello,
>
> I am trying to do a simple transformation in Medini QVT.
> I defined two metamodels in ecore format one as TreeMM and the other is
> NodeMM(respectively for source and target metamodels)
>
> TreeMM: just have one attribute as name+ two Ereferance as parent and child
> NodeMM:have one attribute as name + one class of edges +one class of root
> in edge class we have source and target az Ereference which have type
> NodeMM
> in root class we have two reference as edges and nodes.
>
> in the next step I created instance of ecore from TreeMM.ecore and
> called it Tree.XMI
>
> I wrote the transformation in .qvt format as follow:
>
>
>
> transformation tree2graph(tree:TreeMM, node:NodeMM) {
>
> -- map each package to a schema
> top relation TreeToNode {
> tn : String;
> checkonly domain tree t : TreeMM::TMM1 {
> name = tn
> };
> enforce domain node n : NodeMM::NMM2 {
> name = tn
> };
> }
>
> no I am trying to execute this transformation
> I open new configuration
> my first qustion is what should I put in traces directory, is it going
> to create automatically?is it enough i just give the transformation
> folder path.
>
> I gave the transformation path and then i run it I have this error:
> Exception accured in transformation
> reason:
> Error:241:1 syntax error
> Error: 1 couldnt repair and continue parse
>
> when I push details:
> java.lang.NullpointerException
>
>
Re: [Medini QVT] QVT relation [message #517436 is a reply to message #517288] Sat, 27 February 2010 23:14 Go to previous messageGo to next message
shekoufeh Mising name is currently offline shekoufeh Mising nameFriend
Messages: 26
Registered: July 2009
Junior Member
It seems this forum is not working any more as it shows
Trac detected an internal error

do you have any idea?
Re: [Medini QVT] QVT relation [message #517439 is a reply to message #517436] Sat, 27 February 2010 23:46 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30372
Registered: July 2009
Senior Member
I don't know what "Trac detected an internal error" means. Sounds more
like a "Trac" problem than one with this forum. Note the activity in
this forum over the last week would seem to indicate that it's working.

shekoufeh wrote:
> It seems this forum is not working any more as it shows Trac detected
> an internal error
>
> do you have any idea?
>
Re: [Medini QVT] QVT relation [message #517589 is a reply to message #517439] Mon, 01 March 2010 12:45 Go to previous message
Hajo Eichler is currently offline Hajo EichlerFriend
Messages: 25
Registered: July 2009
Junior Member
Hi Shekoufeh,

please use medini-support@ikv.de to send us your problems with TRAC. We will be
happy to help you. The forum is not dead ;-) and it would be great to share your
experience with other there.

Cheers,
Hajo

Ed Merks schrieb:
> I don't know what "Trac detected an internal error" means. Sounds more
> like a "Trac" problem than one with this forum. Note the activity in
> this forum over the last week would seem to indicate that it's working.
>
> shekoufeh wrote:
>> It seems this forum is not working any more as it shows Trac detected
>> an internal error
>>
>> do you have any idea?
>>
Previous Topic:[ATL][AML] Installation problems / ATL compilation problems
Next Topic:ATL does not resolve proxies into another model
Goto Forum:
  


Current Time: Sun Aug 25 15:18:04 GMT 2019

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

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

Back to the top