Package com.semedy.reasoner.api.builtin
Interface RelationalBuiltin
- All Superinterfaces:
Builtin
- All Known Implementing Classes:
Builtins1
,Builtins2
,Enumerate
,GeoSearch
,In
,NGram
,Predicates
,RegularExpression
,Seek3
,Seek4
,Seek5
,SeekAnd
,Sqrt
,Sqrt
,TextSearch2
,TextSearch3
,TimeRaster
,Window
Interface for relational built-ins.
A relational built-in gets one input tuple
and may produce one or more output tuples.
E.g sqrt(4,?X) creates the values 2 and -2 as results
A relational built-in gets one input tuple
and may produce one or more output tuples.
E.g sqrt(4,?X) creates the values 2 and -2 as results
-
Method Summary
Modifier and TypeMethodDescriptionvoid
evaluate
(long[] input, BitSet grounds, BuiltinReceiver receiver) Evaluate the built-in given the input tuple.Methods inherited from interface com.semedy.reasoner.api.builtin.Builtin
clear, cloneBuiltin, evaluationFinished, getArgumentDescriptions, getArity, getDescription, getName, getType, getWeight, init, isEvaluable, isInternal, objectGeneratingArguments, readsSymbolTable, setProperties, setSymbolTable, writesSymbolTable
-
Method Details
-
evaluate
void evaluate(long[] input, BitSet grounds, BuiltinReceiver receiver) throws InterruptedException, IOException, SemReasonerException Evaluate the built-in given the input tuple. Grounds indicates which arguments are instantiated. Receiver catches the result tuples.- Parameters:
input
- , the input valuesgrounds
- , which of the input arguments are groundreceiver
-- Throws:
InterruptedException
IOException
SemReasonerException
-