source: experiments/frams/foraminifera/data/scripts/foraminifera.show @ 406

Last change on this file since 406 was 406, checked in by Maciej Komosinski, 5 years ago

Renamed for consistency

File size: 1.9 KB
Line 
1show:
2name:Reproduction of benthic foraminifera
3info:~
4Genes and parameter values which control reproduction are stored in user1 and user2 fields.
5
6user1:
7genes which are not encoded in ff genotype:
8Vamin - Minimum stored energy necessary for reproduction
9amin - minimal age for reproduction
10
11user2:
12Physiological parameters of foraminifera:
13Va - amount of the stored energy
14gen - generation: 0 haploid, 1 diploid
15
16~
17expdef:foraminifera
18code:~
19
20function onLoad()
21{
22        Simulator.init();
23        GLDisplay.desiredsimspeed = 50;
24        GLDisplay.minfps = 10;
25}
26
27function ShowParams_minimalVolume_set()
28{
29        switch (ShowParams.minimalVolume)
30        {
31        case 0:
32                ExpParams.v_min_h = 300;
33                ExpParams.v_min_d = 300;
34                break;
35        case 1:
36                ExpParams.v_min_h = 150;
37                ExpParams.v_min_d = 500;
38                break;
39        }
40}
41
42function ShowParams_offspingNumber_set()
43{
44        switch (ShowParams.offspingNumber)
45        {
46        case 0:
47                ExpParams.ofnumh = 300;
48                ExpParams.ofnumd = 300;
49                break;
50        case 1:
51                ExpParams.ofnumh = 150;
52                ExpParams.ofnumd = 500;
53                break;
54        }
55}
56
57function ShowParams_populationSize_set()
58{
59        switch (ShowParams.populationSize)
60        {
61        case 0:
62                ExpParams.psize = 5;
63                break;
64        case 1:
65                ExpParams.psize = 10;
66                break;
67        case 2:
68                ExpParams.psize = 15;
69                break;
70        case 3:
71                ExpParams.psize = 20;
72                break;
73        }
74}
75
76function ShowParams_feedRate_set()
77{
78        switch (ShowParams.feedRate)
79        {
80        case 0:
81                ExpParams.feedrate = 0.5;
82                break;
83        case 1:
84                ExpParams.feedrate = 0.7;
85                break;
86        case 2:
87                ExpParams.feedrate = 0.9;
88                break;
89        }
90}
91
92~
93
94
95prop:
96id:minimalVolume
97name:Min reproduction energy haploid/diploid
98type:f 0 1 ~300 / 300~150 / 500
99
100prop:
101id:populationSize
102name:Initial population size
103type:d 0 3 ~5~10~15~20
104
105prop:
106id:offspingNumber
107name:Number of offspring haploi/diploid
108type:d 0 2 ~20 / 4~10 / 5
109
110prop:
111id:feedRate
112name:Feeding rate
113type:d 0 2 ~50~70~90
Note: See TracBrowser for help on using the repository browser.