Interface ParamEngine

All Known Implementing Classes:
SmartParamEngine

public interface ParamEngine
Single point of entry to get all parameters and call functions managed by parameter engine.
Author:
Adam Dubiel
  • Method Details

    • get

      ParamValue get(String parameterName, ParamContext context)
      Return submatrix of parameter rows that match values from context. Remember, that to use dynamic context levels need to have defined levelCreators.
      Parameters:
      parameterName - name of parameter to search
      context - evaluation context
      Returns:
      resulting submatrix
    • get

      ParamValue get(String paramName, Object... inputLevels)
      Return submatrix of parameter rows that match provided query values. Input levels array should have length equal to parameters input levels count.
      Parameters:
      paramName - name of parameter to search
      inputLevels - values to match against each input level
      Returns:
      resulting submatrix
    • callFunction

      Object callFunction(String functionName, Object... args)
      Use function engine to call function registered under provided name, passing provided invocation arguments.
      Parameters:
      functionName - name of function to run
      args - function invocation arguments
      Returns:
      invocation result, null for void functions
    • callEvaluatedFunction

      Object callEvaluatedFunction(String paramName, ParamContext ctx, Object... args)
      Evaluate parameter using provided context and use returned value retrieved using ParamValue.get() as name of function to call with provided arguments.
      Parameters:
      paramName - name of parameter to evaluate
      ctx - evaluation context
      args - function invocation arguments
      Returns:
      invocation result, null for void functions
    • runtimeConfiguration

      ParamEngineRuntimeConfig runtimeConfiguration()
      Return runtime configuration of this instance of parameter engine.
      Returns:
      runtime config
    • getDigest

      String getDigest(Type type, String elementCode)
      Return digest of one of given Parameter/Funcion/Literal value
      Parameters:
      type - of Higson element to calculate its digest
      elementCode - code of parameter/function or literal value
      Returns:
      digest as string of given element or null, if digest is not available.