|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.encog.ml.genetic.genes.BasicGene
public abstract class BasicGene
Implements the basic functionality for a gene. This is an abstract class.
| Constructor Summary | |
|---|---|
BasicGene()
|
|
| Method Summary | |
|---|---|
int |
compareTo(Gene o)
|
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. |
void |
setId(long i)
Set the id for this gene. |
void |
setInnovationId(long theInnovationID)
Set the innovation id for this gene. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.encog.ml.genetic.genes.Gene |
|---|
copy |
| Constructor Detail |
|---|
public BasicGene()
| Method Detail |
|---|
public final int compareTo(Gene o)
compareTo in interface Comparable<Gene>public final long getId()
Gene
getId in interface Genepublic final long getInnovationId()
getInnovationId in interface Genepublic final boolean isEnabled()
isEnabled in interface Genepublic final void setEnabled(boolean e)
Gene
setEnabled in interface Genee - True, if this gene is enabled.public final void setId(long i)
i - The id for this gene.public final void setInnovationId(long theInnovationID)
theInnovationID - The innovation id for this gene.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||