Class SServiceProvider


  • public class SServiceProvider
    extends java.lang.Object
    Static helper class for searching services. Has the same search and query methods like IRequiredServicesFeature, but requires an external access.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <S> jadex.commons.future.ITerminableIntermediateFuture<S> rankServices​(jadex.commons.future.ITerminableIntermediateFuture<S> searchfut, IServiceRanker<S> ranker, IRankingSearchTerminationDecider<S> decider)
      Rank the services of a search with a specific ranker.
      static <S> jadex.commons.future.ITerminableIntermediateFuture<jadex.commons.Tuple2<S,​java.lang.Double>> rankServicesWithScores​(jadex.commons.future.ITerminableIntermediateFuture<S> searchfut, IServiceRanker<S> ranker, IRankingSearchTerminationDecider<S> decider)
      Rank the services of a search with a specific ranker and emit the scores.
      • Methods inherited from class java.lang.Object

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

      • SServiceProvider

        public SServiceProvider()
    • Method Detail

      • rankServices

        public static <S> jadex.commons.future.ITerminableIntermediateFuture<S> rankServices​(jadex.commons.future.ITerminableIntermediateFuture<S> searchfut,
                                                                                             IServiceRanker<S> ranker,
                                                                                             IRankingSearchTerminationDecider<S> decider)
        Rank the services of a search with a specific ranker.
      • rankServicesWithScores

        public static <S> jadex.commons.future.ITerminableIntermediateFuture<jadex.commons.Tuple2<S,​java.lang.Double>> rankServicesWithScores​(jadex.commons.future.ITerminableIntermediateFuture<S> searchfut,
                                                                                                                                                    IServiceRanker<S> ranker,
                                                                                                                                                    IRankingSearchTerminationDecider<S> decider)
        Rank the services of a search with a specific ranker and emit the scores.