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
chromosomesFields inherited from interface org.biojavax.ga.Organism
CHROMOSOMES, NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanSimple Organisms are HalpoidCreates 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, setNameMethods inherited from class org.biojava.utils.AbstractChangeable
addChangeListener, addChangeListener, generateChangeSupport, getChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.biojava.utils.Changeable
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener
-
Constructor Details
-
SimpleOrganism
public SimpleOrganism() -
SimpleOrganism
-
SimpleOrganism
-
-
Method Details
-
setChromImpl
- Specified by:
setChromImplin classAbstractOrganism
-
isHaploid
Simple Organisms are Halpoid- Specified by:
isHaploidin interfaceOrganism- Specified by:
isHaploidin classAbstractOrganism- Returns:
- true
-
replicate
Description copied from interface:OrganismCreates a replica of thisOrganismwith a new name.- Parameters:
name- the new name for the sequence.- Returns:
- the replicated organism.
-