Class SQLiteConnector
java.lang.Object
com.semedy.reasoner.api.builtin.AbstractConnector
com.semedy.reasoner.builtin.connector.SQLiteConnector
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
frees up allocated resourcesclone the builtinvoid
call back function.String[]
get descriptions for the different argumentsint
getArity()
arity of the built-inget a description for the builtingetName()
the name to be used in logical formulaslong
the weight of the builtin.void
initialize the builtinboolean
isEvaluable
(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:Builtin
is builtin evaluable with a certain instantiation of variables- Specified by:
isEvaluable
in interfaceBuiltin
- Overrides:
isEvaluable
in classAbstractConnector
- Parameters:
grounds
- , which arguments are groundvariableInstantiations
- , which variables are instantiatedargs
- , the arguments- Returns:
- was it evaluable
- Throws:
BuiltinException
-
init
Description copied from interface:Builtin
initialize the builtin- Specified by:
init
in interfaceBuiltin
- Specified by:
init
in classAbstractConnector
- Parameters:
args
- , the builtin arguments- Throws:
InterruptedException
IOException
BuiltinException
-
evaluationFinished
Description copied from interface:Builtin
call back function. Is called when the whole evaluation has been finished- Specified by:
evaluationFinished
in interfaceBuiltin
- Overrides:
evaluationFinished
in classAbstractConnector
- Throws:
BuiltinException
InterruptedException
-
getWeight
Description copied from interface:Builtin
the weight of the builtin. Determines when the builtin is executed in a rule- Specified by:
getWeight
in interfaceBuiltin
- Specified by:
getWeight
in 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:
objectGeneratingArguments
in interfaceBuiltin
- Specified by:
objectGeneratingArguments
in 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:
getName
in interfaceBuiltin
- Specified by:
getName
in classAbstractConnector
- Returns:
- the name of the built-in
-
getArity
public int getArity()arity of the built-in- Specified by:
getArity
in interfaceBuiltin
- Specified by:
getArity
in classAbstractConnector
- Returns:
- the arity of the built-in
-
getArgumentDescriptions
Description copied from interface:Builtin
get descriptions for the different arguments- Specified by:
getArgumentDescriptions
in interfaceBuiltin
- Specified by:
getArgumentDescriptions
in classAbstractConnector
- Returns:
- a description of the arguments of the built-in
-
getDescription
Description copied from interface:Builtin
get a description for the builtin- Specified by:
getDescription
in interfaceBuiltin
- Specified by:
getDescription
in classAbstractConnector
- Returns:
- a description of the built-in
-
cloneBuiltin
Description copied from interface:Builtin
clone the builtin- Specified by:
cloneBuiltin
in interfaceBuiltin
- Specified by:
cloneBuiltin
in classAbstractConnector
- Returns:
- the cloned built-in
-
toString
-
clear
public void clear()Description copied from interface:Builtin
frees up allocated resources
-