public abstract class Exchanger extends java.lang.Object implements Singleton
Constructor and Description |
---|
Exchanger() |
Modifier and Type | Method and Description |
---|---|
void |
closeContacts(EvolutionState state,
int result)
Closes contacts with other processes, if that's what you're doing.
|
void |
initializeContacts(EvolutionState state)
Initializes contacts with other processes, if that's what you're doing.
|
abstract Population |
postBreedingExchangePopulation(EvolutionState state)
Performs exchanges after the population has been bred but before it has been evaluated,
once every generation (or pseudogeneration).
|
abstract Population |
preBreedingExchangePopulation(EvolutionState state)
Performs exchanges after the population has been evaluated but before it has been bred,
once every generation (or pseudogeneration).
|
protected Individual |
process(EvolutionState state,
int thread,
java.lang.String island,
int subpop,
Individual ind)
Typically called by preBreedingExchangePopulation prior to migrating an individual.
|
void |
reinitializeContacts(EvolutionState state)
Initializes contacts with other processes, if that's what you're doing.
|
abstract java.lang.String |
runComplete(EvolutionState state)
Called after preBreedingExchangePopulation(...) to evaluate whether or not
the exchanger wishes the run to shut down (with ec.EvolutionState.R_FAILURE) --
returns a String (which will be printed out as a message) if the exchanger
wants to shut down, else returns null if the exchanger does NOT want to shut down.
|
public void initializeContacts(EvolutionState state)
public void reinitializeContacts(EvolutionState state)
public abstract Population preBreedingExchangePopulation(EvolutionState state)
public abstract Population postBreedingExchangePopulation(EvolutionState state)
protected Individual process(EvolutionState state, int thread, java.lang.String island, int subpop, Individual ind)
public abstract java.lang.String runComplete(EvolutionState state)
public void closeContacts(EvolutionState state, int result)