Class Configurations

java.lang.Object
es.uam.eps.ir.relison.grid.Configurations

public class Configurations
extends java.lang.Object
Class for storing the different possible configurations for an algorithm, metric, etc. Differently from a grid, where we can mix any two values of a parameter, this class stores each possible parameter selection separately.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    private java.util.List<Parameters> configurations
    A list of parameter configurations.
  • Constructor Summary

    Constructors 
    Constructor Description
    Configurations()
    Default constructor.
    Configurations​(java.util.List<Parameters> configurations)
    Constructor.
  • Method Summary

    Modifier and Type Method Description
    Parameters getConfiguration​(int idx)
    Obtains the parameters for a single configuration of the algorithm, metric, etc.
    java.util.List<Parameters> getConfigurations()
    Obtains the configurations for the different algorithms.
    int numConfigs()
    Obtains the number of different configurations.

    Methods inherited from class java.lang.Object

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

  • Constructor Details

    • Configurations

      public Configurations​(java.util.List<Parameters> configurations)
      Constructor.
      Parameters:
      configurations - a list containing the different configurations for the algorithms
    • Configurations

      public Configurations()
      Default constructor. Initializes the list with a single configuration containing an empty set of parameters.
  • Method Details

    • getConfigurations

      public java.util.List<Parameters> getConfigurations()
      Obtains the configurations for the different algorithms.
      Returns:
      the configurations for the different algorithms.
    • numConfigs

      public int numConfigs()
      Obtains the number of different configurations.
      Returns:
      the number of different configurations.
    • getConfiguration

      public Parameters getConfiguration​(int idx)
      Obtains the parameters for a single configuration of the algorithm, metric, etc.
      Parameters:
      idx - index of the configuration.
      Returns:
      the configurations if it exists, null otherwise.