Skip to content

pointerless/PetriNetCRN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Petri Net CRN Simulator

This runs a simulation of a chemical reaction network as specified in a JSON file formatted as following:

{
  "volume": [100],
  "places": [
    {"element": "A", "volumeRatio": 0.5},
    {"element": "B", "volumeRatio": 0.5},
    {"element": "C", "volumeRatio": 0.0}
  ],
  "transitions": [{
      "inputPlaces": [
        {
          "element": "A",
          "amount": 1
        },
        {
          "element": "B",
          "amount": 1
        } ],
      "outputPlaces": [
        {
          "element": "C",
          "amount": 1
        } ],
      "k": 1.0
    }]
}

Schema can be found at ./src/main/resources/net-schema.json

CLI

The command line tool can be used with the following command:

java -jar PetriNetCRN.jar -p "net-spec.json" -oJ "./output.json" -r 10

For more information use the --help flag.

REST API

WIP

Report

The report for the coursework this was developed for is available at ./crn_report.pdf

About

Petri Net based CRN simulator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published