Class TotalPropagatedStopConditionConfigurator<U extends java.io.Serializable,I extends java.io.Serializable,F>
java.lang.Object
es.uam.eps.ir.relison.grid.diffusion.stop.TotalPropagatedStopConditionConfigurator<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:
StopConditionConfigurator<U,I,F>
public class TotalPropagatedStopConditionConfigurator<U extends java.io.Serializable,I extends java.io.Serializable,F> extends java.lang.Object implements StopConditionConfigurator<U,I,F>
Configures an stop condition that finishes after a given amount of information pieces have been propagated.
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
PROPAGATED
Identifier for the number of information pieces to propagate before stopping. -
Constructor Summary
Constructors Constructor Description TotalPropagatedStopConditionConfigurator()
-
Method Summary
Modifier and Type Method Description StopCondition<U,I,F>
getStopCondition(Parameters scgr)
Configures a stop condition from the given parameters.
-
Field Details
-
PROPAGATED
private static final java.lang.String PROPAGATEDIdentifier for the number of information pieces to propagate before stopping.- See Also:
- Constant Field Values
-
-
Constructor Details
-
TotalPropagatedStopConditionConfigurator
public TotalPropagatedStopConditionConfigurator()
-
-
Method Details
-
getStopCondition
Description copied from interface:StopConditionConfigurator
Configures a stop condition from the given parameters.- Specified by:
getStopCondition
in interfaceStopConditionConfigurator<U extends java.io.Serializable,I extends java.io.Serializable,F>
- Parameters:
scgr
- the set of parameters for configuring the stop condition.- Returns:
- the configured stop condition.
-