Package jadex.bridge.sensor.service
Class WaitqueueEvaluator
- java.lang.Object
 - 
- jadex.bridge.nonfunctional.search.BasicEvaluator<java.lang.Integer>
 - 
- jadex.bridge.sensor.service.WaitqueueEvaluator
 
 
 
- 
- All Implemented Interfaces:
 IServiceEvaluator
public class WaitqueueEvaluator extends BasicEvaluator<java.lang.Integer>
Execution time evaluator. Re-scales execution times from [0,unlimited] to [1,0]. 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected intmaxThe wait queue cutoff len.- 
Fields inherited from class jadex.bridge.nonfunctional.search.BasicEvaluator
component, methodinfo, propertyname, required, unit 
 - 
 
- 
Constructor Summary
Constructors Constructor Description WaitqueueEvaluator(IExternalAccess component, MethodInfo mi)Create a new evaluator.WaitqueueEvaluator(IExternalAccess component, MethodInfo mi, int max)Create a new evaluator. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublecalculateEvaluation(java.lang.Integer value)Calculate the value with 1 best and 0 worst.- 
Methods inherited from class jadex.bridge.nonfunctional.search.BasicEvaluator
evaluate, getPropertyValue 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
WaitqueueEvaluator
public WaitqueueEvaluator(IExternalAccess component, MethodInfo mi) throws java.lang.Exception
Create a new evaluator.- Throws:
 java.lang.Exception
 
- 
WaitqueueEvaluator
public WaitqueueEvaluator(IExternalAccess component, MethodInfo mi, int max) throws java.lang.Exception
Create a new evaluator.- Throws:
 java.lang.Exception
 
 - 
 
- 
Method Detail
- 
calculateEvaluation
public double calculateEvaluation(java.lang.Integer value)
Calculate the value with 1 best and 0 worst. Re-scales waiting times from [0,unlimited] to [1,0]. Uses linear scale with 0=1, 1=0.9, 10=0, 11=0- Specified by:
 calculateEvaluationin classBasicEvaluator<java.lang.Integer>- Returns:
 
 
 - 
 
 -