Petri-Net v0.2.1
A simple library for modelling and executing Petri Nets.
Features
- Representation of simple Nets using token counters
- Typescript implementation
- OO paradigm
- Emit Events when Transitions are fired
Roadmap
- Weighted Arcs
- Adopt functional paradigm/immutable data
- Persist Nets and state to storage backend
- Extensions such as Coloured, Timed and Hierarchical Nets
- Stepwise replay and analysis of previous executions
Usage
var petri = _ = ; var p1 = 'p1' p2 = 'p2' p3 = 'p3' t1 = 't1' p1 p2 p3 net = p1; net;t1; _;