Update
Running a simulation
To run a simulation use the iterate and play
buttons in the main desktop toolbar.
An alternative method is to use a terminal component or
in the terminal tab at the bottom of the desktop. The command
workspace.iterate(n) can be use to iterate the workspace n times.
Update Types
On each iteration an update occurs. There are various
types of update, and you have some control over how the update happens
(in future versions there will be more control). Updates
occur via an "updater". The default updater is a buffered
update Here are the currently available updaters:
Buffered: Update order does not matter. The default sequence of events is:
- Update component 1
- Update component 2, ...
- Update component n
- Update couplings (uses a buffer so that update order does not matter)
Priority: Update order does matter. When you need things updated in a particular sequence.
Custom update
Update can be customized by running a script which installs a
custom updater. An example which shows
how this is done is in the scriptmenu. If you run the
script "customUpdateExample.bsh", you will notice that the network's
synapses are randomized every time the workspace is updated.
Updator tab: Can specify one or more threads. The default value is the number of available processors.
Custom update: Users
can create their own updators. In a script, just create an instance of
the workspace and call workspace.setUpdator. See scripting.