Class WizardActions

java.lang.Object
nz.org.riskscape.wizard.WizardActions
All Implemented Interfaces:
nz.org.riskscape.engine.cli.PipelineRenderer

public class WizardActions extends Object implements nz.org.riskscape.engine.cli.PipelineRenderer
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Action
    The action that is returned when the user selects the 'continue' option - allows calling code to detect that they didn't actually want to do anything
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    getRenderedPipeline(nz.org.riskscape.engine.pipeline.RealizedPipeline pipeline)
    Renders a RealizedPipeline, as per PipelineRenderer.
    getSaveOrShowActions(nz.org.riskscape.wizard.bld.IncrementalBuildState buildState)
     
    getSurveyCompleteActions(nz.org.riskscape.wizard.bld.IncrementalBuildState buildState)
     
    void
    saveModelIni(nz.org.riskscape.wizard.bld.IncrementalBuildState buildState)
    Saves the wizard content as a model INI file to the given relativeTo directory (useful for testing).
    void
    saveModelIniAndPipeline(nz.org.riskscape.wizard.bld.IncrementalBuildState buildState)
    Saves both model INI and a pipeline from the buildState
    void
    savePipelineDsl(nz.org.riskscape.wizard.bld.IncrementalBuildState buildState)
    Saves the pipeline produced by the IncrementalBuildState as a plain-text DSL file within the project.ini file's directory.
    void
    savePipelineDsl(nz.org.riskscape.wizard.bld.IncrementalBuildState buildState, String pipelineName, boolean writeModelFile)
    Saves the pipeline DSL to the given relativeTo directory (useful for testing).
    void
    showAnswers(nz.org.riskscape.wizard.bld.IncrementalBuildState buildState)
     
    void
    showInputScope(nz.org.riskscape.wizard.bld.IncrementalBuildState buildState)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface nz.org.riskscape.engine.cli.PipelineRenderer

    boundPipelineParameterToString, graph, printPipeline, printPipeline, printType
  • Field Details

    • CONTINUE_ACTION

      public static final Action CONTINUE_ACTION

      The action that is returned when the user selects the 'continue' option - allows calling code to detect that they didn't actually want to do anything

  • Constructor Details

  • Method Details

    • saveModelIniAndPipeline

      public void saveModelIniAndPipeline(nz.org.riskscape.wizard.bld.IncrementalBuildState buildState)

      Saves both model INI and a pipeline from the buildState

    • savePipelineDsl

      public void savePipelineDsl(nz.org.riskscape.wizard.bld.IncrementalBuildState buildState, String pipelineName, boolean writeModelFile)

      Saves the pipeline DSL to the given relativeTo directory (useful for testing).

    • savePipelineDsl

      public void savePipelineDsl(nz.org.riskscape.wizard.bld.IncrementalBuildState buildState)

      Saves the pipeline produced by the IncrementalBuildState as a plain-text DSL file within the project.ini file's directory.

    • saveModelIni

      public void saveModelIni(nz.org.riskscape.wizard.bld.IncrementalBuildState buildState)

      Saves the wizard content as a model INI file to the given relativeTo directory (useful for testing).

    • getRenderedPipeline

      public String getRenderedPipeline(nz.org.riskscape.engine.pipeline.RealizedPipeline pipeline)

      Renders a RealizedPipeline, as per PipelineRenderer.

      Note that this only renders valid pipelines, as that is all the wizard should produce.

    • getSaveOrShowActions

      public List<Choice<Action>> getSaveOrShowActions(nz.org.riskscape.wizard.bld.IncrementalBuildState buildState)
    • getSurveyCompleteActions

      public List<Choice<Action>> getSurveyCompleteActions(nz.org.riskscape.wizard.bld.IncrementalBuildState buildState)
    • showInputScope

      public void showInputScope(nz.org.riskscape.wizard.bld.IncrementalBuildState buildState)
    • showAnswers

      public void showAnswers(nz.org.riskscape.wizard.bld.IncrementalBuildState buildState)