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

java.lang.Object
es.uam.eps.ir.relison.grid.diffusion.protocol.ProportionThresholdModelConfigurator<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.
All Implemented Interfaces:
ProtocolConfigurator<U,​I,​F>

public class ProportionThresholdModelConfigurator<U extends java.io.Serializable,​I extends java.io.Serializable,​F>
extends java.lang.Object
implements ProtocolConfigurator<U,​I,​F>
Configures a protocol in which propagates the received information if a large enough fraction of neighbors send the same piece to him/her.
See Also:
ProportionThresholdModelProtocol
  • Field Summary

    Fields 
    Modifier and Type Field Description
    private static java.lang.String NUMOWN
    Identifier for the number of own pieces to propagate each iteration
    private static java.lang.String NUMREC
    Identifier for the number of pieces to repropagate each iteration
    private static java.lang.String THRESHOLD
    Identifier for the threshold to surpass for repropagating an information piece
  • Constructor Summary

    Constructors 
    Constructor Description
    ProportionThresholdModelConfigurator()  
  • Method Summary

    Modifier and Type Method Description
    Protocol<U,​I,​F> configure​(ProtocolParameterReader params)
    Configures a protocol.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait