Examples of TupleHashTable


Examples of org.drools.util.TupleHashTable

    }

    public void retractTuple(final ReteTuple tuple,
                             final PropagationContext context,
                             final InternalWorkingMemory workingMemory) {
        final TupleHashTable memory = (TupleHashTable) workingMemory.getNodeMemory( this );

        // can we improve that?
        final ReteTuple memTuple = memory.remove( tuple );
        if ( memTuple != null ) {
            this.sink.propagateRetractTuple( memTuple,
                                             context,
                                             workingMemory );
        }
View Full Code Here

Examples of org.drools.util.TupleHashTable

        return this.tupleSource.equals( other.tupleSource ) && this.condition.equals( other.condition );
    }

    public Object createMemory(final RuleBaseConfiguration config) {
        return new TupleHashTable();
    }
View Full Code Here

Examples of org.drools.util.TupleHashTable

     */
    public void updateSink(final TupleSink sink,
                           final PropagationContext context,
                           final InternalWorkingMemory workingMemory) {

        final TupleHashTable memory = (TupleHashTable) workingMemory.getNodeMemory( this );

        final Iterator it = memory.iterator();
        for ( ReteTuple tuple = (ReteTuple) it.next(); tuple != null; tuple = (ReteTuple) it.next() ) {
            sink.assertTuple( tuple,
                              context,
                              workingMemory );
        }
View Full Code Here

Examples of org.drools.util.TupleHashTable

            }
        }
    }

    public Object createMemory(final RuleBaseConfiguration config) {
        return new BetaMemory( new TupleHashTable(),
                               null );
    }
View Full Code Here

Examples of org.drools.util.TupleHashTable

        private RuleFlowGroup       ruleFlowGroup;

        private TupleHashTable      tupleMemory;
       
        public TerminalNodeMemory() {
            this.tupleMemory = new TupleHashTable();
        }
View Full Code Here

Examples of org.drools.util.TupleHashTable

        private RuleFlowGroup     ruleFlowGroup;

        private TupleHashTable    tupleMemory;

        public TerminalNodeMemory() {
            this.tupleMemory = new TupleHashTable();
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.