org.jscience.biology.taxonomy
Class SimpleTaxon

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

public class SimpleTaxon
extends AbstractTaxon

A no-frills implementatation of Taxon.

A TaxonFactory implementation will probably wish to sub-class this and add package-private accessors for the parent and children fields.


Field Summary
protected  java.util.Set children
           
protected  Taxon parent
           
 
Constructor Summary
SimpleTaxon(java.lang.String scientificName, java.lang.String commonName)
          Create a new instance with no parent, no children and given scientific and common names.
 
Method Summary
 java.util.Set getChildren()
          DOCUMENT ME!
 Taxon getParent()
          DOCUMENT ME!
 boolean isLeaf()
          DOCUMENT ME!
 boolean isRoot()
          DOCUMENT ME!
 
Methods inherited from class org.jscience.biology.taxonomy.AbstractTaxon
equals, getAppearance, getCommonName, getExtendedName, getExtinction, getScientificName, setAppearance, setCommonName, setExtinction, setScientificName, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

parent

protected Taxon parent

children

protected java.util.Set children
Constructor Detail

SimpleTaxon

public SimpleTaxon(java.lang.String scientificName,
                   java.lang.String commonName)
Create a new instance with no parent, no children and given scientific and common names.

Method Detail

getParent

public Taxon getParent()
DOCUMENT ME!

Returns:
DOCUMENT ME!

isRoot

public boolean isRoot()
DOCUMENT ME!

Returns:
DOCUMENT ME!

isLeaf

public boolean isLeaf()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getChildren

public java.util.Set getChildren()
DOCUMENT ME!

Returns:
DOCUMENT ME!