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

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

public class FreshTypeNode<T extends ElkObject,I extends ElkObject>
extends FreshNode<T>
implements TypeNode<T,I>

A fresh TypeNode containing an object that does not occur in a taxonomy. Such nodes are returned to queries when FreshEntityPolicy is set to ALLOW.

Author:
Frantisek Simancik

Field Summary
protected  InstanceTaxonomy<T,I> taxonomy
           
 
Fields inherited from class org.semanticweb.elk.reasoner.taxonomy.model.FreshNode
member
 
Constructor Summary
FreshTypeNode(T member, InstanceTaxonomy<T,I> taxonomy)
           
 
Method Summary
 Set<? extends InstanceNode<T,I>> getAllInstanceNodes()
          Get an unmodifiable set of InstanceNodes that are (possibly indirect) instances of this TypeNode.
 Set<TypeNode<T,I>> getAllSubNodes()
          Computes an unmodifiable set of nodes for ElkObjects that are (possibly indirect) sub-objects of members of this Node.
 Set<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 InstanceNode<T,I>> getDirectInstanceNodes()
          Get an unmodifiable set of InstanceNodes that are direct instances of this TypeNode.
 Set<TypeNode<T,I>> getDirectSubNodes()
          Get an unmodifiable set of nodes for ElkObjects that are direct sub-objects of this Node.
 Set<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.model.FreshNode
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
 

Field Detail

taxonomy

protected InstanceTaxonomy<T extends ElkObject,I extends ElkObject> taxonomy
Constructor Detail

FreshTypeNode

public FreshTypeNode(T member,
                     InstanceTaxonomy<T,I> taxonomy)
Method Detail

getDirectSuperNodes

public Set<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>
Returns:
list of nodes for direct super-objects of this node's members

getAllSuperNodes

public Set<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>
Returns:
set of nodes for sub-objects of this node's members

getDirectSubNodes

public Set<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>
Returns:
list of nodes for direct sub-objects of this node's members

getAllSubNodes

public Set<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>
Returns:
set of nodes for sub-objects of this node's members

getDirectInstanceNodes

public Set<? extends InstanceNode<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 InstanceNode<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.