Class CountThresholdSearchTerminationDecider<S>
- java.lang.Object
 - 
- jadex.bridge.nonfunctional.search.CountThresholdSearchTerminationDecider<S>
 
 
- 
- All Implemented Interfaces:
 IRankingSearchTerminationDecider<S>
public class CountThresholdSearchTerminationDecider<S> extends java.lang.Object implements IRankingSearchTerminationDecider<S>
Service search ranking decider based on a simple service count threshold. 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected intthresholdThe threshold of found services after which the ranking starts. 
- 
Constructor Summary
Constructors Constructor Description CountThresholdSearchTerminationDecider(int threshold)Creates the decider. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IFuture<java.lang.Boolean>isStartRanking(java.util.Collection<S> currentresults, IServiceEvaluator evaluator)Decides if the search should start ranking. 
 - 
 
- 
- 
Method Detail
- 
isStartRanking
public IFuture<java.lang.Boolean> isStartRanking(java.util.Collection<S> currentresults, IServiceEvaluator evaluator)
Decides if the search should start ranking.- Specified by:
 isStartRankingin interfaceIRankingSearchTerminationDecider<S>- Parameters:
 currentresults- The search results acquired- Returns:
 - True, to terminate the search and start ranking.
 
 
 - 
 
 -