Ignore:
Timestamp:
10/31/09 00:47:01 (16 years ago)
Author:
Maciej Komosinski
Message:

maximal f1 genotype length published as the f8->f1 converter parameter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/f8-to-f1/conv_f8tof1.cpp

    r32 r33  
    172172        }
    173173        if (neurons) {
    174                 for (vector<NeuronProduction*>::iterator iter = this->neuronProductions.begin(); 
     174                for (vector<NeuronProduction*>::iterator iter = this->neuronProductions.begin();
    175175                         iter != this->neuronProductions.end(); iter++) {
    176176                        actions.push_back(*iter);
     
    283283        string sname = sstringToString(name);
    284284        if (position == -1) {
    285                 this->parameters.push_back(sname); 
     285                this->parameters.push_back(sname);
    286286                this->paramValues[sname] = value;
    287287        } else {
     
    516516}
    517517
     518
     519
     520
     521
     522
     523
     524
     525
     526#define FIELDSTRUCT GenoConv_F8ToF1
     527
     528static ParamEntry GENOCONVf8param_tab[]=
     529{
     530{"Genetics: f8: limits",1,1,},
     531{"f8conv_maxlen", 0, 0, "Maximal genotype length", "d 10 10000 500", FIELD(maxF1Length),"Maximal length of the resulting f1 genotype, in characters. If the f8 L-system produces longer f1 genotype, it will be considered incorrect.", },
     532{0,},
     533};
     534
     535#undef FIELDSTRUCT
     536
     537GenoConv_F8ToF1::GenoConv_F8ToF1()
     538{
     539        name = "f8 converter";
     540        in_format = '8';
     541        out_format = '1';
     542        mapsupport = 0;
     543        info = "Generative encoding";
     544        maxF1Length = 500;
     545        par.setParamTab(GENOCONVf8param_tab);
     546        par.select(this);
     547        par.setDefault();
     548}
     549
     550
    518551vector<SString> GenoConv_F8ToF1::readProductionNames(const SString &in) {
    519552        vector<SString> names;
     
    764797}
    765798#undef CONV_DEBUG
     799
Note: See TracChangeset for help on using the changeset viewer.