Interface DecisionAnswer

All Known Implementing Classes:
ChoiceAnswer, RefusalAnswer, ScoreAnswer, YesNoAnswer

public sealed interface DecisionAnswer permits YesNoAnswer, ChoiceAnswer, ScoreAnswer, RefusalAnswer
The answer a DecisionModel gives to a DecisionQuestion: a YesNoAnswer, a ChoiceAnswer or a ScoreAnswer matching the kind of the question, or a RefusalAnswer when the provider declined to answer it. The interface is sealed, like DecisionQuestion, so that applications can handle every kind of answer exhaustively.
Since:
2.1.0
Author:
Thomas Vitale, Christian Tzolov