| java.lang.Object com.hp.hpl.jena.reasoner.rulesys.impl.RETEClauseFilter
RETEClauseFilter | public class RETEClauseFilter implements RETESourceNode(Code) | | Checks a triple against the grounded matches and intra-triple matches
for a single rule clause. If the match passes it creates a binding
environment token and passes it on the the RETE network itself. The checks
and bindings are implemented using a simple byte-coded interpreter.
author: Dave Reynolds version: $Revision: 1.14 $ on $Date: 2008/01/02 12:06:16 $ |
Field Summary | |
final public static byte | ADDRFunctorNode Argument addressing code: triple object functor node, offset in
low nibble, only usable after a successful TestFunctorName. | final public static byte | ADDRObject | final public static byte | ADDRPredicate | final public static byte | ADDRSubject | final public static byte | BIND Instruction code: Bind a node (arg1) to a place in the rules token (arg2). | final public static byte | CREATEToken Instruction code: Create a result environment of length arg1. | final public static byte | END Instruction code: Final entry - dispatch to the network. | final public static byte | TESTFunctorName | final public static byte | TESTIntraMatch | final public static byte | TESTValue Instruction code: Check triple entry (arg1) against literal value (arg2). | protected Object[] | args | protected RETESinkNode | continuation | protected byte[] | instructions |
ADDRFunctorNode | final public static byte ADDRFunctorNode(Code) | | Argument addressing code: triple object functor node, offset in
low nibble, only usable after a successful TestFunctorName.
|
ADDRObject | final public static byte ADDRObject(Code) | | Argument addressing code: triple object as a whole
|
ADDRPredicate | final public static byte ADDRPredicate(Code) | | Argument addressing code: triple predicate
|
ADDRSubject | final public static byte ADDRSubject(Code) | | Argument addressing code: triple subject
|
BIND | final public static byte BIND(Code) | | Instruction code: Bind a node (arg1) to a place in the rules token (arg2).
|
CREATEToken | final public static byte CREATEToken(Code) | | Instruction code: Create a result environment of length arg1.
|
END | final public static byte END(Code) | | Instruction code: Final entry - dispatch to the network.
|
TESTFunctorName | final public static byte TESTFunctorName(Code) | | Instruction code: Check literal value is a functor of name arg1
|
TESTIntraMatch | final public static byte TESTIntraMatch(Code) | | Instruction code: Cross match two triple entries (arg1, arg2)
|
TESTValue | final public static byte TESTValue(Code) | | Instruction code: Check triple entry (arg1) against literal value (arg2).
|
args | protected Object[] args(Code) | | Contains the object arguments referenced from the instructions array
|
continuation | protected RETESinkNode continuation(Code) | | The network node to receive any created tokens
|
instructions | protected byte[] instructions(Code) | | Contains the set of byte-coded instructions and argument pointers
|
RETEClauseFilter | public RETEClauseFilter(byte[] instructions, Object[] args)(Code) | | Contructor.
Parameters: instructions - the set of byte-coded instructions and argument pointers. Parameters: args - the object arguments referenced from the instructions array. |
clone | public RETENode clone(Map netCopy, RETERuleContext context)(Code) | | Clone this node in the network.
Parameters: netCopy - a map from RETENode to cloned instance Parameters: context - the new context to which the network is being ported |
compile | public static RETEClauseFilter compile(TriplePattern clause, int envLength, List varList)(Code) | | Create a filter node from a rule clause.
Clause complexity is limited to less than 50 args in a Functor.
Parameters: clause - the rule clause Parameters: envLength - the size of binding environment that should be created on successful matches Parameters: varList - a list to which all clause variables will be appended |
fire | public void fire(Triple triple, boolean isAdd)(Code) | | Insert or remove a triple into the network.
Parameters: triple - the triple to process. Parameters: isAdd - true if the triple is being added to the working set. |
setContinuation | public void setContinuation(RETESinkNode continuation)(Code) | | Set the continuation node for this node.
|
|
|