/** * Create a new build context. */ public BuildContext(ReteNode root, IRule rule)// INode lastbnode, int tuplecnt) { this.root = root==null? new ReteNode(): root; this.rule = rule; this.lastanode = null; this.lastbnode = null; this.tuplecnt = 0; // this.lastbnode = lastbnode;//lastnode==null? root: lastnode; // this.tuplecnt = tuplecnt; this.varinfos = new HashMap(); this.alpha = false; // Will only be temporarily activated when building object conditions }
/** * Create a new build context. */ public BuildContext(ReteNode root, IRule rule)// INode lastbnode, int tuplecnt) { this.root = root==null? new ReteNode(): root; this.rule = rule; this.lastanode = null; this.lastbnode = null; this.tuplecnt = 0; // this.lastbnode = lastbnode;//lastnode==null? root: lastnode; // this.tuplecnt = tuplecnt; this.varinfos = new HashMap(); this.alpha = false; // Will only be temporarily activated when building object conditions }
/** * Create a new Rete pattern matcher functionality. */ public RetePatternMatcherFunctionality(IRulebase rulebase) { this.rulebase = rulebase; this.node = new ReteNode(); // Build existing rules of the rulebase. for(Iterator it=rulebase.getRules().iterator(); it.hasNext(); ) node.addRule((IRule)it.next()); node.setInited(true); rulebase.addRulebaseListener(this); }
/** * Create a new Rete pattern matcher functionality. */ public RetePatternMatcherFunctionality(IRulebase rulebase) { this.rulebase = rulebase; this.node = new ReteNode(); // Build existing rules of the rulebase. for(Iterator it=rulebase.getRules().iterator(); it.hasNext(); ) node.addRule((IRule)it.next()); node.setInited(true); rulebase.addRulebaseListener(this); }