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

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

public class FreshInstanceNode<T extends ElkObject,I extends ElkObject>
extends FreshNode<I>
implements InstanceNode<T,I>

A fresh InstanceNode 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, "Yevgeny Kazakov"

Field Summary
protected  InstanceTaxonomy<T,I> taxonomy
           
 
Fields inherited from class org.semanticweb.elk.reasoner.taxonomy.model.FreshNode
member
 
Constructor Summary
FreshInstanceNode(I member, InstanceTaxonomy<T,I> taxonomy)
           
 
Method Summary
 Set<? extends TypeNode<T,I>> getAllTypeNodes()
          Get an unmodifiable set of TypeNodes of which the members of this InstanceNode are (possibly indirect) instances.
 Set<? extends TypeNode<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.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

FreshInstanceNode

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

getDirectTypeNodes

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