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
Class BinaryIndividual

    java.lang.Object
      cz.pcland.ga.BaseIndividual
          cz.pcland.ga.BinaryIndividual

    public class BinaryIndividual

extends BaseIndividual

Field Summary
`protected boolean[]` | `string` Bit string of this individual

Fields inherited from class cz.pcland.ga.BaseIndividual
`evaluation, fitness, fitnessRank, strLen`

Constructor Summary
`BinaryIndividual(BinaryIndividual i)`
`BinaryIndividual(boolean[] bits)`
`BinaryIndividual(int len)`

Method Summary
`BaseIndividual` | `copy()` Returns exact copy of individual
`boolean[]` | `getString()`
`void` | `mutation(double mutationProb)` Provides mutation operator
`void` | `setString(boolean[] str)`
`java.lang.String` | `toString()` Prints bit string

Methods inherited from class cz.pcland.ga.BaseIndividual
`getEvaluation, getFitness, getFitnessRank, setEvaluation, setFitness, setFitnessRank`

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

Field Detail

### string

    protected boolean[] string

  Bit string of this individual

Constructor Detail

### BinaryIndividual

    public BinaryIndividual(boolean[] bits)

### BinaryIndividual

    public BinaryIndividual(int len)

### BinaryIndividual

    public BinaryIndividual(BinaryIndividual i)

Method Detail

### toString

    public java.lang.String toString()

  Prints bit string

  Overrides:
    `toString` in class `java.lang.Object`

### copy

    public BaseIndividual copy()

  Description copied from class: `BaseIndividual`
  Returns exact copy of individual

  Specified by:
    `copy` in class `BaseIndividual`

### setString

    public void setString(boolean[] str)

### mutation

    public void mutation(double mutationProb)

  Description copied from class: `BaseIndividual`
  Provides mutation operator

  Parameters:
    `mutationProb` - Probability of mutation

### getString

    public boolean[] getString()

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

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