Class CsvFunctionFramework

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

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

A framework for functions that are backed by CSV data.

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    The metadata parameters for a CSV function.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final CsvFunctionProblems
     

    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<CsvFunctionFramework.CsvMetadataParams>
     
    boolean
     

    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

  • Constructor Details

    • CsvFunctionFramework

      public CsvFunctionFramework()
  • Method Details

    • 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
    • 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
    • getId

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

      public boolean isSourceCodeIndentSensitive()
      Specified by:
      isSourceCodeIndentSensitive in interface nz.org.riskscape.engine.function.FunctionFrameworkSupport
    • getParameterSet

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