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 TypeMethodDescriptionvoid
void
evaluate()
evaluate a process during reasoning.void
void
getRule()
boolean
boolean
void
setOperator
(Process p, int index) set the body operator for body literal at indextoString()
void
tuplesReceived
(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, tuplesFinished
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
deferredEvaluate
in interfaceDeferred
- Throws:
InterruptedException
IOException
SemReasonerException
-
evaluate
Description copied from interface:Process
evaluate a process during reasoning.
Returns how the number of tuples sent away- Specified by:
evaluate
in interfaceProcess
- Overrides:
evaluate
in classProcessImp
- Throws:
InterruptedException
IOException
ReasoningException
SemReasonerException
-
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:
hasBeenExecuted
in interfaceDeferred
-