Class PushModelProtocol<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.PushModelProtocol<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.Reference: A. Demers, D. Greene, C. Hauser, W. Irish, J. Larson. Epidemic algorithms for replicated database maintenance. ACM PODC 1987, pp. 1-12 (1987)
public class PushModelProtocol<U extends java.io.Serializable,I extends java.io.Serializable,F> extends Protocol<U,I,F>
Model that applies the push strategy for diffunding the information. In this strategy, each
user selects a neighbour, and sends it all the information.
-
Constructor Summary
Constructors Constructor Description PushModelProtocol(int numOwn, int numRec, int numWait)
Constructor. -
Method Summary
Methods inherited from class es.uam.eps.ir.relison.diffusion.protocols.Protocol
getExpiration, getProp, getSelection, getSight, getUpdate
-
Constructor Details
-
PushModelProtocol
public PushModelProtocol(int numOwn, int numRec, int numWait)Constructor.- Parameters:
numOwn
- number of own pieces of information to spread every iteration.numRec
- number of received pieces of information to spread every iteration.numWait
- number of steps before selecting again a certain neighbor.
-