Ignore:
Timestamp:
09/09/23 15:10:49 (8 months ago)
Author:
Maciej Komosinski
Message:

fH, fB, fL: improved default parameter values, syntax coloring and code logic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/genetics/fL/fL_general.h

    r821 r1273  
    11// This file is a part of Framsticks SDK.  http://www.framsticks.com/
    2 // Copyright (C) 1999-2018  Maciej Komosinski and Szymon Ulatowski.
     2// Copyright (C) 1999-2023  Maciej Komosinski and Szymon Ulatowski.
    33// See LICENSE.txt for details.
    44
     
    2525/** @name Constants used in fL methods */
    2626//@{
    27 #define FL_PART_PROPS_COUNT   4 ///<Count of part properties
    28 #define FL_JOINT_PROPS_COUNT  3 ///<Count of joint properties
     27#define FL_PART_PROPS_COUNT   1 ///<Count of part properties
     28#define FL_JOINT_PROPS_COUNT  1 ///<Count of joint properties
    2929#define FL_PE_NEURO_DET       "d" ///<Id of details type definition in f0_neuro_paramtab
    3030#define FL_PE_CONN_WEIGHT     "w" ///<Id of weight type definition in f0_neuroconn_paramtab
    3131#define FL_PE_CONN_ATTR       "attr" ///<Id of attractor of neural connection
    3232#define FL_DEFAULT_LENGTH     1.0 ///<Default length of a stick in fL encoding
    33 #define FL_MINIMAL_LENGTH     0.0 ///<Minimal length of a stick in fL encoding
     33#define FL_MINIMAL_LENGTH     0.1 ///<Minimal length of a stick in fL encoding
    3434#define FL_MAXIMAL_LENGTH     2.0 ///<Maximal length of a stick in fL encoding
    3535#define FL_MAXITER           "100.0" ///<Maximal iteration available in fL
     
    404404
    405405        /**
    406          * Developes L-System from given genotype and builds Framsticks Model from it.
    407          * When using_checkpoints is enabled, method generates checkpoint for each
    408          * step defined in timestamp.
    409          * @param neededtime reference to a time value after stopping development (usually it will be equal to time specified in the time field, unless the number of allowed words will be exceeded earlier)
     406         * Develops an L-System from a given genotype and builds a Framsticks Model from it.
     407         * When using_checkpoints is enabled, this method generates a checkpoint for each
     408         * step defined in the timestamp.
     409         * @param neededtime reference to a time value after stopping development (usually it will be equal to the time specified in the time field, unless the number of allowed words will be exceeded earlier)
    410410         * @return final model from a fL genotype
    411411         */
     
    413413
    414414        /**
    415          * Creates new checkpoint for a given model based on current state of genotype.
    416          * @param model reference to model
    417          * @return 0 if developing went successfully, 1 otherwise
     415         * Creates a new checkpoint for a given model based on the current state of the genotype.
     416         * @param model reference to the model
     417         * @return 0 if the development was successfull, 1 otherwise
    418418         */
    419419        int buildModelFromSequence(Model *model);
Note: See TracChangeset for help on using the changeset viewer.