edu.stanford.nlp.util
Class ScoredObject

java.lang.Object
  |
  +--edu.stanford.nlp.util.ScoredObject
All Implemented Interfaces:
Scored

public class ScoredObject
extends Object
implements Scored

Scored Object: Wrapper class for holding a scored object


Constructor Summary
ScoredObject()
           
ScoredObject(Object object, double score)
           
 
Method Summary
 Object object()
           
 double score()
          Return the score of this thing
 void setObject(Object object)
           
 void setScore(double score)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ScoredObject

public ScoredObject()

ScoredObject

public ScoredObject(Object object,
                    double score)
Method Detail

score

public double score()
Description copied from interface: Scored
Return the score of this thing

Specified by:
score in interface Scored

setScore

public void setScore(double score)

object

public Object object()

setObject

public void setObject(Object object)

toString

public String toString()
Overrides:
toString in class Object


Stanford NLP Group