Class Grid

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

public class Grid
extends java.lang.Object
A grid containing all the possible values for the different parameters of an algorithm, metric, etc.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    private java.util.Map<java.lang.String,​java.util.List<java.lang.Boolean>> booleanValues
    Boolean values for the different parameters.
    private java.util.Map<java.lang.String,​java.util.List<java.lang.Double>> doubleValues
    Double values for the different parameters
    private java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​Grid>> gridValues
    Grid values for the parameters.
    private java.util.Map<java.lang.String,​java.util.List<java.lang.Integer>> integerValues
    Integer values for the different parameters
    private java.util.Map<java.lang.String,​java.util.List<java.lang.Long>> longValues
    Long values for the parameters.
    private java.util.Map<java.lang.String,​java.util.List<EdgeOrientation>> orientationValues
    Edge orientation values for the different parameters
    private java.util.Map<java.lang.String,​java.util.List<java.lang.String>> stringValues
    String values for the different parameters
  • Constructor Summary

    Constructors 
    Constructor Description
    Grid()
    Empty constructor.
    Grid​(java.util.Map<java.lang.String,​java.util.List<java.lang.Double>> doubleValues, java.util.Map<java.lang.String,​java.util.List<EdgeOrientation>> orientationValues, java.util.Map<java.lang.String,​java.util.List<java.lang.String>> stringValues, java.util.Map<java.lang.String,​java.util.List<java.lang.Integer>> integerValues, java.util.Map<java.lang.String,​java.util.List<java.lang.Boolean>> booleanValues, java.util.Map<java.lang.String,​java.util.List<java.lang.Long>> longValues, java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​Grid>> gridValues)
    Constructor.
  • Method Summary

    Modifier and Type Method Description
    java.util.Map<java.lang.String,​java.util.List<java.lang.Boolean>> getBooleanValues()
    Obtains the boolean values for the different parameters.
    java.util.List<java.lang.Boolean> getBooleanValues​(java.lang.String paramName)
    Gets the boolean values for a single parameter.
    Configurations getConfigurations()
    Given the current grid, formulates the different individual configurations from those parameters:
    java.util.Map<java.lang.String,​java.util.List<java.lang.Double>> getDoubleValues()
    Obtains the double values for the different parameters.
    java.util.List<java.lang.Double> getDoubleValues​(java.lang.String paramName)
    Gets the double values for a single parameter.
    java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​Grid>> getGridValues()
    Obtains the internal grids for the different parameters.
    java.util.Map<java.lang.String,​Grid> getGridValues​(java.lang.String paramName)
    Gets the internal grids for a single parameter.
    java.util.Map<java.lang.String,​java.util.List<java.lang.Integer>> getIntegerValues()
    Obtains the integer values for the different parameters.
    java.util.List<java.lang.Integer> getIntegerValues​(java.lang.String paramName)
    Gets the integer values for a single parameter.
    private java.util.List<Parameters> getListParameters()
    Obtains a list of parameters
    java.util.Map<java.lang.String,​java.util.List<java.lang.Long>> getLongValues()
    Obtains the long values for the different parameters.
    java.util.List<java.lang.Long> getLongValues​(java.lang.String paramName)
    Gets the long values for a single parameter.
    private static <T> java.util.List<java.util.Map<java.lang.String,​T>> getMaps​(java.util.Map<java.lang.String,​java.util.List<T>> allValues)  
    private static java.util.List<java.util.Map<java.lang.String,​Tuple2oo<java.lang.String,​Parameters>>> getMapsFromGrids​(java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​Grid>> allValues)  
    java.util.Map<java.lang.String,​java.util.List<EdgeOrientation>> getOrientationValues()
    Obtains the edge orientation values for the different parameters.
    java.util.List<EdgeOrientation> getOrientationValues​(java.lang.String paramName)
    Gets the edge orientation values for a single parameter.
    java.util.Map<java.lang.String,​java.util.List<java.lang.String>> getStringValues()
    Obtains the string values for the different parameters.
    java.util.List<java.lang.String> getStringValues​(java.lang.String paramName)
    Gets the string values for a single parameter.

    Methods inherited from class java.lang.Object

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

    • integerValues

      private final java.util.Map<java.lang.String,​java.util.List<java.lang.Integer>> integerValues
      Integer values for the different parameters
    • longValues

      private final java.util.Map<java.lang.String,​java.util.List<java.lang.Long>> longValues
      Long values for the parameters.
    • doubleValues

      private final java.util.Map<java.lang.String,​java.util.List<java.lang.Double>> doubleValues
      Double values for the different parameters
    • booleanValues

      private final java.util.Map<java.lang.String,​java.util.List<java.lang.Boolean>> booleanValues
      Boolean values for the different parameters.
    • orientationValues

      private final java.util.Map<java.lang.String,​java.util.List<EdgeOrientation>> orientationValues
      Edge orientation values for the different parameters
    • stringValues

      private final java.util.Map<java.lang.String,​java.util.List<java.lang.String>> stringValues
      String values for the different parameters
    • gridValues

      private final java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​Grid>> gridValues
      Grid values for the parameters.
  • Constructor Details

    • Grid

      public Grid​(java.util.Map<java.lang.String,​java.util.List<java.lang.Double>> doubleValues, java.util.Map<java.lang.String,​java.util.List<EdgeOrientation>> orientationValues, java.util.Map<java.lang.String,​java.util.List<java.lang.String>> stringValues, java.util.Map<java.lang.String,​java.util.List<java.lang.Integer>> integerValues, java.util.Map<java.lang.String,​java.util.List<java.lang.Boolean>> booleanValues, java.util.Map<java.lang.String,​java.util.List<java.lang.Long>> longValues, java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​Grid>> gridValues)
      Constructor.
      Parameters:
      doubleValues - double values for the different parameters.
      orientationValues - edge orientation values for the different parameters.
      stringValues - string values for the different parameters.
      integerValues - integer values for the different parameters.
      booleanValues - boolean values for the different parameters.
      longValues - long values for the parameters.
      gridValues - grid values for the parameters.
    • Grid

      public Grid()
      Empty constructor.
  • Method Details

    • getIntegerValues

      public java.util.Map<java.lang.String,​java.util.List<java.lang.Integer>> getIntegerValues()
      Obtains the integer values for the different parameters.
      Returns:
      a map, indexed by parameter name, containing the possible integer values for the parameter.
    • getLongValues

      public java.util.Map<java.lang.String,​java.util.List<java.lang.Long>> getLongValues()
      Obtains the long values for the different parameters.
      Returns:
      a map, indexed by parameter name, containing the possible long values for the parameter.
    • getDoubleValues

      public java.util.Map<java.lang.String,​java.util.List<java.lang.Double>> getDoubleValues()
      Obtains the double values for the different parameters.
      Returns:
      a map, indexed by parameter name, containing the possible double values for the parameter.
    • getBooleanValues

      public java.util.Map<java.lang.String,​java.util.List<java.lang.Boolean>> getBooleanValues()
      Obtains the boolean values for the different parameters.
      Returns:
      a map, indexed by parameter name, containing the possible boolean values for the parameter.
    • getOrientationValues

      public java.util.Map<java.lang.String,​java.util.List<EdgeOrientation>> getOrientationValues()
      Obtains the edge orientation values for the different parameters.
      Returns:
      a map, indexed by parameter name, containing the edge orientation values for the parameter.
    • getStringValues

      public java.util.Map<java.lang.String,​java.util.List<java.lang.String>> getStringValues()
      Obtains the string values for the different parameters.
      Returns:
      a map, indexed by parameter name, containing the string values for the parameter.
    • getGridValues

      public java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​Grid>> getGridValues()
      Obtains the internal grids for the different parameters.
      Returns:
      a map, indexed by parameter name, containing the internal grids for the parameter.
    • getIntegerValues

      public java.util.List<java.lang.Integer> getIntegerValues​(java.lang.String paramName)
      Gets the integer values for a single parameter.
      Parameters:
      paramName - the name of the parameter.
      Returns:
      a list containing the values for that parameter.
    • getLongValues

      public java.util.List<java.lang.Long> getLongValues​(java.lang.String paramName)
      Gets the long values for a single parameter.
      Parameters:
      paramName - the name of the parameter.
      Returns:
      a list containing the values for that parameter.
    • getDoubleValues

      public java.util.List<java.lang.Double> getDoubleValues​(java.lang.String paramName)
      Gets the double values for a single parameter.
      Parameters:
      paramName - the name of the parameter.
      Returns:
      a list containing the values for that parameter.
    • getBooleanValues

      public java.util.List<java.lang.Boolean> getBooleanValues​(java.lang.String paramName)
      Gets the boolean values for a single parameter.
      Parameters:
      paramName - the name of the parameter.
      Returns:
      a list containing the values for that parameter.
    • getOrientationValues

      public java.util.List<EdgeOrientation> getOrientationValues​(java.lang.String paramName)
      Gets the edge orientation values for a single parameter.
      Parameters:
      paramName - the name of the parameter.
      Returns:
      a list containing the values for that parameter.
    • getStringValues

      public java.util.List<java.lang.String> getStringValues​(java.lang.String paramName)
      Gets the string values for a single parameter.
      Parameters:
      paramName - the name of the parameter.
      Returns:
      a list containing the values for that parameter.
    • getGridValues

      public java.util.Map<java.lang.String,​Grid> getGridValues​(java.lang.String paramName)
      Gets the internal grids for a single parameter.
      Parameters:
      paramName - the name of the parameter.
      Returns:
      a list containing the values for that parameter.
    • getConfigurations

      public Configurations getConfigurations()
      Given the current grid, formulates the different individual configurations from those parameters:
      Returns:
      a set of configurations.
    • getMaps

      private static <T> java.util.List<java.util.Map<java.lang.String,​T>> getMaps​(java.util.Map<java.lang.String,​java.util.List<T>> allValues)
    • getMapsFromGrids

      private static java.util.List<java.util.Map<java.lang.String,​Tuple2oo<java.lang.String,​Parameters>>> getMapsFromGrids​(java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​Grid>> allValues)
    • getListParameters

      private java.util.List<Parameters> getListParameters()
      Obtains a list of parameters
      Returns:
      the list of parameter configurations.