Interface Phase

All Known Implementing Classes:
AnalysisPhase, BasePhase, InputDataPhase, ReportPhase, SamplePhase

public interface Phase

A way of linking up parts of a survey up so that it can be progressed through linearly

  • Method Details

    • getAvailableQuestionSets

      List<QuestionSet> getAvailableQuestionSets(IncrementalBuildState buildState)
    • canSkip

      boolean canSkip(IncrementalBuildState buildState)
      Returns:
      true if the remaining question sets in this phase can be skipped, or false if they must be answered to move on to the next phase
    • getBackingData

      default BackingData getBackingData(IncrementalBuildState buildState, Question question)

      Allows a survey to delegate backing data requests to the phase that served up the question

    • contains

      boolean contains(QuestionSet questionSet)
      Returns:
      true if the given question set belongs to this phase. Used by the survey code to track a build state back to a phase
    • isComplete

      default boolean isComplete(IncrementalBuildState buildState)
      Returns:
      true if there are no more question sets that can be answered
    • getSurvey

      Survey getSurvey()
      Returns:
      the survey that this phase belongs to