Class ProtocolParameterReader

java.lang.Object
es.uam.eps.ir.relison.grid.ParametersReader
es.uam.eps.ir.relison.grid.diffusion.protocol.ProtocolParameterReader

public class ProtocolParameterReader
extends ParametersReader
Reads the parameters for diffusion protocols.
  • Field Details

  • Constructor Details

  • Method Details

    • readProtocol

      public void readProtocol​(java.util.Map<java.lang.String,​java.lang.Object> protocol)
      Reads a protocol from an XML.
      Parameters:
      protocol - the element containing the protocol information.
    • getName

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

      public Parameters getParams()
      Obtains the parameters for the preconfigured protocol.
      Returns:
      the parameters if it is preconfigured, null if not.
    • getSelection

      public SelectionParameterReader getSelection()
      Obtains the parameters for the protocol mechanism.
      Returns:
      the parameters if it is not preconfigured, null if not.
    • getExpiration

      public ExpirationParameterReader getExpiration()
      Obtains the parameters for the expiration mechanism.
      Returns:
      the parameters if it is not preconfigured, null if not.
    • getUpdate

      public UpdateParameterReader getUpdate()
      Obtains the parameters for the update mechanism.
      Returns:
      the parameters if it is not preconfigured, null if not.
    • getPropagation

      public PropagationParameterReader getPropagation()
      Obtains the parameters for the propagation mechanism.
      Returns:
      the parameters if it is not preconfigured, null if not.
    • getSight

      public SightParameterReader getSight()
      Obtains the parameters for the sight mechanism.
      Returns:
      the parameters if it is not preconfigured, null if not.
    • isPreconfigured

      public boolean isPreconfigured()
      Indicates if the protocol is preconfigured or custom.
      Returns:
      true if the protocol is preconfigured, false if it is custom.
    • printProtocol

      public java.lang.String printProtocol()
      Shows the configuration of a protocol.
      Returns:
      a string containing the configuration of the protocol.