net.sf.amiba.evolve.gene
Class IndividualFactory<T>

Object
  extended by IndividualFactory<T>

public class IndividualFactory<T>
extends Object

The place to produce individuals according to the config options. The config options will be treated as 'initial' with the freedom to change them programmatically

Author:
juber patel

Constructor Summary
IndividualFactory(Node genome, AmibaFactory<T> factory)
           
 
Method Summary
 List<Character> getAlphabet()
           
 String getFitnessFunction()
           
 int getGeneHeadLength()
           
 Character getLinkingFunction()
           
 int getNumberOfGenes()
           
 RandomData getRandomData()
           
 Individual<T> produce()
           
 List<Individual<T>> produce(int number)
           
 void setFitnessFunction(String fitnessFunction)
           
 void setGeneHeadLength(int geneHeadLength)
           
 void setLinkingFunction(Character linkingFunction)
           
 void setNumberOfGenes(int numberOfGenes)
           
 void setRandomData(RandomData randomData)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndividualFactory

public IndividualFactory(Node genome,
                         AmibaFactory<T> factory)
                  throws AmibaException
Throws:
AmibaException
Method Detail

produce

public Individual<T> produce()

produce

public List<Individual<T>> produce(int number)

getRandomData

public RandomData getRandomData()

setRandomData

public void setRandomData(RandomData randomData)

getNumberOfGenes

public int getNumberOfGenes()

setNumberOfGenes

public void setNumberOfGenes(int numberOfGenes)

getLinkingFunction

public Character getLinkingFunction()

setLinkingFunction

public void setLinkingFunction(Character linkingFunction)

getFitnessFunction

public String getFitnessFunction()

setFitnessFunction

public void setFitnessFunction(String fitnessFunction)

getGeneHeadLength

public int getGeneHeadLength()

setGeneHeadLength

public void setGeneHeadLength(int geneHeadLength)

getAlphabet

public List<Character> getAlphabet()