Class CountThresholdSearchTerminationDecider<S>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected int threshold
      The threshold of found services after which the ranking starts.
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • threshold

        protected int threshold
        The threshold of found services after which the ranking starts.
    • Constructor Detail

      • CountThresholdSearchTerminationDecider

        public CountThresholdSearchTerminationDecider​(int threshold)
        Creates the decider.
        Parameters:
        threshold - The threshold of found services after which the ranking starts.
    • 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:
        isStartRanking in interface IRankingSearchTerminationDecider<S>
        Parameters:
        currentresults - The search results acquired
        Returns:
        True, to terminate the search and start ranking.