Package | Description |
---|---|
jcgp.backend.population |
Modifier and Type | Class and Description |
---|---|
class |
Node
Nodes make up the main part of the chromosome,
where the actual functions are evolved.
|
class |
Output
This is a chromosome output.
|
Modifier and Type | Method and Description |
---|---|
MutableElement |
Chromosome.getRandomMutableElement()
This method is useful for mutating chromosomes.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Node.copyOf(MutableElement element) |
boolean |
Output.copyOf(MutableElement m) |
boolean |
MutableElement.copyOf(MutableElement element)
Asserts if the specified element is a copy of the elements
this is called on.
This method returns true if and only if: the elements being compared are not the same instance; the connections of the compared elements are not the same instance; the elements have the same function (in the case of Node); the grid position of the elements themselves are the same; the grid position of all equivalent connections are the same; The relationship computed by this method is: symmetric: a.copyOf(b) == b.copyOf(a); not reflexive: a.copyOf(a) returns false; 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. |