Overview | Package | Class | Use | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## cz.pcland.ga.selection
Class RouletteSelection

    java.lang.Object
      cz.pcland.ga.selection.RouletteSelection

All Implemented Interfaces:
  SelectionOperator

    public class RouletteSelection

extends java.lang.Object
implements SelectionOperator

Constructor Summary
`RouletteSelection()` Creates a new instance of RouletteSelection

Method Summary
`void` | `init(BaseIndividual[] population, double sumOfFitness)` Called before every selection
`void` | `onStart(BaseIndividual[] population)` Called at the begining of run before first evaluation and after population is fully created
`BaseIndividual` | `select(BaseIndividual[] population, int popSize, double sumOfFitness)` Method representing selection operator itself.
`java.lang.String` | `toString()` Public name of this operator

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### RouletteSelection

    public RouletteSelection()

  Creates a new instance of RouletteSelection

Method Detail

### toString

    public java.lang.String toString()

  Description copied from interface: `SelectionOperator`
  Public name of this operator

  Specified by:
    `toString` in interface `SelectionOperator`
  Overrides:
    `toString` in class `java.lang.Object`

### select

    public BaseIndividual select(BaseIndividual[] population,
                                 int popSize,
                                 double sumOfFitness)

  Description copied from interface: `SelectionOperator`
  Method representing selection operator itself.

  Specified by:
    `select` in interface `SelectionOperator`

### onStart

    public void onStart(BaseIndividual[] population)

  Description copied from interface: `SelectionOperator`
  Called at the begining of run before first evaluation and after population is fully created

  Specified by:
    `onStart` in interface `SelectionOperator`

### init

    public void init(BaseIndividual[] population,
                     double sumOfFitness)

  Description copied from interface: `SelectionOperator`
  Called before every selection

  Specified by:
    `init` in interface `SelectionOperator`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD