Package org.drools.core.reteoo

Examples of org.drools.core.reteoo.WindowTupleList


                    final PropagationContext propagationContext = new PropagationContextImpl( workingMemory.getNextPropagationIdCounter(),
                                                                                              PropagationContext.EXPIRATION,
                                                                                              null,
                                                                                              null,
                                                                                              handle );
                    WindowTupleList list = (WindowTupleList) memory.events.get( handle );
                    for( RightTuple tuple = list.getFirstWindowTuple(); tuple != null; tuple = list.getFirstWindowTuple() ) {
                        tuple.getRightTupleSink().retractRightTuple( tuple,
                                                                     propagationContext,
                                                                     workingMemory );
                        propagationContext.evaluateActionQueue( workingMemory );
                        tuple.unlinkFromRightParent();
View Full Code Here


    public void decreaseActivationsCount() {
        this.activationsCount--;
    }

    public void addFirstWindowTupleList( WindowTupleList window ) {
        WindowTupleList previous = this.firstWindowTuple;
        if ( previous == null ) {
            // no other WindowTuples, just add.
            window.setListPrevious( null );
            window.setListNext( null );
            firstWindowTuple = window;
            lastWindowTuple = window;
        } else {
            window.setListPrevious( null );
            window.setListNext( previous );
            previous.setListPrevious( window );
            firstWindowTuple = window;
        }
    }
View Full Code Here

            firstWindowTuple = window;
        }
    }
   
    public void addLastWindowTupleList( WindowTupleList window ) {
        WindowTupleList previous = this.lastWindowTuple;
        if ( previous == null ) {
            // no other WindowTuples, just add.
            window.setListPrevious( null );
            window.setListNext( null );
            firstWindowTuple = window;
            lastWindowTuple = window;
        } else {
            window.setListPrevious( previous );
            window.setListNext( null );
            previous.setListNext( window );
            lastWindowTuple = window;
        }
    }
View Full Code Here

            lastWindowTuple = window;
        }
    }
   
    public void removeWindowTupleList( WindowTupleList window ) {
        WindowTupleList previous = window.getListPrevious();
        WindowTupleList next = window.getListNext();
       
        if ( previous != null && next != null ) {
            // remove  from middle
            previous.setListNext( next );
            next.setListPrevious( previous );
        } else if ( next != null ) {
            // remove from first
            next.setListPrevious( null );
            firstWindowTuple = next;
        } else if ( previous != null ) {
            // remove from end
            previous.setListNext( null );
            lastWindowTuple = previous;
View Full Code Here

            final PropagationContext propagationContext = new PropagationContextImpl( workingMemory.getNextPropagationIdCounter(),
                                                                                      PropagationContext.EXPIRATION,
                                                                                      null,
                                                                                      null,
                                                                                      previous );
            WindowTupleList list = (WindowTupleList) memory.events.get( previous );
            for( RightTuple tuple = list.getFirstWindowTuple(); tuple != null; tuple = list.getFirstWindowTuple() ) {
                tuple.getRightTupleSink().retractRightTuple( tuple,
                                                             propagationContext,
                                                             workingMemory );
                propagationContext.evaluateActionQueue( workingMemory );
                tuple.unlinkFromRightParent();
View Full Code Here

            final PropagationContext pctx = new PropagationContextImpl( workingMemory.getNextPropagationIdCounter(),
                                                                                      PropagationContext.EXPIRATION,
                                                                                      null,
                                                                                      null,
                                                                                      previous );
            WindowTupleList list = (WindowTupleList) memory.events.get( previous );
            //for( RightTuple tuple = list.getFirstWindowTuple(); tuple != null; tuple = list.getFirstWindowTuple() ) {
            for( WindowTuple tuple = list.getFirstWindowTuple(); tuple != null) {
                WindowTuple next = tuple.getWindowNext();
                tuple.setPropagationContext(pctx);
                tuple.getRightTupleSink().retractRightTuple(tuple,
                                                            pctx,
                                                            workingMemory);
View Full Code Here

                    final PropagationContext pctx = new PropagationContextImpl( workingMemory.getNextPropagationIdCounter(),
                                                                                              PropagationContext.EXPIRATION,
                                                                                              null,
                                                                                              null,
                                                                                              handle );
                    WindowTupleList list = (WindowTupleList) memory.events.get( handle );
                    for( WindowTuple tuple = list.getFirstWindowTuple(); tuple != null) {
                        WindowTuple next = tuple.getWindowNext();
                        tuple.setPropagationContext( pctx );
                        tuple.getRightTupleSink().retractRightTuple( tuple,
                                                                     pctx,
                                                                     workingMemory );
View Full Code Here

TOP

Related Classes of org.drools.core.reteoo.WindowTupleList

Copyright © 2018 www.massapicom. 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.