org.semanticweb.elk.reasoner.taxonomy.model
Class SimpleNode<T extends ElkObject>

java.lang.Object
  extended by org.semanticweb.elk.reasoner.taxonomy.model.SimpleNode<T>
All Implemented Interfaces:
Node<T>
Direct Known Subclasses:
AnonymousNode

public class SimpleNode<T extends ElkObject>
extends Object
implements Node<T>


Constructor Summary
SimpleNode(Collection<T> members, Comparator<T> cmp)
           
 
Method Summary
 T getCanonicalMember()
          Get one object to canonically represent the classes in this Node.
 Set<T> getMembers()
          Get an unmodifiable set of objects that this Node represents.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleNode

public SimpleNode(Collection<T> members,
                  Comparator<T> cmp)
Method Detail

getMembers

public Set<T> getMembers()
Description copied from interface: Node
Get an unmodifiable set of objects that this Node represents. The membership in this set is checked using the structural equality.

Specified by:
getMembers in interface Node<T extends ElkObject>
Returns:
collection of logically equivalent objects

getCanonicalMember

public T getCanonicalMember()
Description copied from interface: Node
Get one object to canonically represent the classes in this Node. It is guaranteed that the least object is the least one according to the ordering defined by PredefinedElkIri.compare(). TODO The above remark is a bit mysterious. Does the interface really make such guarantees?

Specified by:
getCanonicalMember in interface Node<T extends ElkObject>
Returns:
canonical object

toString

public String toString()
Overrides:
toString in class Object


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