diff options
Diffstat (limited to 'README')
-rw-r--r-- | README | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -120,6 +120,14 @@ Population tests under way. 13/2 Writing the test for the population copy constructor will require the production of a method which compares two chromosomes. -It might be useful to incorporate this into the program as it is an interesting utility function. + +Therefore, two new methods will be written for Chromosome: compareTo and compareActiveTo. Compare returns true if the two chromosomes +are exclusively equivalent, and compareActive returns true if the active nodes within the two chromosomes are exclusively equivalent. + +Compare methods done, including their "dependency": copyOf method in MutableElement. This method is akin to equals(), with the exception that +it returns false when the compared objects are pointers to a common instance. + +Minor update: Node now passes only the necessary number of arguments into its function; this allows the node to compute its active +connections as it knows which connections the function will use (based on arity). |