From 434010d221a21f24d1b19573f8d78719383ccb09 Mon Sep 17 00:00:00 2001 From: evomarc Date: Tue, 27 Mar 2001 16:27:15 +0000 Subject: [PATCH] Modified the names in eoPopStat! Hoever, the way it's done now, the string gets TRUNCATED - and I dont' know why --- eo/src/utils/eoPopStat.h | 8 ++++---- eo/tutorial/Lesson3/exercise3.1.cpp | 5 +++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/eo/src/utils/eoPopStat.h b/eo/src/utils/eoPopStat.h index 9c7dc076..23708e17 100644 --- a/eo/src/utils/eoPopStat.h +++ b/eo/src/utils/eoPopStat.h @@ -48,13 +48,13 @@ Note: this Stat should probably be used only within eoStdOutMonitor, and not inside an eoFileMonitor, as the eoState construct will work much better there. */ template -class eoPopString : public eoStat +class eoPopStat : public eoStat { public : /** default Ctor, void string by default, as it appears on the description line once at beginning of evolution. and is meaningless there */ - eoPopString(string _desc ="") : eoStat("", _desc) {} + eoPopStat(string _desc ="") : eoStat("", _desc) {} /** Fills the value() of the eoParam with the dump of the population. Adds a \n before so it does not get mixed up with the rest of the stats @@ -86,13 +86,13 @@ Note: this Stat should probably be used only within eoStdOutMonitor, and not inside an eoFileMonitor, as the eoState construct will work much better there. */ template -class eoSortedPopString : public eoSortedStat +class eoSortedPopStat : public eoSortedStat { public : /** default Ctor, void string by default, as it appears on the description line once at beginning of evolution. and is meaningless there */ - eoSortedPopString(string _desc ="") : eoSortedStat("", _desc) {} + eoSortedPopStat(string _desc ="") : eoSortedStat("", _desc) {} /** Fills the value() of the eoParam with the dump of the population. Adds a \n before so it does not get mixed up with the rest of the stats diff --git a/eo/tutorial/Lesson3/exercise3.1.cpp b/eo/tutorial/Lesson3/exercise3.1.cpp index 3079ed12..c4c94030 100644 --- a/eo/tutorial/Lesson3/exercise3.1.cpp +++ b/eo/tutorial/Lesson3/exercise3.1.cpp @@ -292,8 +292,9 @@ void main_function(int argc, char **argv) monitor.add(SecondStat); monitor.add(fdcStat); - // test de eoPopStat - eoPopString popStat("Dump of whole population"); + // test de eoPopStat and/or eoSortedPopStat + // eoSortedPopStat popStat("Dump of whole population"); + eoPopStat popStat("Dump of whole population"); checkpoint.add(popStat); monitor.add(popStat);