net.sourceforge.jabm.evolution
Class MutationBreeder

java.lang.Object
  extended by net.sourceforge.jabm.evolution.MutationBreeder
All Implemented Interfaces:
Breeder

public class MutationBreeder
extends java.lang.Object
implements Breeder

 

Field Summary
protected  MutationOperator mutationOperator
           
protected  double mutationProbability
           
protected  cern.jet.random.engine.RandomEngine prng
           
 
Constructor Summary
MutationBreeder()
           
 
Method Summary
 MutationOperator getMutationOperator()
           
 double getMutationProbability()
           
 cern.jet.random.engine.RandomEngine getPrng()
           
 AgentList reproduce(AgentList currentGeneration)
          Compute the next generation of agents.
 void setMutationOperator(MutationOperator mutationOperator)
           
 void setMutationProbability(double mutationProbability)
           
 void setPrng(cern.jet.random.engine.RandomEngine prng)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mutationProbability

protected double mutationProbability

prng

protected cern.jet.random.engine.RandomEngine prng

mutationOperator

protected MutationOperator mutationOperator
Constructor Detail

MutationBreeder

public MutationBreeder()
Method Detail

reproduce

public AgentList reproduce(AgentList currentGeneration)
Description copied from interface: Breeder
Compute the next generation of agents.

Specified by:
reproduce in interface Breeder
Parameters:
currentGeneration - The agents comprising the current generation.
Returns:
An AgentList representing the next generation after reproduction has occurred.

getMutationProbability

public double getMutationProbability()

setMutationProbability

public void setMutationProbability(double mutationProbability)

getPrng

public cern.jet.random.engine.RandomEngine getPrng()

setPrng

public void setPrng(cern.jet.random.engine.RandomEngine prng)

getMutationOperator

public MutationOperator getMutationOperator()

setMutationOperator

public void setMutationOperator(MutationOperator mutationOperator)