public class Experiment
extends java.lang.Object
Constructor and Description |
---|
Experiment(java.lang.String config_file)
Constructor that loads properties from XML configuration file
|
Modifier and Type | Method and Description |
---|---|
void |
loadXMLConfig(java.lang.String config_file)
Load properties from XML configuration file
|
static void |
main(java.lang.String[] args)
Runs experiments using multiple runs with different settings and generates results
|
void |
printExperimentResults()
Prints the results of all trials, grouped by parameters and displayed by mangler
|
void |
printTrialResults()
Calculates the results of all trials, grouped by parameters and displayed by mangler
|
int |
runExperiment()
Runs this experiment
|
int |
runTrials()
Runs trials for each setting
|
void |
showSettings()
Prints out the properties for this experiment
|
public Experiment(java.lang.String config_file)
config_file
- the string XML filename that specifies the configurations to be usedpublic void loadXMLConfig(java.lang.String config_file)
config_file
- the string name of the configuration filepublic void showSettings()
public int runExperiment()
int
database run number for this experiment; returns 0 if not inserting into the databasepublic int runTrials()
int
database run number for this experiment; returns 0 if not inserting into the databasepublic void printTrialResults()
public void printExperimentResults()
public static void main(java.lang.String[] args)
args
- array of string command line argumentsargs[0]
the filename of the experiment configuration fileargs[1]
the option to print ("show") results to the screen or insert ("insert") results into
the database; if "insert" is chosen results also print to screen