org.semanticweb.elk.reasoner.taxonomy.model
Class SimpleNode<T extends ElkObject>
java.lang.Object
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>
SimpleNode
public SimpleNode(Collection<T> members,
Comparator<T> cmp)
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.