Class SelectionParameterReader
java.lang.Object
es.uam.eps.ir.relison.grid.ParametersReader
es.uam.eps.ir.relison.grid.diffusion.selection.SelectionParameterReader
public class SelectionParameterReader extends ParametersReader
Class for reading a selection mechanism for information diffusion.
For each metric, a single set of parameters is read.
File format:
selection:
name: selection_name
params: ...
param1: ...
File format:
selection:
name: selection_name
params: ...
param1: ...
- See Also:
ParametersReader
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringnameName of the selection mechanismprivate static java.lang.StringNAMEIdentifier for the name of the mechanismprivate static java.lang.StringPARAMSIdentifier for the parametersprivate ParametersvaluesParameter values for the selection mechanism. -
Constructor Summary
Constructors Constructor Description SelectionParameterReader() -
Method Summary
Modifier and Type Method Description java.lang.StringgetName()Obtains the name of the selection mechanism.ParametersgetParams()Obtains the values of the parameters of the selection mechanism.java.lang.StringprintSelectionMechanism()Shows the configuration of a selection mechanism.voidreadSelection(java.util.Map<java.lang.String,java.lang.Object> node)Reads the parameters of a selection mechanismMethods inherited from class es.uam.eps.ir.relison.grid.ParametersReader
readBoolean, readDouble, readInteger, readLong, readOrientation, readParameters, readParameterValues, readString
-
Field Details
-
NAME
private static final java.lang.String NAMEIdentifier for the name of the mechanism- See Also:
- Constant Field Values
-
PARAMS
private static final java.lang.String PARAMSIdentifier for the parameters- See Also:
- Constant Field Values
-
name
private java.lang.String nameName of the selection mechanism -
values
Parameter values for the selection mechanism.
-
-
Constructor Details
-
SelectionParameterReader
public SelectionParameterReader()
-
-
Method Details
-
readSelection
public void readSelection(java.util.Map<java.lang.String,java.lang.Object> node)Reads the parameters of a selection mechanism- Parameters:
node- the node containing the information for that selection mechanism.
-
getName
public java.lang.String getName()Obtains the name of the selection mechanism.- Returns:
- the name of the selection mechanism.
-
getParams
Obtains the values of the parameters of the selection mechanism.- Returns:
- the values of the parameters
-
printSelectionMechanism
public java.lang.String printSelectionMechanism()Shows the configuration of a selection mechanism.- Returns:
- a string containing the configuration of the selection mechanism.
-