|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Organism
A GA 'organism' contains one or more Chromosomes
Field Summary | |
---|---|
static ChangeType |
CHROMOSOMES
|
static ChangeType |
NAME
|
Method Summary | |
---|---|
SymbolList[] |
getChromosomes()
Gets the organisms 'chromosome' sequences |
double[] |
getFitness()
Returns the current fitness of this organism. |
String |
getName()
Gets the organisms name |
boolean |
isHaploid()
Is the organism Haploid? |
Organism |
replicate(String name)
Creates a replica of this Organism with a new name. |
void |
setChromosomes(SymbolList[] chromosomes)
Sets the organisms 'chromosome' sequences. |
void |
setFitness(double[] fitness)
This method allows to set the fitness of this organism to the specified value. |
void |
setName(String name)
Sets the organisms name |
Methods inherited from interface org.biojava.utils.Changeable |
---|
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener |
Field Detail |
---|
static final ChangeType CHROMOSOMES
static final ChangeType NAME
Method Detail |
---|
void setFitness(double[] fitness)
fitness
- double[] getFitness()
SymbolList[] getChromosomes()
SymbolList[]
void setChromosomes(SymbolList[] chromosomes) throws ChangeVetoException
chromosomes
- a SymbolList[]
ChangeVetoException
- if the Chromosome collection of the Organism is unchangableString getName()
void setName(String name) throws ChangeVetoException
name
- the name of the organism.
ChangeVetoException
- if the name may not be changed.Organism replicate(String name)
Organism
with a new name.
name
- the new name for the sequence.
boolean isHaploid()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |