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 TypeMethodDescriptionvoidattachReceiver(Receiver receiver, ExtensionalDB temporaryEDB) attach a receiver to the ith query to process net which gets the results of the evaluationvoidattachReceiver(List<Receiver> receiver, ExtensionalDB temporaryEDB) attach a receiver to process net which gets the results of the evaluationvoidattach process net to central edbvoidattachToEDB(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 compilationvoidinitialize 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:
ReasoningExceptionIOException
-
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:
ReasoningExceptionIOException
-
attachToEDB
attach process net to edb- Parameters:
edbs-- Throws:
ReasoningExceptionIOExceptionEDBException
-
attachToEDB
attach process net to central edb -
pushProcesses
public void pushProcesses()initialize evaluation -
prepareCompilation
preparation steps for compilation- Returns:
- Throws:
IOExceptionSemReasonerException
-
compileRules
compile all rules and create a process net- Returns:
- Throws:
IOExceptionSemReasonerException
-
compileRules
compile all rules and create a process graph- Returns:
- Throws:
IOExceptionSemReasonerException
-