Package evo.search.experiments
Class Experiment
- java.lang.Object
-
- evo.search.experiments.Experiment
-
- Direct Known Subclasses:
MultiTreasureFitnessExperiment
,OneTreasureFitnessExperiment
public abstract class Experiment extends Object implements Consumer<String[]>
Basic experiment class providing utilities for experiments.
-
-
Constructor Summary
Constructors Constructor Description Experiment()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
parseFileName(String[] args)
Take the experiments arguments and parse the csv file name from the first argument.static long
parseSeed(String[] args)
Take the experiments arguments and parse the seed from the second argument.static void
printProgress(int progress, int amount)
Print a progress bar graph to the console.
-
-
-
Method Detail
-
printProgress
public static void printProgress(int progress, int amount)
Print a progress bar graph to the console.- Parameters:
progress
- current amount of progressamount
- overall amount of work
-
parseFileName
public static String parseFileName(String[] args)
Take the experiments arguments and parse the csv file name from the first argument.- Parameters:
args
- list of arguments- Returns:
- csv file name
-
parseSeed
public static long parseSeed(String[] args)
Take the experiments arguments and parse the seed from the second argument.- Parameters:
args
- list of arguments- Returns:
- random seed
-
-