org.dishevelled.vocabulary
Class Evidence

java.lang.Object
  extended by org.dishevelled.vocabulary.Evidence
All Implemented Interfaces:
java.lang.Comparable

public class Evidence
extends java.lang.Object
implements java.lang.Comparable

Evidence supports an assignment by reflecting the strength of knowledge used to create that assignment.

Version:
$Revision$ $Date$
Author:
Michael Heuer

Field Summary
private  double confidence
          Evidence confidence.
private  java.lang.String name
          Evidence name.
private  double score
          Evidence quantitative score.
 
Constructor Summary
Evidence(java.lang.String name, double score, double confidence)
          Create a new evidence with the specified name, quantitative score, and confidence.
 
Method Summary
 int compareTo(java.lang.Object o)
           
 boolean equals(java.lang.Object o)
           
 double getConfidence()
          Return a measure of confidence for the quantitative score, a p-value for instance.
 java.lang.String getName()
          Return the name of this evidence.
 double getScore()
          Return a quantitative score reflecting the strength of this evidence.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

name

private final java.lang.String name
Evidence name.


score

private final double score
Evidence quantitative score.


confidence

private final double confidence
Evidence confidence.

Constructor Detail

Evidence

public Evidence(java.lang.String name,
                double score,
                double confidence)
Create a new evidence with the specified name, quantitative score, and confidence.

Parameters:
name - evidence name
score - quantitative score
confidence - confidence
Method Detail

getName

public java.lang.String getName()
Return the name of this evidence.

Returns:
the name

getScore

public double getScore()
Return a quantitative score reflecting the strength of this evidence.

Returns:
a quantitative score

getConfidence

public double getConfidence()
Return a measure of confidence for the quantitative score, a p-value for instance.

Returns:
a measure of confidence for the quantitative score

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object
See Also:
Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
See Also:
Object

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable
See Also:
Comparable

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object


Copyright (c) 2002-2004 held jointly by the individual authors. Licensed under the GNU Lesser General Public License (LGPL).