Package nz.org.riskscape.cpython
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
-
Constructor Summary
ConstructorDescriptionCPythonRealizableFunction
(nz.org.riskscape.engine.function.FunctionMetadata details, nz.org.riskscape.engine.resource.Resource pythonScript, CPythonSpawner runner) -
Method Summary
Modifier and TypeMethodDescriptionnz.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
-
Field Details
-
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)
-