Class ExpressionFunctionFramework

java.lang.Object
nz.org.riskscape.defaults.function.expression.ExpressionFunctionFramework
All Implemented Interfaces:
nz.org.riskscape.engine.function.FunctionFramework, nz.org.riskscape.engine.function.FunctionFrameworkSupport, nz.org.riskscape.engine.Identified

public class ExpressionFunctionFramework extends Object implements nz.org.riskscape.engine.function.FunctionFramework, nz.org.riskscape.engine.function.FunctionFrameworkSupport

Define RiskScape functions using RiskScape's built-in expression language (using lambda syntax)

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final nz.org.riskscape.engine.function.MetadataParams
     

    Fields inherited from interface nz.org.riskscape.engine.function.FunctionFramework

    DEFAULT_PRIORITY
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    nz.org.riskscape.problem.ResultOrProblems<nz.org.riskscape.engine.function.IdentifiedFunction>
    build(String functionName, nz.org.riskscape.engine.Project project, nz.org.riskscape.engine.bind.BoundParameters bound)
     
    boolean
    canBuild(nz.org.riskscape.engine.Project project, Map<String,List<?>> unbound)
     
     
    nz.org.riskscape.engine.bind.JavaParameterSet<nz.org.riskscape.engine.function.MetadataParams>
     

    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.function.FunctionFramework

    getPriority

    Methods inherited from interface nz.org.riskscape.engine.function.FunctionFrameworkSupport

    loadFunctionFromParams

    Methods inherited from interface nz.org.riskscape.engine.Identified

    getIdentifiedClass
  • Field Details

    • NONE_GIVEN

      public static final nz.org.riskscape.engine.function.MetadataParams NONE_GIVEN
  • Constructor Details

    • ExpressionFunctionFramework

      public ExpressionFunctionFramework()
  • Method Details

    • build

      public nz.org.riskscape.problem.ResultOrProblems<nz.org.riskscape.engine.function.IdentifiedFunction> build(String functionName, nz.org.riskscape.engine.Project project, nz.org.riskscape.engine.bind.BoundParameters bound)
      Specified by:
      build in interface nz.org.riskscape.engine.function.FunctionFramework
    • canBuild

      public boolean canBuild(nz.org.riskscape.engine.Project project, Map<String,List<?>> unbound)
      Specified by:
      canBuild in interface nz.org.riskscape.engine.function.FunctionFramework
    • getId

      public String getId()
      Specified by:
      getId in interface nz.org.riskscape.engine.Identified
    • getParameterSet

      public nz.org.riskscape.engine.bind.JavaParameterSet<nz.org.riskscape.engine.function.MetadataParams> getParameterSet()
      Specified by:
      getParameterSet in interface nz.org.riskscape.engine.function.FunctionFramework