Interface ThresholdAlgorithmReducer
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
FixedThresholdAlgorithm.FixedAlgorithmThresholdReducer
public interface ThresholdAlgorithmReducer extends Serializable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidadd(ThresholdAlgorithm instance)Add a ThresholdAlgorithm instance to the reducerThresholdAlgorithmgetFinalResult()ThresholdAlgorithmReducermerge(ThresholdAlgorithmReducer other)Combine two reducers and return the result
-
-
-
Method Detail
-
add
void add(ThresholdAlgorithm instance)
Add a ThresholdAlgorithm instance to the reducer- Parameters:
instance- Instance to add. May be null.
-
merge
ThresholdAlgorithmReducer merge(ThresholdAlgorithmReducer other)
Combine two reducers and return the result- Parameters:
other- Other reducer to combine with this one- Returns:
- Combined reducer
-
getFinalResult
ThresholdAlgorithm getFinalResult()
- Returns:
- The final threshold reducer after combining all instances
-
-