|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfunction.RouletteReproductionFunctionModel
public class RouletteReproductionFunctionModel
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 |
---|
public RouletteReproductionFunctionModel()
public RouletteReproductionFunctionModel(Population oldPopulation)
oldPopulation
- Reference to populationMethod Detail |
---|
public Population getOldPopulation()
getOldPopulation
in interface ReproductionFunctionModel
Population
public Population getNewPopulation()
getNewPopulation
in interface ReproductionFunctionModel
Population
public void setOldPopulation(Population oldPopulation)
setOldPopulation
in interface ReproductionFunctionModel
oldPopulation
- Reference to populationpublic void generateNewPopulation()
generateNewPopulation
in interface ReproductionFunctionModel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |