Class Parameters

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

public class Parameters
extends java.lang.Object
Class for storing the configuration parameters for an algorithm, metric, etc. Each parameter has a single associated value.
  • Field Summary

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

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

    Modifier and Type Method Description
    java.lang.Boolean getBooleanValue​(java.lang.String paramName)
    Gets the boolean values for a single parameter.
    java.util.Map<java.lang.String,​java.lang.Boolean> getBooleanValues()
    Get the boolean values for different parameters.
    java.lang.Double getDoubleValue​(java.lang.String paramName)
    Gets a double values for a single parameter.
    java.util.Map<java.lang.String,​java.lang.Double> getDoubleValues()
    Get the double values for different parameters.
    java.lang.Integer getIntegerValue​(java.lang.String paramName)
    Gets the integer values for a single parameter.
    java.util.Map<java.lang.String,​java.lang.Integer> getIntegerValues()
    Get the integer values for different parameters.
    java.lang.Long getLongValue​(java.lang.String paramName)
    Gets the long values for a single parameter.
    java.util.Map<java.lang.String,​java.lang.Long> getLongValues()
    Get the long values for different parameters.
    EdgeOrientation getOrientationValue​(java.lang.String paramName)
    Gets the edge orientation values for a single parameter.
    java.util.Map<java.lang.String,​EdgeOrientation> getOrientationValues()
    Get the edge orientation values for different parameters.
    Tuple2oo<java.lang.String,​Parameters> getParametersValue​(java.lang.String paramName)
    Gets the recursive definition of a single parameter.
    java.util.Map<java.lang.String,​Tuple2oo<java.lang.String,​Parameters>> getParamValues()
    Get compound parameter values for different parameters.
    java.lang.String getStringValue​(java.lang.String paramName)
    Gets the string values for a single parameter.
    java.util.Map<java.lang.String,​java.lang.String> getStringValues()
    Get the string values for different parameters.
    Grid toGrid()
    Converts a Parameters object into a grid.

    Methods inherited from class java.lang.Object

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

    • doubleValues

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

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

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

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

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

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

      private final java.util.Map<java.lang.String,​Tuple2oo<java.lang.String,​Parameters>> paramValues
      Parameter grids for the parameters.
  • Constructor Details

    • Parameters

      public Parameters​(java.util.Map<java.lang.String,​java.lang.Double> doubleValues, java.util.Map<java.lang.String,​EdgeOrientation> orientationValues, java.util.Map<java.lang.String,​java.lang.String> stringValues, java.util.Map<java.lang.String,​java.lang.Integer> integerValues, java.util.Map<java.lang.String,​java.lang.Boolean> booleanValues, java.util.Map<java.lang.String,​java.lang.Long> longValues, java.util.Map<java.lang.String,​Tuple2oo<java.lang.String,​Parameters>> paramValues)
      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.
      paramValues - recursive values for the parameters.
    • Parameters

      public Parameters()
      Empty constructor.
  • Method Details

    • getDoubleValues

      public java.util.Map<java.lang.String,​java.lang.Double> getDoubleValues()
      Get the double values for different parameters.
      Returns:
      Double values for the different parameters
    • getOrientationValues

      public java.util.Map<java.lang.String,​EdgeOrientation> getOrientationValues()
      Get the edge orientation values for different parameters.
      Returns:
      Edge orientation values for the different parameters
    • getStringValues

      public java.util.Map<java.lang.String,​java.lang.String> getStringValues()
      Get the string values for different parameters.
      Returns:
      String values for the different parameters
    • getIntegerValues

      public java.util.Map<java.lang.String,​java.lang.Integer> getIntegerValues()
      Get the integer values for different parameters.
      Returns:
      Integer values for the different parameters
    • getBooleanValues

      public java.util.Map<java.lang.String,​java.lang.Boolean> getBooleanValues()
      Get the boolean values for different parameters.
      Returns:
      Boolean values for the different parameters.
    • getLongValues

      public java.util.Map<java.lang.String,​java.lang.Long> getLongValues()
      Get the long values for different parameters.
      Returns:
      Long values for the different parameters.
    • getParamValues

      public java.util.Map<java.lang.String,​Tuple2oo<java.lang.String,​Parameters>> getParamValues()
      Get compound parameter values for different parameters.
      Returns:
      the complex parameter values for the different parameters.
    • getDoubleValue

      public java.lang.Double getDoubleValue​(java.lang.String paramName)
      Gets a double values for a single parameter.
      Parameters:
      paramName - Parameter name
      Returns:
      the values for that parameter
    • getIntegerValue

      public java.lang.Integer getIntegerValue​(java.lang.String paramName)
      Gets the integer values for a single parameter.
      Parameters:
      paramName - Parameter name
      Returns:
      the values for that parameter
    • getStringValue

      public java.lang.String getStringValue​(java.lang.String paramName)
      Gets the string values for a single parameter.
      Parameters:
      paramName - Parameter name
      Returns:
      the values for that parameter
    • getLongValue

      public java.lang.Long getLongValue​(java.lang.String paramName)
      Gets the long values for a single parameter.
      Parameters:
      paramName - Parameter name
      Returns:
      the values for that parameter
    • getBooleanValue

      public java.lang.Boolean getBooleanValue​(java.lang.String paramName)
      Gets the boolean values for a single parameter.
      Parameters:
      paramName - Parameter name
      Returns:
      the values for that parameter
    • getOrientationValue

      public EdgeOrientation getOrientationValue​(java.lang.String paramName)
      Gets the edge orientation values for a single parameter.
      Parameters:
      paramName - Parameter name
      Returns:
      the values for that parameter
    • getParametersValue

      public Tuple2oo<java.lang.String,​Parameters> getParametersValue​(java.lang.String paramName)
      Gets the recursive definition of a single parameter.
      Parameters:
      paramName - Parameter name.
      Returns:
      the values for that parameter.
    • toGrid

      public Grid toGrid()
      Converts a Parameters object into a grid.
      Returns:
      the grid containing the parameters.