T - the type of objects stored in this taxonomyI - the type of instances of nodes of this taxonomyN - the type of the node of this taxonomypublic class SingletoneInstanceTaxonomy<T extends ElkObject,I extends ElkObject,N extends OrphanTypeNode<T,I>> extends SingletoneTaxonomy<T,N> implements InstanceTaxonomy<T,I>
InstanceTaxonomy consisting of a single TypeNode = top
node = bottom node, which has a single InstanceNode. Typically, this
is used to represent an inconsistent InstanceTaxonomy.| Constructor and Description |
|---|
SingletoneInstanceTaxonomy(N node) |
| Modifier and Type | Method and Description |
|---|---|
TypeNode<T,I> |
getBottomNode() |
InstanceNode<T,I> |
getInstanceNode(I elkObject) |
Set<? extends InstanceNode<T,I>> |
getInstanceNodes()
Obtain an unmodifiable Set of all instance nodes in this taxonomy.
|
TypeNode<T,I> |
getTopNode() |
TypeNode<T,I> |
getTypeNode(T elkObject) |
Set<? extends TypeNode<T,I>> |
getTypeNodes()
Obtain an unmodifiable Set of all type nodes in this taxonomy.
|
getNode, getNodespublic SingletoneInstanceTaxonomy(N node)
public TypeNode<T,I> getTopNode()
getTopNode in interface InstanceTaxonomy<T extends ElkObject,I extends ElkObject>getTopNode in interface Taxonomy<T extends ElkObject>getTopNode in class SingletoneTaxonomy<T extends ElkObject,N extends OrphanTypeNode<T,I>>public TypeNode<T,I> getBottomNode()
getBottomNode in interface InstanceTaxonomy<T extends ElkObject,I extends ElkObject>getBottomNode in interface Taxonomy<T extends ElkObject>getBottomNode in class SingletoneTaxonomy<T extends ElkObject,N extends OrphanTypeNode<T,I>>public TypeNode<T,I> getTypeNode(T elkObject)
getTypeNode in interface InstanceTaxonomy<T extends ElkObject,I extends ElkObject>elkObject - ElkObject for which the TypeNode to be
computedTypeNode containing the given ElkObject as a
member, or null if the input does not occur in the
taxonomypublic Set<? extends TypeNode<T,I>> getTypeNodes()
InstanceTaxonomygetTypeNodes in interface InstanceTaxonomy<T extends ElkObject,I extends ElkObject>public InstanceNode<T,I> getInstanceNode(I elkObject)
getInstanceNode in interface InstanceTaxonomy<T extends ElkObject,I extends ElkObject>elkObject - ElkObject for which the InstanceNode to be
computedInstanceNode containing the given ElkObject
as a member, or null if the input does not occur in the
taxonomypublic Set<? extends InstanceNode<T,I>> getInstanceNodes()
InstanceTaxonomygetInstanceNodes in interface InstanceTaxonomy<T extends ElkObject,I extends ElkObject>Copyright © 2011-2015 Department of Computer Science, University of Oxford. All Rights Reserved.