java.lang.Object
org.variantsync.boosting.eval.experiments.Config

public class Config extends Object
This class represents the configuration settings for the experiment. It contains constants for various configuration keys used in the experiment.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Config(Path pathToProperties)
    Constructs a new Config object by loading properties from a specified file.
    Config(Path pathToProperties, String splName)
    Constructs a new Config object by loading properties from a specified file.
  • Method Summary

    Modifier and Type
    Method
    Description
    int[]
    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
    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.
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Config

      public Config(Path pathToProperties, String splName)
      Constructs a new Config object by loading properties from a specified file.
      Parameters:
      pathToProperties - the path to the properties file to load
      splName - the name of the SPL (Stream Processing Language) being used
      Throws:
      RuntimeException - if an IOException occurs while loading the properties file
    • Config

      public Config(Path pathToProperties)
      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

      public int maxFeatures() throws NumberFormatException
      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

      public Path experimentWorkDirVevos()
      Returns the working directory in which all operations of VEVOS should take place.
      Returns:
      the Path object representing the working directory
    • experimentWorkDirBoosting

      public Path 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

      public Path groundTruthDir() throws IOException
      Returns the path to the ground truth directory.
      Returns:
      The path to the ground truth directory
      Throws:
      IOException
    • repoDir

      public Path 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

      public List<String> 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