edu.cmu.minorthird.classify
Class Explanation

java.lang.Object
  extended by edu.cmu.minorthird.classify.Explanation

public class Explanation
extends java.lang.Object

Provides a facitlity for constructing and displaying explanations for classification. An explanation may be constructed using a String or by giving it the top Node of a tree.

Author:
Cameron Williams Date: Aug 18, 2005

Nested Class Summary
static class Explanation.Node
          A Node in the Explanation Tree
 
Constructor Summary
Explanation(Explanation.Node top)
           
Explanation(java.lang.String explanation)
           
 
Method Summary
 javax.swing.JComponent getExplanation()
          Returns the component to be displayed in the Explanation Panel of the Result.
 Explanation.Node getTopNode()
          Returns the top node of the explanation tree or creates a Node from the string explanation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Explanation

public Explanation(java.lang.String explanation)

Explanation

public Explanation(Explanation.Node top)
Method Detail

getExplanation

public javax.swing.JComponent getExplanation()
Returns the component to be displayed in the Explanation Panel of the Result. A simple VanillaViewer if only the String explanation is defined or a Tree if a tree is defined


getTopNode

public Explanation.Node getTopNode()
Returns the top node of the explanation tree or creates a Node from the string explanation