[380] | 1 | expdef:
|
---|
[406] | 2 | name:Reproduction of benthic foraminifera
|
---|
[380] | 3 | info:~
|
---|
| 4 | Genes and parameter values which control reproduction are stored in user1 and user2 fields.
|
---|
| 5 |
|
---|
| 6 | user1:
|
---|
[402] | 7 | genes which are not encoded in Ff genotype:
|
---|
[380] | 8 | Vamin - Minimum stored energy necessary for reproduction
|
---|
| 9 | amin - minimal age for reproduction
|
---|
| 10 |
|
---|
| 11 | user2:
|
---|
| 12 | Physiological parameters of foraminifera:
|
---|
| 13 | Va - amount of the stored energy
|
---|
| 14 | gen - generation: 0 haploid, 1 diploid
|
---|
| 15 | ~
|
---|
| 16 | code:~
|
---|
| 17 |
|
---|
[401] | 18 | /*
|
---|
| 19 | changes 2015-06-24:
|
---|
| 20 | - xxx.get(...) changed to xxx[...]
|
---|
| 21 | - xxx.set(...,...) changed to xxx[...]=...
|
---|
| 22 | - function placeRandomlyNotColliding(cr) explicitly called when adding a new creature, and removed collision checking from onCreaturesBorn() which is also called when "growing" (since "growing" is implemented as creating a new creature in place of the old one, so onCreaturesBorn() is also called)
|
---|
| 23 | - use creature's center (not the bbox corner) when growing
|
---|
| 24 | - added "S" receptor to visualize the difference between diplo and haplo generations
|
---|
| 25 | - signal.value is a MechPart (a reference) so it does not have to be updated after changing the object location
|
---|
| 26 | */
|
---|
| 27 |
|
---|
[380] | 28 | global foodenergywaiting;
|
---|
| 29 | global reprocounter;
|
---|
| 30 |
|
---|
[406] | 31 | @include "foraminifera.inc"
|
---|
[401] | 32 |
|
---|
[380] | 33 | // -------------------------------- experiment begin --------------------------------
|
---|
| 34 |
|
---|
| 35 | function onExpDefLoad()
|
---|
| 36 | {
|
---|
[401] | 37 |
|
---|
[380] | 38 | // define genotype and creature groups
|
---|
| 39 | GenePools.clear();
|
---|
| 40 | Populations.clear();
|
---|
| 41 | GenePools[0].name = "Unused";
|
---|
| 42 |
|
---|
[401] | 43 | SignalView.mode = 1;
|
---|
| 44 |
|
---|
[380] | 45 | var pop = Populations[0];
|
---|
| 46 | pop.name = "Creatures";
|
---|
| 47 | pop.en_assim = 0;
|
---|
[404] | 48 | pop.nnsim = 0;
|
---|
[380] | 49 | pop.enableperf = 1;
|
---|
| 50 | pop.death = 1;
|
---|
| 51 | pop.energy = 1;
|
---|
| 52 | pop.selfmask = 0x10001;
|
---|
[401] | 53 | pop.othermask = 0x20001;
|
---|
| 54 | //pop.selfmask = 0x20002; pop.othermask = 0x10002;
|
---|
[380] | 55 | pop.perfperiod = 25;
|
---|
| 56 |
|
---|
| 57 | pop = Populations.addGroup("Food");
|
---|
| 58 | pop.nnsim = 0;
|
---|
| 59 | pop.enableperf = 0;
|
---|
| 60 | pop.death = 1;
|
---|
| 61 | pop.energy = 1;
|
---|
| 62 | pop.selfmask = 0x20002;
|
---|
[401] | 63 | pop.othermask = 0x10000;
|
---|
[380] | 64 |
|
---|
[418] | 65 | //TODO remove unused params
|
---|
| 66 |
|
---|
[404] | 67 | //radius of the chamber
|
---|
[405] | 68 | ExpParams.rads = [1.2, 0.6];
|
---|
[418] | 69 | //ExpParams.rads = [2, 2];
|
---|
[405] | 70 | //inital genotypes
|
---|
| 71 | ExpParams.genh = "//0\np:sh=1,sx=" + ExpParams.rads[0] + ",sy=" + ExpParams.rads[0] + ",sz=" + ExpParams.rads[0] + ", rz=3.14159265358979";
|
---|
[404] | 72 | ExpParams.gend = "//0\np:sh=1,sx=" + ExpParams.rads[1] + ",sy=" + ExpParams.rads[1] + ",sz=" + ExpParams.rads[1] + ", rz=3.14159265358979";
|
---|
[405] | 73 | ExpParams.gend += "\nn:p=0,d=\"S\"";
|
---|
[380] | 74 | ExpParams.e_meta = 0.1;
|
---|
[401] | 75 | ExpParams.feedrate = 0.5;
|
---|
[380] | 76 | ExpParams.feede0 = 100;
|
---|
| 77 | ExpParams.feedtrans = 3;
|
---|
| 78 | ExpParams.creath = -0.99; //just above the bottom
|
---|
[418] | 79 | ExpParams.foodgen = "//0\np:sh=2,sx=0.1,sy=0.1,sz=0.1\nn:d=T,p=0"; //TODO food size as param
|
---|
[380] | 80 | ExpParams.autorestart = 0;
|
---|
| 81 | ExpParams.psize = 10;
|
---|
[411] | 82 | //ExpParams.logging = 1; //uncomment to enable logging simulation parameters to log files
|
---|
[401] | 83 |
|
---|
| 84 | //number of offspring
|
---|
| 85 | ExpParams.ofnumh = 40;
|
---|
| 86 | ExpParams.ofnumd = 25;
|
---|
| 87 | //minial volume for reproduction
|
---|
| 88 | ExpParams.v_min_d = 300;
|
---|
| 89 | ExpParams.v_min_h = 300;
|
---|
| 90 | //minimal age for reproduction
|
---|
| 91 | ExpParams.age_min_d = 100;
|
---|
| 92 | ExpParams.age_min_h = 100;
|
---|
| 93 | //crossover probability
|
---|
| 94 | ExpParams.crossprob = 0.4;
|
---|
| 95 | //mutation probability
|
---|
| 96 | ExpParams.mutationprob = 0.2;
|
---|
[380] | 97 | ExpParams.repro_time = 200;
|
---|
| 98 | ExpParams.repro_thr = 1;
|
---|
| 99 |
|
---|
[401] | 100 | //grwoth speed in time steps
|
---|
[418] | 101 | ExpParams.growth_step = 50; //50
|
---|
[401] | 102 |
|
---|
[380] | 103 | ExpState.totaltestedcr = 0;
|
---|
| 104 | ExpState.food = "";
|
---|
| 105 | foodenergywaiting = ExpParams.feede0;
|
---|
| 106 | reprocounter = 0;
|
---|
| 107 |
|
---|
[401] | 108 | ExpParams.wsize = 50;
|
---|
[380] | 109 | World.wrldwat = 50;
|
---|
| 110 | World.wrldsiz = ExpParams.wsize;
|
---|
| 111 | World.wrldbnd = 1;
|
---|
| 112 | }
|
---|
| 113 |
|
---|
| 114 | @include "standard_placement.inc"
|
---|
| 115 |
|
---|
| 116 | function onExpInit()
|
---|
| 117 | {
|
---|
| 118 | Populations[0].clear();
|
---|
| 119 | Populations[1].clear();
|
---|
| 120 |
|
---|
| 121 | for (var i = 0; i < ExpParams.psize; i++)
|
---|
| 122 | {
|
---|
| 123 | var cr = Populations[0].add(ExpParams.genh);
|
---|
| 124 | cr.name = "Initial creature" + i;
|
---|
| 125 | placeCreatureRandomly(cr, 0, 0);
|
---|
[416] | 126 | cr.energy0 = ExpParams.v_min_h - ExpParams.repro_thr;
|
---|
| 127 | cr.energy = cr.energy0;
|
---|
[404] | 128 | cr.user1 = {"vamin" : ExpParams.v_min_h, "amin": ExpParams.age_min_h};
|
---|
| 129 | cr.user2 = {"Va" : ExpParams.v_min_h - ExpParams.repro_thr, "gen" : 0, "growth_step" : ExpParams.growth_step, "rsize" : ExpParams.rads[0], "vinit" : ExpParams.v_min_h - ExpParams.repro_thr};
|
---|
[380] | 130 | }
|
---|
| 131 | ExpState.totaltestedcr = 0;
|
---|
| 132 | foodenergywaiting = ExpParams.feede0;
|
---|
| 133 | }
|
---|
| 134 |
|
---|
| 135 | function onExpLoad()
|
---|
| 136 | {
|
---|
| 137 | for (var pop in Populations)
|
---|
| 138 | pop.clear();
|
---|
| 139 |
|
---|
| 140 | Loader.addClass(sim_params.*);
|
---|
| 141 | Loader.setBreakLabel(Loader.BeforeUnknown, "onExpLoad_Unknown");
|
---|
| 142 | Loader.run();
|
---|
| 143 |
|
---|
| 144 | Simulator.print("Loaded " + Populations[0].size + " creatures and " + Populations[1].size + " food objects");
|
---|
| 145 | }
|
---|
| 146 |
|
---|
| 147 | function onExpLoad_Unknown()
|
---|
| 148 | {
|
---|
| 149 | if (Loader.objectName == "org") // saved by the old expdef
|
---|
| 150 | {
|
---|
| 151 | var g = Genotype.newFromString("");
|
---|
| 152 | Loader.currentObject = g;
|
---|
| 153 | Interface.makeFrom(g).setAllDefault();
|
---|
| 154 | Loader.loadObject();
|
---|
| 155 | var cr = Populations[0].add(g);
|
---|
| 156 | if (cr != null)
|
---|
| 157 | {
|
---|
[401] | 158 | //cr.rotate(0,0,Math.rnd01*Math.twopi);
|
---|
[380] | 159 | if ((typeof(g.user1) == "Vector") && (g.user1.size >= 3))
|
---|
[401] | 160 | {
|
---|
| 161 | // [x,y,energy]
|
---|
[380] | 162 | cr.move(g.user1[0] - cr.center_x, g.user1[1] - cr.center_y, 0);
|
---|
| 163 | cr.energy = g.user1[2];
|
---|
| 164 | }
|
---|
| 165 | else
|
---|
| 166 | {
|
---|
[401] | 167 | cr.move(Math.rnd01 * World.wrldsiz - cr.center_x, Math.rnd01 * World.wrldsiz - cr.center_y, 0);
|
---|
[380] | 168 | }
|
---|
| 169 | }
|
---|
| 170 | }
|
---|
| 171 | else if (Loader.objectName == "Creature")
|
---|
| 172 | {
|
---|
| 173 | Loader.currentObject = CreatureSnapshot.new();
|
---|
| 174 | Loader.loadObject();
|
---|
| 175 | Populations[0].add(Loader.currentObject);
|
---|
| 176 | }
|
---|
| 177 | }
|
---|
| 178 |
|
---|
| 179 | function onExpSave()
|
---|
| 180 | {
|
---|
| 181 | File.writeComment("saved by '%s.expdef'" % Simulator.expdef);
|
---|
| 182 |
|
---|
[401] | 183 | var tmpvec = [], i;
|
---|
[380] | 184 |
|
---|
[401] | 185 | for(var cr in Populations[1])
|
---|
[380] | 186 | tmpvec.add([cr.center_x, cr.center_y, cr.energy]);
|
---|
| 187 |
|
---|
| 188 | ExpState.food = tmpvec;
|
---|
| 189 | File.writeObject(sim_params.*);
|
---|
| 190 | ExpState.food = null; //vectors are only created for saving and then discarded
|
---|
| 191 |
|
---|
| 192 | for (var cr in Populations[0])
|
---|
| 193 | File.writeObject(cr);
|
---|
| 194 | }
|
---|
| 195 |
|
---|
| 196 | // -------------------------------- experiment end --------------------------------
|
---|
| 197 |
|
---|
| 198 | // -------------------------------- creature begin --------------------------------
|
---|
| 199 |
|
---|
| 200 | function onCreaturesBorn(cr)
|
---|
| 201 | {
|
---|
| 202 | cr.idleen = ExpParams.e_meta;
|
---|
| 203 | }
|
---|
| 204 |
|
---|
[401] | 205 | function placeRandomlyNotColliding(cr)
|
---|
| 206 | {
|
---|
| 207 | var retry = 100; //try 100 times
|
---|
| 208 | while (retry--)
|
---|
| 209 | {
|
---|
| 210 | placeCreatureRandomly(cr, 0, 0);
|
---|
| 211 | if (!cr.boundingBoxCollisions(0))
|
---|
| 212 | return cr;
|
---|
| 213 | }
|
---|
| 214 |
|
---|
| 215 | Populations[0].delete(cr);
|
---|
| 216 | }
|
---|
| 217 |
|
---|
[380] | 218 | function readyToRepro(cr)
|
---|
| 219 | {
|
---|
| 220 | cr.signals.add("repro");
|
---|
[401] | 221 | cr.signals[0].power = 1;
|
---|
[380] | 222 | }
|
---|
| 223 |
|
---|
| 224 | function onCreaturesStep(cr)
|
---|
| 225 | {
|
---|
[405] | 226 | //TODO moving inside sediment?
|
---|
| 227 | cr.moveAbs(cr.pos_x, cr.pos_y, 0); //adjustment in z axis
|
---|
[380] | 228 | var p = cr.getMechPart(0);
|
---|
| 229 | var n = cr.signals.receiveSet("food", ExpParams.food_range);
|
---|
| 230 |
|
---|
[401] | 231 | //if signals are received find the source of the nearest
|
---|
[380] | 232 | if (n.size > 0)
|
---|
| 233 | {
|
---|
[401] | 234 |
|
---|
[380] | 235 | var i;
|
---|
| 236 | var mp;
|
---|
| 237 | var distvec = XYZ.new(0, 0, 0);
|
---|
| 238 | var dist;
|
---|
| 239 | var mindist = 100000000000;
|
---|
| 240 | var mindistvec = null;
|
---|
| 241 |
|
---|
[401] | 242 | for (i = 0; i < n.size; i++)
|
---|
[380] | 243 | {
|
---|
[401] | 244 | mp = n[i].value;
|
---|
| 245 | distvec.set(mp.pos);
|
---|
| 246 | distvec.sub(p.pos);
|
---|
| 247 | dist = distvec.length;
|
---|
| 248 | if (dist < mindist)
|
---|
[380] | 249 | {
|
---|
[401] | 250 | mindist = dist;
|
---|
| 251 | mindistvec = distvec.clone();
|
---|
[380] | 252 | }
|
---|
| 253 | }
|
---|
| 254 |
|
---|
| 255 | mindistvec.normalize();
|
---|
[401] | 256 | mindistvec.scale(-0.08);
|
---|
[380] | 257 | cr.localDrive = mindistvec;
|
---|
| 258 | }
|
---|
[401] | 259 |
|
---|
[380] | 260 | else
|
---|
| 261 | {
|
---|
[401] | 262 | cr.localDrive = (0.1 * Math.rnd01, 0.1 * Math.rnd01, 0);
|
---|
[380] | 263 | }
|
---|
| 264 |
|
---|
[401] | 265 | //energy costs depend on size
|
---|
| 266 | if (cr.energy > 100)
|
---|
| 267 | {
|
---|
[405] | 268 | //TODO energy costs dependent on size
|
---|
[401] | 269 | // cr.energy_m = cr.user2["Va"]/cr.user2["vinit"];
|
---|
| 270 | }
|
---|
[380] | 271 |
|
---|
[401] | 272 | if (cr.lifespan >= ExpParams.max_age)
|
---|
[380] | 273 | {
|
---|
[404] | 274 | //TODO what is max age value? should there be one?
|
---|
[401] | 275 | Populations[0].kill(cr);
|
---|
[405] | 276 | return;
|
---|
[401] | 277 | }
|
---|
| 278 |
|
---|
| 279 | //foram growth
|
---|
[404] | 280 | if (cr.lifespan == cr.user2["growth_step"])
|
---|
[401] | 281 | {
|
---|
[405] | 282 | //TODO how size is related to the energy?
|
---|
| 283 | cr.user2["rsize"] = ExpParams.rads[cr.user2["gen"]] * Math.min(Math.max(float(cr.user2["Va"] / cr.user2["vinit"]) * 0.5, 1.0), 2.5);
|
---|
[404] | 284 | var geno = "//0\np:sh=1,sx=" + cr.user2["rsize"] + ",sy=" + cr.user2["rsize"] + ",sz=" + cr.user2["rsize"] + ", rz=3.14159265358979";
|
---|
| 285 | if (cr.user2["gen"] == 1)
|
---|
[380] | 286 | {
|
---|
[404] | 287 | geno += "\nn:p=0,d=\"S\""; //TODO why initial genotypes are not used as defined in ExpParams?
|
---|
[401] | 288 | //TODO maybe it would be nice if they rotated so the "S" would show where they are going (direction/intention)
|
---|
| 289 | }
|
---|
[405] | 290 | var cr2 = Populations[0].add(geno);
|
---|
[404] | 291 | cr2.energy = cr.energy;
|
---|
| 292 | setGenotype(cr2, cr.user1, cr.user2);
|
---|
[401] | 293 | cr2.moveAbs(cr.center_x - cr2.size_x / 2, cr.center_y - cr2.size_y / 2, cr.pos_z);
|
---|
| 294 |
|
---|
| 295 | Populations[0].delete(cr);
|
---|
[380] | 296 | }
|
---|
[401] | 297 | else
|
---|
[380] | 298 | {
|
---|
[401] | 299 | var properSize = 0;
|
---|
| 300 |
|
---|
| 301 | if (cr.user2["gen"] == 0)
|
---|
| 302 | {
|
---|
| 303 | properSize = cr.user2["Va"] >= cr.user1["vamin"];
|
---|
| 304 | }
|
---|
| 305 | else
|
---|
| 306 | {
|
---|
[418] | 307 | properSize = cr.user2["Va"] >= cr.user1[0]["vamin"]; //TODO gene selection
|
---|
[401] | 308 | }
|
---|
| 309 |
|
---|
| 310 | //if creature has proper age and cytoplasm amount
|
---|
| 311 | if ( properSize )
|
---|
| 312 | {
|
---|
| 313 | //reproduce with probability repro_prob
|
---|
| 314 | if (Math.rnd01 <= ExpParams.repro_prob)
|
---|
| 315 | {
|
---|
| 316 | readyToRepro(cr);
|
---|
| 317 | }
|
---|
| 318 | }
|
---|
| 319 | if ( properSize && (cr.signals.receive("repro") > 0))
|
---|
| 320 | {
|
---|
| 321 | readyToRepro(cr);
|
---|
| 322 | }
|
---|
[380] | 323 | }
|
---|
| 324 | }
|
---|
| 325 |
|
---|
| 326 | function onCreaturesDied(cr)
|
---|
| 327 | {
|
---|
| 328 | //fossilization
|
---|
| 329 | var geno = GenePools[0].add(cr.genotype);
|
---|
| 330 | geno.user1 = cr.user1;
|
---|
| 331 | geno.user2 = cr.user2;
|
---|
[418] | 332 | if (ExpParams.logging == 1) Simulator.print("\"" + cr.name + "\" died...");
|
---|
[380] | 333 | ExpState.totaltestedcr++;
|
---|
| 334 | }
|
---|
| 335 |
|
---|
[404] | 336 | function setGenotype(cr, new_user1, new_user2)
|
---|
| 337 | {
|
---|
| 338 | cr.user2 = {"Va" : new_user2["Va"], "gen" : new_user2["gen"], "growth_step" : new_user2["growth_step"], "rsize" : new_user2["rsize"], "vinit": new_user2["vinit"]};
|
---|
| 339 | if (cr.user2["gen"] == 0)
|
---|
| 340 | {
|
---|
| 341 | cr.user1 = {"vamin" : new_user1["vamin"], "amin": new_user1["amin"] };
|
---|
| 342 | }
|
---|
| 343 | else if (cr.user2["gen"] == 1)
|
---|
| 344 | {
|
---|
| 345 | cr.user1 = [ {"vamin" : new_user1[0]["vamin"], "amin": new_user1[0]["amin"] }, {"vamin" : new_user1[1]["vamin"], "amin": new_user1[1]["amin"] }];
|
---|
[405] | 346 | }
|
---|
[404] | 347 |
|
---|
| 348 | }
|
---|
| 349 |
|
---|
[380] | 350 | // -------------------------------- creature end --------------------------------
|
---|
| 351 |
|
---|
| 352 | // -------------------------------- food begin --------------------------------
|
---|
| 353 |
|
---|
| 354 | function onFoodStep(cr)
|
---|
| 355 | {
|
---|
| 356 | cr.moveAbs(cr.pos_x % ExpParams.wsize, cr.pos_y % ExpParams.wsize, 0.5);
|
---|
| 357 | }
|
---|
| 358 |
|
---|
| 359 | function addfood()
|
---|
| 360 | {
|
---|
| 361 | var cr = Populations[1].add(ExpParams.foodgen);
|
---|
| 362 |
|
---|
| 363 | cr.name = "Food";
|
---|
| 364 | cr.idleen = 0;
|
---|
[416] | 365 | cr.energy0 = ExpParams.feede0;
|
---|
| 366 | cr.energy = cr.energy0;
|
---|
[380] | 367 | cr.signals.add("food");
|
---|
| 368 |
|
---|
[401] | 369 | cr.signals[0].value = cr.getMechPart(0);
|
---|
[380] | 370 |
|
---|
[404] | 371 | placeRandomlyNotColliding(cr);
|
---|
[380] | 372 | }
|
---|
| 373 |
|
---|
| 374 | function onFoodCollision()
|
---|
| 375 | {
|
---|
| 376 | if (Collision.Creature2.user2 != null)
|
---|
| 377 | {
|
---|
| 378 | var e = Collision.Part2.ing * ExpParams.feedtrans;
|
---|
| 379 | //Simulator.print("transferring "+e+" from "+Collision.Creature1.name+" to "+Collision.Creature2.name+" ("+Collision.Creature2.energy+")");
|
---|
| 380 | Collision.Creature1.energy_m = Collision.Creature1.energy_m + e;
|
---|
| 381 | Collision.Creature2.energy_p = Collision.Creature2.energy_p + e;
|
---|
[404] | 382 | Collision.Creature2.user2["Va"] = float(Collision.Creature2.user2["Va"]) + float(e);
|
---|
[380] | 383 | }
|
---|
| 384 | }
|
---|
| 385 |
|
---|
| 386 | // -------------------------------- food end --------------------------------
|
---|
| 387 |
|
---|
| 388 |
|
---|
| 389 | function log(tolog, fname)
|
---|
| 390 | {
|
---|
[401] | 391 | var f = File.appendDirect(fname, "forams data");
|
---|
[380] | 392 | f.writeString("" + Simulator.stepNumber);
|
---|
[401] | 393 | for (var i = 0; i < tolog.size; i++)
|
---|
[380] | 394 | {
|
---|
| 395 | f.writeString(";" + tolog[i]);
|
---|
| 396 | }
|
---|
| 397 | f.writeString("\n");
|
---|
| 398 | f.close();
|
---|
| 399 | }
|
---|
| 400 |
|
---|
| 401 |
|
---|
| 402 |
|
---|
| 403 |
|
---|
[401] | 404 | @include "standard_events.inc"
|
---|
[380] | 405 |
|
---|
[401] | 406 | ~
|
---|
[380] | 407 |
|
---|
[401] | 408 | prop:
|
---|
| 409 | id:max_age
|
---|
| 410 | name:Maximal age
|
---|
| 411 | type:d 100 1000 500
|
---|
[380] | 412 |
|
---|
[401] | 413 | prop:
|
---|
| 414 | id:wsize
|
---|
| 415 | name:World size
|
---|
| 416 | type:d 10 1000 20
|
---|
[380] | 417 |
|
---|
[401] | 418 | prop:
|
---|
| 419 | id:growth_step
|
---|
| 420 | name:Growth step
|
---|
[418] | 421 | type:d -1 10000 1000
|
---|
[380] | 422 |
|
---|
[401] | 423 | prop:
|
---|
[404] | 424 | id:rads
|
---|
[405] | 425 | name:Haploid and diploid radius
|
---|
[404] | 426 | type:x
|
---|
[380] | 427 |
|
---|
| 428 | prop:
|
---|
| 429 | id:age_min_h
|
---|
| 430 | name:Min reproduction age of haploid forams
|
---|
| 431 | type:d 100 10000 300
|
---|
| 432 | group:Foraminifera
|
---|
| 433 |
|
---|
| 434 | prop:
|
---|
| 435 | id:age_min_d
|
---|
| 436 | name:Min reproduction age of diploid forams
|
---|
| 437 | type:d 100 10000 200
|
---|
| 438 | group:Foraminifera
|
---|
| 439 |
|
---|
| 440 | prop:
|
---|
| 441 | id:v_min_h
|
---|
| 442 | name:Min reproduction energy of haploid forams
|
---|
[401] | 443 | type:f 10 10000 300
|
---|
[380] | 444 | group:Foraminifera
|
---|
| 445 |
|
---|
| 446 | prop:
|
---|
| 447 | id:v_min_d
|
---|
| 448 | name:Min reproduction energy of diploid forams
|
---|
[401] | 449 | type:f 10 10000 150
|
---|
[380] | 450 | group:Foraminifera
|
---|
| 451 |
|
---|
| 452 | prop:
|
---|
| 453 | id:repro_thr
|
---|
[405] | 454 | name:Energy creatures need to gather to reproduce
|
---|
[380] | 455 | type:d 1 1000 1
|
---|
| 456 |
|
---|
| 457 | prop:
|
---|
| 458 | id:food_range
|
---|
[401] | 459 | name:Range of food smell
|
---|
[380] | 460 | type:d 0 10000 10000
|
---|
| 461 |
|
---|
| 462 | prop:
|
---|
| 463 | id:repro_time
|
---|
[401] | 464 | name:Time before reproduction
|
---|
[380] | 465 | type:d 0 1000
|
---|
| 466 |
|
---|
| 467 | prop:
|
---|
| 468 | id:psize
|
---|
[401] | 469 | name:Initial population size
|
---|
[380] | 470 | type:d 1 1000 100
|
---|
| 471 |
|
---|
| 472 | prop:
|
---|
[401] | 473 | id:logging
|
---|
| 474 | name:Log statistics to file
|
---|
| 475 | type:d 0 1 0
|
---|
| 476 |
|
---|
| 477 | prop:
|
---|
[380] | 478 | id:ofnumh
|
---|
| 479 | name:Number of offspring from haploid forams
|
---|
| 480 | type:d
|
---|
| 481 | group:Foraminifera
|
---|
| 482 |
|
---|
| 483 | prop:
|
---|
| 484 | id:ofnumd
|
---|
| 485 | name:Number of offspring from diploid forams
|
---|
| 486 | type:d
|
---|
| 487 | group:Foraminifera
|
---|
| 488 |
|
---|
| 489 | prop:
|
---|
| 490 | id:repro_prob
|
---|
[401] | 491 | name:Probability of reproduction
|
---|
[380] | 492 | type:f 0 1 0.9
|
---|
| 493 |
|
---|
| 494 | prop:
|
---|
| 495 | id:crossprob
|
---|
[401] | 496 | name:Crossover probability
|
---|
| 497 | type:f 0 1 0
|
---|
[380] | 498 |
|
---|
| 499 | prop:
|
---|
[401] | 500 | id:mutationprob
|
---|
| 501 | name:Mutation probability
|
---|
| 502 | type:f 0 1 0
|
---|
| 503 |
|
---|
| 504 | prop:
|
---|
[380] | 505 | id:genh
|
---|
| 506 | name:Initial genotype of haploid forams
|
---|
| 507 | type:s 1
|
---|
| 508 | group:Foraminifera
|
---|
| 509 |
|
---|
| 510 | prop:
|
---|
| 511 | id:gend
|
---|
| 512 | name:Initial genotype of diploid forams
|
---|
| 513 | type:s 1
|
---|
| 514 | group:Foraminifera
|
---|
| 515 |
|
---|
| 516 | prop:
|
---|
| 517 | id:creath
|
---|
| 518 | name:Creation height
|
---|
| 519 | type:f -1 50
|
---|
| 520 | help:~
|
---|
| 521 | Vertical position (above the surface) where new creatures are revived.
|
---|
| 522 | Negative values are only used in the water area:
|
---|
| 523 | 0 = at the surface
|
---|
| 524 | -0.5 = half depth
|
---|
| 525 | -1 = just above the bottom~
|
---|
| 526 |
|
---|
| 527 | prop:
|
---|
| 528 | id:e_meta
|
---|
| 529 | name:Idle metabolism
|
---|
| 530 | type:f 0 1
|
---|
| 531 | group:Energy
|
---|
| 532 | help:Each stick consumes this amount of energy in one time step
|
---|
| 533 |
|
---|
| 534 | prop:
|
---|
| 535 | id:feedrate
|
---|
| 536 | name:Feeding rate
|
---|
| 537 | type:f 0 100
|
---|
| 538 | group:Energy
|
---|
| 539 | help:How fast energy is created in the world
|
---|
| 540 |
|
---|
| 541 | prop:
|
---|
| 542 | id:feede0
|
---|
| 543 | name:Food's energy
|
---|
| 544 | group:Energy
|
---|
| 545 | type:f 0 1000
|
---|
| 546 |
|
---|
| 547 | prop:
|
---|
| 548 | id:feedtrans
|
---|
| 549 | name:Ingestion multiplier
|
---|
| 550 | group:Energy
|
---|
| 551 | type:f 0 100
|
---|
| 552 |
|
---|
| 553 | prop:
|
---|
| 554 | id:foodgen
|
---|
| 555 | name:Food's genotype
|
---|
| 556 | group:Energy
|
---|
| 557 | type:s 1
|
---|
| 558 |
|
---|
| 559 | prop:
|
---|
| 560 | id:autorestart
|
---|
| 561 | name:Restart after extinction
|
---|
| 562 | help:Restart automatically this experiment after the last creature has died?
|
---|
| 563 | type:d 0 1
|
---|
| 564 |
|
---|
| 565 | state:
|
---|
| 566 | id:notes
|
---|
| 567 | name:Notes
|
---|
| 568 | type:s 1
|
---|
| 569 | help:~
|
---|
| 570 | You can write anything here
|
---|
| 571 | (it will be saved to the experiment file)~
|
---|
| 572 |
|
---|
| 573 | state:
|
---|
| 574 | id:totaltestedcr
|
---|
| 575 | name:Evaluated creatures
|
---|
| 576 | help:Total number of the creatures evaluated in the experiment
|
---|
| 577 | type:d
|
---|
| 578 | flags:16
|
---|
| 579 |
|
---|
[404] | 580 | prop:
|
---|
| 581 | id:foodPop
|
---|
[405] | 582 | name:Food size
|
---|
[404] | 583 | type:d 1 1000 10
|
---|
| 584 |
|
---|
[380] | 585 | state:
|
---|
| 586 | id:food
|
---|
| 587 | name:Food locations
|
---|
| 588 | help:vector of vectors [x,y,energy]
|
---|
| 589 | type:x
|
---|
| 590 | flags:32
|
---|