Zz structures are an interesting way of representing relations invented by Ted Nelson. I captured the basic zz structure formalism in a gem Yzz. In this gem, YNelson, I combine zz structures with universal Petri nets (provided by another gem of mine, YPetri) to obtain a hybrid data structure that formalizes and generelizes a spreadsheet. Because let us note that most of the practical spreadsheet implementations allow the cell functions to be used so as to represent a Petri net. The cell functions can thus be regarded as transitions and cells and places of a Petri net. A spreadsheet is thus a kind of a Petri net. At the same time, spreadsheet files are orthogonal structures with at least 3 dimensions: x (horizontal), y (vertical) and z (the dimension of sheets stacked upon each other). With zz structures, the globally orthogonal nature traditional spreadsheet is generalized as a locally orthogonal zz structure, with relations represented as zz dimensions. In sum, this generalizes and formalizes a spreadsheet. While being textual at the core, YNelson attempts to provide convenience at least at the level similar to the actual existing spreadsheet software. Unlike YPetri, YNelson can also specify more than one node per command, but this is still under development. See the user guide and the documentation for the details. YNelson documentation is available online, but due to formatting issues, you may prefer to generate the documentation on your own by running rdoc in the gem directory. For an example of how YPetri can be used to model complex dynamical systems, see the eukaryotic cell cycle model which I released as "cell_cycle" gem.

Required Ruby Version:
>= 2.0

License:

GPLv3

Gemfile:

=Copy to clipboardCopied!

install:

=Copy to clipboardCopied!

Links:

RubyGems.org is the Ruby community’s gem hosting service. Instantly publish your gems and install them. Use the API to interact and find out more information about available gems. Become a contributor and enhance the site with your own changes.