Package org.biojavax.ga.impl
Class SimpleOrganism
- java.lang.Object
-
- org.biojava.utils.AbstractChangeable
-
- org.biojavax.ga.impl.AbstractOrganism
-
- org.biojavax.ga.impl.SimpleOrganism
-
- All Implemented Interfaces:
Changeable,Organism
public class SimpleOrganism extends AbstractOrganism
A Simple Haploid Organism implementation- Since:
- 1.5
- Version:
- 1.0
- Author:
- Mark Schreiber
-
-
Field Summary
-
Fields inherited from class org.biojavax.ga.impl.AbstractOrganism
chromosomes
-
Fields inherited from interface org.biojavax.ga.Organism
CHROMOSOMES, NAME
-
-
Constructor Summary
Constructors Constructor Description SimpleOrganism()SimpleOrganism(String name)SimpleOrganism(Organism org, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisHaploid()Simple Organisms are HalpoidOrganismreplicate(String name)Creates a replica of thisOrganismwith a new name.protected voidsetChromImpl(SymbolList[] chromosomes)-
Methods inherited from class org.biojavax.ga.impl.AbstractOrganism
getChromosomes, getFitness, getName, setChromosomes, setFitness, setName
-
Methods inherited from class org.biojava.utils.AbstractChangeable
addChangeListener, addChangeListener, generateChangeSupport, getChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListener
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.biojava.utils.Changeable
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener
-
-
-
-
Constructor Detail
-
SimpleOrganism
public SimpleOrganism()
-
SimpleOrganism
public SimpleOrganism(String name)
-
SimpleOrganism
public SimpleOrganism(Organism org, String name)
-
-
Method Detail
-
setChromImpl
protected void setChromImpl(SymbolList[] chromosomes)
- Specified by:
setChromImplin classAbstractOrganism
-
isHaploid
public boolean isHaploid()
Simple Organisms are Halpoid- Specified by:
isHaploidin interfaceOrganism- Specified by:
isHaploidin classAbstractOrganism- Returns:
- true
-
-