Home » Modeling » VIATRA » Model Importer Skeleton for API
|
Re: Model Importer Skeleton for API [message #1091375 is a reply to message #1091363] |
Wed, 21 August 2013 12:14 |
Zoltan Ujhelyi 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 #1095980 is a reply to message #1095844] |
Tue, 27 August 2013 20:08 |
Zoltan Ujhelyi 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
|
|
| |
Goto Forum:
Current Time: Fri Nov 01 23:57:26 GMT 2024
Powered by FUDForum. Page generated in 0.03663 seconds
|