/** * Fire all rules until quiescence. */ public void fireAllRules() { IAgenda agenda = getAgenda(); state.notifyEventListeners(); do { agenda.fireRule(); state.expungeStaleObjects(); state.notifyEventListeners(); } while(!agenda.isEmpty()); }
/** * Fire all rules until quiescence. */ public void fireAllRules() { IAgenda agenda = getAgenda(); state.notifyEventListeners(); do { agenda.fireRule(); state.expungeStaleObjects(); state.notifyEventListeners(); } while(!agenda.isEmpty()); }
state.setAttributeValue(rootgoal, movegoal_has_number, Integer.valueOf(num)); state.addAttributeValue(agent, agent_has_movegoals, rootgoal); state.notifyEventListeners(); state.notifyEventListeners();
rulesystem.getState().notifyEventListeners();
rulesystem.getState().notifyEventListeners();
state.notifyEventListeners(); if(agenda_state!=getRuleSystem().getAgenda().getState())
state.getProfiler().start(IProfiler.TYPE_RULE, act!=null?act.getRule():null); state.expungeStaleObjects(); state.notifyEventListeners(); state.getProfiler().stop(IProfiler.TYPE_RULE, act!=null?act.getRule():null); state.notifyEventListeners(); state.getProfiler().stop(IProfiler.TYPE_RULE, act!=null?act.getRule():null);
state.notifyEventListeners(); System.out.println("Rete memory: "+((RetePatternMatcherState)system.getMatcherState()).getReteMemory());