Class ExperimentExecutorFactory

Object
ExperimentExecutorFactory

public class ExperimentExecutorFactory extends Object
Creates an ExperimentExecutor.
Author:
Owen Feehan
  • Method Details

    • create

      public static ExperimentExecutor create(org.apache.commons.cli.CommandLine line, Path defaultExperiment, Path configDirectory) throws ExperimentExecutionException
      Creates an experiment-executor from a command line that EITHER: uses a default-experiment OR accepts a path passed as the first command-line argument.
      Parameters:
      line - the CommandLine containing the command-line arguments
      defaultExperiment - Path to the default-experiment
      configDirectory - Path to the configuration directory
      Returns:
      a new ExperimentExecutor instance
      Throws:
      ExperimentExecutionException - if there's an error creating the executor