public class ComposedEvaluator<S> extends Object implements IServiceEvaluator, IServiceRanker<S>
| 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<Double> |
evaluate(IService service)
Evaluates the service in detail.
|
IFuture<List<S>> |
rank(List<S> unrankedservices)
Ranks services according to non-functional criteria.
|
IFuture<List<Tuple2<S,Double>>> |
rankWithScores(List<S> unrankedservices)
Ranks services according to non-functional criteria.
|
void |
removeEvaluator(IServiceEvaluator evaluator)
Removes an evaluator.
|
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<Double> evaluate(IService service)
evaluate in interface IServiceEvaluatorservice - The service being evaluated.public IFuture<List<S>> rank(List<S> unrankedservices)
rank in interface IServiceRanker<S>unrankedservices - Unranked list of services.public IFuture<List<Tuple2<S,Double>>> rankWithScores(List<S> unrankedservices)
rankWithScores in interface IServiceRanker<S>unrankedservices - Unranked list of services.Copyright © 2015. All Rights Reserved.