This Translator is a tool for the translation and abstraction of fragment based case models modelled in the model repository Gryphon into Colored Petri Nets executable with WOLFGANG. This enables the simulation of fragments and their dependencies based on data objects.
The following software is necessary to run the translator:
-
Install Node.js, available here (this includes the node package manager
npm
) -
Install the WOLFGANG petri net editor, available here
-
Install or run the Gryphon model repository for fragment based case models, available here
- Clone the source code repository from
github (e.g. by running
git clone https://github.com/AnjoSs/Gryphon-Wolfgang-Translator.git
on the command line) - Run
npm install
to set up all additional dependency packages
Having set up all of the above, you can start the translator as follows:
- Get your Input data by downloading it from your Gryphon-Model Repository
- Model a case model in the Gryphon Model Repository
- Download the model and save it
- Run the code by executing
node main.js
in the\code
directory via the command line- the translator will translate an example case model
- add the path to your execution command of your model to execute your own model
- for instance:
node main.js C:\Users\Me\Models\caseModel.json
- Open the created
outputcpn.pnml
with the WOLFGANG petri net editor