Interface IFormulaEvaluatorFactory


public interface IFormulaEvaluatorFactory
An interface for formula evaluator factories to create a IFormulaEvaluator. It is part of the creation of an evaluator to set the IProductComponentGeneration or IProductComponent and a map of compiled expressions the evaluator should handle.
Author:
dirmeier
  • Method Details

    • createFormulaEvaluator

      IFormulaEvaluator createFormulaEvaluator(Object object, Map<String,String> nameToCompiledExpressionMap)
      This method creates a new formula evaluator. The evaluator getting the product component generation or product component in which context the formulas have to be evaluated and a list of compiled formula expressions.
      Parameters:
      object - The IProductComponentGeneration or IProductComponent in which context a formula have to be executed
      nameToCompiledExpressionMap - The map of compiled formula expressions with their name as a key
      Returns:
      The new formula evaluator that is able to evaluate every formula the was in the list of compiled expressions