- Timestamp:
- 02/21/14 11:25:16 (11 years ago)
- Location:
- cpp/frams
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/Makefile-GDK-files
r140 r141 5 5 6 6 GENOCONV_GDK_OBJS=frams/genetics/f1/conv_f1.o frams/genetics/f9/conv_f9.o frams/genetics/fF/conv_fF.o 7 GENMAN_GDK_OBJS=frams/genetics/f9/oper_f9.o frams/genetics/fF/oper_fF.o 7 8 GENMAN_COMMON_OBJS=frams/genetics/genman.o frams/param/mutableparam.o frams/param/mutparamlist.o frams/neuro/geneticneuroparam.o frams/neuro/neurolibparam.o frams/vm/classes/genoobj.o frams/model/autoname.o 9 GENMAN_GDK_OBJS=$(GENMAN_COMMON_OBJS) frams/genetics/f9/oper_f9.o frams/genetics/fF/oper_fF.o 8 10 9 11 GDK_OBJS=frams/util/list.o frams/util/advlist.o frams/param/param.o frams/util/sstring.o frams/util/sstringutils.o frams/util/3d.o frams/vm/classes/3dobject.o frams/model/model.o frams/model/modelparts.o frams/neuro/neurolibrary.o frams/genetics/geno.o frams/genetics/genoconv.o frams/util/extvalue.o frams/vm/classes/collectionobj.o frams/util/hashtable.o common/framsg.o frams/util/callbacks.o frams/param/syntparam.o frams/util/multirange.o frams/util/multimap.o frams/param/paramtabobj.o frams/genetics/defgenoconv.o frams/errmgr/errmanager.o frams/param/paramobj.o frams/genetics/oper_fx.o common/nonstd_math.o frams/errmgr/stderrors.o common/Convert.o frams/util/rndutil.o … … 22 24 GENOCONV_TEST_OBJS= frams/_demos/genoconv_test.o frams/_demos/printconvmap.o frams/errmgr/stdouterr.o frams/virtfile/virtfile.o $(GDK_OBJS) $(GENOCONV_GDK_OBJS) 23 25 24 GENO_TEST_OBJS= frams/_demos/geno_test.o frams/virtfile/virtfile.o $(GDK_OBJS) $(GENOCONV_GDK_OBJS) 26 GENO_TEST_OBJS= frams/_demos/geno_test.o frams/virtfile/virtfile.o $(GDK_OBJS) $(GENOCONV_GDK_OBJS) $(GENMAN_GDK_OBJS) 25 27 26 28 NEURO_TEST_OBJS= frams/_demos/neuro_test.o frams/errmgr/stdouterr.o frams/virtfile/virtfile.o \ … … 36 38 NEURO_LAYOUT_TEST_OBJS= frams/_demos/neuro_layout_test.o frams/virtfile/virtfile.o frams/errmgr/stdouterr.o $(GDK_OBJS) $(GENOCONV_GDK_OBJS) frams/canvas/nn_layout_model.o frams/canvas/nn_simple_layout.o frams/canvas/nn_smart_layout.o 37 39 38 GENOOPER_TEST_OBJS=frams/_demos/genooper_test.o frams/virtfile/virtfile.o frams/errmgr/stdouterr.o $(GDK_OBJS) $(GENOCONV_GDK_OBJS) $(GENMAN_GDK_OBJS) frams/genetics/genman.o frams/param/mutableparam.o frams/param/mutparamlist.o frams/neuro/geneticneuroparam.o frams/neuro/neurolibparam.o frams/vm/classes/genoobj.o frams/model/autoname.o40 GENOOPER_TEST_OBJS=frams/_demos/genooper_test.o frams/virtfile/virtfile.o frams/errmgr/stdouterr.o $(GDK_OBJS) $(GENOCONV_GDK_OBJS) $(GENMAN_GDK_OBJS) -
cpp/frams/_demos/geno_test.cpp
r121 r141 7 7 #include <frams/util/sstringutils.h> 8 8 #include <frams/genetics/defgenoconv.h> 9 #include <frams/genetics/genman.h> 9 10 10 11 /** … … 19 20 int main(int argc,char*argv[]) 20 21 { 22 GenMan gm; 23 Geno::validators.insert(0,&gm); //GenMan is available in this application so let's use the extended validity checking! 24 // Note: insert() makes it the first validator in the list, this is important for formats that rely on genetic operators to perform reasonable validation, 25 // otherwise the default validator (genotype converter) would "win" and most converters are less strict in detecting invalid genotypes. 21 26 if (argc<=1) 22 27 { -
cpp/frams/_demos/genooper_test.cpp
r139 r141 5 5 #include <frams/genetics/genman.h> 6 6 #include <frams/errmgr/stdouterr.h> 7 #include <frams/genetics/defgenoconv.h> 7 8 8 9 StdoutErrorHandler err; 10 DefaultGenoConvManager gcm; //without this object the application would only handle "format 0" genotypes 9 11 10 12 void printGen(Geno &g) … … 24 26 { 25 27 GenMan gm; 28 Geno::validators.insert(0,&gm); //GenMan is available in this application so let's use the extended validity checking! 29 // Note: insert() makes it the first validator in the list, this is important for formats that rely on genetic operators to perform reasonable validation, 30 // otherwise the default validator (genotype converter) would "win" and most converters are less strict in detecting invalid genotypes. 26 31 gm.p_report(NULL, NULL); 27 32
Note: See TracChangeset
for help on using the changeset viewer.