ec
Class Exchanger

java.lang.Object
  |
  +--ec.Exchanger
Direct Known Subclasses:
SimpleExchanger

public abstract class Exchanger
extends java.lang.Object
implements Singleton

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.

See Also:
Serialized Form

Constructor Summary
Exchanger()
           
 
Method Summary
abstract  void closeContacts(EvolutionState state)
          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.
abstract  Population preBreedingExchangePopulation(EvolutionState state)
          Performs exchanges after the population has been evaluated but before it has been bred.
abstract  void reinitializeContacts(EvolutionState state)
          Initializes contacts with other processes, if that's what you're doing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Exchanger

public Exchanger()
Method Detail

initializeContacts

public abstract void initializeContacts(EvolutionState state)
Initializes contacts with other processes, if that's what you're doing. Called at the beginning of an evolutionary run, before a population is set up.

reinitializeContacts

public abstract void reinitializeContacts(EvolutionState state)
Initializes contacts with other processes, if that's what you're doing. Called after restarting from a checkpoint.

preBreedingExchangePopulation

public abstract Population preBreedingExchangePopulation(EvolutionState state)
Performs exchanges after the population has been evaluated but before it has been bred.

postBreedingExchangePopulation

public abstract Population postBreedingExchangePopulation(EvolutionState state)
Performs exchanges after the population has been bred but before it has been evaluated.

closeContacts

public abstract void closeContacts(EvolutionState state)
Closes contacts with other processes, if that's what you're doing. Called at the end of an evolutionary run.