org.apache.commons.math.genetics
Class DummyRandomKey

java.lang.Object
  extended by org.apache.commons.math.genetics.Chromosome
      extended by org.apache.commons.math.genetics.AbstractListChromosome<Double>
          extended by org.apache.commons.math.genetics.RandomKey<String>
              extended by org.apache.commons.math.genetics.DummyRandomKey
All Implemented Interfaces:
Comparable<org.apache.commons.math.genetics.Chromosome>, org.apache.commons.math.genetics.Fitness, org.apache.commons.math.genetics.PermutationChromosome<String>

public class DummyRandomKey
extends org.apache.commons.math.genetics.RandomKey<String>

Implementation of RandomKey for testing purposes


Constructor Summary
DummyRandomKey(Double[] representation)
           
DummyRandomKey(List<Double> representation)
           
 
Method Summary
 double fitness()
           
 org.apache.commons.math.genetics.AbstractListChromosome<Double> newFixedLengthChromosome(List<Double> representation)
           
 
Methods inherited from class org.apache.commons.math.genetics.RandomKey
checkValidity, comparatorPermutation, decode, identityPermutation, inducedPermutation, isSame, randomPermutation, toString
 
Methods inherited from class org.apache.commons.math.genetics.AbstractListChromosome
getLength, getRepresentation
 
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

DummyRandomKey

public DummyRandomKey(List<Double> representation)

DummyRandomKey

public DummyRandomKey(Double[] representation)
Method Detail

newFixedLengthChromosome

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

fitness

public double fitness()


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