public interface IndividualFactory
IndividualFactory is a creator for Individuals.| Modifier and Type | Method and Description |
|---|---|
void |
addIndividualStateListener(IndividualStateListener listener)
Adds an
IndividualStateListener to each Individual that
is created by this class. |
Individual |
create()
Creates a new
Individual. |
Individual |
create(Genotype genotype)
Creates a new
Individual with a specified Genotype. |
void |
removeIndividualStateListener(IndividualStateListener listener)
Removes an
IndividualStateListener that is invoked if the state
of any Individual changes. |
Individual create()
Individual.Individual create(Genotype genotype)
Individual with a specified Genotype.genotype - the genotype of the individualvoid addIndividualStateListener(IndividualStateListener listener)
IndividualStateListener to each Individual that
is created by this class. This listener is invoked if the state of the
Individual changes.listener - the listener that is invoked if the state of any individual
changesremoveIndividualStateListener(org.opt4j.core.IndividualStateListener)void removeIndividualStateListener(IndividualStateListener listener)
IndividualStateListener that is invoked if the state
of any Individual changes. All Individuals created after
this method call by this IndividualFactory do no longer use the
listener.listener - the listener that is invoked if the state of any individual
changesaddIndividualStateListener(org.opt4j.core.IndividualStateListener)