Class SimpleProtocol<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.SimpleProtocol<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 SimpleProtocol<U extends java.io.Serializable,​I extends java.io.Serializable,​F>
extends Protocol<U,​I,​F>
Simple simulator. Each iteration, propagates a certain number of own information, and a certain number of received information.
  • Constructor Summary

    Constructors 
    Constructor Description
    SimpleProtocol​(int numOwn, int numRec)
    Constructor.
  • Method Summary

    Methods inherited from class es.uam.eps.ir.relison.diffusion.protocols.Protocol

    getExpiration, getProp, getSelection, getSight, getUpdate

    Methods inherited from class java.lang.Object

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

    • SimpleProtocol

      public SimpleProtocol​(int numOwn, int numRec)
      Constructor.
      Parameters:
      numOwn - number of own information pieces to propagate each iteration.
      numRec - number of received information pieces to propagate each iteration.