Class RuleCompiler
java.lang.Object
com.semedy.reasoner.reasoning.processes.RuleCompiler
-
Constructor Summary
ConstructorsConstructorDescriptionRuleCompiler
(InterruptFlag interruptflag, ReasoningMonitor monitor, SystemMonitor smonitor, IntensionalDB idb, Options options, SymbolTable symboltable, BuiltinProvider builtinFactory, ExtensionalDB[] sharedEDBs, boolean streamReasoning, boolean streamReasoningWithRetracts, SimpleSemaphore semaphorForSensors, String tempDir, boolean swapping, boolean skipAnswers, Properties builtinProperties) -
Method Summary
Modifier and TypeMethodDescriptionvoid
attachReceiver
(Receiver receiver, ExtensionalDB temporaryEDB) attach a receiver to the ith query to process net which gets the results of the evaluationvoid
attachReceiver
(List<Receiver> receiver, ExtensionalDB temporaryEDB) attach a receiver to process net which gets the results of the evaluationvoid
attach process net to central edbvoid
attachToEDB
(ExtensionalDB[] edbs) attach process net to edbcompile all rules and create a process netcompileRules
(int[] partsVector) compile all rules and create a process graphstatic int[]
creates a vector of max parts for literals.get the final queriespreparation steps for compilationvoid
initialize evaluation
-
Constructor Details
-
RuleCompiler
public RuleCompiler(InterruptFlag interruptflag, ReasoningMonitor monitor, SystemMonitor smonitor, IntensionalDB idb, Options options, SymbolTable symboltable, BuiltinProvider builtinFactory, ExtensionalDB[] sharedEDBs, boolean streamReasoning, boolean streamReasoningWithRetracts, SimpleSemaphore semaphorForSensors, String tempDir, boolean swapping, boolean skipAnswers, Properties builtinProperties)
-
-
Method Details
-
getQueries
get the final queries- Returns:
-
createPartsVector
creates a vector of max parts for literals. Used for partitioning of relations for parallel reasoneing- Returns:
-
attachReceiver
public void attachReceiver(List<Receiver> receiver, ExtensionalDB temporaryEDB) throws ReasoningException, IOException attach a receiver to process net which gets the results of the evaluation- Parameters:
receiver
-temporaryEDB
-- Throws:
ReasoningException
IOException
-
attachReceiver
public void attachReceiver(Receiver receiver, ExtensionalDB temporaryEDB) throws ReasoningException, IOException attach a receiver to the ith query to process net which gets the results of the evaluation- Parameters:
receiver
-temporaryEDB
-- Throws:
ReasoningException
IOException
-
attachToEDB
attach process net to edb- Parameters:
edbs
-- Throws:
ReasoningException
IOException
EDBException
-
attachToEDB
attach process net to central edb -
pushProcesses
public void pushProcesses()initialize evaluation -
prepareCompilation
preparation steps for compilation- Returns:
- Throws:
IOException
SemReasonerException
-
compileRules
compile all rules and create a process net- Returns:
- Throws:
IOException
SemReasonerException
-
compileRules
compile all rules and create a process graph- Returns:
- Throws:
IOException
SemReasonerException
-