Class DecisionAnswer
java.lang.Object
com.alibaba.dashscope.legacy_2x.decision.DecisionAnswer
Deprecated.
The answer of a single decision question. Which fields are populated depends on
type:
choice:choice,confidence,probabilities(keyed by option name).noul:noulonly —confidenceandprobabilitiesarenullper the documented example.score:score,confidence,legend,probabilities(keyed by stringified level index"0","1", ...).
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Deprecated.protected booleanDeprecated.booleanDeprecated.Deprecated.The selected option name, only for choice questions.Deprecated.The confidence of the answer, for choice and score questions.Deprecated.Level index to level description, only for score questions.getNoul()Deprecated.P(yes) in [0, 1], only for noul questions.Deprecated.The probability of each option or level; sums to 1.getScore()Deprecated.Probability-weighted expectation of the level index, only for score questions.getType()Deprecated.The question type, one of choice/noul/score.inthashCode()Deprecated.voidDeprecated.The selected option name, only for choice questions.voidsetConfidence(Double confidence) Deprecated.The confidence of the answer, for choice and score questions.voidDeprecated.Level index to level description, only for score questions.voidDeprecated.P(yes) in [0, 1], only for noul questions.voidsetProbabilities(Map<String, Double> probabilities) Deprecated.The probability of each option or level; sums to 1.voidDeprecated.Probability-weighted expectation of the level index, only for score questions.voidDeprecated.The question type, one of choice/noul/score.toString()Deprecated.
-
Constructor Details
-
DecisionAnswer
public DecisionAnswer()Deprecated. -
DecisionAnswer
public DecisionAnswer(String type, String choice, Double noul, Double score, Double confidence, Map<String, Double> probabilities, Map<String, String> legend) Deprecated.Creates a newDecisionAnswerinstance.- Parameters:
type- The question type, one of choice/noul/score.choice- The selected option name, only for choice questions.noul- P(yes) in [0, 1], only for noul questions.score- Probability-weighted expectation of the level index, only for score questions. May fall between two integer levels (e.g.1.43).confidence- The confidence of the answer, for choice and score questions.probabilities- The probability of each option or level; sums to 1.legend- Level index to level description, only for score questions.
-
-
Method Details
-
builder
Deprecated. -
getType
Deprecated.The question type, one of choice/noul/score. -
getChoice
Deprecated.The selected option name, only for choice questions. -
getNoul
Deprecated.P(yes) in [0, 1], only for noul questions. -
getScore
Deprecated.Probability-weighted expectation of the level index, only for score questions. May fall between two integer levels (e.g.1.43). -
getConfidence
Deprecated.The confidence of the answer, for choice and score questions. -
getProbabilities
Deprecated.The probability of each option or level; sums to 1. -
getLegend
Deprecated.Level index to level description, only for score questions. -
setType
Deprecated.The question type, one of choice/noul/score. -
setChoice
Deprecated.The selected option name, only for choice questions. -
setNoul
Deprecated.P(yes) in [0, 1], only for noul questions. -
setScore
Deprecated.Probability-weighted expectation of the level index, only for score questions. May fall between two integer levels (e.g.1.43). -
setConfidence
Deprecated.The confidence of the answer, for choice and score questions. -
setProbabilities
Deprecated.The probability of each option or level; sums to 1. -
setLegend
Deprecated.Level index to level description, only for score questions. -
equals
Deprecated. -
canEqual
Deprecated. -
hashCode
public int hashCode()Deprecated. -
toString
Deprecated.
-