gate.creole.annic.apache.lucene.search
Class Explanation

java.lang.Object
  extended by gate.creole.annic.apache.lucene.search.Explanation
All Implemented Interfaces:
Serializable

public class Explanation
extends Object
implements Serializable

Expert: Describes the score computation for document and query.

See Also:
Serialized Form

Field Summary
private  String description
           
private  ArrayList details
           
private  float value
           
 
Constructor Summary
Explanation()
           
Explanation(float value, String description)
           
 
Method Summary
 void addDetail(Explanation detail)
          Adds a sub-node to this explanation node.
 String getDescription()
          A description of this explanation node.
 Explanation[] getDetails()
          The sub-nodes of this explanation node.
 float getValue()
          The value assigned to this explanation node.
 void setDescription(String description)
          Sets the description of this explanation node.
 void setValue(float value)
          Sets the value assigned to this explanation node.
 String toHtml()
          Render an explanation as HTML.
 String toString()
          Render an explanation as text.
private  String toString(int depth)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

value

private float value

description

private String description

details

private ArrayList details
Constructor Detail

Explanation

public Explanation()

Explanation

public Explanation(float value,
                   String description)
Method Detail

getValue

public float getValue()
The value assigned to this explanation node.


setValue

public void setValue(float value)
Sets the value assigned to this explanation node.


getDescription

public String getDescription()
A description of this explanation node.


setDescription

public void setDescription(String description)
Sets the description of this explanation node.


getDetails

public Explanation[] getDetails()
The sub-nodes of this explanation node.


addDetail

public void addDetail(Explanation detail)
Adds a sub-node to this explanation node.


toString

public String toString()
Render an explanation as text.

Overrides:
toString in class Object

toString

private String toString(int depth)

toHtml

public String toHtml()
Render an explanation as HTML.