Class PullModelProtocol<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.PullModelProtocol<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 PullModelProtocol<U extends java.io.Serializable,I extends java.io.Serializable,F> extends Protocol<U,I,F>
Protocol that applies the push strategy for diffunding the information. In this strategy, each
user selects a neighbour, and obtains from it all the information.
-
Constructor Summary
Constructors Constructor Description PullModelProtocol(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
-
PullModelProtocol
public PullModelProtocol(int numOwn, int numRec, int numWait)Constructor.- Parameters:
numOwn
- number of own information to propagate.numRec
- number of received information to propagate.numWait
- number of steps before selecting an already visited user.
-