Class SightParameterReader

java.lang.Object
es.uam.eps.ir.relison.grid.ParametersReader
es.uam.eps.ir.relison.grid.diffusion.sight.SightParameterReader

public class SightParameterReader
extends ParametersReader
Class for reading a sight mechanism for information diffusion. For each mechanism, a single set of parameters is read.
File format:
sight:
name: sight_name
params: ...
param1: ...
See Also:
ParametersReader
  • Field Summary

    Fields 
    Modifier and Type Field Description
    private java.lang.String name
    Name of the sight mechanism
    private static java.lang.String NAME
    Identifier for the name of the mechanism
    private static java.lang.String PARAMS
    Identifier for the parameters
    private Parameters values
    Parameter values for the sight mechanism.
  • Constructor Summary

    Constructors 
    Constructor Description
    SightParameterReader()  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getName()
    Obtains the name of the sight mechanism.
    Parameters getParams()
    Obtains the values of the parameters of the sight mechanism.
    java.lang.String printSightMechanism()
    Shows the configuration of a sight mechanism.
    void readSight​(java.util.Map<java.lang.String,​java.lang.Object> node)
    Reads the parameters of a sight mechanism

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • NAME

      private static final java.lang.String NAME
      Identifier for the name of the mechanism
      See Also:
      Constant Field Values
    • PARAMS

      private static final java.lang.String PARAMS
      Identifier for the parameters
      See Also:
      Constant Field Values
    • name

      private java.lang.String name
      Name of the sight mechanism
    • values

      private Parameters values
      Parameter values for the sight mechanism.
  • Constructor Details

  • Method Details

    • readSight

      public void readSight​(java.util.Map<java.lang.String,​java.lang.Object> node)
      Reads the parameters of a sight mechanism
      Parameters:
      node - the node containing the information for that sight mechanism.
    • getName

      public java.lang.String getName()
      Obtains the name of the sight mechanism.
      Returns:
      the name of the sight mechanism.
    • getParams

      public Parameters getParams()
      Obtains the values of the parameters of the sight mechanism.
      Returns:
      the values of the parameters
    • printSightMechanism

      public java.lang.String printSightMechanism()
      Shows the configuration of a sight mechanism.
      Returns:
      a string containing the configuration of the sight mechanism.