Class EvaluatorRegistry

java.lang.Object
net.ssehub.easy.varModel.cstEvaluation.EvaluatorRegistry

public class EvaluatorRegistry extends Object
Allows to register, query and unregister evaluators for IVML operations.
Author:
Holger Eichelberger
  • Field Details

  • Constructor Details

    • EvaluatorRegistry

      public EvaluatorRegistry()
  • Method Details

    • registerEvaluator

      public static void registerEvaluator(IOperationEvaluator evaluator, Operation... operations)
      Registers an evaluator (but only if evaluator is not null).
      Parameters:
      evaluator - the evaluator for operation
      operations - the operation the evaluator shall be registered for
    • registerEvaluator

      public static void registerEvaluator(IIteratorEvaluator evaluator, Operation... operations)
      Registers an evaluator (but only if evaluator is not null).
      Parameters:
      evaluator - the evaluator for operation
      operations - the operation the evaluator shall be registered for
    • getOperationEvaluator

      public static IOperationEvaluator getOperationEvaluator(Operation operation)
      Returns the registered operation evaluator for the given operation.
      Parameters:
      operation - the operation to return the evaluator for
      Returns:
      the operation evaluator
    • getIteratorEvaluator

      public static IIteratorEvaluator getIteratorEvaluator(Operation operation)
      Returns the registered iterator evaluator for the given operation.
      Parameters:
      operation - the operation to return the evaluator for
      Returns:
      the operation iterator evaluator