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.BasicEvaluator
component, methodinfo, propertyname, required, unit
-
-
Constructor Summary
Constructors Constructor Description ExecutionTimeEvaluator(IExternalAccess component, MethodInfo mi)
Create a new evaluator.ExecutionTimeEvaluator(IExternalAccess component, MethodInfo mi, boolean required)
Create a new evaluator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
calculateEvaluation(java.lang.Long value)
Calculate the value with 1 best and 0 worst.-
Methods inherited from class jadex.bridge.nonfunctional.search.BasicEvaluator
evaluate, getPropertyValue
-
-
-
-
Constructor Detail
-
ExecutionTimeEvaluator
public ExecutionTimeEvaluator(IExternalAccess component, MethodInfo mi) throws java.lang.Exception
Create a new evaluator.- Throws:
java.lang.Exception
-
ExecutionTimeEvaluator
public ExecutionTimeEvaluator(IExternalAccess component, MethodInfo mi, boolean required) throws java.lang.Exception
Create a new evaluator.- Throws:
java.lang.Exception
-
-
Method Detail
-
calculateEvaluation
public 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:
calculateEvaluation
in classBasicEvaluator<java.lang.Long>
- Returns:
-
-