Class RETETerminal
java.lang.Object
org.apache.jena.reasoner.rulesys.impl.RETETerminal
- All Implemented Interfaces:
RETENode
,RETESinkNode
The final node in a RETE graph. It runs the builtin guard clauses
and then, if the token passes, executes the head operations.
-
Constructor Summary
ConstructorDescriptionRETETerminal
(Rule rule, RETEEngine engine, ForwardRuleInfGraphI graph) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionclone
(Map<RETENode, RETENode> netCopy, RETERuleContext contextIn) Clone this node in the network.void
fire
(BindingVector env, boolean isAdd) Propagate a token to this node.void
setContext
(RETEEngine engine, ForwardRuleInfGraphI graph) Change the engine/graph to which this terminal should deliver its results.
-
Constructor Details
-
RETETerminal
Constructor.- Parameters:
rule
- the rule which this terminal should fire.engine
- the parent rule engine through which the deductions and recursive network can be reached.graph
- the wider encompassing infGraph needed to for the RuleContext
-
-
Method Details
-
setContext
Change the engine/graph to which this terminal should deliver its results. -
fire
Propagate a token to this node.- Specified by:
fire
in interfaceRETESinkNode
- Parameters:
env
- a set of variable bindings for the rule being processed.isAdd
- distinguishes between add and remove operations.
-
clone
Clone this node in the network.
-