Changeset 513 for cpp/frams/genetics/f4


Ignore:
Timestamp:
05/23/16 13:52:53 (8 years ago)
Author:
Maciej Komosinski
Message:

checkValidity() and validate() are now aware of genotype name

Location:
cpp/frams/genetics/f4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/genetics/f4/oper_f4.cpp

    r375 r513  
    8686
    8787
    88 int Geno_f4::validate(char *& geno)
     88int Geno_f4::validate(char *& geno, const char *genoname)
    8989{
    9090        // convert geno to tree, then try to validate 20 times
     
    100100
    101101
    102 int Geno_f4::checkValidity(const char * geno)
     102int Geno_f4::checkValidity(const char * geno, const char *genoname)
    103103{
    104104        f4_node root;
  • cpp/frams/genetics/f4/oper_f4.h

    r286 r513  
    3333public:
    3434        Geno_f4();
    35         int validate(char *&);
    36         int checkValidity(const char *);
     35        int checkValidity(const char *, const char *genoname);
     36        int validate(char *&, const char *genoname);
    3737        int mutate(char *& g, float & chg, int &method);
    3838        int crossOver(char *&g1, char *&g2, float& chg1, float& chg2);
Note: See TracChangeset for help on using the changeset viewer.