Package nz.org.riskscape.engine.function
Interface OperatorResolver
public interface OperatorResolver
Used for Realizing BinaryOperation
s in to RealizedExpression
s that can be used to evaluate an
expression
-
Method Summary
Modifier and TypeMethodDescriptionresolve
(RealizationContext context, BinaryOperation operation, Type inputType, Type lhs, Type rhs) Attempt to find aRiskscapeFunction
that can compute the givenBinaryOperation
-
Method Details
-
resolve
Optional<RiskscapeFunction> resolve(RealizationContext context, BinaryOperation operation, Type inputType, Type lhs, Type rhs) Attempt to find a
RiskscapeFunction
that can compute the givenBinaryOperation
- Parameters:
operation
- the expression we are resolving a function forinputType
- the type that the expression is being realized againstlhs
- the evaluated type of the lhs of the expressionrhs
- the evaluated type of the rhs of the expression- Returns:
- a
RiskscapeFunction
that works for the given operation, or empty if none can be found.
-