Class SQLiteConnector
java.lang.Object
com.semedy.reasoner.api.builtin.AbstractConnector
com.semedy.reasoner.builtin.connector.SQLiteConnector
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()frees up allocated resourcesclone the builtinvoidcall back function.String[]get descriptions for the different argumentsintgetArity()arity of the built-inget a description for the builtingetName()the name to be used in logical formulaslongthe weight of the builtin.voidinitialize the builtinbooleanisEvaluable(BitSet grounds, BitSet variableInstantiations, Object[] args) is builtin evaluable with a certain instantiation of variablesobjectGeneratingArguments(BitSet grounds, BitSet variableInstantiations, Object[] args) indicate where new objects/ data are generatedtoString()Methods inherited from class com.semedy.reasoner.api.builtin.AbstractConnector
clearData, eval, getConnectorInstances, getNumberOfRestrictions, getType, getUID, input, isInternal, readsSymbolTable, setProperties, setSymbolTable, start, stop, writesSymbolTable
-
Constructor Details
-
SQLiteConnector
public SQLiteConnector()
-
-
Method Details
-
isEvaluable
public boolean isEvaluable(BitSet grounds, BitSet variableInstantiations, Object[] args) throws BuiltinException Description copied from interface:Builtinis builtin evaluable with a certain instantiation of variables- Specified by:
isEvaluablein interfaceBuiltin- Overrides:
isEvaluablein classAbstractConnector- Parameters:
grounds- , which arguments are groundvariableInstantiations- , which variables are instantiatedargs- , the arguments- Returns:
- was it evaluable
- Throws:
BuiltinException
-
init
Description copied from interface:Builtininitialize the builtin- Specified by:
initin interfaceBuiltin- Specified by:
initin classAbstractConnector- Parameters:
args- , the builtin arguments- Throws:
InterruptedExceptionIOExceptionBuiltinException
-
evaluationFinished
Description copied from interface:Builtincall back function. Is called when the whole evaluation has been finished- Specified by:
evaluationFinishedin interfaceBuiltin- Overrides:
evaluationFinishedin classAbstractConnector- Throws:
BuiltinExceptionInterruptedException
-
getWeight
Description copied from interface:Builtinthe weight of the builtin. Determines when the builtin is executed in a rule- Specified by:
getWeightin interfaceBuiltin- Specified by:
getWeightin classAbstractConnector- Parameters:
grounds- , ground argumentsvariableInstantiations- , instantiated variablesargs- , arguments of the builtin- Returns:
- the weight of the builtin (influences the position in the rule)
-
objectGeneratingArguments
public BitSet objectGeneratingArguments(BitSet grounds, BitSet variableInstantiations, Object[] args) throws BuiltinException indicate where new objects/ data are generated- Specified by:
objectGeneratingArgumentsin interfaceBuiltin- Specified by:
objectGeneratingArgumentsin classAbstractConnector- Parameters:
grounds- , ground argument positionsvariableInstantiations- , instantiated variablesargs- , arguments of the literal- Returns:
- each bit indicates the argument position where new objects are created
- Throws:
BuiltinException
-
getName
the name to be used in logical formulas- Specified by:
getNamein interfaceBuiltin- Specified by:
getNamein classAbstractConnector- Returns:
- the name of the built-in
-
getArity
public int getArity()arity of the built-in- Specified by:
getArityin interfaceBuiltin- Specified by:
getArityin classAbstractConnector- Returns:
- the arity of the built-in
-
getArgumentDescriptions
Description copied from interface:Builtinget descriptions for the different arguments- Specified by:
getArgumentDescriptionsin interfaceBuiltin- Specified by:
getArgumentDescriptionsin classAbstractConnector- Returns:
- a description of the arguments of the built-in
-
getDescription
Description copied from interface:Builtinget a description for the builtin- Specified by:
getDescriptionin interfaceBuiltin- Specified by:
getDescriptionin classAbstractConnector- Returns:
- a description of the built-in
-
cloneBuiltin
Description copied from interface:Builtinclone the builtin- Specified by:
cloneBuiltinin interfaceBuiltin- Specified by:
cloneBuiltinin classAbstractConnector- Returns:
- the cloned built-in
-
toString
-
clear
public void clear()Description copied from interface:Builtinfrees up allocated resources
-