Class PropagationParameterReader
java.lang.Object
es.uam.eps.ir.relison.grid.ParametersReader
es.uam.eps.ir.relison.grid.diffusion.propagation.PropagationParameterReader
public class PropagationParameterReader extends ParametersReader
Class for reading an propagation mechanism for information diffusion.
For each mechanism, a single set of parameters is read.
File format:
propagation:
name: propagation_name
params: ...
param1: ...
File format:
propagation:
name: propagation_name
params: ...
param1: ...
- See Also:
ParametersReader
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
name
Name of the propagation mechanismprivate static java.lang.String
NAME
Identifier for the name of the mechanismprivate static java.lang.String
PARAMS
Identifier for the parametersprivate Parameters
values
Parameter values for the propagation mechanism. -
Constructor Summary
Constructors Constructor Description PropagationParameterReader()
-
Method Summary
Modifier and Type Method Description java.lang.String
getName()
Obtains the name of the propagation mechanism.Parameters
getParams()
Obtains the values of the parameters of the propagation mechanism.java.lang.String
printPropagationMechanism()
Shows the configuration of a propagation mechanism.void
readPropagation(java.util.Map<java.lang.String,java.lang.Object> node)
Reads the parameters of a propagation 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 propagation mechanism -
values
Parameter values for the propagation mechanism.
-
-
Constructor Details
-
PropagationParameterReader
public PropagationParameterReader()
-
-
Method Details
-
readPropagation
public void readPropagation(java.util.Map<java.lang.String,java.lang.Object> node)Reads the parameters of a propagation mechanism- Parameters:
node
- the node containing the information for that propagation mechanism.
-
getName
public java.lang.String getName()Obtains the name of the propagation mechanism.- Returns:
- the name of the propagation mechanism.
-
getParams
Obtains the values of the parameters of the propagation mechanism.- Returns:
- the values of the parameters
-
printPropagationMechanism
public java.lang.String printPropagationMechanism()Shows the configuration of a propagation mechanism.- Returns:
- a string containing the configuration of the propagation mechanism.
-