@statebox/pnpro.js
v0.2.1
Published
Convert PNPRO to JSON or Statebox specific representations of Petri nets
Downloads
9
Readme
PNPRO.js
Assuming you have a string with the contents of a .PNPRO
file in xmlDocument
,
let parse = require('@statebox/pnpro.js')
let result = parse(xmlDocument)
Output format for parse
:
title
: project title, stringnets
: array of netsname
: net nameplaces
: array of placesname
: place name/identifierx
,y
: screen coordinatesmarking
: nr of tokens in this place (initial marking)
transitions
: array of transitionsname
: transition namepre
,post
: dictionary of in/out arcs, place name => weightx
,y
: screen coordinates
nll
: list of pairs of list of place indicesnbpt
: zero padded version of thenll
list