Class ExperimentExecutorFactory
Object
ExperimentExecutorFactory
Creates an
ExperimentExecutor
.- Author:
- Owen Feehan
-
Method Summary
Modifier and TypeMethodDescriptionstatic ExperimentExecutor
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.
-
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
- theCommandLine
containing the command-line argumentsdefaultExperiment
-Path
to the default-experimentconfigDirectory
-Path
to the configuration directory- Returns:
- a new
ExperimentExecutor
instance - Throws:
ExperimentExecutionException
- if there's an error creating the executor
-