[Avida-cvs] [avida-svn] r967 - development/source/main

brysonda at myxo.css.msu.edu brysonda at myxo.css.msu.edu
Sat Sep 16 19:56:04 PDT 2006


Author: brysonda
Date: 2006-09-16 22:56:04 -0400 (Sat, 16 Sep 2006)
New Revision: 967

Modified:
   development/source/main/cTaskLib.cc
Log:
Doh!  accidental enter press

<continued from previous commit>
Changed matchstr task to use cArgContainer, as it was using the info string.  To use matchstr, the argument name and separator must now be supplied prior to the string. For example:

REACTION MATCH matchstr=10101010  ...

Would become:

REACTION MATCH matchstr=string:10101010 ...


Added new task, match_number.   This task allows for matching of an arbitrary (argument supplied) integer.  Two additional arguments allow for the specification a range around the number within which an exponential decay in task quality occurs.  The arguments are target (int, the target number), halflife (double, the half live of the quality decay), threshold (int, the maximum integer difference allowed). 
 

Modified: development/source/main/cTaskLib.cc
===================================================================
--- development/source/main/cTaskLib.cc	2006-09-17 02:47:45 UTC (rev 966)
+++ development/source/main/cTaskLib.cc	2006-09-17 02:56:04 UTC (rev 967)
@@ -1797,6 +1797,7 @@
 	return bonus;
 }
 
+
 double cTaskLib::Task_MatchNumber(cTaskContext* ctx) const
 {
   double quality = 0.0;




More information about the Avida-cvs mailing list