public class ComposedEvaluator<S> extends java.lang.Object implements IServiceEvaluator, IServiceRanker<S>
| Modifier and Type | Field and Description | 
|---|---|
| protected java.util.List<Tuple2<IServiceEvaluator,java.lang.Double>> | evaluatorsThe evaluators. | 
| Constructor and Description | 
|---|
| ComposedEvaluator()Creates the combiner. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addEvaluator(IServiceEvaluator evaluator)Adds a new evaluator with a weight of 1.0. | 
| void | addEvaluator(IServiceEvaluator evaluator,
            double weight)Adds a new evaluator. | 
| IFuture<java.lang.Double> | evaluate(IService service)Evaluates the service in detail. | 
| IFuture<java.util.List<S>> | rank(java.util.List<S> unrankedservices)Ranks services according to non-functional criteria. | 
| IFuture<java.util.List<Tuple2<S,java.lang.Double>>> | rankWithScores(java.util.List<S> unrankedservices)Ranks services according to non-functional criteria. | 
| void | removeEvaluator(IServiceEvaluator evaluator)Removes an evaluator. | 
protected java.util.List<Tuple2<IServiceEvaluator,java.lang.Double>> evaluators
public void addEvaluator(IServiceEvaluator evaluator)
evaluator - The new evaluator.public void addEvaluator(IServiceEvaluator evaluator, double weight)
evaluator - The new evaluator.weight - The weight of the evaluator relative to other evaluators.public void removeEvaluator(IServiceEvaluator evaluator)
evaluator - The evaluator.public IFuture<java.lang.Double> evaluate(IService service)
evaluate in interface IServiceEvaluatorservice - The service being evaluated.public IFuture<java.util.List<S>> rank(java.util.List<S> unrankedservices)
rank in interface IServiceRanker<S>unrankedservices - Unranked list of services.public IFuture<java.util.List<Tuple2<S,java.lang.Double>>> rankWithScores(java.util.List<S> unrankedservices)
rankWithScores in interface IServiceRanker<S>unrankedservices - Unranked list of services.