Package org.faktorips.runtime.formula
Interface IFormulaEvaluator
- All Known Implementing Classes:
AbstractFormulaEvaluator
public interface IFormulaEvaluator
Evaluates the formulas of a product component or product component generation. This interface
only provides methods to get the configured product component generation and to evaluate already
configured formulas. The code of the formulas is set while creating the evaluator by an
IFormulaEvaluatorFactory.- Author:
- dirmeier
-
Method Summary
Modifier and TypeMethodDescriptionEvaluates the formula with the given name and the specified parameters.Returns a defensive copy of the map of expressions/formulas held by this evaluator.Returns the product component generation or product component this is an evaluator for.
-
Method Details
-
getObject
Object getObject()Returns the product component generation or product component this is an evaluator for. -
evaluate
Evaluates the formula with the given name and the specified parameters.- Parameters:
formularName- The name of the formula to evaluateparameters- the parameters the formula requires when being evaluated- Returns:
- the result of the evaluated formula
-
getNameToExpressionMap
Returns a defensive copy of the map of expressions/formulas held by this evaluator.- Returns:
- a map containing the expressions (with their names as keys) held by this formula evaluator
-