ec.simple
Class SimpleExchanger
- java.lang.Object
-
- ec.Exchanger
-
- ec.simple.SimpleExchanger
-
- All Implemented Interfaces:
- Setup, Singleton, SteadyStateExchangerForm, java.io.Serializable
public final class SimpleExchanger extends Exchanger implements SteadyStateExchangerForm
A SimpleExchanger is a default Exchanger which, well, doesn't do anything. Most applications don't need Exchanger facilities; this simple version will suffice.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.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description SimpleExchanger()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidcloseContacts(EvolutionState state, int result)Doesn't do anything.voidinitializeContacts(EvolutionState state)Doesn't do anything.PopulationpostBreedingExchangePopulation(EvolutionState state)Simply returns state.population.PopulationpreBreedingExchangePopulation(EvolutionState state)Simply returns state.population.voidreinitializeContacts(EvolutionState state)Doesn't do anything.java.lang.StringrunComplete(EvolutionState state)Always returns nullvoidsetup(EvolutionState state, Parameter base)Sets up the object by reading it from the parameters stored in state, built off of the parameter base base.
-
-
-
Method Detail
-
setup
public void setup(EvolutionState state, Parameter base)
Description copied from interface:SetupSets up the object by reading it from the parameters stored in state, built off of the parameter base base. If an ancestor implements this method, be sure to call super.setup(state,base); before you do anything else.
-
initializeContacts
public void initializeContacts(EvolutionState state)
Doesn't do anything.- Overrides:
initializeContactsin classExchanger
-
reinitializeContacts
public void reinitializeContacts(EvolutionState state)
Doesn't do anything.- Overrides:
reinitializeContactsin classExchanger
-
preBreedingExchangePopulation
public Population preBreedingExchangePopulation(EvolutionState state)
Simply returns state.population.- Specified by:
preBreedingExchangePopulationin classExchanger
-
postBreedingExchangePopulation
public Population postBreedingExchangePopulation(EvolutionState state)
Simply returns state.population.- Specified by:
postBreedingExchangePopulationin classExchanger
-
closeContacts
public void closeContacts(EvolutionState state, int result)
Doesn't do anything.- Overrides:
closeContactsin classExchanger
-
runComplete
public java.lang.String runComplete(EvolutionState state)
Always returns null- Specified by:
runCompletein classExchanger
-
-
DMelt 3.0 © DataMelt by jWork.ORG