Class ParseArgumentsAndRunExperiment

Object
ParseArgumentsAndRunExperiment

public class ParseArgumentsAndRunExperiment extends Object
Parses command-line arguments and runs an experiment.

The parser includes:

  1. a help option, that prints help information
  2. a version option, that prints version information
  3. a logError option, that records certain errors (parsing errors) in a log-file with more detail
  4. and take an argument of a single path that represents an experiment BeanXML file (or path to a directory containing experiment BeanXML)
Author:
Owen Feehan
  • Constructor Details

    • ParseArgumentsAndRunExperiment

      public ParseArgumentsAndRunExperiment(Logger logger)
      Creates a new ParseArgumentsAndRunExperiment instance.
      Parameters:
      logger - For reporting messages on what goes wrong
  • Method Details

    • parseAndRun

      public void parseAndRun(String[] arguments, LauncherConfig config)
      Parses the arguments to a command-line experiment and runs an experiment.
      Parameters:
      arguments - arguments from command-line
      config - a configuration for the command-line executor.