public interface Organism extends Changeable
Modifier and Type | Field and Description |
---|---|
static ChangeType |
CHROMOSOMES |
static ChangeType |
NAME |
Modifier and Type | Method and Description |
---|---|
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
|
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener
static final ChangeType CHROMOSOMES
static final ChangeType NAME
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 unchangablevoid 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()
Copyright © 2014 BioJava. All rights reserved.