Package es.uam.eps.ir.relison.grid
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.
-
Field Details
-
configurations
A list of parameter configurations.
-
-
Constructor Details
-
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
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
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.
-