Class RuleEvaluator
java.lang.Object
com.semedy.reasoner.reasoning.processes.ProcessImp
com.semedy.reasoner.reasoning.processes.RuleEvaluator
-
Constructor Summary
ConstructorsConstructorDescriptionRuleEvaluator(InterruptFlag interruptFlag, ReasoningMonitor monitor, Rule rule, Rule originalRule, Literal[] originalBodies, boolean extensional, boolean streamReasoning, ProcessExecutor pE, Schemas schemas) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidevaluate()evaluate a process during reasoning.voidvoidgetRule()booleanbooleanvoidsetOperator(Process p, int index) set the body operator for body literal at indextoString()voidtuplesReceived(int bodyIndex) Methods inherited from class com.semedy.reasoner.reasoning.processes.ProcessImp
addNextReceiver, addRelation, clear, dispose, evaluationFinished, evaluationFinished, getArity, getPriority, getStratum, getTupleStore, isNotQueuedSetQueued, isQueued, nextReceiver, operationFinished, receiveRelation, receiveTuple, receiveTuple, receiveTuple, setDataFlowGraph, setQueued, setStratum, startTuples, tuplesFinished, tuplesFinishedMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.semedy.reasoner.reasoning.processes.Deferred
getStratum, setStratum
-
Constructor Details
-
RuleEvaluator
public RuleEvaluator(InterruptFlag interruptFlag, ReasoningMonitor monitor, Rule rule, Rule originalRule, Literal[] originalBodies, boolean extensional, boolean streamReasoning, ProcessExecutor pE, Schemas schemas)
-
-
Method Details
-
getRule
-
isFinished
public boolean isFinished() -
deferredEvaluate
- Specified by:
deferredEvaluatein interfaceDeferred- Throws:
InterruptedExceptionIOExceptionSemReasonerException
-
evaluate
Description copied from interface:Processevaluate a process during reasoning.
Returns how the number of tuples sent away- Specified by:
evaluatein interfaceProcess- Overrides:
evaluatein classProcessImp- Throws:
InterruptedExceptionIOExceptionReasoningExceptionSemReasonerException
-
evaluateInternal
-
evaluateThreaded
-
tuplesReceived
public void tuplesReceived(int bodyIndex) -
toString
-
setOperator
set the body operator for body literal at index- Parameters:
p-index-
-
hasBeenExecuted
public boolean hasBeenExecuted()- Specified by:
hasBeenExecutedin interfaceDeferred
-