net.sourceforge.jabm.evolution
Class MutationBreeder
java.lang.Object
net.sourceforge.jabm.evolution.MutationBreeder
- All Implemented Interfaces:
- Breeder
public class MutationBreeder
- extends java.lang.Object
- implements Breeder
-
-
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mutationProbability
protected double mutationProbability
prng
protected cern.jet.random.engine.RandomEngine prng
mutationOperator
protected MutationOperator mutationOperator
MutationBreeder
public MutationBreeder()
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)