static OptionArg<List<String>> createIncludeOption( Map<String, Path> pathMap, Builder builder) { final StringBuilder sb = new StringBuilder(); printPathOptions(pathMap, sb); sb.append("This option can not be used together with --exclude."); return Option .builder("i", ArgumentParser.stringListParser()) .longName("include") .description(sb.toString()) .build(); }
static OptionArg<List<String>> createExcludeOption( Map<String, Path> pathMap, Builder builder) { final StringBuilder sb = new StringBuilder(); printPathOptions(pathMap, sb); sb.append("This option can not be used together with --include."); return Option.builder("e", ArgumentParser.stringListParser()) .longName("exclude") .description(sb.toString()) .build(); }
static OptionArg<List<SimulationProperty>> createOrderingOption( Builder builder) { return Option.builder("o", ArgumentParser.enumListParser("list", SimulationProperty.class)) .longName("ordering") .description( "Sets the ordering of simulations as specified by simulation " + "properties, default: ", Joiner.on(",").join(builder.experimentOrdering), ". All options must be specified exactly once.") .build(); }
static OptionArg<Long> createSeedOption(Experiment.Builder builder) { return Option.builder(S, ArgumentParser.longParser()) .longName("seed") .description( "Sets the master random seed, default: ", builder.masterSeed, ".") .build(); }
static OptionArg<List<String>> createExcludeOpt( Map<String, MASConfiguration> configMap) { return Option.builder("e", ArgumentParser.prefixedIntList(CONFIG_PREFIX)) .longName("exclude") .description( "The following configurations can be excluded from the experiment" + " setup:", createConfigString(configMap), "This option can not be used together with --include.") .build(); }
static OptionArg<List<SimulationProperty>> createOrderingOption( Builder builder) { return Option.builder("o", ArgumentParser.enumListParser("list", SimulationProperty.class)) .longName("ordering") .description( "Sets the ordering of simulations as specified by simulation " + "properties, default: ", Joiner.on(",").join(builder.experimentOrdering), ". All options must be specified exactly once.") .build(); }
static OptionArg<Integer> createRepetitionsOpt(Builder builder) { return Option .builder("r", ArgumentParser.intParser()) .longName("repetitions") .description( "Sets the number of repetitions of each setting, default: ", builder.repetitions) .build(); }
static OptionArg<Boolean> createGuiOpt(Builder builder) { return Option.builder("g", ArgumentParser.booleanParser()) .longName("show-gui") .description( "Starts the gui for each simulation when 'true' is supplied, hides " + "it when 'false' is supplied. By default the gui is ", builder.showGui ? "" : "not", " shown. The gui can only be shown if the computation is performed " + "locally and the number of threads is set to 1.") .build(); }
static OptionArg<Long> createSeedOption(Experiment.Builder builder) { return Option.builder(S, ArgumentParser.longParser()) .longName("seed") .description( "Sets the master random seed, default: ", builder.masterSeed, ".") .build(); }
static OptionArg<List<String>> createExcludeOpt( Map<String, MASConfiguration> configMap) { return Option.builder("e", ArgumentParser.prefixedIntList(CONFIG_PREFIX)) .longName("exclude") .description( "The following configurations can be excluded from the experiment" + " setup:", createConfigString(configMap), "This option can not be used together with --include.") .build(); }
static OptionArg<Integer> createRepetitionsOpt(Builder builder) { return Option .builder("r", ArgumentParser.intParser()) .longName("repetitions") .description( "Sets the number of repetitions of each setting, default: ", builder.repetitions) .build(); }
static OptionArg<List<String>> createIncludeOpt( Map<String, MASConfiguration> configMap) { return Option.builder("i", ArgumentParser.prefixedIntList(CONFIG_PREFIX)) .longName("include") .description( "The following configurations can be included in the experiment " + "setup:", createConfigString(configMap), "This option can not be used together with --exclude.") .build(); }
static OptionArg<Boolean> createGuiOpt(Builder builder) { return Option.builder("g", ArgumentParser.booleanParser()) .longName("show-gui") .description( "Starts the gui for each simulation when 'true' is supplied, hides " + "it when 'false' is supplied. By default the gui is ", builder.showGui ? "" : "not", " shown. The gui can only be shown if the computation is performed " + "locally and the number of threads is set to 1.") .build(); }
static OptionArg<Integer> createThreadsOpt(Experiment.Builder builder) { return Option .builder("t", ArgumentParser.intParser()) .longName("threads") .description( "Sets the number of threads to use in case of local computation, " + "default: ", builder.numThreads, ". This option can not be used together with --batches.") .build(); }
static OptionArg<Integer> createThreadsOpt(Experiment.Builder builder) { return Option .builder("t", ArgumentParser.intParser()) .longName("threads") .description( "Sets the number of threads to use in case of local computation, " + "default: ", builder.numThreads, ". This option can not be used together with --batches.") .build(); }
static OptionArg<Integer> createSeedRepetitionsOpt(Builder builder) { return Option .builder("sr", ArgumentParser.intParser()) .longName("seed-repetitions") .description( "Sets the number of seed repetitions of each setting, default: ", builder.seedRepetitions) .build(); }
static OptionArg<Integer> createCompositeSizeOpt(Builder expBuilder) { return Option.builder("cs", ArgumentParser.intParser()) .longName("composite-size") .description( "Sets the composite task size to use in case of distributed computation" + ", default: ", expBuilder.compositeTaskSize) .build(); }
static OptionArg<Integer> createBatchesOpt(Builder expBuilder) { return Option.builder("b", ArgumentParser.intParser()) .longName("batches") .description( "Sets the number of batches to use in case of distributed " + "computation, default: ", expBuilder.numBatches, ". This option can not be used together with --threads.") .build(); }
static OptionArg<List<String>> createAddOption() { return Option .builder("a", ArgumentParser.stringListParser()) .longName("add") .description( "Adds the specified paths. A path may be a file or a directory. " + "If it is a directory it will be searched recursively.") .build(); }
static OptionArg<String> createDryRunOpt(Builder builder) { return Option.builder("dr", ArgumentParser.stringParser()) .longName("dry-run") .description( "Will perform a 'dry run' of the experiment without doing any" + " actual simulations. A detailed description of the " + "experiment setup will be printed. If an additional " + "argument 'v' or 'verbose' is supplied, more details of" + " the experiment will be printed.") .setOptionalArgument() .build(); }