|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectUtil.Structures.StaticIntList
Individuals.GEChromosome
public class GEChromosome
Fixed length linear integer chromosome. This class is built on the static int list class from the the util package. A fast static list structure with dynamic size.
| Field Summary |
|---|
| Fields inherited from class Util.Structures.StaticIntList |
|---|
currentSize, data, initialSize, maxSize |
| Constructor Summary | |
|---|---|
GEChromosome()
|
|
GEChromosome(GEChromosome c)
Copy constructor |
|
GEChromosome(int size)
|
|
GEChromosome(int size,
int[] data)
|
|
| Method Summary | |
|---|---|
void |
doubleSize()
Double the size of the data ???? |
int |
getCodonSize()
|
int |
getCodonSizeBits()
|
static int |
getDefaultLength()
get the default length |
int |
getLength()
Returns the length of the genotype. |
int |
getMaxChromosomeLength()
|
int |
getMaxCodonValue()
Maximum value of a codon |
int |
getUsedGenes()
Get how many genes where used when mapping |
int |
getUsedWraps()
Get how many wraps were used |
boolean |
getValid()
Returns the current valid field. |
static void |
setDefaultLength(int length)
Set the default length |
void |
setMaxChromosomeLength(int maxChromosomeLength)
|
void |
setMaxCodonValue(int maxCodonValue)
Set maximum codon value. |
void |
setUsedGenes(int usedGenes)
Set how many genes where used during mapping |
void |
setUsedWraps(int usedWraps)
Set how many wraps that where used |
void |
setValid(boolean newValid)
Set a new value for the valid field. |
java.lang.String |
toString()
|
| Methods inherited from class Util.Structures.StaticIntList |
|---|
add, allocationSize, clear, get, getMaxSize, iterator, main, set, setAll, setMaxSize, size, toArray |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GEChromosome()
public GEChromosome(int size)
public GEChromosome(int size,
int[] data)
public GEChromosome(GEChromosome c)
c - copy| Method Detail |
|---|
public int getCodonSizeBits()
public int getMaxChromosomeLength()
public void setMaxChromosomeLength(int maxChromosomeLength)
public void setUsedWraps(int usedWraps)
usedWraps - number of wraps usedpublic int getUsedWraps()
public int getUsedGenes()
public void setUsedGenes(int usedGenes)
usedGenes - number of genes usedpublic int getMaxCodonValue()
public int getCodonSize()
public void setMaxCodonValue(int maxCodonValue)
maxCodonValue - maximum codon value allowedpublic int getLength()
getLength in interface Chromosomepublic boolean getValid()
public void setValid(boolean newValid)
newValid - value for genotype validitypublic void doubleSize()
public static void setDefaultLength(int length)
length - default lengthpublic static int getDefaultLength()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||