This repository contains the necessary plug-ins to create CPN Tools files from EMF. In addition, it provides capabilities to layout and serialize the EMF-compatible Petri nets into the "normative" CPN Tools XML format.
In Eclipse, go to Help -> Install New Software...
and use https://abelgomez.github.io/cpntools.toolkit/updates/ as the URL for the update site.
The CPN Tools toolkit requires Eclipse Neon (4.6) or higher.
EMF metamodel for the CPN Tools tool. The metamodel resembles the structure of the normative XML used by CPN Tools to persist Petri nets.
Plug-in containing the classes to serialize EMF-compatible Petri nets to the normative CPN Tools XML format.
Test plug-in containing some sample code demonstrating how the serialization is invoked.
Feature for the CPN Tools metamodels and I/O utilities. Included plugins are:
- io.github.abelgomez.cpntools
- io.github.abelgomez.cpntools.io
Feature for the SDK. Includes all the previous features, plus EMF SDK and the additional test plugin:
- io.github.abelgomez.cpntools.io.test
To use the CPN Tools Toolkit in your Java program, simply add the following repository and dependencies to your pom.xml
file:
<repositories>
<repository>
<id>local-maven-repo</id>
<url>https://abelgomez.github.io/cpntools.toolkit/repository/</url>
</repository>
<!-- Other repositories (if needed)... -->
</repositories>
<!-- ... -->
<dependencies>
<dependency>
<groupId>io.github.abelgomez.cpntools</groupId>
<artifactId>io.github.abelgomez.cpntools</artifactId>
<version>0.5.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>io.github.abelgomez.cpntools</groupId>
<artifactId>io.github.abelgomez.cpntools.io</artifactId>
<version>0.5.0-SNAPSHOT</version>
</dependency>
<!-- Other dependencies (if needed)... -->
</dependencies>
See some examples in the examples/io.github.abelgomez.cpntools.examples.simplejava
directory.