Package es.uam.eps.ir.relison.grid
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 parametersprivate java.util.Map<java.lang.String,java.lang.Integer>
integerValues
Integer values for the different parametersprivate 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 parametersprivate 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.
-
Field Details
-
doubleValues
private final java.util.Map<java.lang.String,java.lang.Double> doubleValuesDouble values for the different parameters -
orientationValues
Edge orientation values for the different parameters -
stringValues
private final java.util.Map<java.lang.String,java.lang.String> stringValuesString values for the different parameters -
integerValues
private final java.util.Map<java.lang.String,java.lang.Integer> integerValuesInteger values for the different parameters -
booleanValues
private final java.util.Map<java.lang.String,java.lang.Boolean> booleanValuesBoolean values for the different parameters. -
longValues
private final java.util.Map<java.lang.String,java.lang.Long> longValuesLong values for the 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 parametersorientationValues
- edge orientation values for the different parametersstringValues
- string values for the different parametersintegerValues
- integer values for the different parametersbooleanValues
- 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
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
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
Gets the edge orientation values for a single parameter.- Parameters:
paramName
- Parameter name- Returns:
- the values for that parameter
-
getParametersValue
Gets the recursive definition of a single parameter.- Parameters:
paramName
- Parameter name.- Returns:
- the values for that parameter.
-
toGrid
Converts a Parameters object into a grid.- Returns:
- the grid containing the parameters.
-