public final class SimpleExchanger extends Exchanger implements SteadyStateExchangerForm
The SimpleExchanger implements the SteadyStateExchangerForm, mostly because it does nothing with individuals. For this reason, it is final; implement your own Exchanger if you need to do something more advanced.
| Constructor and Description |
|---|
SimpleExchanger() |
| Modifier and Type | Method and Description |
|---|---|
void |
closeContacts(EvolutionState state,
int result)
Doesn't do anything.
|
void |
initializeContacts(EvolutionState state)
Doesn't do anything.
|
Population |
postBreedingExchangePopulation(EvolutionState state)
Simply returns state.population.
|
Population |
preBreedingExchangePopulation(EvolutionState state)
Simply returns state.population.
|
void |
reinitializeContacts(EvolutionState state)
Doesn't do anything.
|
String |
runComplete(EvolutionState state)
Always returns null
|
void |
setup(EvolutionState state,
Parameter base)
Sets up the object by reading it from the parameters stored
in state, built off of the parameter base base.
|
public void setup(EvolutionState state, Parameter base)
Setuppublic void initializeContacts(EvolutionState state)
initializeContacts in class Exchangerpublic void reinitializeContacts(EvolutionState state)
reinitializeContacts in class Exchangerpublic Population preBreedingExchangePopulation(EvolutionState state)
preBreedingExchangePopulation in class Exchangerpublic Population postBreedingExchangePopulation(EvolutionState state)
postBreedingExchangePopulation in class Exchangerpublic void closeContacts(EvolutionState state, int result)
closeContacts in class Exchangerpublic String runComplete(EvolutionState state)
runComplete in class ExchangerCopyright © 2014 Evolutionary Computation Laboratory at George Mason University. All rights reserved.