org.semanticweb.elk.reasoner.taxonomy
Class OrphanInstanceNode<T extends ElkObject,I extends ElkObject>

java.lang.Object
  extended by org.semanticweb.elk.reasoner.taxonomy.OrphanNode<I>
      extended by org.semanticweb.elk.reasoner.taxonomy.OrphanInstanceNode<T,I>
Type Parameters:
T - the type of objects in this node
I - the type of instances of this node
All Implemented Interfaces:
InstanceNode<T,I>, Node<I>, TaxonomyNode<I>

public class OrphanInstanceNode<T extends ElkObject,I extends ElkObject>
extends OrphanNode<I>
implements InstanceNode<T,I>

An OrphanNode with one member type node

Author:
"Yevgeny Kazakov"

Constructor Summary
OrphanInstanceNode(Set<I> instances, I canonicalInstance, OrphanTypeNode<T,I> typeNode)
           
 
Method Summary
 Set<? extends OrphanTypeNode<T,I>> getAllTypeNodes()
          Get an unmodifiable set of TypeNodes of which the members of this InstanceNode are (possibly indirect) instances.
 Set<? extends OrphanTypeNode<T,I>> getDirectTypeNodes()
          Get an unmodifiable set of nodes for ElkObjects that are direct types of this Node.
 
Methods inherited from class org.semanticweb.elk.reasoner.taxonomy.OrphanNode
getAllSubNodes, getAllSuperNodes, getCanonicalMember, getDirectSubNodes, getDirectSuperNodes, getMembers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.semanticweb.elk.reasoner.taxonomy.model.Node
getCanonicalMember, getMembers
 

Constructor Detail

OrphanInstanceNode

public OrphanInstanceNode(Set<I> instances,
                          I canonicalInstance,
                          OrphanTypeNode<T,I> typeNode)
Method Detail

getDirectTypeNodes

public Set<? extends OrphanTypeNode<T,I>> getDirectTypeNodes()
Description copied from interface: InstanceNode
Get an unmodifiable set of nodes for ElkObjects that are direct types of this Node. Get an unmodifiable set of TypeNodes of which the members of this InstanceNode are direct instances. A member is a direct instance of a TypeNode if it is an instance of the TypeNode and not an instance of any sub-node of a TypeNode.

Specified by:
getDirectTypeNodes in interface InstanceNode<T extends ElkObject,I extends ElkObject>
Returns:
nodes for direct types of this node's members

getAllTypeNodes

public Set<? extends OrphanTypeNode<T,I>> getAllTypeNodes()
Description copied from interface: InstanceNode
Get an unmodifiable set of TypeNodes of which the members of this InstanceNode are (possibly indirect) instances.

Specified by:
getAllTypeNodes in interface InstanceNode<T extends ElkObject,I extends ElkObject>
Returns:
list of nodes for instances of this node's members


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