Object
ExperimentFactory

public class ExperimentFactory extends Object
SelectParam<Path> factory for experiments.
Author:
Owen Feehan
  • Method Details

    • defaultExperimentOrCustom

      public static SelectParam<Path> defaultExperimentOrCustom(org.apache.commons.cli.CommandLine line, Path defaultExperiment) throws ExperimentExecutionException
      Chooses either a path to the default-experiment or a path to a custom experiment.
      Parameters:
      line - the CommandLine containing the command-line arguments
      defaultExperiment - path to the default experiment
      Returns:
      a SelectParam for a Path for the chosen experiment
      Throws:
      ExperimentExecutionException - if there's an error in selecting the experiment