thalerjonathan / chimera

A library for pure functional Agent-Based Simulation in Haskell
GNU General Public License v3.0
13 stars 0 forks source link

Control Rendering Simulations #15

Open thalerjonathan opened 6 years ago

thalerjonathan commented 6 years ago

A simulation which has rendering output (e.g. Sugarscape) should be controllable so the modeller can explore better what is going on.

thalerjonathan commented 6 years ago

The main loop is controlled by Gloss. Using dunai it is easy to evealuate the top-level MSF with the next step, we need then a function which removes the monadic layer(s) of the current step. The output is then rendered/appended to the outputs list and stored together with the continuation in a IORef to be available in the next-step callback.