Class LookupFunction
java.lang.Object
nz.org.riskscape.defaults.function.LookupFunction
- All Implemented Interfaces:
AutoCloseable
,nz.org.riskscape.engine.function.RiskscapeFunction
,nz.org.riskscape.engine.function.UntypedFunction
,nz.org.riskscape.engine.rl.RealizableFunction
public class LookupFunction
extends Object
implements nz.org.riskscape.engine.rl.RealizableFunction, nz.org.riskscape.engine.function.RiskscapeFunction
Returns a value from a lookup table
-
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 inherited from interface nz.org.riskscape.engine.function.RiskscapeFunction
BUILT_IN
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionnz.org.riskscape.engine.function.ArgumentList
List<nz.org.riskscape.engine.types.Type>
nz.org.riskscape.engine.types.Type
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> givenTypes) 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.RiskscapeFunction
builtin, getAggregationFunction, getOverloaded, getRealizable, getTypesFromArguments, identified, identified, isA, setProblemReporter, validate
Methods inherited from interface nz.org.riskscape.engine.function.UntypedFunction
close
-
Constructor Details
-
LookupFunction
public LookupFunction()
-
-
Method Details
-
call
- Specified by:
call
in interfacenz.org.riskscape.engine.function.UntypedFunction
-
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> givenTypes) - Specified by:
realize
in interfacenz.org.riskscape.engine.rl.RealizableFunction
-
getReturnType
public nz.org.riskscape.engine.types.Type getReturnType()- Specified by:
getReturnType
in interfacenz.org.riskscape.engine.function.RiskscapeFunction
-
getArguments
public nz.org.riskscape.engine.function.ArgumentList getArguments()- Specified by:
getArguments
in interfacenz.org.riskscape.engine.function.RiskscapeFunction
-
getArgumentTypes
- Specified by:
getArgumentTypes
in interfacenz.org.riskscape.engine.function.RiskscapeFunction
-