org.semanticweb.HermiT.hierarchy
Class HierarchyNode<E>

java.lang.Object
  extended by org.semanticweb.HermiT.hierarchy.HierarchyNode<E>

public class HierarchyNode<E>
extends Object


Field Summary
protected  Set<HierarchyNode<E>> m_childNodes
           
protected  Set<E> m_equivalentElements
           
protected  Set<HierarchyNode<E>> m_parentNodes
           
protected  E m_representative
           
 
Constructor Summary
HierarchyNode(E representative)
           
HierarchyNode(E element, Set<E> equivalentElements, Set<HierarchyNode<E>> parentNodes, Set<HierarchyNode<E>> childNodes)
           
 
Method Summary
 Set<HierarchyNode<E>> getAncestorNodes()
           
static
<T> Set<HierarchyNode<T>>
getAncestorNodes(Set<HierarchyNode<T>> inputNodes)
           
 Set<HierarchyNode<E>> getChildNodes()
           
 Set<HierarchyNode<E>> getDescendantNodes()
           
static
<T> Set<HierarchyNode<T>>
getDescendantNodes(Set<HierarchyNode<T>> inputNodes)
           
 Set<E> getEquivalentElements()
           
 Set<HierarchyNode<E>> getParentNodes()
           
 E getRepresentative()
           
 boolean isAncestorElement(E ancestor)
           
 boolean isDescendantElement(E descendant)
           
 boolean isEquivalentElement(E element)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

HierarchyNode

public HierarchyNode(E representative)

HierarchyNode

public HierarchyNode(E element,
                     Set<E> equivalentElements,
                     Set<HierarchyNode<E>> parentNodes,
                     Set<HierarchyNode<E>> childNodes)
Method Detail

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.