public class ServiceRankingResultListener<S> extends Object implements IIntermediateResultListener<S>
Constructor and Description |
---|
ServiceRankingResultListener(IResultListener<Collection<Tuple2<S,Double>>> scorelistener,
IServiceRanker<S> ranker,
IRankingSearchTerminationDecider<S> decider)
Create a new ranker.
|
ServiceRankingResultListener(IServiceRanker<S> ranker,
IRankingSearchTerminationDecider<S> decider,
IResultListener<Collection<S>> listener)
Create a new ranker.
|
Modifier and Type | Method and Description |
---|---|
void |
exceptionOccurred(Exception exception)
Called when exception occurs.
|
void |
finished()
Declare that the future is finished.
|
void |
intermediateResultAvailable(S result)
Process intermediate results for ranking.
|
boolean |
isFinished()
Get the finished.
|
void |
resultAvailable(Collection<S> result)
Called when result is available.
|
public ServiceRankingResultListener(IServiceRanker<S> ranker, IRankingSearchTerminationDecider<S> decider, IResultListener<Collection<S>> listener)
public ServiceRankingResultListener(IResultListener<Collection<Tuple2<S,Double>>> scorelistener, IServiceRanker<S> ranker, IRankingSearchTerminationDecider<S> decider)
public void intermediateResultAvailable(S result)
intermediateResultAvailable
in interface IIntermediateResultListener<S>
result
- The result.public void resultAvailable(Collection<S> result)
resultAvailable
in interface IIntermediateResultListener<S>
resultAvailable
in interface IResultListener<Collection<S>>
result
- The final result.public void exceptionOccurred(Exception exception)
exceptionOccurred
in interface IResultListener<Collection<S>>
exception
- The exception.public void finished()
IIntermediateResultListener
finished
in interface IIntermediateResultListener<S>
public boolean isFinished()
Copyright © 2013. All Rights Reserved.