Changeset 434 for experiments/frams


Ignore:
Timestamp:
09/10/15 23:52:47 (9 years ago)
Author:
Maciej Komosinski
Message:

Increased ExpParams?.maxSteps range; safer stopping condition; theater description with no line-breaks

Location:
experiments/frams/foraminifera/data/scripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • experiments/frams/foraminifera/data/scripts/foraminifera.expdef

    r433 r434  
    22name:Reproduction of benthic foraminifera
    33info:~
     4Basic information about this simulation:
     5www.framsticks.com/foraminifera
     6
     7Technical information:
    48Genes and parameter values which control reproduction are stored in user1 and user2 fields.
    59
     
    1923code:~
    2024
    21 /*
    22 changes 2015-06-24:
    23 - xxx.get(...) changed to xxx[...]
    24 - xxx.set(...,...) changed to xxx[...]=...
    25 - function placeRandomlyNotColliding(cr) explicitly called when adding a new creature, and removed collision checking from onForamsBorn() which is also called when "growing" (since "growing" is implemented as creating a new creature in place of the old one, so onForamsBorn() is also called)
    26 - use creature's center (not the bbox corner) when growing
    27 - added "S" receptor to visualize the difference between diplo and haplo generations
    28 - signal.value is a MechPart (a reference) so it does not have to be updated after changing the object location
    29 */
    3025
    3126global nutrientenergywaiting;
     
    553548                }
    554549        }
    555         if (ExpParams.max_iter > 0)
    556         {
    557                 if (Simulator.stepNumber == ExpParams.max_iter)
     550        if (ExpParams.maxSteps > 0)
     551        {
     552                if (Simulator.stepNumber >= ExpParams.maxSteps)
    558553                        Simulator.stop();
    559554        }
     
    614609
    615610prop:
    616 id:max_iter
     611id:maxSteps
    617612name:Stop after the given number of simulation steps
    618 type:d 0 150000 0
     613type:d 0 1000000 0
    619614
    620615prop:
  • experiments/frams/foraminifera/data/scripts/foraminifera.show

    r430 r434  
    22name:Reproduction of benthic foraminifera
    33info:~
    4 There are two species of Foraminiera: longitudal and coiled. First chamber of the longitudal species has
    5 orange marks. Haploid and diploid generations alternate in both species. All chambers of the haploid generation
    6 have the same size. In the diploid generation subsequent chambers are bigger than their predecessors.
    7 Nutrients are green disks. Foraminifers move towards nearest nutrients and try to accumulate a sufficient
    8 amount of energy to reproduce.
     4There are two species of Foraminiera: longitudal and coiled. The first chamber of the longitudal species has orange marks. Haploid and diploid generations alternate in both species. All chambers of the haploid generation have the same size. In the diploid generation, subsequent chambers are bigger than their predecessors.
     5
     6Nutrients are green disks. Foraminifers move towards nearest nutrients and this way they can accumulate enough energy to reproduce.
    97
    108More information at www.framsticks.com/foraminifera
Note: See TracChangeset for help on using the changeset viewer.