Package com.semedy.reasoner.api.builtin
Interface Connector
- All Superinterfaces:
Builtin
- All Known Implementing Classes:
AbstractConnector,CachedConnector,CountEventsInTime,Currency,FilterA,FilterB,Query,ReasonerConnector,ReasonerQuery,SQLiteConnector,TestMultiRelational,TestMultiRelationalCached
Interface for connector built-in.
A connector built-in allows for more than one input value
and creates one or more result values.
Usually connectors are used to fetch values from an external
data source like a database.
A connector built-in allows for more than one input value
and creates one or more result values.
Usually connectors are used to fetch values from an external
data source like a database.
-
Method Summary
Modifier and TypeMethodDescriptionvoidinput(long[] input) Feed the built-in with an input tuple.voidstart(BitSet grounds, BuiltinReceiver receiver) Start feeding the built-in with input values.voidstop()stop feeding the built-in with input valuesMethods 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
-
start
void start(BitSet grounds, BuiltinReceiver receiver) throws ReasoningException, InterruptedException, IOException Start feeding the built-in with input values. Grounds indicates the ground arguments;
receiver catches the results of the evaluation- Parameters:
grounds- , the arguments which are groundreceiver- , the receiver receiving the results- Throws:
ReasoningExceptionInterruptedExceptionIOException
-
input
Feed the built-in with an input tuple.
The built-in may produce at any time results,
may be during feeding or may be after calling stop- Parameters:
input- encoded input tuple- Throws:
InterruptedExceptionIOExceptionSemReasonerException
-
stop
stop feeding the built-in with input values
-