|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.biology.taxonomy.AbstractTaxon
org.jscience.biology.taxonomy.SimpleTaxon
public class SimpleTaxon
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 |
|---|
protected Taxon parent
protected java.util.Set children
| Constructor Detail |
|---|
public SimpleTaxon(java.lang.String scientificName,
java.lang.String commonName)
| Method Detail |
|---|
public Taxon getParent()
public boolean isRoot()
public boolean isLeaf()
public java.util.Set getChildren()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||