org.apache.commons.math3.genetics
Class DummyListChromosome
java.lang.Object
org.apache.commons.math3.genetics.Chromosome
org.apache.commons.math3.genetics.AbstractListChromosome<Integer>
org.apache.commons.math3.genetics.DummyListChromosome
- All Implemented Interfaces:
- Comparable<Chromosome>, Fitness
public class DummyListChromosome
- extends AbstractListChromosome<Integer>
Implementation of ListChromosome for testing purposes
DummyListChromosome
public DummyListChromosome(Integer[] representation)
DummyListChromosome
public DummyListChromosome(List<Integer> representation)
fitness
public double fitness()
checkValidity
protected void checkValidity(List<Integer> chromosomeRepresentation)
throws InvalidRepresentationException
- Specified by:
checkValidity in class AbstractListChromosome<Integer>
- Throws:
InvalidRepresentationException
newFixedLengthChromosome
public AbstractListChromosome<Integer> newFixedLengthChromosome(List<Integer> chromosomeRepresentation)
- Specified by:
newFixedLengthChromosome in class AbstractListChromosome<Integer>
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.