diff options
author | Eduardo Pedroni <ep625@york.ac.uk> | 2014-03-23 18:05:13 +0000 |
---|---|---|
committer | Eduardo Pedroni <ep625@york.ac.uk> | 2014-03-23 18:05:13 +0000 |
commit | 0c288cc1952809294c8d70d86b9f41b04878ac2e (patch) | |
tree | ef9671b711fe665a3156594663c083595861a4e6 /src/jcgp/population/MutableElement.java | |
parent | d3527a63e12c0e5288f1e7d2e2dc18e61d16b760 (diff) |
Majorly refactored, node grid is fully implemented. About to attempt active path locking.
Diffstat (limited to 'src/jcgp/population/MutableElement.java')
-rw-r--r-- | src/jcgp/population/MutableElement.java | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/jcgp/population/MutableElement.java b/src/jcgp/population/MutableElement.java index 114a4ab..12f6bd1 100644 --- a/src/jcgp/population/MutableElement.java +++ b/src/jcgp/population/MutableElement.java @@ -2,8 +2,16 @@ package jcgp.population; public interface MutableElement { - public void setConnection(Connection newConnection); - + /** + * This method sets the indexed connection to the specified new connection. + * Implementing classes may choose to ignore the given index (such as in the + * case of outputs, which only have one connection). + * + * @param index + * @param newConnection + */ + public void setConnection(int index, Connection newConnection); + /** * This method returns true if and only if:</br> * - the elements being compared are not the same instance;</br> @@ -15,7 +23,8 @@ public interface MutableElement { * The relationship computed by this method is:</br> * - symmetric: a.copyOf(b) == b.copyOf(a);</br> * - not reflexive: a.copyOf(a) returns false;</br> - * - not transitive: if a.copyOf(b) is true and b.copyOf(c) is true, a.copyOf(c) is not necessarily true;</br> + * - not transitive: if a.copyOf(b) is true and b.copyOf(c) is true, a.copyOf(c) is + * not necessarily true since it is possible that a == c.</br> * * @param m * @return |