Class ExperimentFactory
Object
ExperimentFactory
SelectParam<Path>
factory for experiments.- Author:
- Owen Feehan
-
Method Summary
Modifier and TypeMethodDescriptionstatic SelectParam
<Path> defaultExperimentOrCustom
(org.apache.commons.cli.CommandLine line, Path defaultExperiment) Chooses either a path to the default-experiment or a path to a custom experiment.
-
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
- theCommandLine
containing the command-line argumentsdefaultExperiment
- path to the default experiment- Returns:
- a
SelectParam
for aPath
for the chosen experiment - Throws:
ExperimentExecutionException
- if there's an error in selecting the experiment
-