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

java.lang.Object
es.uam.eps.ir.relison.diffusion.protocols.Protocol<U,​I,​F>
es.uam.eps.ir.relison.diffusion.protocols.CustomProtocol<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 CustomProtocol<U extends java.io.Serializable,​I extends java.io.Serializable,​F>
extends Protocol<U,​I,​F>
Class for building custom protocols.
  • Constructor Details

    • CustomProtocol

      public CustomProtocol​(SelectionMechanism<U,​I,​F> selection, ExpirationMechanism<U,​I,​F> expiration, UpdateMechanism update, PropagationMechanism<U,​I,​F> prop, SightMechanism<U,​I,​F> sight)
      Constructor.
      Parameters:
      selection - mechanism for selecting the information the user propagates.
      expiration - mechanism for discarding information pieces over time.
      update - mechanism for updating the list of information to propagate.
      prop - mechanism for selecting the users towards whom propagate the information.
      sight - mechanism for selecting the information pieces that a user sees.