org.vizzini.ai.geneticalgorithm
Interface ISelector

All Known Implementing Classes:
AbstractSelector, FitnessProportionalSelector, RandomSelector

public interface ISelector

Defines methods required by a chromosome selector in a genetic algorithm.

Since:
v0.3
Version:
v0.3
Author:
Jeffrey M. Thompson

Method Summary
 int getLastIndex()
          Return the last index selected, or -1 if none.
 void init(IPopulation population)
          Initialize this selector from the given population.
 IChromosome selectNext()
          Select the next chromosome from the population.
 

Method Detail

getLastIndex

int getLastIndex()
Return the last index selected, or -1 if none.

Since:
v0.3

init

void init(IPopulation population)
Initialize this selector from the given population.

Since:
v0.3

selectNext

IChromosome selectNext()
Select the next chromosome from the population.

Since:
v0.3


Copyright 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02