Ignore:
Timestamp:
03/15/18 22:55:05 (6 years ago)
Author:
Maciej Komosinski
Message:
  • added support for new API for neuron types and their properties
  • added support for checkpoints
File:
1 edited

Legend:

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

    r736 r760  
    55// Copyright (C) 1999,2000  Adam Rotaru-Varga (adam_rotaru@yahoo.com), GNU LGPL
    66// Copyright (C) since 2001 Maciej Komosinski
     7// 2018, Grzegorz Latosinski, added support for new API for neuron types and their properties
    78
    89#ifndef _CONV_F4_H_
     
    1516
    1617
    17 // The f4->f0 converter
     18/**
     19 * Genotype converter from f4 to f0.
     20 */
    1821class GenoConv_f40 : public GenoConverter
    1922{
    2023public:
    2124        GenoConv_f40();
     25
     26        /**
     27         * Performs conversion from f4 to f0. Creates f4_Model from f4 genotype
     28         * and converts the Model to the f0 genotype string.
     29         * @param in f4 genotype
     30         * @param map mapping from f4 to Model
     31         * @param using_checkpoints determines if checkpoints will be available
     32         * @return generated f0 genotype
     33         */
    2234        SString convert(SString &in, MultiMap * map, bool using_checkpoints);
    2335};
    2436
    2537
    26 // a test-only f4->f1 converter, approximates only
     38/**
     39 * Genotype converter from f4 to f1. This is only experimental conversion and
     40 * returns an approximate f1 genotype.
     41 */
    2742class GenoConv_F41_TestOnly : public GenoConverter
    2843{
    2944public:
     45        /**
     46         * Initializes converter.
     47         */
    3048        GenoConv_F41_TestOnly();
     49
     50        /**
     51         * Performs conversion from f4 to f1. Creates f4_Model from f4 genotype
     52         * and converts the Model to the f1 genotype string. The final f1 genotype is
     53         * an approximation.
     54         * @param in f4 genotype
     55         * @param map mapping from f4 to Model
     56         * @param using_checkpoints determines if checkpoints will be available
     57         * @return generated approximate f1 genotype
     58         */
    3159        SString convert(SString &in, MultiMap * map, bool using_checkpoints);
    3260};
    3361
    3462
    35 // A Model descendant, which support build from an f4 genotype.
     63/**
     64 * A Model descendant which supports building from an f4 genotype.
     65 */
    3666class f4_Model : public Model
    3767{
     
    3969        f4_Model();
    4070        ~f4_Model();
    41         int      buildFromF4(SString &geno);
     71
     72        /**
     73         * Builds a Model from the f4 genotype string.
     74         * @param geno genotype string
     75         * @return GENOPER_OK if a Model could be created, error code otherwise
     76         */
     77        int      buildFromF4(SString &geno, bool using_checkpoints);
     78        /**
     79         * Outputs a Model in f1 format. It is an approximation of the input f4 genotype.
     80         * @param out the reference that stores the conversion result
     81         */
    4282        void     toF1Geno(SString &out);       // output to f1 format, approximation
    4383private:
Note: See TracChangeset for help on using the changeset viewer.