org.apache.commons.math.genetics
Class DummyBinaryChromosome

java.lang.Object
  extended by org.apache.commons.math.genetics.Chromosome
      extended by org.apache.commons.math.genetics.AbstractListChromosome<Integer>
          extended by org.apache.commons.math.genetics.BinaryChromosome
              extended by org.apache.commons.math.genetics.DummyBinaryChromosome
All Implemented Interfaces:
Comparable<org.apache.commons.math.genetics.Chromosome>, org.apache.commons.math.genetics.Fitness

public class DummyBinaryChromosome
extends org.apache.commons.math.genetics.BinaryChromosome

Implementation of BinaryChromosome for testing purposes


Constructor Summary
DummyBinaryChromosome(Integer[] representation)
           
DummyBinaryChromosome(List<Integer> representation)
           
 
Method Summary
 double fitness()
           
 org.apache.commons.math.genetics.AbstractListChromosome<Integer> newFixedLengthChromosome(List<Integer> representation)
           
 
Methods inherited from class org.apache.commons.math.genetics.BinaryChromosome
checkValidity, isSame, randomBinaryRepresentation
 
Methods inherited from class org.apache.commons.math.genetics.AbstractListChromosome
getLength, getRepresentation, toString
 
Methods inherited from class org.apache.commons.math.genetics.Chromosome
compareTo, findSameChromosome, getFitness, searchForFitnessUpdate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DummyBinaryChromosome

public DummyBinaryChromosome(List<Integer> representation)

DummyBinaryChromosome

public DummyBinaryChromosome(Integer[] representation)
Method Detail

newFixedLengthChromosome

public org.apache.commons.math.genetics.AbstractListChromosome<Integer> newFixedLengthChromosome(List<Integer> representation)
Specified by:
newFixedLengthChromosome in class org.apache.commons.math.genetics.AbstractListChromosome<Integer>

fitness

public double fitness()


Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.