Class CPythonRealizableFunction

java.lang.Object
nz.org.riskscape.engine.function.UserDefinedFunction
nz.org.riskscape.cpython.CPythonRealizableFunction
All Implemented Interfaces:
nz.org.riskscape.engine.rl.RealizableFunction

public class CPythonRealizableFunction extends nz.org.riskscape.engine.function.UserDefinedFunction
  • Nested Class Summary

    Nested classes/interfaces inherited from interface nz.org.riskscape.engine.rl.RealizableFunction

    nz.org.riskscape.engine.rl.RealizableFunction.MetadataIdentifiedRealizableFunction
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Map<Class<?>,String>
    Type name mappings used for python type info serialization - this just cleans them up a little in error messages, BUT it makes them inconsistent with their names in java error messages...
  • Constructor Summary

    Constructors
    Constructor
    Description
    CPythonRealizableFunction(nz.org.riskscape.engine.function.FunctionMetadata details, nz.org.riskscape.engine.resource.Resource pythonScript, CPythonSpawner runner)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    nz.org.riskscape.problem.ResultOrProblems<nz.org.riskscape.engine.function.RiskscapeFunction>
    realize(nz.org.riskscape.engine.rl.RealizationContext context, nz.org.riskscape.rl.ast.FunctionCall functionCall, List<nz.org.riskscape.engine.types.Type> argumentTypes)
     

    Methods inherited from class nz.org.riskscape.engine.function.UserDefinedFunction

    areArgumentsCompatible, getArgumentProblems, getDeclaredArgumentTypes, getMetadata, getScript, identified

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • ALIASES

      public static final Map<Class<?>,String> ALIASES

      Type name mappings used for python type info serialization - this just cleans them up a little in error messages, BUT it makes them inconsistent with their names in java error messages... sooo... FIXME get this to be a riskscape type expression, or at least equivalent-ish?

  • Constructor Details

    • CPythonRealizableFunction

      public CPythonRealizableFunction(nz.org.riskscape.engine.function.FunctionMetadata details, nz.org.riskscape.engine.resource.Resource pythonScript, CPythonSpawner runner)
  • Method Details

    • realize

      public nz.org.riskscape.problem.ResultOrProblems<nz.org.riskscape.engine.function.RiskscapeFunction> realize(nz.org.riskscape.engine.rl.RealizationContext context, nz.org.riskscape.rl.ast.FunctionCall functionCall, List<nz.org.riskscape.engine.types.Type> argumentTypes)