public class CountThresholdSearchTerminationDecider<S> extends java.lang.Object implements IRankingSearchTerminationDecider<S>
| Modifier and Type | Field and Description | 
|---|---|
protected int | 
threshold
The threshold of found services after which the ranking starts. 
 | 
| Constructor and Description | 
|---|
CountThresholdSearchTerminationDecider(int threshold)
Creates the decider. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
IFuture<java.lang.Boolean> | 
isStartRanking(java.util.Collection<S> currentresults,
              IServiceEvaluator evaluator)
Decides if the search should start ranking. 
 | 
protected int threshold
public CountThresholdSearchTerminationDecider(int threshold)
threshold - The threshold of found services after which the ranking starts.public IFuture<java.lang.Boolean> isStartRanking(java.util.Collection<S> currentresults, IServiceEvaluator evaluator)
isStartRanking in interface IRankingSearchTerminationDecider<S>currentresults - The search results acquired