com.ibm.able.rules
Class AblePatternMatchClause
java.lang.Object
com.ibm.able.rules.AblePatternMatchClause
- All Implemented Interfaces:
- java.io.Serializable
- public class AblePatternMatchClause
- extends java.lang.Object
- implements java.io.Serializable
This class is used to consolidate a set of Selector
variables and their associated constraint expressions for processing of
an AblePatternMatchRule. This object represents the when() part of a
when()/do{} pattern match rule.
- See Also:
AblePatternMatchRule,
AbleSelector,
Serialized Form
|
Method Summary |
java.util.Vector |
match(AbleWorkingMemory theWorkingMemory)
Returns a set of bindings that meet all selector constraints defined in
the when() part of a when/do pattern match rule |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
selectors
protected java.util.Vector selectors
resultSet
protected java.util.Vector resultSet
selectorVars
protected AbleVariable[] selectorVars
numSelectors
protected int numSelectors
workingMemory
protected AbleWorkingMemory workingMemory
myTracer
protected AbleLogger myTracer
myRuleSet
protected AbleRuleSet myRuleSet
AblePatternMatchClause
public AblePatternMatchClause(java.util.Vector theSelectors)
- Create a PatternMatchClause
- Parameters:
theSelectors - A Vector of AbleSelectors which make up the when() part of a
when/do pattern match rule
match
public java.util.Vector match(AbleWorkingMemory theWorkingMemory)
throws AbleDataException
- Returns a set of bindings that meet all selector constraints defined in
the when() part of a when/do pattern match rule
- Parameters:
theWorkingMemory - The associated working memory to search
- Returns:
- Vector of selector bindings that meet constraints
- Throws:
AbleDataException
(C) Copyright IBM Corporation 1999, 2005