Package jadex.bridge.sensor.service
Class ExecutionTimeEvaluator
- java.lang.Object
- 
- jadex.bridge.nonfunctional.search.BasicEvaluator<java.lang.Long>
- 
- jadex.bridge.sensor.service.ExecutionTimeEvaluator
 
 
- 
- All Implemented Interfaces:
- IServiceEvaluator
 
 public class ExecutionTimeEvaluator extends BasicEvaluator<java.lang.Long> Execution time evaluator. Re-scales execution times from [0,unlimited] to [1,0].
- 
- 
Field Summary- 
Fields inherited from class jadex.bridge.nonfunctional.search.BasicEvaluatorcomponent, methodinfo, propertyname, required, unit
 
- 
 - 
Constructor SummaryConstructors Constructor Description ExecutionTimeEvaluator(IExternalAccess component, MethodInfo mi)Create a new evaluator.ExecutionTimeEvaluator(IExternalAccess component, MethodInfo mi, boolean required)Create a new evaluator.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description doublecalculateEvaluation(java.lang.Long value)Calculate the value with 1 best and 0 worst.- 
Methods inherited from class jadex.bridge.nonfunctional.search.BasicEvaluatorevaluate, getPropertyValue
 
- 
 
- 
- 
- 
Constructor Detail- 
ExecutionTimeEvaluatorpublic ExecutionTimeEvaluator(IExternalAccess component, MethodInfo mi) throws java.lang.Exception Create a new evaluator.- Throws:
- java.lang.Exception
 
 - 
ExecutionTimeEvaluatorpublic ExecutionTimeEvaluator(IExternalAccess component, MethodInfo mi, boolean required) throws java.lang.Exception Create a new evaluator.- Throws:
- java.lang.Exception
 
 
- 
 - 
Method Detail- 
calculateEvaluationpublic double calculateEvaluation(java.lang.Long value) Calculate the value with 1 best and 0 worst. Re-scales waiting times from [0,unlimited] to [1,0].- Specified by:
- calculateEvaluationin class- BasicEvaluator<java.lang.Long>
- Returns:
 
 
- 
 
-