Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » VIATRA » Model Importer Skeleton for API
Model Importer Skeleton for API [message #1091363] Wed, 21 August 2013 11:59 Go to next message
Irene Ully is currently offline Irene UllyFriend
Messages: 5
Registered: October 2012
Junior Member
Hello,

I am developing a VIATRA2 API and I tried to follow the instruction in here. I have some questions on the "Import model" part. If I use EMF models, do I still need do develop the model importer?
If not how should I import the models?
If I need the model importer, where can I get the empty skeleton Eclipse project? I tried to follow the link in here, but the skeleton is not available for some reason. Or is there any tutorial on that? Because I am still really new on Eclipse plugin development.
Thank you in advance.

Best regards,
Irene
Re: Model Importer Skeleton for API [message #1091375 is a reply to message #1091363] Wed, 21 August 2013 12:14 Go to previous messageGo to next message
Zoltan Ujhelyi is currently offline Zoltan UjhelyiFriend
Messages: 392
Registered: July 2015
Senior Member
Hello Irene,

first of all, thank you for pointing out the issues with the documentation pages. Our external urls have changed, and it seems, not all links were updated. I have updated the pages just now, and also add the urls here:

* External p2 repository (with EMF importer): http://incquery.net//update/viatra-ci/features/
* Importer skeleton: http://incquery.net/downloads/hu.bme.mit.viatra.testimporter.zip

About the question whether an importer is needed: generally, the generic EMF importer is able to import most EMF models (a notable exception is UML), however, the VPM representation used inside VIATRA2 would need more complex patterns and code to handle (however, it is possible). Such imported models were used in the Transformation Tool Contents 2011 Hello world case (see http://rvg.web.cse.unsw.edu.au/eptcs/paper.cgi?TTC2011.25 for details).

If you have the time, you can write a specific importer, that results in an easier to use imported version, however, this would need more time.

Finally, if you are considering EMF models, you might want to take a look at the EMF-IncQuery project (http://eclipse.org/incquery), that avoids the import problem by working directly over EMF models.

I hope, this information is helpful. If not, please ask for more details.

Cheers,
Zoltán
Re: Model Importer Skeleton for API [message #1095844 is a reply to message #1091375] Tue, 27 August 2013 15:51 Go to previous messageGo to next message
Irene Ully is currently offline Irene UllyFriend
Messages: 5
Registered: October 2012
Junior Member
Hello Zoltán,

Thank you very much for your explanation, it helps me a lot.
About the EMF-IncQuery, is it also working on model transformation? Like transforming a model conforming to metamodel-A to a new model conforming to metamodel-B (that's what I use the VIATRA2 for). I've tried to read about the EMF-IncQuery but could not find the answer.
Thank you.

Regards,
Irene
Re: Model Importer Skeleton for API [message #1095980 is a reply to message #1095844] Tue, 27 August 2013 20:08 Go to previous messageGo to next message
Zoltan Ujhelyi is currently offline Zoltan UjhelyiFriend
Messages: 392
Registered: July 2015
Senior Member
Hello Irene,

as of now, EMF-IncQuery focuses mostly on model queries, and model transformations are only supported through additional Java code.

However, as we deem model transformations important, we are working on direct transformation support by providing a model transformation API. Some basic ideas and examples are sketched on the wiki page http://wiki.eclipse.org/EMFIncQuery/DeveloperDocumentation/EventDrivenVM, but it is a work-in-progress state right now, so it is right now only for more advanced users.

In other words, right now you either have to write transformations in VIATRA (possibly together with an importer/exporter), or using EMF-IncQuery for queries that is followed by Java code manipulating the EMF models.

I hope, this answer helps a bit. If not, make sure to ask for clarification.

Cheers,
Zoltán
Re: Model Importer Skeleton for API [message #1096581 is a reply to message #1095980] Wed, 28 August 2013 15:46 Go to previous message
Irene Ully is currently offline Irene UllyFriend
Messages: 5
Registered: October 2012
Junior Member
Hello Zoltán,

It helps a lot, thank you so much for your help! Smile

Cheers,
Irene
Previous Topic:Problems with another pattern I need to implement
Next Topic:Can't Use 'iterate'
Goto Forum:
  


Current Time: Sat Apr 20 02:36:00 GMT 2024

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

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

Back to the top