Skip to content
David Pollak edited this page Apr 6, 2012 · 2 revisions

Design of the Model

The Model represents the core computation/execution unit in Visi.

A Model contains code that defines how the model performs computations. Once valid code has been defined for a Model, the Model will present the sources and sinks (inputs and outputs). When a source is changed, the Model will recompute all dependent sinks and a new Model instance will be returned along with a list of sinks that were changed.

Models also keep a list of actions to take on Sink changes. The Model does not explicitly perform those change actions, but they are conveniently aggregated by the Model for inspection.

[FIXME Work in Progress @dpp]