Class CountThresholdModelConfigurator<U extends java.io.Serializable,I extends java.io.Serializable,F>
java.lang.Object
es.uam.eps.ir.relison.grid.diffusion.protocol.CountThresholdModelConfigurator<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 CountThresholdModelConfigurator<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 enough neighbors send the same piece to him/her.
- See Also:
CountThresholdModelProtocol
-
Field Summary
-
Constructor Summary
Constructors Constructor Description CountThresholdModelConfigurator()
-
Method Summary
-
Field Details
-
NUMOWN
private static final java.lang.String NUMOWNIdentifier for the number of own pieces to propagate each iteration- See Also:
- Constant Field Values
-
THRESHOLD
private static final java.lang.String THRESHOLDIdentifier for the threshold to surpass for repropagating an information piece- See Also:
- Constant Field Values
-
-
Constructor Details
-
CountThresholdModelConfigurator
public CountThresholdModelConfigurator()
-
-
Method Details
-
configure
Description copied from interface:ProtocolConfigurator
Configures a protocol.- Specified by:
configure
in interfaceProtocolConfigurator<U extends java.io.Serializable,I extends java.io.Serializable,F>
- Parameters:
params
- the parameters for configuring the protocol.- Returns:
- the protocol.
-