org.semanticweb.HermiT.hierarchy
Class HierarchyNode<E>
java.lang.Object
org.semanticweb.HermiT.hierarchy.HierarchyNode<E>
public class HierarchyNode<E>
- extends Object
m_representative
protected final E m_representative
m_equivalentElements
protected final Set<E> m_equivalentElements
m_parentNodes
protected final Set<HierarchyNode<E>> m_parentNodes
m_childNodes
protected final Set<HierarchyNode<E>> m_childNodes
HierarchyNode
public HierarchyNode(E representative)
HierarchyNode
public HierarchyNode(E element,
Set<E> equivalentElements,
Set<HierarchyNode<E>> parentNodes,
Set<HierarchyNode<E>> childNodes)
getRepresentative
public E getRepresentative()
isEquivalentElement
public boolean isEquivalentElement(E element)
isAncestorElement
public boolean isAncestorElement(E ancestor)
isDescendantElement
public boolean isDescendantElement(E descendant)
getEquivalentElements
public Set<E> getEquivalentElements()
getParentNodes
public Set<HierarchyNode<E>> getParentNodes()
getChildNodes
public Set<HierarchyNode<E>> getChildNodes()
getAncestorNodes
public Set<HierarchyNode<E>> getAncestorNodes()
getDescendantNodes
public Set<HierarchyNode<E>> getDescendantNodes()
toString
public String toString()
- Overrides:
toString
in class Object
getAncestorNodes
public static <T> Set<HierarchyNode<T>> getAncestorNodes(Set<HierarchyNode<T>> inputNodes)
getDescendantNodes
public static <T> Set<HierarchyNode<T>> getDescendantNodes(Set<HierarchyNode<T>> inputNodes)
Copyright © 2012. All Rights Reserved.