public class AverageEvaluator extends java.lang.Object implements IServiceEvaluator
| Modifier and Type | Field and Description | 
|---|---|
| protected IServiceEvaluator | evaluatorThe contained evaluator. | 
| protected int | periodThe avg period. | 
| protected java.lang.Double | valueThe last average value. | 
| Constructor and Description | 
|---|
| AverageEvaluator(IServiceEvaluator evaluator)Create a new AverageEvaluator. | 
| AverageEvaluator(IServiceEvaluator evaluator,
                int period)Create a new AverageEvaluator. | 
| Modifier and Type | Method and Description | 
|---|---|
| IFuture<java.lang.Double> | evaluate(IService service)Evaluates the service in detail. | 
protected IServiceEvaluator evaluator
protected java.lang.Double value
protected int period
public AverageEvaluator(IServiceEvaluator evaluator)
public AverageEvaluator(IServiceEvaluator evaluator, int period)
public IFuture<java.lang.Double> evaluate(IService service)
evaluate in interface IServiceEvaluatorservice - The service being evaluated.