Skip to content

Commit

Permalink
Prototype for JSON & XML serialization, new internal BMA structure, m…
Browse files Browse the repository at this point in the history
…any model examples.
  • Loading branch information
ondrej33 committed Sep 2, 2024
1 parent d55a8b0 commit 68ea5e1
Show file tree
Hide file tree
Showing 78 changed files with 24,084 additions and 231 deletions.
1 change: 1 addition & 0 deletions models/json-export-from-repo/2var_unstable (1).json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"Model":{"Name":"2var_unstable","Variables":[{"Name":"X","Id":1,"RangeFrom":0,"RangeTo":1,"Formula":"var(2)"},{"Name":"Y","Id":2,"RangeFrom":0,"RangeTo":1,"Formula":"var(1)"}],"Relationships":[{"Id":1,"FromVariable":1,"ToVariable":2,"Type":"Activator"},{"Id":0,"FromVariable":2,"ToVariable":1,"Type":"Activator"}]},"Layout":{"Variables":[{"Id":1,"Name":"X","Type":"Default","ContainerId":1,"PositionX":595.8666666666667,"PositionY":358.8857142857143,"CellX":null,"CellY":null,"Angle":0,"Description":""},{"Id":2,"Name":"Y","Type":"Default","ContainerId":1,"PositionX":659.2,"PositionY":424.6,"CellX":null,"CellY":null,"Angle":0,"Description":""}],"Containers":[{"Id":1,"Name":"","Size":1,"PositionX":2,"PositionY":1}],"AnnotatedGridCells":[],"Description":""},"ltl":{"states":[],"operations":[]}}
1 change: 1 addition & 0 deletions models/json-export-from-repo/Default Model.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"Model":{"Name":"Default Model","Variables":[{"Name":"a","Id":5,"RangeFrom":4,"RangeTo":4,"Formula":""},{"Name":"b","Id":1,"RangeFrom":0,"RangeTo":4,"Formula":"var(5)/2 - var(3)"},{"Name":"c","Id":2,"RangeFrom":0,"RangeTo":4,"Formula":"var(1)"},{"Name":"d","Id":4,"RangeFrom":0,"RangeTo":4,"Formula":"var(2)"},{"Name":"e","Id":3,"RangeFrom":0,"RangeTo":4,"Formula":"var(4)"}],"Relationships":[{"Id":1,"FromVariable":5,"ToVariable":1,"Type":"Activator"},{"Id":2,"FromVariable":1,"ToVariable":2,"Type":"Activator"},{"Id":3,"FromVariable":2,"ToVariable":4,"Type":"Activator"},{"Id":5,"FromVariable":3,"ToVariable":1,"Type":"Inhibitor"},{"Id":4,"FromVariable":4,"ToVariable":3,"Type":"Activator"}]},"Layout":{"Variables":[{"Id":5,"Name":"a","Type":"Constant","ContainerId":0,"PositionX":406.6666666666667,"PositionY":107.14285714285714,"CellX":null,"CellY":null,"Angle":0,"Description":""},{"Id":1,"Name":"b","Type":"MembraneReceptor","ContainerId":1,"PositionX":629.0696034252197,"PositionY":3.579843570048979,"CellX":0,"CellY":0,"Angle":0,"Description":""},{"Id":2,"Name":"c","Type":"Default","ContainerId":1,"PositionX":573.0666666666667,"PositionY":102.54285714285714,"CellX":null,"CellY":null,"Angle":0,"Description":""},{"Id":4,"Name":"d","Type":"Default","ContainerId":1,"PositionX":620.5666666666666,"PositionY":168.25714285714287,"CellX":null,"CellY":null,"Angle":0,"Description":""},{"Id":3,"Name":"e","Type":"Default","ContainerId":1,"PositionX":683.9,"PositionY":102.54285714285714,"CellX":null,"CellY":null,"Angle":0,"Description":""}],"Containers":[{"Id":1,"Name":"","Size":1,"PositionX":2,"PositionY":0}],"AnnotatedGridCells":[],"Description":""},"ltl":{"states":[],"operations":[]}}
1 change: 1 addition & 0 deletions models/json-export-from-repo/E coli Tarfunc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"Model":{"Name":"E coli Tarfunc","Variables":[{"Name":"Aspartate","Id":14,"RangeFrom":0,"RangeTo":4,"Formula":"0"},{"Name":"Nickel","Id":15,"RangeFrom":0,"RangeTo":4,"Formula":"0"},{"Name":"Tar","Id":1,"RangeFrom":0,"RangeTo":4,"Formula":"2*(1-var(14)+var(15))-floor(var(3)*2/3)+var(13)"},{"Name":"CheA","Id":2,"RangeFrom":0,"RangeTo":4,"Formula":"var(1)"},{"Name":"CheY","Id":9,"RangeFrom":0,"RangeTo":4,"Formula":"ceil(var(2)/3)"},{"Name":"Motor","Id":10,"RangeFrom":0,"RangeTo":4,"Formula":""},{"Name":"CheR","Id":13,"RangeFrom":0,"RangeTo":4,"Formula":"1"},{"Name":"CheB","Id":3,"RangeFrom":0,"RangeTo":9,"Formula":""}],"Relationships":[{"Id":6,"FromVariable":2,"ToVariable":9,"Type":"Activator"},{"Id":2,"FromVariable":2,"ToVariable":3,"Type":"Activator"},{"Id":1,"FromVariable":1,"ToVariable":2,"Type":"Activator"},{"Id":11,"FromVariable":13,"ToVariable":1,"Type":"Activator"},{"Id":12,"FromVariable":15,"ToVariable":1,"Type":"Activator"},{"Id":13,"FromVariable":14,"ToVariable":1,"Type":"Inhibitor"},{"Id":14,"FromVariable":3,"ToVariable":1,"Type":"Activator"},{"Id":7,"FromVariable":9,"ToVariable":10,"Type":"Activator"}]},"Layout":{"Variables":[{"Id":14,"Name":"Aspartate","Type":"Constant","ContainerId":0,"PositionX":204.16666666666666,"PositionY":41.42857142857143,"CellX":null,"CellY":null,"Angle":0,"Description":""},{"Id":15,"Name":"Nickel","Type":"Constant","ContainerId":0,"PositionX":188.33333333333334,"PositionY":189.28571428571428,"CellX":null,"CellY":null,"Angle":0,"Description":""},{"Id":1,"Name":"Tar","Type":"MembraneReceptor","ContainerId":1,"PositionX":256.5135611766465,"PositionY":127.33220023058388,"CellX":0,"CellY":0,"Angle":-90,"Description":""},{"Id":2,"Name":"CheA","Type":"Default","ContainerId":1,"PositionX":323.06666666666666,"PositionY":168.25714285714287,"CellX":null,"CellY":null,"Angle":0,"Description":""},{"Id":9,"Name":"CheY","Type":"Default","ContainerId":1,"PositionX":367.4,"PositionY":199.8,"CellX":null,"CellY":null,"Angle":0,"Description":""},{"Id":10,"Name":"Motor","Type":"MembraneReceptor","ContainerId":1,"PositionX":493.4380180393696,"PositionY":126.74981302279934,"CellX":0,"CellY":0,"Angle":90,"Description":""},{"Id":13,"Name":"CheR","Type":"Default","ContainerId":1,"PositionX":351.56666666666666,"PositionY":51.94285714285714,"CellX":null,"CellY":null,"Angle":0,"Description":""},{"Id":3,"Name":"CheB","Type":"Default","ContainerId":1,"PositionX":386.4,"PositionY":102.54285714285714,"CellX":null,"CellY":null,"Angle":0,"Description":""}],"Containers":[{"Id":1,"Name":"C0","Size":1,"PositionX":1,"PositionY":0}],"AnnotatedGridCells":[],"Description":""},"ltl":{"states":[],"operations":[]}}
1 change: 1 addition & 0 deletions models/json-export-from-repo/New Model.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"Model":{"Name":"New Model","Variables":[{"Name":"a","Id":1,"RangeFrom":0,"RangeTo":1,"Formula":"var(2)"},{"Name":"b","Id":2,"RangeFrom":0,"RangeTo":1,"Formula":"1-var(1)"}],"Relationships":[{"Id":1,"FromVariable":1,"ToVariable":2,"Type":"Activator"},{"Id":2,"FromVariable":2,"ToVariable":1,"Type":"Activator"}]},"Layout":{"Variables":[{"Id":1,"Name":"a","Type":"Default","ContainerId":1,"PositionX":101.56666666666666,"PositionY":84.8,"CellX":null,"CellY":null,"Angle":0,"Description":""},{"Id":2,"Name":"b","Type":"Default","ContainerId":1,"PositionX":149.06666666666666,"PositionY":134.0857142857143,"CellX":null,"CellY":null,"Angle":0,"Description":""}],"Containers":[{"Id":1,"Name":"","Size":1,"PositionX":0,"PositionY":0}],"AnnotatedGridCells":[],"Description":""},"ltl":{"states":[],"operations":[]}}
1 change: 1 addition & 0 deletions models/json-export-from-repo/Resting Neuron.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"Model":{"Name":"Resting Neuron","Variables":[{"Name":"Potential","Id":6,"RangeFrom":0,"RangeTo":1,"Formula":"0"},{"Name":"P2","Id":24,"RangeFrom":0,"RangeTo":1,"Formula":""},{"Name":"P3","Id":25,"RangeFrom":0,"RangeTo":1,"Formula":""},{"Name":"P4","Id":26,"RangeFrom":0,"RangeTo":1,"Formula":""},{"Name":"Output","Id":27,"RangeFrom":0,"RangeTo":1,"Formula":""},{"Name":"Pore","Id":1,"RangeFrom":0,"RangeTo":1,"Formula":"max(var(3),var(1))-var(5)"},{"Name":"VS","Id":3,"RangeFrom":0,"RangeTo":1,"Formula":""},{"Name":"CTD_connect","Id":4,"RangeFrom":0,"RangeTo":1,"Formula":""},{"Name":"CTD","Id":5,"RangeFrom":0,"RangeTo":1,"Formula":""},{"Name":"Pore","Id":28,"RangeFrom":0,"RangeTo":1,"Formula":"max(var(29),var(28))-var(31)"},{"Name":"VS","Id":29,"RangeFrom":0,"RangeTo":1,"Formula":""},{"Name":"CTD_connect","Id":30,"RangeFrom":0,"RangeTo":1,"Formula":""},{"Name":"CTD","Id":31,"RangeFrom":0,"RangeTo":1,"Formula":""},{"Name":"Pore","Id":32,"RangeFrom":0,"RangeTo":1,"Formula":"max(var(33),var(32))-var(35)"},{"Name":"VS","Id":33,"RangeFrom":0,"RangeTo":1,"Formula":""},{"Name":"CTD_connect","Id":34,"RangeFrom":0,"RangeTo":1,"Formula":""},{"Name":"CTD","Id":35,"RangeFrom":0,"RangeTo":1,"Formula":""},{"Name":"Pore","Id":36,"RangeFrom":0,"RangeTo":1,"Formula":"max(var(37),var(36))-var(39)"},{"Name":"VS","Id":37,"RangeFrom":0,"RangeTo":1,"Formula":""},{"Name":"CTD_connect","Id":38,"RangeFrom":0,"RangeTo":1,"Formula":""},{"Name":"CTD","Id":39,"RangeFrom":0,"RangeTo":1,"Formula":""}],"Relationships":[{"Id":4,"FromVariable":4,"ToVariable":5,"Type":"Activator"},{"Id":21,"FromVariable":30,"ToVariable":31,"Type":"Activator"},{"Id":21,"FromVariable":34,"ToVariable":35,"Type":"Activator"},{"Id":21,"FromVariable":38,"ToVariable":39,"Type":"Activator"},{"Id":2,"FromVariable":3,"ToVariable":1,"Type":"Activator"},{"Id":3,"FromVariable":1,"ToVariable":4,"Type":"Activator"},{"Id":5,"FromVariable":5,"ToVariable":1,"Type":"Inhibitor"},{"Id":10,"FromVariable":1,"ToVariable":24,"Type":"Activator"},{"Id":18,"FromVariable":1,"ToVariable":1,"Type":"Activator"},{"Id":1,"FromVariable":6,"ToVariable":3,"Type":"Activator"},{"Id":19,"FromVariable":29,"ToVariable":28,"Type":"Activator"},{"Id":20,"FromVariable":28,"ToVariable":30,"Type":"Activator"},{"Id":22,"FromVariable":31,"ToVariable":28,"Type":"Inhibitor"},{"Id":23,"FromVariable":28,"ToVariable":28,"Type":"Activator"},{"Id":25,"FromVariable":28,"ToVariable":25,"Type":"Activator"},{"Id":24,"FromVariable":24,"ToVariable":29,"Type":"Activator"},{"Id":19,"FromVariable":33,"ToVariable":32,"Type":"Activator"},{"Id":20,"FromVariable":32,"ToVariable":34,"Type":"Activator"},{"Id":22,"FromVariable":35,"ToVariable":32,"Type":"Inhibitor"},{"Id":23,"FromVariable":32,"ToVariable":32,"Type":"Activator"},{"Id":27,"FromVariable":32,"ToVariable":26,"Type":"Activator"},{"Id":26,"FromVariable":25,"ToVariable":33,"Type":"Activator"},{"Id":19,"FromVariable":37,"ToVariable":36,"Type":"Activator"},{"Id":20,"FromVariable":36,"ToVariable":38,"Type":"Activator"},{"Id":22,"FromVariable":39,"ToVariable":36,"Type":"Inhibitor"},{"Id":23,"FromVariable":36,"ToVariable":36,"Type":"Activator"},{"Id":29,"FromVariable":36,"ToVariable":27,"Type":"Activator"},{"Id":28,"FromVariable":26,"ToVariable":37,"Type":"Activator"}]},"Layout":{"Variables":[{"Id":6,"Name":"Potential","Type":"Constant","ContainerId":0,"PositionX":454.16666666666663,"PositionY":222.14285714285714,"CellX":null,"CellY":null,"Angle":0,"Description":""},{"Id":24,"Name":"P2","Type":"Constant","ContainerId":0,"PositionX":704.1666666666666,"PositionY":222.14285714285714,"CellX":null,"CellY":null,"Angle":0,"Description":""},{"Id":25,"Name":"P3","Type":"Constant","ContainerId":0,"PositionX":954.1666666666666,"PositionY":222.14285714285714,"CellX":null,"CellY":null,"Angle":0,"Description":""},{"Id":26,"Name":"P4","Type":"Constant","ContainerId":0,"PositionX":1204.1666666666667,"PositionY":222.14285714285714,"CellX":null,"CellY":null,"Angle":0,"Description":""},{"Id":27,"Name":"Output","Type":"Constant","ContainerId":0,"PositionX":1454.1666666666667,"PositionY":222.14285714285714,"CellX":null,"CellY":null,"Angle":0,"Description":""},{"Id":1,"Name":"Pore","Type":"MembraneReceptor","ContainerId":1,"PositionX":379.06960342516254,"PositionY":283.57984357024725,"CellX":0,"CellY":0,"Angle":0,"Description":""},{"Id":3,"Name":"VS","Type":"MembraneReceptor","ContainerId":1,"PositionX":457.0295557795655,"PositionY":321.11213946357213,"CellX":0,"CellY":0,"Angle":45,"Description":""},{"Id":4,"Name":"CTD_connect","Type":"Default","ContainerId":1,"PositionX":399.06666666666666,"PositionY":381.2285714285714,"CellX":null,"CellY":null,"Angle":0,"Description":""},{"Id":5,"Name":"CTD","Type":"Default","ContainerId":1,"PositionX":351.56666666666666,"PositionY":381.2285714285714,"CellX":null,"CellY":null,"Angle":0,"Description":""},{"Id":28,"Name":"Pore","Type":"MembraneReceptor","ContainerId":2,"PositionX":629.0696034251547,"PositionY":283.5798435699435,"CellX":0,"CellY":0,"Angle":0,"Description":""},{"Id":29,"Name":"VS","Type":"MembraneReceptor","ContainerId":2,"PositionX":707.0295557795661,"PositionY":321.1121394635711,"CellX":0,"CellY":0,"Angle":45,"Description":""},{"Id":30,"Name":"CTD_connect","Type":"Default","ContainerId":2,"PositionX":649.0666666666666,"PositionY":381.2285714285714,"CellX":null,"CellY":null,"Angle":0,"Description":""},{"Id":31,"Name":"CTD","Type":"Default","ContainerId":2,"PositionX":601.5666666666666,"PositionY":381.2285714285714,"CellX":null,"CellY":null,"Angle":0,"Description":""},{"Id":32,"Name":"Pore","Type":"MembraneReceptor","ContainerId":3,"PositionX":879.0696034252932,"PositionY":283.57984356988163,"CellX":0,"CellY":0,"Angle":0,"Description":""},{"Id":33,"Name":"VS","Type":"MembraneReceptor","ContainerId":3,"PositionX":957.0295557795637,"PositionY":321.1121394635745,"CellX":0,"CellY":0,"Angle":45,"Description":""},{"Id":34,"Name":"CTD_connect","Type":"Default","ContainerId":3,"PositionX":899.0666666666666,"PositionY":381.2285714285714,"CellX":null,"CellY":null,"Angle":0,"Description":""},{"Id":35,"Name":"CTD","Type":"Default","ContainerId":3,"PositionX":851.5666666666666,"PositionY":381.2285714285714,"CellX":null,"CellY":null,"Angle":0,"Description":""},{"Id":36,"Name":"Pore","Type":"MembraneReceptor","ContainerId":4,"PositionX":1129.0696034252626,"PositionY":283.57984357092937,"CellX":0,"CellY":0,"Angle":0,"Description":""},{"Id":37,"Name":"VS","Type":"MembraneReceptor","ContainerId":4,"PositionX":1207.029555779566,"PositionY":321.1121394635718,"CellX":0,"CellY":0,"Angle":45,"Description":""},{"Id":38,"Name":"CTD_connect","Type":"Default","ContainerId":4,"PositionX":1149.0666666666666,"PositionY":381.2285714285714,"CellX":null,"CellY":null,"Angle":0,"Description":""},{"Id":39,"Name":"CTD","Type":"Default","ContainerId":4,"PositionX":1101.5666666666666,"PositionY":381.2285714285714,"CellX":null,"CellY":null,"Angle":0,"Description":""}],"Containers":[{"Id":1,"Name":"C0","Size":1,"PositionX":1,"PositionY":1},{"Id":2,"Name":"C1","Size":1,"PositionX":2,"PositionY":1},{"Id":3,"Name":"C2","Size":1,"PositionX":3,"PositionY":1},{"Id":4,"Name":"C3","Size":1,"PositionX":4,"PositionY":1}],"AnnotatedGridCells":[],"Description":""},"ltl":{"states":[],"operations":[]}}
Loading

0 comments on commit 68ea5e1

Please sign in to comment.