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 boolean
isHaploid()
Simple Organisms are HalpoidOrganism
replicate(String name)
Creates a replica of thisOrganism
with a new name.protected void
setChromImpl(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:
setChromImpl
in classAbstractOrganism
-
isHaploid
public boolean isHaploid()
Simple Organisms are Halpoid- Specified by:
isHaploid
in interfaceOrganism
- Specified by:
isHaploid
in classAbstractOrganism
- Returns:
- true
-
-