org.dllearner.algorithms.celoe
Class OENode

java.lang.Object
  extended by org.dllearner.algorithms.celoe.OENode
All Implemented Interfaces:
SearchTreeNode

public class OENode
extends Object
implements SearchTreeNode

A node in the search tree of the ontology engineering algorithm. Differences to the node structures in other algorithms (this may change): - covered examples are not stored in node (i.e. coverage needs to be recomputed for child nodes, which costs time but saves memory) - only evaluated nodes are stored - too weak nodes are not stored - redundant nodes are not stored (?) - only accuracy is stored to make the node structure reusable for different learning problems and -algorithms

Author:
Jens Lehmann

Constructor Summary
OENode(OENode parentNode, Description description, double accuracy)
           
 
Method Summary
 void addChild(OENode node)
           
 double getAccuracy()
           
 List<OENode> getChildren()
          The children of this node.
 Description getDescription()
           
 Description getExpression()
          Gets the OWL 2 class expression at this search tree node.
 int getHorizontalExpansion()
           
 OENode getParent()
           
 int getRefinementCount()
           
 String getShortDescription(String baseURI)
           
 void incHorizontalExpansion()
           
 boolean isRoot()
           
 void setRefinementCount(int refinementCount)
           
 String toString()
           
 String toTreeString()
           
 String toTreeString(String baseURI)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OENode

public OENode(OENode parentNode,
              Description description,
              double accuracy)
Method Detail

addChild

public void addChild(OENode node)

incHorizontalExpansion

public void incHorizontalExpansion()

isRoot

public boolean isRoot()

getDescription

public Description getDescription()
Returns:
the description

getExpression

public Description getExpression()
Description copied from interface: SearchTreeNode
Gets the OWL 2 class expression at this search tree node.

Specified by:
getExpression in interface SearchTreeNode
Returns:
The expression at this node.

getAccuracy

public double getAccuracy()
Returns:
the accuracy

getParent

public OENode getParent()
Returns:
the parent

getChildren

public List<OENode> getChildren()
Description copied from interface: SearchTreeNode
The children of this node.

Specified by:
getChildren in interface SearchTreeNode
Returns:
the children

getHorizontalExpansion

public int getHorizontalExpansion()
Returns:
the horizontalExpansion

getShortDescription

public String getShortDescription(String baseURI)

toString

public String toString()
Overrides:
toString in class Object

toTreeString

public String toTreeString()

toTreeString

public String toTreeString(String baseURI)

getRefinementCount

public int getRefinementCount()
Returns:
the refinementCount

setRefinementCount

public void setRefinementCount(int refinementCount)
Parameters:
refinementCount - the refinementCount to set


SourceForge.net Logo DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2011 Jens Lehmann