Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.epochx.op.selection
Interface ProgramSelector<TYPE>

All Known Implementing Classes:
  LinearRankSelector, RandomSelector, TournamentSelector

    public interface ProgramSelector<TYPE>

ProgramSelectors are for selecting an individual from a population of programs. Most selectors will choose an individual based in some way upon the fitness of the programs.

See Also:
  `PoolSelector`

Method Summary
`CandidateProgram<TYPE>` | `getProgram()` Select a `CandidateProgram` from the current population of programs.
`void` | `setSelectionPool(java.util.List<CandidateProgram<TYPE>> pop)` The GP system will call this method at the start of every generation to provide the selector with the population from which selections should be made.

Method Detail

### setSelectionPool

    void setSelectionPool(java.util.List<CandidateProgram<TYPE>> pop)

  The GP system will call this method at the start of every generation to provide the selector with the population from which selections should be made. Users code would not usually call this method.

  Parameters:
    `pop` - the current population for this generation.

### getProgram

    CandidateProgram<TYPE> getProgram()

  Select a `CandidateProgram` from the current population of programs. The method of selection would normally be based upon the fitness of the program but there is no need for it to be, and there are exceptions.

  Returns:
    a CandidateProgram selected from the current population of programs.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD