autosaveperiod
integer, 0 .. 100000 |
Save backup Save simulation state once every n-th event |
createrr
integer, 0 .. 2 |
Object creation errors |
creatwarnfail
integer, 0 .. 1 (false/true) |
Fail on warnings Creatures grown with warnings will not be simulated. |
expdef
string |
Experiment definition Choose the experiment framework |
expdef_info
multiline string |
Description |
expdef_title
string |
Title |
filecomm
integer, 0 .. 1 (false/true) default=1 |
Show file comments Display comments encountered in opened files |
genolib
|
gene pools object |
groupchk
integer, 0 .. 1 (false/true) |
Check genotypes added to groups |
importchk
integer, 0 .. 1 (false/true) |
Check imported genotypes |
livelib
|
populations object |
loadchk
integer, 0 .. 1 (false/true) |
Check genotypes loaded from experiment |
maxjoint
float, 0 .. 100 default=2 |
Maximal joint length |
minjoint
float, 0 .. 100 default=0 |
Minimal joint length |
overwrite
integer, 0 .. 1 (false/true) |
Overwrite Overwite existing files or create their backups |
resetonexpdef
integer, 0 .. 1 (false/true) default=1 |
Reset before changing experiment definition If turned on: when a new experiment definition is selected, default values are loaded for most of the simulator parameters, and gene pools and populations are cleared. |
running
integer, 0 .. 1 (false/true) |
is the simulation running? for synchronizing the user interface state |
simspeed
integer |
simulation speed steps/second |
time
integer |
number of steps |
usercode
multiline string |
User script This script overrides the experiment definition |
vmdebug
integer, 0 .. 1 (false/true) |
VM debug |
world
|
world object |
beep
doesn't return a value |
beep function beep()Plays a default system sound |
checkpoint
doesn't return a value |
Notify that the experiment state was significantly updated. function checkpoint()This function was previously called "autosave". |
eval
doesn't return a value |
evaluate expression function eval(string script_expression) |
export
doesn't return a value |
export function export(string filename, integer options, integer genepool, integer population)Save some data to file. arguments: |
import
doesn't return a value |
import function import(string filename, integer options)Load some data from file. The second optional argument selects what section(s) will be imported: |
init
doesn't return a value |
Initialize experiment function init()Performs initialization procedures, like resetting counters, states, gene pools, etc. |
load
doesn't return a value |
load function load(string filename)Load experiment file (calls onExpLoad() in the current experiment definition). This function is intended to replace the simulator state; the old state is cleared by automatically calling "resetToDefaults()" (only if "resetonexpdef" is enabled). Use "import" if you don't want to loose the old simulator state. |
loadexpdef
doesn't return a value |
Reload experiment definition function loadexpdef() |
loadNeurons
doesn't return a value |
(re)load neuron definitions function loadNeurons(string directory_path) |
message
doesn't return a value |
print message function message(string text, integer level)The second argument can be: |
new
returns Simulator |
create new Simulator function new() |
print
doesn't return a value |
print information message function print(string text)One argument: message to be printed |
resetToDefaults
doesn't return a value |
Reset the simulator state function resetToDefaults()Clears groups and loads default values for simulator parameters, then calls onExpDefLoad() of the current experiment definition. |
save
doesn't return a value |
save function save(string filename)Save experiment file (calls onExpSave() in the current experiment definition) |
sleep
doesn't return a value |
sleep function sleep(integer milliseconds)Suspends the execution for a specified interval |
sound
doesn't return a value |
sound function sound(integer freqency_in_Hz, integer length_in_milliseconds)Generates a simple tone on the speaker |
start
doesn't return a value |
start simulation function start()called by the user interface |
step
doesn't return a value |
do single simulation step function step() |
stop
doesn't return a value |
stop simulation function stop()the expdef script calls this to stop simulation |
| Global context |