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

## org.encog.ml.genetic.genes
Interface Gene

All Superinterfaces:
  Comparable<Gene>

All Known Implementing Classes:
  BasicGene, CharGene, DoubleGene, IntegerGene, NEATLinkGene, NEATNeuronGene

    public interface Gene

extends Comparable<Gene>

Describes a gene. A gene is the smallest piece of genetic information in Encog.

Method Summary
`void` | `copy(Gene gene)` Copy another gene to this one.
`long` | `getId()` Get the ID of this gene, -1 for undefined.
`long` | `getInnovationId()`
`boolean` | `isEnabled()`
`void` | `setEnabled(boolean e)` Determine if this gene is enabled.

Methods inherited from interface java.lang.Comparable
`compareTo`

Method Detail

### copy

    void copy(Gene gene)

  Copy another gene to this one.

  Parameters:
    `gene` - The other gene to copy.

### getId

    long getId()

  Get the ID of this gene, -1 for undefined.

  Returns:
    The ID of this gene.

### getInnovationId

    long getInnovationId()

  Returns:
    The innovation ID of this gene.

### isEnabled

    boolean isEnabled()

  Returns:
    True, if this gene is enabled.

### setEnabled

    void setEnabled(boolean e)

  Determine if this gene is enabled.

  Parameters:
    `e` - True if this gene is enabled.

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

Copyright © 2011. All Rights Reserved.