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
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 -
Method Summary
Modifier and TypeMethodDescriptionboolean
Simple Organisms are HalpoidCreates 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 Details
-
SimpleOrganism
public SimpleOrganism() -
SimpleOrganism
-
SimpleOrganism
-
-
Method Details
-
setChromImpl
- Specified by:
setChromImpl
in classAbstractOrganism
-
isHaploid
Simple Organisms are Halpoid- Specified by:
isHaploid
in interfaceOrganism
- Specified by:
isHaploid
in classAbstractOrganism
- Returns:
- true
-
replicate
Description copied from interface:Organism
Creates a replica of thisOrganism
with a new name.- Parameters:
name
- the new name for the sequence.- Returns:
- the replicated organism.
-