public class RankedAnswer extends GenericModel
RankedAnswer class used by Ranking.| Constructor and Description | 
|---|
RankedAnswer()  | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
getAnswerID()
Returns the answer ID. 
 | 
Double | 
getConfidence()
Gets the confidence that Watson has in this answer's ranking. 
 | 
Double | 
getScore()
Returns the score of the candidate answer. 
 | 
void | 
setAnswerID(String answerID)
Sets the answer ID. 
 | 
void | 
setConfidence(Double confidence)
Sets the confidence that Watson has in this answer's ranking Higher values represent higher confidences. 
 | 
void | 
setScore(Double score)
Sets the score of the candidate answer. 
 | 
equals, hashCode, toStringpublic String getAnswerID()
public void setAnswerID(String answerID)
answerID - the new answerIDpublic Double getScore()
public void setScore(Double score)
score - the score to setpublic Double getConfidence()
public void setConfidence(Double confidence)
confidence - the new confidenceCopyright © 2015–2016 IBM Watson. All rights reserved.