org.semanticweb.elk.reasoner.taxonomy.model
Interface Taxonomy<T extends ElkObject>

Type Parameters:
T - the type of objects stored in this taxonomy
All Known Subinterfaces:
IndividualClassTaxonomy, InstanceTaxonomy<T,I>, UpdateableInstanceTaxonomy<T,I>, UpdateableTaxonomy<T>
All Known Implementing Classes:
ConcurrentClassTaxonomy, ConcurrentInstanceTaxonomy, SingletoneInstanceTaxonomy, SingletoneTaxonomy

public interface Taxonomy<T extends ElkObject>

A hierarchy of certain ElkObjects. For each such object, the taxonomy holds a TaxonomyNode object from which direct sub- and super- nodes can be retrieved.

Author:
Yevgeny Kazakov, Markus Kroetzsch, Frantisek Simancik

Method Summary
 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()
           
 

Method Detail

getNode

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.

Parameters:
elkObject - the ElkObject for which to return the TaxonomyNode
Returns:
the TaxonomyNode for the specified input ElkObject

getNodes

Set<? extends TaxonomyNode<T>> getNodes()
Obtain an unmodifiable Set of all nodes in this taxonomy.

Returns:
an unmodifiable Collection

getTopNode

TaxonomyNode<T> getTopNode()
Returns:
the node of this taxonomy that has no parent nodes

getBottomNode

TaxonomyNode<T> getBottomNode()
Returns:
the node of this taxonomy that has no child nodes


Copyright © 2011-2013 Department of Computer Science, University of Oxford. All Rights Reserved.