From 6419b69faeb4736db1ccb50cfa5a030f9aa818aa Mon Sep 17 00:00:00 2001 From: Eduardo Pedroni Date: Thu, 13 Feb 2014 22:41:26 +0000 Subject: Added methods in Chromosome to compare active and all nodes. Associated tests also written. --- README | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'README') diff --git a/README b/README index bf92331..f674278 100644 --- a/README +++ b/README @@ -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). -- cgit v1.2.3