public abstract class BasicEvaluator<T> extends java.lang.Object implements IServiceEvaluator
| Modifier and Type | Field and Description |
|---|---|
protected IExternalAccess |
component
The component.
|
protected MethodInfo |
methodinfo
The method info.
|
protected java.lang.String |
propertyname
The property name.
|
protected boolean |
required
The required flag.
|
protected java.lang.Object |
unit
The unit.
|
| Constructor and Description |
|---|
BasicEvaluator(IExternalAccess component,
java.lang.String propertyname)
Create a new evaluator.
|
BasicEvaluator(IExternalAccess component,
java.lang.String propertyname,
MethodInfo mi)
Create a new evaluator.
|
BasicEvaluator(IExternalAccess component,
java.lang.String propertyname,
MethodInfo methodinfo,
java.lang.Object unit,
boolean required)
Create a new evaluator.
|
BasicEvaluator(IExternalAccess component,
java.lang.String propertyname,
java.lang.Object unit)
Create a new evaluator.
|
| Modifier and Type | Method and Description |
|---|---|
abstract double |
calculateEvaluation(T propertyvalue) |
IFuture<java.lang.Double> |
evaluate(IService service)
Evaluate the service of method.
|
protected IFuture<T> |
getPropertyValue(IServiceIdentifier sid)
Get the property value based on the provider.
|
protected IExternalAccess component
protected java.lang.String propertyname
protected MethodInfo methodinfo
protected java.lang.Object unit
protected boolean required
public BasicEvaluator(IExternalAccess component, java.lang.String propertyname)
propertyname - The property name.public BasicEvaluator(IExternalAccess component, java.lang.String propertyname, java.lang.Object unit)
propertyname - The property name.public BasicEvaluator(IExternalAccess component, java.lang.String propertyname, MethodInfo mi)
propertyname - The property name.public BasicEvaluator(IExternalAccess component, java.lang.String propertyname, MethodInfo methodinfo, java.lang.Object unit, boolean required)
propertyname - The property name.methodinfo - The method.unit - The unit.public abstract double calculateEvaluation(T propertyvalue)
propertyvalue - public IFuture<java.lang.Double> evaluate(IService service)
evaluate in interface IServiceEvaluatorservice - The service being evaluated.protected IFuture<T> getPropertyValue(IServiceIdentifier sid)