Monday, February 22, 2010

Sliders

The ODE simulation and SSA simulation provide sliders that can be used to experiment with values and see the change in the simulation results instantly.

How it works:

The Core library provides a new class called MultithreadedSliderWidget, which combines a slider widget with the CThread class to provide a widget that would call functions inside a C library on a separate thread as the slider changes value.

The thread is destroyed when the slider window is closed.

The DynamicCodeTool plugin provides a C function called compileBuildLoadSliders, which is almost the same as compileBuildLoad, except for the fact that it attaches a MulthithreadedSliderWidget to the CThread that would be normally created with the compileBuildLoad call.

Results on the screen


The default plot tool now provides a histogram function, which is used by the runssa.c plugin to draw histograms after a stochastic simulation.


Using the displayNumber() function, the runssa.c and runcvode.c simulation functions display results of the simulation, such as steady states, mean, and variance on the screen itself.

Input functions


An input tab is added along with the other parts tabs. This new input tab contains input functions such as Impulse function, Step function, and Wave function, all of which can be used to set forcing functions on one or more molecules.

The CatalogWidget widget which originally just showed the nodes and connections now contains a new slot called addNewButton that allows other plugins to add new tabs to the Catalog. The SimulationEventTool plugin uses this feature to add the inputs tab. The ModuleTool uses this feature to add the Module tab.