Examples of addActivation()


Examples of org.drools.common.InternalRuleFlowGroup.addActivation()

        if (!scheduled && activated) {
            if (rule.getRuleFlowGroup() == null) {
                agendaGroup.add( activation );
            } else {
                InternalRuleFlowGroup rfg = (InternalRuleFlowGroup) ( (DefaultAgenda) wm.getAgenda() ).getRuleFlowGroup( rule.getRuleFlowGroup() );
                rfg.addActivation( activation );
            }
        }

        throw new UnsupportedOperationException(); // MDP need to update as we now have a TMS per EntryPoint
//        TruthMaintenanceSystem tms = context.wm.getTruthMaintenanceSystem();
View Full Code Here

Examples of org.drools.common.InternalRuleFlowGroup.addActivation()

        if ( activated ) {
            if ( rule.getRuleFlowGroup() == null ) {
                agendaGroup.add( activation );
            } else {
                InternalRuleFlowGroup rfg = (InternalRuleFlowGroup) ((DefaultAgenda) wm.getAgenda()).getRuleFlowGroup( rule.getRuleFlowGroup() );
                rfg.addActivation( activation );
            }
        }

        TruthMaintenanceSystem tms = context.wm.getTruthMaintenanceSystem();
        while ( stream.readShort() == PersisterEnums.LOGICAL_DEPENDENCY ) {
View Full Code Here

Examples of org.drools.common.InternalRuleFlowGroup.addActivation()

        if ( activated ) {
            if ( rule.getRuleFlowGroup() == null ) {
                agendaGroup.add( activation );
            } else {
                InternalRuleFlowGroup rfg = (InternalRuleFlowGroup) ((DefaultAgenda) wm.getAgenda()).getRuleFlowGroup( rule.getRuleFlowGroup() );
                rfg.addActivation( activation );
            }
        }

        TruthMaintenanceSystem tms = context.wm.getTruthMaintenanceSystem();
        while ( stream.readShort() == PersisterEnums.LOGICAL_DEPENDENCY ) {
View Full Code Here

Examples of org.drools.core.common.InternalAgenda.addActivation()

        final InternalAgenda agenda = (InternalAgenda) workingMemory.getAgenda();       

        boolean fire = agenda.createActivation( leftTuple,  context,
                                                workingMemory,  this );
        if( fire && !fireDirect ) {
            agenda.addActivation( (AgendaItem) leftTuple.getObject() );
        }
    }

    public static PropagationContext findMostRecentPropagationContext(final LeftTuple leftTuple,
                                                                PropagationContext context) {
View Full Code Here

Examples of org.drools.core.common.InternalAgenda.addActivation()

                                                context,
                                                workingMemory,
                                                this,
                                                false );
        if( fire && !fireDirect ) {
            agenda.addActivation( (AgendaItem) leftTuple.getObject() );
        }
    }

    public static PropagationContext findMostRecentPropagationContext(final LeftTuple leftTuple,
                                                                PropagationContext context) {
View Full Code Here

Examples of org.drools.core.common.InternalAgenda.addActivation()

        final InternalAgenda agenda = (InternalAgenda) workingMemory.getAgenda();

        boolean fire = agenda.createActivation( leftTuple,  context,
                                                workingMemory,  this );
        if( fire && !fireDirect ) {
            agenda.addActivation( (AgendaItem) leftTuple.getObject() );
        }
    }

    public void modifyLeftTuple(LeftTuple leftTuple,
                                PropagationContext context,
View Full Code Here

Examples of org.drools.core.common.InternalRuleFlowGroup.addActivation()

        if (!scheduled && activated) {
            if (rule.getRuleFlowGroup() == null) {
                agendaGroup.add( activation );
            } else {
                InternalRuleFlowGroup rfg = (InternalRuleFlowGroup) ( (DefaultAgenda) wm.getAgenda() ).getRuleFlowGroup( rule.getRuleFlowGroup() );
                rfg.addActivation( activation );
            }
        }

        throw new UnsupportedOperationException(); // MDP need to update as we now have a TMS per EntryPoint
//        TruthMaintenanceSystem tms = context.wm.getTruthMaintenanceSystem();
View Full Code Here

Examples of org.drools.core.spi.ActivationGroup.addActivation()

            if ( actgroup.getTriggeredForRecency() != 0 &&
                 actgroup.getTriggeredForRecency() >= ((InternalFactHandle) item.getPropagationContext().getFactHandle()).getRecency() ) {
                return;
            }

            actgroup.addActivation( item );
        }
    }

    public ActivationGroup getStageActivationsGroup() {
        throw new UnsupportedOperationException("rete only");
View Full Code Here

Examples of org.drools.core.spi.ActivationGroup.addActivation()

            if ( this.unlinkingEnabled && actgroup.getTriggeredForRecency() != 0 &&
                 actgroup.getTriggeredForRecency() >= ((InternalFactHandle) item.getPropagationContext().getFactHandle()).getRecency() ) {
                return;
            }

            actgroup.addActivation( item );
        }
    }

    public ActivationGroup getStageActivationsGroup() {
        if ( stagedActivations == null ) {
View Full Code Here

Examples of org.drools.core.spi.ActivationGroup.addActivation()

                if ( activation.getActivationGroupNode() != null && activation.getActivationGroupNode().getActivationGroup() == activationGroup ) {
                    // already staged, so return
                    return;
                }

                activationGroup.addActivation( activation );
            } // else, not needed for phreak
        } else {
            if ( !previouslyActive ) {
                addActivation( activation, true );
            } else {
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.