/** * Fire one activated rule. */ public void fireRule() { last = getNextActivation(); if(last!=null) { if(history!=null) history.add(last.toString()); // System.err.println("++++++++ executing: "+last); // if(last.toString().indexOf("listener_belief_changed")!=-1) // System.out.println("hhhhh"); last.execute(); // Hack!!! Shouldn't remove executed activations? removeActivation(last); } }
/** * Fire one activated rule. */ public void fireRule() { last = getNextActivation(); if(last!=null) { if(history!=null) history.add(last.toString()); // System.err.println("++++++++ executing: "+last); // if(last.toString().indexOf("listener_belief_changed")!=-1) // System.out.println("hhhhh"); last.execute(); // Hack!!! Shouldn't remove executed activations? removeActivation(last); } }