public class AverageEvaluator extends java.lang.Object implements IServiceEvaluator
| Modifier and Type | Field and Description |
|---|---|
protected IServiceEvaluator |
evaluator
The contained evaluator.
|
protected int |
period
The avg period.
|
protected java.lang.Double |
value
The 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.