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