vivarium-collective / bigraph-schema

compositional type schemas
Apache License 2.0
1 stars 1 forks source link

`check` / `match` / `react` #35

Closed prismofeverything closed 9 months ago

prismofeverything commented 9 months ago

We have added three fundamental operations to the type system, two of which require a new registry as well (check/react).

A number of reactions are provided (add/remove/replace), with a notable exception (divide). A future PR will address reactions that require a change of state as well as structure during the reaction (which goes beyond bigraphical reactions which deal only in structure), as required by divide and many other useful reactions yet to be conceived.

All feedback welcome!

prismofeverything commented 9 months ago

One more thing: due to the egregious imports between base_types.py and type_system.py I have pulled all the functions from base_types.py into type_system.py.... we are planning a future reorganization for the specification of types which will address this.