Simulator class in Global context

The Framsticks simulator.

26 members:

type and namedescriptioncomments
function print
function
print information message One argument: message to be printed 
function message
function
print message The second argument can be:
-1 = debugging message
0 = information
1 = warning
2 = error
3 = critical error 
function load
function
load Load experiment file 
function import
function
import Load some data from file. The second argument selects what section(s) will be loaded:
1 - experiment
2 - genotypes
4 - simulator parameters
8 - genotype group settings
16 - populations settings
32 - new groups will be created for imported genotypes/populations 
function save
function
save save experiment file 
function export
function
export save some data to file. arguments:
- filename
- flags: composed of the following bit values:
1 - experiment
2 - genotypes
4 - simulator parameters
8 - simulator stats
16 - genotype group settings
32 - populations settings
64 - do autosave
- selected genotype group
- selected population 
function stop
function
stop simulation  
function step
function
do single simulation step  
string expdef
string
Experiment definition  
string expdef_title
string
Title  
string expdef_info
multiline string
Description  
function init
function
Initialize experiment  
function loadexpdef
function
Reload experiment definition  
string usercode
multiline string
User script This script overrides the experiment definition 
integer autosaveperiod
integer, 0 .. 100000
Save backup Save simulation state once every n-th event
(events are defined by the script. For 'standard.expdef' it is after each death).
Save EXPT file first to initialize name for autosave files. 
integer overwrite
integer, 0 .. 1 (false/true)
Overwrite Overwite existing files or create their backups 
integer filecomm
integer, 0 .. 1 (false/true)
Show file comments Send comments encountered in opened files to the message window 
function autosave
function
Trigger autosave now  
integer createrr
integer, 0 .. 2
  • 0 = Ignore
  • 1 = Show summary
  • 2 = Show details
  • Object creation errors  
    integer importchk
    integer, 0 .. 1 (false/true)
    Check imported genotypes  
    integer loadchk
    integer, 0 .. 1 (false/true)
    Check genotypes loaded from experiment  
    integer groupchk
    integer, 0 .. 1 (false/true)
    Check genotypes added to groups  
    function new
    function
    create new Simulator  
    object world
    object field
    world object  
    object livelib
    object field
    live library object  
    object genolib
    object field
    genotype library object  

    Global context