|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectec.Exchanger
public abstract class Exchanger
The Exchanger is a singleton object whose job is to (optionally) perform individual exchanges between subpopulations in the run, or exchange individuals with other concurrent evolutionary run processes, using sockets or whatever. Keep in mind that other processes may go down, or be started up from checkpoints, etc.
Constructor Summary | |
---|---|
Exchanger()
|
Method Summary | |
---|---|
abstract void |
closeContacts(EvolutionState state,
int result)
Closes contacts with other processes, if that's what you're doing. |
abstract 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). |
abstract 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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface ec.Setup |
---|
setup |
Constructor Detail |
---|
public Exchanger()
Method Detail |
---|
public abstract void initializeContacts(EvolutionState state)
public abstract void reinitializeContacts(EvolutionState state)
public abstract Population preBreedingExchangePopulation(EvolutionState state)
public abstract Population postBreedingExchangePopulation(EvolutionState state)
public abstract java.lang.String runComplete(EvolutionState state)
public abstract void closeContacts(EvolutionState state, int result)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |