function
Class RouletteReproductionFunctionModel

java.lang.Object
  extended by function.RouletteReproductionFunctionModel
All Implemented Interfaces:
ReproductionFunctionModel

public class RouletteReproductionFunctionModel
extends java.lang.Object
implements ReproductionFunctionModel

Rulette Reproduction function


Constructor Summary
RouletteReproductionFunctionModel()
          Creates a new instance of RouletteReproductionFunction
RouletteReproductionFunctionModel(Population oldPopulation)
          Creates a new instance of RouletteReproductionFunction for specified population
 
Method Summary
 void generateNewPopulation()
          Starts Reproduction according to roulette function
 Population getNewPopulation()
          Return population after reproduction
 Population getOldPopulation()
          Return population before reproduction
 void setOldPopulation(Population oldPopulation)
          Set Population which will be reproduct
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RouletteReproductionFunctionModel

public RouletteReproductionFunctionModel()
Creates a new instance of RouletteReproductionFunction


RouletteReproductionFunctionModel

public RouletteReproductionFunctionModel(Population oldPopulation)
Creates a new instance of RouletteReproductionFunction for specified population

Parameters:
oldPopulation - Reference to population
Method Detail

getOldPopulation

public Population getOldPopulation()
Return population before reproduction

Specified by:
getOldPopulation in interface ReproductionFunctionModel
Returns:
reference to population
See Also:
Population

getNewPopulation

public Population getNewPopulation()
Return population after reproduction

Specified by:
getNewPopulation in interface ReproductionFunctionModel
Returns:
Reference to population
See Also:
Population

setOldPopulation

public void setOldPopulation(Population oldPopulation)
Set Population which will be reproduct

Specified by:
setOldPopulation in interface ReproductionFunctionModel
Parameters:
oldPopulation - Reference to population

generateNewPopulation

public void generateNewPopulation()
Starts Reproduction according to roulette function

Specified by:
generateNewPopulation in interface ReproductionFunctionModel