| Access | Constructor and Description |
|---|---|
| public | BinaryChromosome(List<Integer>
list of {0,1} values representing the chromosome representation)Constructor. |
| public | BinaryChromosome(Integer[]
array of {0,1} values representing the chromosome representation)Constructor. |
| Modifier and Type | Method and Description |
|---|---|
| protected void | checkValidity(List<Integer>
representation of the chromosome chromosomeRepresentation)Implements abstract org. Asserts that |
| protected boolean | isSame(Chromosome
chromosome to compare another)Overrides org. Returns |
| public static List | Returns: a random binary array of lengthlengthlength of the array length)Returns a representation of a random binary array of length |
| BinaryChromosome | back to summary |
|---|---|
| public BinaryChromosome(List<Integer> representation) throws InvalidRepresentationException Constructor.
| |
| BinaryChromosome | back to summary |
|---|---|
| public BinaryChromosome(Integer[] representation) throws InvalidRepresentationException Constructor.
| |
| checkValidity | back to summary |
|---|---|
| protected void checkValidity(List<Integer> chromosomeRepresentation) throws InvalidRepresentationException Implements abstract org. Doc from org. Asserts that
| |
| isSame | back to summary |
|---|---|
| protected boolean isSame(Chromosome another) Overrides org. Doc from org. Returns
| |
| randomBinaryRepresentation | back to summary |
|---|---|
| public static List Returns a representation of a random binary array of length | |