Class ExperimentExecutorFactory
Object
ExperimentExecutorFactory
Creates an
ExperimentExecutor.- Author:
- Owen Feehan
-
Method Summary
Modifier and TypeMethodDescriptionstatic ExperimentExecutorCreates an experiment-executor from a command line that EITHER: uses a default-experiment OR accepts a path passed as the first command-line argument.
-
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- theCommandLinecontaining the command-line argumentsdefaultExperiment-Pathto the default-experimentconfigDirectory-Pathto the configuration directory- Returns:
- a new
ExperimentExecutorinstance - Throws:
ExperimentExecutionException- if there's an error creating the executor
-