Class ProtocolSelector<U extends java.io.Serializable,​I extends java.io.Serializable,​F>

java.lang.Object
es.uam.eps.ir.relison.grid.diffusion.protocol.ProtocolSelector<U,​I,​F>
Type Parameters:
U - type of the users.
I - type of the information pieces.
F - type of the user and information pieces features.

public class ProtocolSelector<U extends java.io.Serializable,​I extends java.io.Serializable,​F>
extends java.lang.Object
Class for selecting a suitable information diffusion protocol from its configuration.
  • Constructor Summary

    Constructors 
    Constructor Description
    ProtocolSelector()  
  • Method Summary

    Modifier and Type Method Description
    org.jooq.lambda.tuple.Tuple2<java.lang.String,​Protocol<U,​I,​F>> select​(ProtocolParameterReader ppr)
    Selects a protocol.

    Methods inherited from class java.lang.Object

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

  • Method Details

    • select

      public org.jooq.lambda.tuple.Tuple2<java.lang.String,​Protocol<U,​I,​F>> select​(ProtocolParameterReader ppr)
      Selects a protocol.
      Parameters:
      ppr - the configuration parameters of the protocol.
      Returns:
      a pair containing the name and the selected protocol.