Class UpdateParameterReader
java.lang.Object
es.uam.eps.ir.relison.grid.ParametersReader
es.uam.eps.ir.relison.grid.diffusion.update.UpdateParameterReader
public class UpdateParameterReader extends ParametersReader
Class for reading an update mechanism for information diffusion.
For each mechanism, a single set of parameters is read.
File format:
update:
name: update_name
params: ...
param1: ...
File format:
update:
name: update_name
params: ...
param1: ...
- See Also:
ParametersReader
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringnameName of the update mechanismprivate static java.lang.StringNAMEIdentifier for the name of the mechanismprivate static java.lang.StringPARAMSIdentifier for the parametersprivate ParametersvaluesParameter values for the update mechanism. -
Constructor Summary
Constructors Constructor Description UpdateParameterReader() -
Method Summary
Modifier and Type Method Description java.lang.StringgetName()Obtains the name of the update mechanism.ParametersgetParams()Obtains the values of the parameters of the update mechanism.java.lang.StringprintUpdateMechanism()Shows the configuration of a update mechanism.voidreadUpdate(java.util.Map<java.lang.String,java.lang.Object> node)Reads the parameters of a update 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 update mechanism -
values
Parameter values for the update mechanism.
-
-
Constructor Details
-
UpdateParameterReader
public UpdateParameterReader()
-
-
Method Details
-
readUpdate
public void readUpdate(java.util.Map<java.lang.String,java.lang.Object> node)Reads the parameters of a update mechanism- Parameters:
node- the node containing the information for that update mechanism.
-
getName
public java.lang.String getName()Obtains the name of the update mechanism.- Returns:
- the name of the update mechanism.
-
getParams
Obtains the values of the parameters of the update mechanism.- Returns:
- the values of the parameters
-
printUpdateMechanism
public java.lang.String printUpdateMechanism()Shows the configuration of a update mechanism.- Returns:
- a string containing the configuration of the update mechanism.
-