Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Export created model as PNML
Export created model as PNML [message #1743300] Wed, 14 September 2016 08:36 Go to next message
Emil Jenotte is currently offline Emil JenotteFriend
Messages: 25
Registered: September 2016
Junior Member
Hello,

I have created an editor with EMF and Sirius. Now I am looking for a way to export the models, that I am building with this editor, in a certain format, like PNML.

Is there a way how to do/implement this function? I would be grateful for any hints.

Cheers,
Emil
Re: Export created model as PNML [message #1743371 is a reply to message #1743300] Wed, 14 September 2016 15:14 Go to previous message
Pierre-Charles David is currently offline Pierre-Charles DavidFriend
Messages: 701
Registered: July 2009
Senior Member
Hi.

The semantic models represented by Sirius are plain EMF models that can be loaded/manipulated programmatically using the standard EMF APIs with no dependency on Sirius itself. Only the .aird files/models are Sirius-specific, but hey only contain the graphical/layout information, and then they are EMF models too.

If by PNML you mean http://www.pnml.org/, it looks like they already provide an EMF metamodel: http://www.pnml.org/grammar.php. If you are using it, then there is nothing to do, the semantic models are already PNML files. If you have defined your own PNML-like metamodel, then you'll need to write a converter, but this has nothing to do with Sirius. A plain Java program (or Eclipse plug-in) which uses the EMF framework and both metamodel implementations should be enough to 1) load your models created using your own metamodel, 2) convert it into an instance of the PNML metamodel, 3) save the result.

Regards,
Pierre-Charles

--
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius


Pierre-Charles David - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Multi-directional connections; or: How to model electrical wires?
Next Topic:[Properties view] How to activate?
Goto Forum:
  


Current Time: Thu Mar 28 21:50:33 GMT 2024

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

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

Back to the top