Changeset 760 for cpp/frams/genetics/f4/conv_f4.h
- Timestamp:
- 03/15/18 22:55:05 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/genetics/f4/conv_f4.h
r736 r760 5 5 // Copyright (C) 1999,2000 Adam Rotaru-Varga (adam_rotaru@yahoo.com), GNU LGPL 6 6 // Copyright (C) since 2001 Maciej Komosinski 7 // 2018, Grzegorz Latosinski, added support for new API for neuron types and their properties 7 8 8 9 #ifndef _CONV_F4_H_ … … 15 16 16 17 17 // The f4->f0 converter 18 /** 19 * Genotype converter from f4 to f0. 20 */ 18 21 class GenoConv_f40 : public GenoConverter 19 22 { 20 23 public: 21 24 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 */ 22 34 SString convert(SString &in, MultiMap * map, bool using_checkpoints); 23 35 }; 24 36 25 37 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 */ 27 42 class GenoConv_F41_TestOnly : public GenoConverter 28 43 { 29 44 public: 45 /** 46 * Initializes converter. 47 */ 30 48 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 */ 31 59 SString convert(SString &in, MultiMap * map, bool using_checkpoints); 32 60 }; 33 61 34 62 35 // A Model descendant, which support build from an f4 genotype. 63 /** 64 * A Model descendant which supports building from an f4 genotype. 65 */ 36 66 class f4_Model : public Model 37 67 { … … 39 69 f4_Model(); 40 70 ~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 */ 42 82 void toF1Geno(SString &out); // output to f1 format, approximation 43 83 private:
Note: See TracChangeset
for help on using the changeset viewer.