T - the type of objects stored in this taxonomyN - the type of the node of this taxonomypublic class SingletoneTaxonomy<T extends ElkObject,N extends OrphanNode<T>> extends Object implements Taxonomy<T>
Taxonomy consisting of a single node = top node = bottom node.
Typically, this is used to represent an inconsistent taxonomy.OrphanNode| Constructor and Description |
|---|
SingletoneTaxonomy(N node)
Constructs a
SingletoneTaxonomy containing the given
OrphanNode |
| Modifier and Type | Method and Description |
|---|---|
TaxonomyNode<T> |
getBottomNode() |
TaxonomyNode<T> |
getNode(T elkObject)
Returns the
TaxonomyNode containing the given ElkObject
as a member or null if the input does not occur in the taxonomy. |
Set<? extends TaxonomyNode<T>> |
getNodes()
Obtain an unmodifiable Set of all nodes in this taxonomy.
|
TaxonomyNode<T> |
getTopNode() |
public SingletoneTaxonomy(N node)
SingletoneTaxonomy containing the given
OrphanNodenode - public TaxonomyNode<T> getNode(T elkObject)
TaxonomyTaxonomyNode containing the given ElkObject
as a member or null if the input does not occur in the taxonomy.getNode in interface Taxonomy<T extends ElkObject>elkObject - the ElkObject for which to return the
TaxonomyNodeTaxonomyNode for the specified input
ElkObjectpublic Set<? extends TaxonomyNode<T>> getNodes()
Taxonomypublic TaxonomyNode<T> getTopNode()
getTopNode in interface Taxonomy<T extends ElkObject>public TaxonomyNode<T> getBottomNode()
getBottomNode in interface Taxonomy<T extends ElkObject>Copyright © 2011-2015 Department of Computer Science, University of Oxford. All Rights Reserved.