Interface DecisionQuestion

All Known Implementing Classes:
ChoiceQuestion, ScoreQuestion, YesNoQuestion

public sealed interface DecisionQuestion permits YesNoQuestion, ChoiceQuestion, ScoreQuestion
A question a DecisionModel answers about an input: a YesNoQuestion, a ChoiceQuestion or a ScoreQuestion. The interface is sealed, like DecisionInput, so that providers and applications can handle every kind of question exhaustively; a new kind is an addition to the API, not to a provider.
Since:
2.1.0
Author:
Thomas Vitale, Christian Tzolov
  • Method Summary

    Modifier and Type
    Method
    Description
    The question text, which tells the model what to decide.
  • Method Details

    • getText

      String getText()
      The question text, which tells the model what to decide.