Ignore:
Timestamp:
05/07/23 02:40:10 (12 months ago)
Author:
Maciej Komosinski
Message:
  • Got rid of a redundant source of information: cells development stops when a cell sets an error code during its development, not when a function returns an error code
  • Fix whitespace repair being potentially overwritten by further repairs
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/genetics/f4/f4_general.h

    r1234 r1237  
    150150         * differentiation or modification is performed on the cell. If current node is
    151151         * creating a connection between two neuron nodes and the input node is not
    152          * yet developed, the simulation of the development of the current cell waits until
    153          * the input node is created. The onestep method is deployed for every cell
    154          * at least once. If one cell requires another one to develop, onestep
    155          * should be deployed again on this cell. This method, unlike genotype tree
    156          * creation, checks semantics. This means that this function will fail if:
     152         * yet developed, the simulation of the development of the current cell returns
     153         * to wait until the input node is created. The oneStep method is deployed for every cell
     154         * at least once. If one cell requires another one to develop, oneStep
     155         * should be deployed again on this cell.
     156         *
     157         * This method, unlike genotype tree creation, checks semantics. This means that
     158         * this function will fail (set error code) if:
    157159         *  - the cell differentiated as a stick will have branching node '<',
    158160         *  - the undifferentiated cell will have termination node '>' (end of cell development without differentiation),
     
    163165         *  - the neuron class is not valid.
    164166         *
    165          * @return 0 if development was successful, 1 if there was an error in genotype tree
    166          */
    167         int oneStep();
     167         * This function returns either because the development of this cell was completed,
     168         * or it was halted (yielding to other cells), or the error code was set in the f4_Cells object in the org attribute.
     169         */
     170        void oneStep();
    168171
    169172        /**
Note: See TracChangeset for help on using the changeset viewer.