Class 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].
    • 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 class BasicEvaluator<java.lang.Long>
        Returns: