Class FunctionRealizationContext

java.lang.Object
nz.org.riskscape.engine.rl.RealizationContextWrapper
nz.org.riskscape.engine.function.FunctionRealizationContext
All Implemented Interfaces:
nz.org.riskscape.engine.rl.RealizationContext

public class FunctionRealizationContext extends nz.org.riskscape.engine.rl.RealizationContextWrapper

Wraps a RealizationContext to provide default scope to any constant expressions being evaluated within function realization. This allows RiskScape functions to support constant arguments that have been marked const with the ConstType.

  • Field Summary

    Fields inherited from class nz.org.riskscape.engine.rl.RealizationContextWrapper

    wrapping
  • Constructor Summary

    Constructors
    Constructor
    Description
    FunctionRealizationContext(nz.org.riskscape.engine.rl.RealizationContext parent, nz.org.riskscape.engine.types.Type inputType)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    nz.org.riskscape.engine.rl.ExpressionRealizer
     

    Methods inherited from class nz.org.riskscape.engine.rl.RealizationContextWrapper

    getBindingContext, getFunctionResolver, getMetricRegistry, getOrComputeFromCache, getParameter, getParameterNames, getProblemSink, getProject, normalizeStruct

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface nz.org.riskscape.engine.rl.RealizationContext

    getEngine, getOrComputeFromCache, getParameter, getTypeSet, realizeConstant
  • Constructor Details

    • FunctionRealizationContext

      public FunctionRealizationContext(nz.org.riskscape.engine.rl.RealizationContext parent, nz.org.riskscape.engine.types.Type inputType)
  • Method Details

    • getExpressionRealizer

      public nz.org.riskscape.engine.rl.ExpressionRealizer getExpressionRealizer()
      Specified by:
      getExpressionRealizer in interface nz.org.riskscape.engine.rl.RealizationContext
      Overrides:
      getExpressionRealizer in class nz.org.riskscape.engine.rl.RealizationContextWrapper