Ignore:
Timestamp:
10/31/09 00:47:01 (15 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.h

    r26 r33  
    217217        map<string, PrimitiveProduction*> primitiveProductions;
    218218        map<string, ParamProduction*> paramProductions;
    219        
     219
    220220        void removeEmptySubproductionsAndProductions();
    221221};
     222
     223
     224
     225
    222226
    223227/// Converter between f8 and f1 format
    224228class GenoConv_F8ToF1 : public GenoConverter {
    225229public:
    226         /// Default constructor
    227         GenoConv_F8ToF1() {
    228                 name = "f8 to f1 converter";
    229                 in_format = '8';
    230                 out_format = '1';
    231                 mapsupport = 0;
    232                 info = "ble";
    233                 maxF1Length = 500;
    234         }
    235        
    236         /// Constructor with parameter
    237         /// @param f1LengthLimit If resulting f1 genotype is longer than f1LengthLimit, converter aborts its job
    238         GenoConv_F8ToF1(int f1LengthLimit) {
    239                 name = "f8 to f1 converter";
    240                 in_format = '8';
    241                 out_format = '1';
    242                 mapsupport = 0;
    243                 info = "ble";
    244                 maxF1Length = f1LengthLimit;
    245         }
    246        
     230        Param par;
     231
     232        GenoConv_F8ToF1();
    247233        ~GenoConv_F8ToF1() {}
    248        
     234
    249235        SString convert(SString &in, MultiMap *map);
    250        
     236
    251237        /// check syntax of given f8 genotype
    252238        /// @param geno f8 genotype to be checked
    253239        bool checkSyntax(const char *geno);
    254        
     240
    255241        /// returns names of productions in a given genotype
    256242        /// @param in f8 genotype
    257243        vector<SString> readProductionNames(const SString &in);
    258244        //Lsystem* createLsystem(const SString &in);
    259        
     245
    260246        /// creates Lsystem object based on input genotype
    261247        /// @param f8 genotype
    262248        Lsystem* createLsystem(SString in);
     249
     250        int maxF1Length;
    263251protected:
    264252        bool parseInput(const char* src, Lsystem* lsys);
    265         int maxF1Length;
    266253};
    267254
Note: See TracChangeset for help on using the changeset viewer.