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 SummaryFields Modifier and Type Field Description protected intmaxThe wait queue cutoff len.- 
Fields inherited from class jadex.bridge.nonfunctional.search.BasicEvaluatorcomponent, methodinfo, propertyname, required, unit
 
- 
 - 
Constructor SummaryConstructors Constructor Description WaitqueueEvaluator(IExternalAccess component, MethodInfo mi)Create a new evaluator.WaitqueueEvaluator(IExternalAccess component, MethodInfo mi, int max)Create a new evaluator.
 - 
Method SummaryAll 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.BasicEvaluatorevaluate, getPropertyValue
 
- 
 
- 
- 
- 
Constructor Detail- 
WaitqueueEvaluatorpublic WaitqueueEvaluator(IExternalAccess component, MethodInfo mi) throws java.lang.Exception Create a new evaluator.- Throws:
- java.lang.Exception
 
 - 
WaitqueueEvaluatorpublic WaitqueueEvaluator(IExternalAccess component, MethodInfo mi, int max) throws java.lang.Exception Create a new evaluator.- Throws:
- java.lang.Exception
 
 
- 
 - 
Method Detail- 
calculateEvaluationpublic 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 class- BasicEvaluator<java.lang.Integer>
- Returns:
 
 
- 
 
-