Class Config
java.lang.Object
org.variantsync.boosting.eval.experiments.Config
This class represents the configuration settings for the experiment.
It contains constants for various configuration keys used in the experiment.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint[]
Retrieves the list of mapping scenarios specified for Research Questions 1 and 2.int
Returns the number of times an experiment should be repeated.Returns the working directory in which all operations of the boosting algorithm should take place.Returns the working directory in which all operations of VEVOS should take place.int
getStrip()
Returns the current path strip value.Returns the subjects to consider the experiments.Returns the path to the ground truth directory.int
Returns the maximum number of features to consider during sampling.int
Returns the number of threads to be used for the experiment.repoDir()
Returns the directory path to the subject repositories.int[]
Returns the list of number of variants that should be sampled for each experiment run specified for RQ2.void
setStrip
(int strip) Sets the path strip value.
-
Constructor Details
-
Config
Constructs a new Config object by loading properties from a specified file.- Parameters:
pathToProperties
- the path to the properties file to loadsplName
- the name of the SPL (Stream Processing Language) being used- Throws:
RuntimeException
- if an IOException occurs while loading the properties file
-
Config
Constructs a new Config object by loading properties from a specified file.- Parameters:
pathToProperties
- the path to the properties file to load- Throws:
RuntimeException
- if an IOException occurs while loading the properties file
-
-
Method Details
-
sampleSize
public int[] sampleSize()Returns the list of number of variants that should be sampled for each experiment run specified for RQ2.- Returns:
- an array of integers representing the sample sizes for each experiment run
-
maxFeatures
Returns the maximum number of features to consider during sampling.- Returns:
- an integer representing the maximum number of features
- Throws:
NumberFormatException
- if the value retrieved from properties file cannot be parsed as an integer
-
experimentRepeats
public int experimentRepeats()Returns the number of times an experiment should be repeated.- Returns:
- an integer representing the number of experiment repeats
- Throws:
NumberFormatException
- if the experiment repeats property cannot be parsed as an integer
-
experimentMapping
public int[] experimentMapping()Retrieves the list of mapping scenarios specified for Research Questions 1 and 2.- Returns:
- an array of integers representing the mapping scenarios
- Throws:
NumberFormatException
- if the mapping percentage property cannot be parsed as an integer
-
experimentWorkDirVevos
Returns the working directory in which all operations of VEVOS should take place.- Returns:
- the Path object representing the working directory
-
experimentWorkDirBoosting
Returns the working directory in which all operations of the boosting algorithm should take place.- Returns:
- the Path object representing the experiment work directory for the boosting algorithm
-
groundTruthDir
Returns the path to the ground truth directory.- Returns:
- The path to the ground truth directory
- Throws:
IOException
-
repoDir
Returns the directory path to the subject repositories.- Returns:
- The directory path to the subject repositories as a Path object.
-
getStrip
public int getStrip()Returns the current path strip value.- Returns:
- int - the current strip value
-
setStrip
public void setStrip(int strip) Sets the path strip value.- Parameters:
strip
- the strip value to set- Throws:
IllegalArgumentException
- if the strip value is negative
-
getSubjects
Returns the subjects to consider the experiments. Empty if all subjects should be considered. -
numThreads
public int numThreads()Returns the number of threads to be used for the experiment.- Returns:
- the number of threads to be used for the experiment
-