/** * Dispose the panel and remove any listeners. */ public void dispose() { agenda.removeAgendaListener(listener); }
/** * Get the string representation. * @return The string representation. */ public String toString() { return rule.getName()+" needed: "+time; } }
public void actionPerformed(ActionEvent e) { if(followact.isSelected()) { Activation act = system.getAgenda().getNextActivation(); if(act!=null && followact.isSelected()) { rulebasepanel.setSelectedBreakpoints(new String[]{act.getRule().getName()}); } } else { rulebasepanel.setSelectedBreakpoints(new String[0]); } } });
/** * Dispose the panel and remove any listeners. */ public void dispose() { ap.dispose(); rulebasepanel.dispose(); system.getAgenda().removeAgendaListener(agendalistener); }
/** * Remove an activation * @param act The activation. */ public void removeActivation(Activation act) { this.activations.remove(act); if(act.equals(next)) next = null; state++; notifyListeners(); }
/** * Remove an activation * @param act The activation. */ public void removeActivation(Activation act) { this.activations.remove(act); if(act.equals(next)) next = null; state++; notifyListeners(); }
/** * Create a new rule system. */ public RuleSystem(IOAVState state, IRulebase rulebase, IPatternMatcherFunctionality matcherfunc, AbstractAgenda agenda) { this.state = state; this.rulebase = rulebase; this.matcherfunc = matcherfunc; this.matcherstate = matcherfunc.createMatcherState(state, agenda); }
/** * Create a new rule system. */ public RuleSystem(IOAVState state, IRulebase rulebase, IPatternMatcherFunctionality matcherfunc) { this(state, rulebase, matcherfunc, new FIFOAgenda()); }
/** * Dispose the panel * and remove all listeners. */ public void dispose() { rulebase.removeRulebaseListener(listener); }
/** * Get the string representation. * @return The string representation. */ public String toString() { return rule.getName()+" needed: "+time; } }
/** * Remove an activation * @param act The activation. */ public void removeActivation(Activation act) { this.activations.remove(act); if(act.equals(next)) next = null; state++; notifyListeners(); }
/** * Remove an activation * @param act The activation. */ public void removeActivation(Activation act) { this.activations.remove(act); if(act.equals(next)) next = null; state++; notifyListeners(); }
/** * Create a new rule system. */ public RuleSystem(IOAVState state, IRulebase rulebase, IPatternMatcherFunctionality matcherfunc, AbstractAgenda agenda) { this.state = state; this.rulebase = rulebase; this.matcherfunc = matcherfunc; this.matcherstate = matcherfunc.createMatcherState(state, agenda); }
/** * Create a new rule system. */ public RuleSystem(IOAVState state, IRulebase rulebase, IPatternMatcherFunctionality matcherfunc) { this(state, rulebase, matcherfunc, new FIFOAgenda()); }
/** * Create a string representation of the activation. */ public String toString() { return "Activation(rule="+rule.getName()+", values="+values+", priority="+priority+")"; // return "Activation(rule="+rule.getName()+" priority="+priority+" "+values.hashCode()+")"; } }
/** * Create a string representation of the activation. */ public String toString() { return "Activation(rule="+rule.getName()+", values="+values+", priority="+priority+")"; // return "Activation(rule="+rule.getName()+" priority="+priority+" "+values.hashCode()+")"; } }