Package org.drools.reteoo

Examples of org.drools.reteoo.NotNode


                                                                                    false );
            // then attach the NOT node. It will work both as a simple not node
            // or as subnetwork join node as the context was set appropriatelly
            // in each case

            NotNode node = new NotNode( context.getNextId(),
                                        context.getTupleSource(),
                                        context.getObjectSource(),
                                        betaConstraints,
                                        context );
           
            node.setEmptyBetaConstraints( context.getBetaconstraints().isEmpty() );

            context.setTupleSource( (LeftTupleSource) utils.attachNode( context,
                                                                        node ) );
            context.setBetaconstraints( null );
            context.setObjectSource( null );
View Full Code Here


                                                              buildContext.getRuleBase().getConfiguration() );                   
                    break;                                       
                       
            }

            NotNode notNode = new NotNode( buildContext.getNextId(),
                                           leftTupleSource,
                                           rightObjectSource,
                                           constraints,
                                           BehaviorManager.NO_BEHAVIORS,
                                           buildContext );
            notNode.attach();
            context.put( name,
                         notNode );

        } else {
            throw new IllegalArgumentException( "Cannot arguments " + args );
View Full Code Here

            // then attach the NOT node. It will work both as a simple not node
            // or as subnetwork join node as the context was set appropriatelly
            // in each case
            context.setTupleSource( (LeftTupleSource) utils.attachNode( context,
                                                                        new NotNode( context.getNextId(),
                                                                                     context.getTupleSource(),
                                                                                     context.getObjectSource(),
                                                                                     betaConstraints,
                                                                                     behaviors,
                                                                                     context ) ) );
View Full Code Here

                                                                                    context.getBetaconstraints(),
                                                                                    false );
            // then attach the NOT node. It will work both as a simple not node
            // or as subnetwork join node as the context was set appropriatelly
            // in each case
            NotNode node = new NotNode( context.getNextId(),
                                        context.getTupleSource(),
                                        context.getObjectSource(),
                                        betaConstraints,
                                        context );
            context.setTupleSource( (LeftTupleSource) utils.attachNode( context,
View Full Code Here

            Behavior[] behaviors = createBehaviorArray( context );

            // then attach the NOT node. It will work both as a simple not node
            // or as subnetwork join node as the context was set appropriatelly
            // in each case
            NotNode node = null;
            node = new NotNode( context.getNextId(),
                                context.getTupleSource(),
                                context.getObjectSource(),
                                betaConstraints,
                                behaviors,
                                context );
View Full Code Here

            Behavior[] behaviors = createBehaviorArray( context );

            // then attach the NOT node. It will work both as a simple not node
            // or as subnetwork join node as the context was set appropriatelly
            // in each case
            NotNode node = null;
            if( GroupElement.FORALL_NOT.equals( not.getType() ) ) {
                node = new ForallNotNode( context.getNextId(),
                             context.getTupleSource(),
                             context.getObjectSource(),
                             betaConstraints,
                             behaviors,
                             context,
                             not.getForallBaseObjectType() );
            } else {
                node = new NotNode( context.getNextId(),
                                    context.getTupleSource(),
                                    context.getObjectSource(),
                                    betaConstraints,
                                    behaviors,
                                    context );
View Full Code Here

            Behavior[] behaviors = createBehaviorArray( context );

            // then attach the NOT node. It will work both as a simple not node
            // or as subnetwork join node as the context was set appropriatelly
            // in each case
            NotNode node = null;
            if( GroupElement.FORALL_NOT.equals( not.getType() ) ) {
                node = new ForallNotNode( context.getNextId(),
                             context.getTupleSource(),
                             context.getObjectSource(),
                             betaConstraints,
                             behaviors,
                             context,
                             not.getForallBaseObjectType() );
            } else {
                node = new NotNode( context.getNextId(),
                                    context.getTupleSource(),
                                    context.getObjectSource(),
                                    betaConstraints,
                                    behaviors,
                                    context );
View Full Code Here

        ExistsNode existsNode = (ExistsNode) riaNode2.getSinkPropagator().getSinks()[0];

        QueryElementNode queryElementNode3 = (QueryElementNode) existsNode.getSinkPropagator().getSinks()[0];
        FromNode fromNode = (FromNode) queryElementNode3.getSinkPropagator().getSinks()[0];
        RightInputAdapterNode riaNode3 = (RightInputAdapterNode) fromNode.getSinkPropagator().getSinks()[0];
        NotNode notNode = (NotNode) riaNode3.getSinkPropagator().getSinks()[0];

        StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();
        ReteooWorkingMemoryInterface wm = ((StatefulKnowledgeSessionImpl) ksession).session;
        AccumulateMemory accMemory = (AccumulateMemory) wm.getNodeMemory( accNode );
        BetaMemory existsMemory = (BetaMemory) wm.getNodeMemory( existsNode );
View Full Code Here

                                                                               buildContext.getRuleBase().getConfiguration() );
            } else {
                constraints = new EmptyBetaConstraints();
            }

            NotNode notNode = new NotNode( buildContext.getNextId(),
                                           leftTupleSource,
                                           rightObjectSource,
                                           constraints,
                                           BehaviorManager.NO_BEHAVIORS,
                                           buildContext );
            notNode.attach();
            context.put( name,
                         notNode );

        } else {
            throw new IllegalArgumentException( "Cannot arguments " + args );
View Full Code Here

                                                              buildContext.getRuleBase().getConfiguration() );                   
                    break;                                       
                       
            }

            NotNode notNode = new NotNode( buildContext.getNextId(),
                                           leftTupleSource,
                                           rightObjectSource,
                                           constraints,
                                           buildContext );
            notNode.attach();
            context.put( name,
                         notNode );

        } else {
            throw new IllegalArgumentException( "Cannot arguments " + args );
View Full Code Here

TOP

Related Classes of org.drools.reteoo.NotNode

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.