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 TSPIntegerIndividual

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

    public class TSPIntegerIndividual

extends BaseIndividual

Field Summary
`protected int[]` | `string`

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

Constructor Summary
`TSPIntegerIndividual(int len)`
`TSPIntegerIndividual(int[] str)`

Method Summary
`BaseIndividual` | `copy()` Returns exact copy of individual
`int[]` | `getString()`
`void` | `mutation(double mutationProb)` Provides mutation operator
`void` | `setString(int[] str)`
`void` | `swap(int[] a, int i1, int i2)`
`java.lang.String` | `toString()`

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 int[] string

Constructor Detail

### TSPIntegerIndividual

    public TSPIntegerIndividual(int[] str)

### TSPIntegerIndividual

    public TSPIntegerIndividual(int len)

Method Detail

### toString

    public java.lang.String toString()

  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(int[] str)

### swap

    public void swap(int[] a,
                     int i1,
                     int i2)

### mutation

    public void mutation(double mutationProb)

  Description copied from class: `BaseIndividual`
  Provides mutation operator

  Parameters:
    `mutationProb` - Probability of mutation

### getString

    public int[] 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