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 SummaryFields Modifier and Type Field Description protected intthresholdThe threshold of found services after which the ranking starts.
 - 
Constructor SummaryConstructors Constructor Description CountThresholdSearchTerminationDecider(int threshold)Creates the decider.
 - 
Method SummaryAll 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- 
isStartRankingpublic IFuture<java.lang.Boolean> isStartRanking(java.util.Collection<S> currentresults, IServiceEvaluator evaluator) Decides if the search should start ranking.- Specified by:
- isStartRankingin interface- IRankingSearchTerminationDecider<S>
- Parameters:
- currentresults- The search results acquired
- Returns:
- True, to terminate the search and start ranking.
 
 
- 
 
-