Class ExperimentExecutor

Object
ExperimentExecutor

public class ExperimentExecutor extends Object
Runs a particular experiment after identifying necessary paths and input files.
Author:
Owen Feehan
  • Method Details

    • executeExperiment

      public void executeExperiment(ExecutionArguments executionArguments, boolean alwaysShowExperimentArguments, Logger logger) throws ExperimentExecutionException
      Executes an experiment after finding a single experiment XML file, and reading the experiment from this file.
      Parameters:
      executionArguments - the ExecutionArguments for the experiment
      alwaysShowExperimentArguments - whether to always show experiment arguments
      logger - the Logger to use for logging
      Throws:
      ExperimentExecutionException - if the execution ends early
    • taskDirectory

      public Path taskDirectory()
      Gets the path to the task directory.
      Returns:
      the Path to the task directory
    • getInput

      public SelectParam<Optional<Path>> getInput()
      The input selection parameter.
    • setInput

      public void setInput(SelectParam<Optional<Path>> input)
      The input selection parameter.
    • getOutput

      public SelectParam<Optional<Path>> getOutput()
      The output selection parameter.
    • setOutput

      public void setOutput(SelectParam<Optional<Path>> output)
      The output selection parameter.
    • getTask

      public SelectParam<Optional<Path>> getTask()
      The task selection parameter.
    • setTask

      public void setTask(SelectParam<Optional<Path>> task)
      The task selection parameter.
    • isOpenInDesktop

      public boolean isOpenInDesktop()
      Whether to open the output directory in the desktop GUI after execution (if supported on the O/S).
    • setOpenInDesktop

      public void setOpenInDesktop(boolean openInDesktop)
      Whether to open the output directory in the desktop GUI after execution (if supported on the O/S).
    • setDefaultBehaviourString

      public void setDefaultBehaviourString(Optional<String> defaultBehaviourString)
      If present, a string is printed in the description if the default-experiment is used, otherwise ignored.