public class RetePanel
extends javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AGENDA_NAME
The name of the agenda panel.
|
protected jadex.rules.rulesystem.IAgendaListener |
agendalistener
The agenda listener.
|
protected AgendaPanel |
ap
The agenda panel.
|
protected edu.uci.ics.jung.graph.DirectedSparseGraph |
g
The graph.
|
protected javax.swing.JTabbedPane |
infopanels
The info panels on the right hand side.
|
protected ReteLayout |
layout
The layout.
|
static java.lang.String |
NODE_DETAILS_NAME
The name of the node details panel.
|
protected java.util.List |
remedges |
protected java.util.List |
remnodes
The currently removed nodes and edges.
|
protected jadex.commons.IBreakpointPanel |
rulebasepanel
The rulebase panel.
|
protected boolean |
showtxt
Flag if node text should be shown.
|
protected jadex.rules.rulesystem.RuleSystem |
system
The rule system.
|
protected edu.uci.ics.jung.visualization.VisualizationViewer |
vv
The viewer.
|
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
RetePanel(jadex.rules.rulesystem.RuleSystem system,
jadex.commons.ISteppable steppable,
jadex.commons.IBreakpointPanel rulebasepanel)
Create a new rete panel.
|
Modifier and Type | Method and Description |
---|---|
void |
addInfoPanel(java.lang.String name,
javax.swing.JComponent panel)
Add an info panel (right hand side).
|
protected void |
buildGraph(edu.uci.ics.jung.graph.DirectedSparseGraph g,
jadex.rules.rulesystem.rete.nodes.ReteNode root)
Build (or rebuild) the graph from the root node.
|
static javax.swing.JFrame |
createReteFrame(java.lang.String title,
jadex.rules.rulesystem.RuleSystem rs,
jadex.commons.ISteppable steppable)
Create a frame for a rete structure.
|
void |
dispose()
Dispose the panel and remove any listeners.
|
javax.swing.JComponent |
getInfoPanel(java.lang.String name)
Get an info panel with a given name.
|
protected void |
hideMarkedNodes(java.util.Set subgraph)
Hide the marked nodes.
|
void |
showHiddenNodes()
Show the hidden nodes.
|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static final java.lang.String NODE_DETAILS_NAME
public static final java.lang.String AGENDA_NAME
protected boolean showtxt
protected jadex.commons.IBreakpointPanel rulebasepanel
protected AgendaPanel ap
protected javax.swing.JTabbedPane infopanels
protected java.util.List remnodes
protected java.util.List remedges
protected edu.uci.ics.jung.graph.DirectedSparseGraph g
protected edu.uci.ics.jung.visualization.VisualizationViewer vv
protected ReteLayout layout
protected jadex.rules.rulesystem.IAgendaListener agendalistener
protected jadex.rules.rulesystem.RuleSystem system
public RetePanel(jadex.rules.rulesystem.RuleSystem system, jadex.commons.ISteppable steppable, jadex.commons.IBreakpointPanel rulebasepanel)
public void dispose()
protected void buildGraph(edu.uci.ics.jung.graph.DirectedSparseGraph g, jadex.rules.rulesystem.rete.nodes.ReteNode root)
g
- The graph.root
- The root node.public void addInfoPanel(java.lang.String name, javax.swing.JComponent panel)
public javax.swing.JComponent getInfoPanel(java.lang.String name)
protected void hideMarkedNodes(java.util.Set subgraph)
subgraph
- The subgraph.public void showHiddenNodes()
public static javax.swing.JFrame createReteFrame(java.lang.String title, jadex.rules.rulesystem.RuleSystem rs, jadex.commons.ISteppable steppable)
title
- The title for the frame.rs
- The rule system.