org.jscience.biology.taxonomy
Class AbstractTaxon

java.lang.Object
  extended by org.jscience.biology.taxonomy.AbstractTaxon
All Implemented Interfaces:
Taxon
Direct Known Subclasses:
SimpleTaxon, WeakTaxon

public abstract class AbstractTaxon
extends java.lang.Object
implements Taxon

An abstract implementation of Taxon.

It is left up to the impementor to provide methods for accessing the parent and children. All other state is provided for here. A common pattern would be to route any Taxon.getParent() call back via a method on the TaxonFactory used to generate this instance.


Constructor Summary
AbstractTaxon(java.lang.String scientificName, java.lang.String commonName)
           
 
Method Summary
 boolean equals(java.lang.Object o)
          DOCUMENT ME!
 double getAppearance()
          DOCUMENT ME!
 java.lang.String getCommonName()
          DOCUMENT ME!
 java.util.Vector getExtendedName()
          DOCUMENT ME!
 double getExtinction()
          DOCUMENT ME!
 java.lang.String getScientificName()
          DOCUMENT ME!
 void setAppearance(double apparition)
          DOCUMENT ME!
 void setCommonName(java.lang.String commonName)
          DOCUMENT ME!
 void setExtinction(double disparition)
          DOCUMENT ME!
 void setScientificName(java.lang.String scientificName)
          DOCUMENT ME!
 java.lang.String toString()
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jscience.biology.taxonomy.Taxon
getChildren, getParent, isLeaf, isRoot
 

Constructor Detail

AbstractTaxon

public AbstractTaxon(java.lang.String scientificName,
                     java.lang.String commonName)
Method Detail

getCommonName

public java.lang.String getCommonName()
DOCUMENT ME!

Specified by:
getCommonName in interface Taxon
Returns:
DOCUMENT ME!

setCommonName

public void setCommonName(java.lang.String commonName)
DOCUMENT ME!

Parameters:
commonName - DOCUMENT ME!

getScientificName

public java.lang.String getScientificName()
DOCUMENT ME!

Specified by:
getScientificName in interface Taxon
Returns:
DOCUMENT ME!

setScientificName

public void setScientificName(java.lang.String scientificName)
DOCUMENT ME!

Parameters:
scientificName - DOCUMENT ME!

getAppearance

public double getAppearance()
DOCUMENT ME!

Specified by:
getAppearance in interface Taxon
Returns:
DOCUMENT ME!

setAppearance

public void setAppearance(double apparition)
DOCUMENT ME!

Parameters:
apparition - DOCUMENT ME!

getExtinction

public double getExtinction()
DOCUMENT ME!

Specified by:
getExtinction in interface Taxon
Returns:
DOCUMENT ME!

setExtinction

public void setExtinction(double disparition)
DOCUMENT ME!

Parameters:
disparition - DOCUMENT ME!

getExtendedName

public java.util.Vector getExtendedName()
DOCUMENT ME!

Specified by:
getExtendedName in interface Taxon
Returns:
DOCUMENT ME!

equals

public boolean equals(java.lang.Object o)
DOCUMENT ME!

Specified by:
equals in interface Taxon
Overrides:
equals in class java.lang.Object
Parameters:
o - DOCUMENT ME!
Returns:
DOCUMENT ME!

toString

public java.lang.String toString()
DOCUMENT ME!

Overrides:
toString in class java.lang.Object
Returns:
DOCUMENT ME!