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

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

public class OrphanTypeNode<T extends ElkObject,I extends ElkObject>
extends OrphanNode<T>
implements TypeNode<T,I>

An OrphanNode with instances

Author:
"Yevgeny Kazakov"

Constructor Summary
OrphanTypeNode(Set<T> types, T canonicalType, int estimatedInstanceNodes)
           
 
Method Summary
 void addInstanceNode(OrphanInstanceNode<T,I> instaneNode)
           
 Set<? extends OrphanInstanceNode<T,I>> getAllInstanceNodes()
          Get an unmodifiable set of InstanceNodes that are (possibly indirect) instances of this TypeNode.
 Set<? extends TypeNode<T,I>> getAllSubNodes()
          Computes an unmodifiable set of nodes for ElkObjects that are (possibly indirect) sub-objects of members of this Node.
 Set<? extends TypeNode<T,I>> getAllSuperNodes()
          Computes an unmodifiable set of nodes for ElkObjects that are (possibly indirect) super-objects of members of this Node.
 Set<? extends OrphanInstanceNode<T,I>> getDirectInstanceNodes()
          Get an unmodifiable set of InstanceNodes that are direct instances of this TypeNode.
 Set<? extends TypeNode<T,I>> getDirectSubNodes()
          Get an unmodifiable set of nodes for ElkObjects that are direct sub-objects of this Node.
 Set<? extends TypeNode<T,I>> getDirectSuperNodes()
          Get an unmodifiable set of nodes for ElkObjects that are direct super-objects of this Node.
 
Methods inherited from class org.semanticweb.elk.reasoner.taxonomy.OrphanNode
getCanonicalMember, 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

OrphanTypeNode

public OrphanTypeNode(Set<T> types,
                      T canonicalType,
                      int estimatedInstanceNodes)
Method Detail

addInstanceNode

public void addInstanceNode(OrphanInstanceNode<T,I> instaneNode)

getDirectSuperNodes

public Set<? extends TypeNode<T,I>> getDirectSuperNodes()
Description copied from interface: TaxonomyNode
Get an unmodifiable set of nodes for ElkObjects that are direct super-objects of this Node.

Specified by:
getDirectSuperNodes in interface TaxonomyNode<T extends ElkObject>
Specified by:
getDirectSuperNodes in interface TypeNode<T extends ElkObject,I extends ElkObject>
Overrides:
getDirectSuperNodes in class OrphanNode<T extends ElkObject>
Returns:
list of nodes for direct super-objects of this node's members

getAllSuperNodes

public Set<? extends TypeNode<T,I>> getAllSuperNodes()
Description copied from interface: TaxonomyNode
Computes an unmodifiable set of nodes for ElkObjects that are (possibly indirect) super-objects of members of this Node. This is the smallest set of nodes that contains all direct super-nodes of this node, and all direct super-nodes of every node in this set.

Specified by:
getAllSuperNodes in interface TaxonomyNode<T extends ElkObject>
Specified by:
getAllSuperNodes in interface TypeNode<T extends ElkObject,I extends ElkObject>
Overrides:
getAllSuperNodes in class OrphanNode<T extends ElkObject>
Returns:
set of nodes for sub-objects of this node's members

getDirectSubNodes

public Set<? extends TypeNode<T,I>> getDirectSubNodes()
Description copied from interface: TaxonomyNode
Get an unmodifiable set of nodes for ElkObjects that are direct sub-objects of this Node.

Specified by:
getDirectSubNodes in interface TaxonomyNode<T extends ElkObject>
Specified by:
getDirectSubNodes in interface TypeNode<T extends ElkObject,I extends ElkObject>
Overrides:
getDirectSubNodes in class OrphanNode<T extends ElkObject>
Returns:
list of nodes for direct sub-objects of this node's members

getAllSubNodes

public Set<? extends TypeNode<T,I>> getAllSubNodes()
Description copied from interface: TaxonomyNode
Computes an unmodifiable set of nodes for ElkObjects that are (possibly indirect) sub-objects of members of this Node. This is the smallest set of nodes that contains all direct sub-nodes of this node, and all direct sub-nodes of every node in this set.

Specified by:
getAllSubNodes in interface TaxonomyNode<T extends ElkObject>
Specified by:
getAllSubNodes in interface TypeNode<T extends ElkObject,I extends ElkObject>
Overrides:
getAllSubNodes in class OrphanNode<T extends ElkObject>
Returns:
set of nodes for sub-objects of this node's members

getDirectInstanceNodes

public Set<? extends OrphanInstanceNode<T,I>> getDirectInstanceNodes()
Description copied from interface: TypeNode
Get an unmodifiable set of InstanceNodes that are direct instances of this TypeNode. An InstanceNode 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:
getDirectInstanceNodes in interface TypeNode<T extends ElkObject,I extends ElkObject>
Returns:
nodes for direct instances of this node's members

getAllInstanceNodes

public Set<? extends OrphanInstanceNode<T,I>> getAllInstanceNodes()
Description copied from interface: TypeNode
Get an unmodifiable set of InstanceNodes that are (possibly indirect) instances of this TypeNode.

Specified by:
getAllInstanceNodes in interface TypeNode<T extends ElkObject,I extends ElkObject>
Returns:
nodes for all instances of this node's members


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