public void run() { oavpanel = new OAVPanel(bdii.getRuleSystem().getState()); SwingUtilities.invokeLater(new Runnable() { public void run() { component.add(BorderLayout.CENTER, oavpanel); component.invalidate(); component.doLayout(); component.repaint(); } }); } });
/** * Create a rule engine panel. */ public RuleEnginePanel(final RuleSystem rulesystem, final ISteppable steppable) { this.oavpanel = new OAVPanel(rulesystem.getState()); this.rulebasepanel = new RulebasePanel(rulesystem.getRulebase(), steppable); this.retepanel = new RetePanel(rulesystem, steppable, rulebasepanel); JSplitPane sp1 = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT); sp1.setOneTouchExpandable(true); sp1.add(rulebasepanel); sp1.add(retepanel); sp1.setDividerLocation(150); this.addTab("Working Memory", icons.getIcon("show_state"), oavpanel); this.addTab("Rule Engine", icons.getIcon("show_rete"), sp1); this.setSelectedIndex(0); }
hideMarkedNodes(Collections.EMPTY_SET); final NodePanel np = new NodePanel(null, mem, system.getState());
RuleSystemExecutor exe = new RuleSystemExecutor(system, true); RuleEnginePanel.createRuleEngineFrame(exe, "Blocksworld Test"); IOAVState state = system.getState();