Changeset 473 for cpp/frams/_demos/genotypeloader.h
- Timestamp:
- 02/18/16 02:32:57 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/_demos/genotypeloader.h
r286 r473 9 9 #include <frams/param/multiparamload.h> 10 10 11 /** Helper class, mostly useful with MultiParamLoader12 or its specialized version: MiniGenotypeLoader.13 MiniGenotype stores 3 essential fields of the Genotype (name, gene and info)14 */15 class MiniGenotype16 {17 public:18 SString name,genotype,info;19 void clear() {name=""; genotype=""; info="";}20 };21 22 23 11 /** Defines the association between "org:" object (found in genotype files) 24 12 and the MiniGenotype fields. MiniGenotypeLoader uses this definition … … 27 15 extern ParamEntry minigenotype_paramtab[]; 28 16 17 /** Helper class, mostly useful with MultiParamLoader 18 or its specialized version: MiniGenotypeLoader. 19 MiniGenotype stores the subset of Genotype fields (the ones normally saved in .gen files) 20 */ 21 class MiniGenotype 22 { 23 public: 24 SString name,genotype,info,uid; 25 double energy0,lifespan,velocity,distance,vertvel,vertpos; 26 paInt numparts,numjoints,numneurons,numconnections,ordnumber,generation,instances,is_valid; 27 ExtValue user1,user2,user3; 28 void clear() {Param p(minigenotype_paramtab,this); p.setDefault();} 29 }; 29 30 30 31 /** In most simple cases this is the class you would use to load a series of genotypes from
Note: See TracChangeset
for help on using the changeset viewer.