|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.semanticweb.elk.reasoner.taxonomy.SingletoneTaxonomy<T,N>
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>>
A Taxonomy consisting of a single node = top node = bottom node.
Typically, this is used to represent an inconsistent taxonomy.
OrphanNode| Constructor Summary | |
|---|---|
SingletoneTaxonomy(N node)
Constructs a SingletoneTaxonomy containing the given
OrphanNode |
|
| 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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SingletoneTaxonomy(N node)
SingletoneTaxonomy containing the given
OrphanNode
node - | Method Detail |
|---|
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
TaxonomyNode
TaxonomyNode for the specified input
ElkObjectpublic Set<? extends TaxonomyNode<T>> getNodes()
Taxonomy
getNodes in interface Taxonomy<T extends ElkObject>public TaxonomyNode<T> getTopNode()
getTopNode in interface Taxonomy<T extends ElkObject>public TaxonomyNode<T> getBottomNode()
getBottomNode in interface Taxonomy<T extends ElkObject>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||