|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.encog.solve.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 id)
Set the id for this gene. |
void |
setInnovationId(long innovationID)
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.solve.genetic.genes.Gene |
|---|
copy |
| Constructor Detail |
|---|
public BasicGene()
| Method Detail |
|---|
public int compareTo(Gene o)
compareTo in interface Comparable<Gene>public long getId()
Gene
getId in interface Genepublic long getInnovationId()
getInnovationId in interface Genepublic boolean isEnabled()
isEnabled in interface Genepublic void setEnabled(boolean e)
Gene
setEnabled in interface Genee - True, if this gene is enabled.public void setId(long id)
id - The id for this gene.public void setInnovationId(long innovationID)
innovationID - The innovation id for this gene.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||