Algernon Software

org.algernon.kb.okbc.protege.plugins
Class AlgernonTab

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JPanel
                  extended byedu.stanford.smi.protege.widget.AbstractWidget
                      extended byedu.stanford.smi.protege.widget.AbstractTabWidget
                          extended byorg.algernon.kb.okbc.protege.plugins.AlgernonTab
All Implemented Interfaces:
Accessible, Disposable, ImageObserver, MenuContainer, Plugin, Selectable, Serializable, TabWidget, Widget

public class AlgernonTab
extends AbstractTabWidget

This class is a Protege tab plugin that allows the user to construct and enter Algernon expressions.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.JPanel
JPanel.AccessibleJPanel
 
Nested classes inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Nested classes inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
static int ASK
           
 KeyStroke ASK_ACCELERATOR
           
 Integer ASK_MNEMONIC
           
 String ASK_TITLE
           
 String ASK_TOOLTIP
           
private static int CLEAR_LABEL_FONT_SIZE
           
 KeyStroke CLEAR_QUERY_HISTORY_ACCELERATOR
           
 Integer CLEAR_QUERY_HISTORY_MNEMONIC
           
 String CLEAR_QUERY_HISTORY_TITLE
           
 String CLEAR_QUERY_HISTORY_TOOLTIP
           
 String CLEAR_TITLE
           
static String DEFAULT_RULE_CLASS_NAME
           
 KeyStroke DELETE_ALL_RULES_ACCELERATOR
           
 Integer DELETE_ALL_RULES_MNEMONIC
           
 String DELETE_ALL_RULES_TITLE
           
 String DELETE_ALL_RULES_TOOLTIP
           
 KeyStroke DELETE_RULES_ACCELERATOR
           
 Integer DELETE_RULES_MNEMONIC
           
 String DELETE_RULES_TITLE
           
 String DELETE_RULES_TOOLTIP
           
 KeyStroke EDIT_PATHS_ACCELERATOR
           
 Integer EDIT_PATHS_MNEMONIC
           
 String EDIT_PATHS_TITLE
           
 String EDIT_PATHS_TOOLTIP
           
 KeyStroke EDIT_RULES_ACCELERATOR
           
 Integer EDIT_RULES_MNEMONIC
           
 String EDIT_RULES_TITLE
           
 String EDIT_RULES_TOOLTIP
           
private static String EXAMPLE_TEXT
           
private  JMenu f_algernonMenu
           
private  String f_algernonRuleClassName
           
private  List f_algernonRuleClassNames
           
protected  Algernon f_algy
           
private  JButton f_askButton
           
private  int f_currentResultDisplay
           
private  boolean f_enabled
           
private  ErrorSet f_errors
           
private  boolean f_initialized
           
private  JTextArea f_inputArea
           
private  JButton f_inputClearButton
           
private  int f_inputCounter
           
private  JPanel f_inputPanel
           
private  JScrollPane f_inputPanelScroller
           
private  Stack f_inputStack
           
private  AlgernonKB f_kb
           
protected  Jatha f_lisp
           
private  JLabel f_mainLabel
           
private  JPanel f_mainPanel
           
private  boolean f_menuBarInitialized
           
private  JTextArea f_messageArea
           
private  JButton f_messageClearButton
           
private  JPanel f_messagePanel
           
private  JScrollPane f_messagePanelScroller
           
private  JButton f_nextButton
           
private  JLabel f_outputNumberLabel
           
private  JPanel f_outputPanel
           
private  JScrollPane f_outputPanelScroller
           
private  JTable f_outputTable
           
private  JPanel f_pathBuilderPanel
           
private  JButton f_prevButton
           
private  Project f_ProtegeProject
           
private  Stack f_resultStack
           
private  String f_savedDirectory
           
private  JButton f_tellButton
           
private  JLabel f_versionLabel
           
private static int INPUT_AREA_TAB_SIZE
           
private static int INPUT_COLUMNS
           
private  String INPUT_PANEL_TITLE
           
private static int INPUT_ROWS
           
private static Color LABEL_COLOR
           
 KeyStroke LOAD_ACCELERATOR
           
 Integer LOAD_MNEMONIC
           
 String LOAD_TITLE
           
 String LOAD_TOOLTIP
           
private static float MAIN_LABEL_FONT_SIZE
           
private  String MAIN_TITLE
           
private static int MENU_HEIGHT
           
private static Color MENU_TITLE_COLOR
           
private static float MENU_TITLE_FONT_SIZE
           
private static int MENU_WIDTH
           
private static int MESSAGE_AREA_TAB_SIZE
           
private static int MESSAGE_COLUMNS
           
private  String MESSAGE_PANEL_TITLE
           
private static int MESSAGE_ROWS
           
static int NEXT
           
 KeyStroke NEXT_ACCELERATOR
           
 Integer NEXT_MNEMONIC
           
 String NEXT_TITLE
           
 String NEXT_TOOLTIP
           
private  String OUTPUT_PANEL_TITLE
           
private static int OUTPUT_TABLE_HEIGHT
           
private static int OUTPUT_TABLE_WIDTH
           
private  String PATH_BUILDER_TITLE
           
static int PREV
           
 KeyStroke PREV_ACCELERATOR
           
 Integer PREV_MNEMONIC
           
 String PREV_TITLE
           
 String PREV_TOOLTIP
           
 String PROGRAM_NAME
           
 KeyStroke RELOAD_ALL_RULES_ACCELERATOR
           
 Integer RELOAD_ALL_RULES_MNEMONIC
           
 String RELOAD_ALL_RULES_TITLE
           
 String RELOAD_ALL_RULES_TOOLTIP
           
 KeyStroke RELOAD_RULES_ACCELERATOR
           
 Integer RELOAD_RULES_MNEMONIC
           
 String RELOAD_RULES_TITLE
           
 String RELOAD_RULES_TOOLTIP
           
 KeyStroke SERVER_ACCELERATOR
           
 Integer SERVER_MNEMONIC
           
 String SERVER_TITLE
           
 String SERVER_TOOLTIP
           
static int TELL
           
 KeyStroke TELL_ACCELERATOR
           
 Integer TELL_MNEMONIC
           
 String TELL_TITLE
           
 String TELL_TOOLTIP
           
 KeyStroke TRACE_RULES_ACCELERATOR
           
 Integer TRACE_RULES_MNEMONIC
           
 String TRACE_RULES_TITLE
           
 String TRACE_RULES_TOOLTIP
           
private static float VERSION_LABEL_FONT_SIZE
           
 
Fields inherited from class edu.stanford.smi.protege.widget.AbstractTabWidget
 
Fields inherited from class edu.stanford.smi.protege.widget.AbstractWidget
 
Fields inherited from class javax.swing.JPanel
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Container
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
AlgernonTab()
           
 
Method Summary
 void addNotify()
           
private  void createButtons()
           
private  void createInputArea()
           
private  void createLabels()
           
private  void createMenu()
           
private  void createMessageArea()
           
private  void createOutputArea()
           
private  void createPanels()
           
private  void createPathBuilder()
           
private  void createTextAreas()
           
 void doAskOrTell(int mode, ActionEvent event)
           
 void doClearQueryHistory()
           
 void doDeleteAllRules()
          Causes all rules to be deleted.
 void doDeleteRules()
          Pops up a dialog that lets the user selected rules to be deleted.
 void doEditPaths()
          Pops up the path editor window.
 void doEditRules()
          Pops up the rule editor window.
 void doLoad()
           
 void doLoadRulesFromKB()
          Loads all rules that are instances of a specified class in the KB.
 void doManageServer()
          Enables and disables the Algernon server.
 void doReloadAllRules()
          Causes all rules to be deleted and then reloaded from the KB.
 void doReloadRules()
          Pops up a dialog that lets the user select rules to be reloaded, then deletes them and reloads them from the KB.
 void doShowResult(int direction)
           
 void doTraceRules()
          Pops up a dialog to let the user trace or untrace Rules.
 Algernon getAlgernon()
          Returns the Algernon object associated with this tab.
(package private)  String getDisplayName(Object o)
           
 void initialize()
           
static void main(String[] args)
           
(package private)  void printResultToTable(LispValue results, LispValue varsToPrint)
          This defines a method that takes a result from Algernon and prints the results in a table.
 void setup(WidgetDescriptor widgetDescriptor, Project project)
           
 
Methods inherited from class edu.stanford.smi.protege.widget.AbstractTabWidget
addMainWindowToolBarButton, canClose, canSave, close, configure, createLeftRightSplitPane, createTopBottomSplitPane, getClsTree, getIcon, getMainWindowMenuBar, getSelection, getShortDescription, isSuitable, removeMainWindowToolBarButton, save, setClsTree, setIcon, setShortDescription, synchronizeClsTree
 
Methods inherited from class edu.stanford.smi.protege.widget.AbstractWidget
addSelectionListener, beginTransaction, clearSelection, dispose, endTransaction, equals, getDescriptor, getKnowledgeBase, getLabel, getProject, getPropertyList, getStringProperty, isDesignTime, isRuntime, notifySelectionListeners, removeSelectionListener, setLabel, setPropertyList, setup, show, showInstance
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
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, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, 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, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.stanford.smi.protege.widget.Widget
getDescriptor, getKnowledgeBase, getLabel, getProject, setLabel
 
Methods inherited from interface edu.stanford.smi.protege.util.Selectable
addSelectionListener, clearSelection, notifySelectionListeners, removeSelectionListener
 
Methods inherited from interface edu.stanford.smi.protege.plugin.Plugin
getName
 
Methods inherited from interface edu.stanford.smi.protege.util.Disposable
dispose
 

Field Detail

ASK

public static int ASK

TELL

public static int TELL

PREV

public static int PREV

NEXT

public static int NEXT

DEFAULT_RULE_CLASS_NAME

public static String DEFAULT_RULE_CLASS_NAME

PROGRAM_NAME

public String PROGRAM_NAME

MAIN_TITLE

private String MAIN_TITLE

INPUT_PANEL_TITLE

private String INPUT_PANEL_TITLE

OUTPUT_PANEL_TITLE

private String OUTPUT_PANEL_TITLE

MESSAGE_PANEL_TITLE

private String MESSAGE_PANEL_TITLE

PATH_BUILDER_TITLE

private String PATH_BUILDER_TITLE

ASK_TITLE

public String ASK_TITLE

CLEAR_TITLE

public String CLEAR_TITLE

CLEAR_QUERY_HISTORY_TITLE

public String CLEAR_QUERY_HISTORY_TITLE

DELETE_ALL_RULES_TITLE

public String DELETE_ALL_RULES_TITLE

DELETE_RULES_TITLE

public String DELETE_RULES_TITLE

EDIT_PATHS_TITLE

public String EDIT_PATHS_TITLE

EDIT_RULES_TITLE

public String EDIT_RULES_TITLE

LOAD_TITLE

public String LOAD_TITLE

NEXT_TITLE

public String NEXT_TITLE

PREV_TITLE

public String PREV_TITLE

RELOAD_ALL_RULES_TITLE

public String RELOAD_ALL_RULES_TITLE

RELOAD_RULES_TITLE

public String RELOAD_RULES_TITLE

SERVER_TITLE

public String SERVER_TITLE

TELL_TITLE

public String TELL_TITLE

TRACE_RULES_TITLE

public String TRACE_RULES_TITLE

ASK_MNEMONIC

public Integer ASK_MNEMONIC

CLEAR_QUERY_HISTORY_MNEMONIC

public Integer CLEAR_QUERY_HISTORY_MNEMONIC

DELETE_ALL_RULES_MNEMONIC

public Integer DELETE_ALL_RULES_MNEMONIC

DELETE_RULES_MNEMONIC

public Integer DELETE_RULES_MNEMONIC

EDIT_PATHS_MNEMONIC

public Integer EDIT_PATHS_MNEMONIC

EDIT_RULES_MNEMONIC

public Integer EDIT_RULES_MNEMONIC

LOAD_MNEMONIC

public Integer LOAD_MNEMONIC

NEXT_MNEMONIC

public Integer NEXT_MNEMONIC

PREV_MNEMONIC

public Integer PREV_MNEMONIC

RELOAD_ALL_RULES_MNEMONIC

public Integer RELOAD_ALL_RULES_MNEMONIC

RELOAD_RULES_MNEMONIC

public Integer RELOAD_RULES_MNEMONIC

SERVER_MNEMONIC

public Integer SERVER_MNEMONIC

TELL_MNEMONIC

public Integer TELL_MNEMONIC

TRACE_RULES_MNEMONIC

public Integer TRACE_RULES_MNEMONIC

ASK_ACCELERATOR

public KeyStroke ASK_ACCELERATOR

CLEAR_QUERY_HISTORY_ACCELERATOR

public KeyStroke CLEAR_QUERY_HISTORY_ACCELERATOR

DELETE_ALL_RULES_ACCELERATOR

public KeyStroke DELETE_ALL_RULES_ACCELERATOR

DELETE_RULES_ACCELERATOR

public KeyStroke DELETE_RULES_ACCELERATOR

EDIT_PATHS_ACCELERATOR

public KeyStroke EDIT_PATHS_ACCELERATOR

EDIT_RULES_ACCELERATOR

public KeyStroke EDIT_RULES_ACCELERATOR

LOAD_ACCELERATOR

public KeyStroke LOAD_ACCELERATOR

NEXT_ACCELERATOR

public KeyStroke NEXT_ACCELERATOR

PREV_ACCELERATOR

public KeyStroke PREV_ACCELERATOR

RELOAD_ALL_RULES_ACCELERATOR

public KeyStroke RELOAD_ALL_RULES_ACCELERATOR

RELOAD_RULES_ACCELERATOR

public KeyStroke RELOAD_RULES_ACCELERATOR

SERVER_ACCELERATOR

public KeyStroke SERVER_ACCELERATOR

TELL_ACCELERATOR

public KeyStroke TELL_ACCELERATOR

TRACE_RULES_ACCELERATOR

public KeyStroke TRACE_RULES_ACCELERATOR

ASK_TOOLTIP

public String ASK_TOOLTIP

CLEAR_QUERY_HISTORY_TOOLTIP

public String CLEAR_QUERY_HISTORY_TOOLTIP

DELETE_ALL_RULES_TOOLTIP

public String DELETE_ALL_RULES_TOOLTIP

DELETE_RULES_TOOLTIP

public String DELETE_RULES_TOOLTIP

EDIT_PATHS_TOOLTIP

public String EDIT_PATHS_TOOLTIP

EDIT_RULES_TOOLTIP

public String EDIT_RULES_TOOLTIP

LOAD_TOOLTIP

public String LOAD_TOOLTIP

NEXT_TOOLTIP

public String NEXT_TOOLTIP

PREV_TOOLTIP

public String PREV_TOOLTIP

RELOAD_ALL_RULES_TOOLTIP

public String RELOAD_ALL_RULES_TOOLTIP

RELOAD_RULES_TOOLTIP

public String RELOAD_RULES_TOOLTIP

SERVER_TOOLTIP

public String SERVER_TOOLTIP

TELL_TOOLTIP

public String TELL_TOOLTIP

TRACE_RULES_TOOLTIP

public String TRACE_RULES_TOOLTIP

MAIN_LABEL_FONT_SIZE

private static float MAIN_LABEL_FONT_SIZE

VERSION_LABEL_FONT_SIZE

private static float VERSION_LABEL_FONT_SIZE

MENU_TITLE_FONT_SIZE

private static float MENU_TITLE_FONT_SIZE

INPUT_AREA_TAB_SIZE

private static int INPUT_AREA_TAB_SIZE

MESSAGE_AREA_TAB_SIZE

private static int MESSAGE_AREA_TAB_SIZE

CLEAR_LABEL_FONT_SIZE

private static int CLEAR_LABEL_FONT_SIZE

OUTPUT_TABLE_WIDTH

private static int OUTPUT_TABLE_WIDTH

OUTPUT_TABLE_HEIGHT

private static int OUTPUT_TABLE_HEIGHT

MENU_WIDTH

private static int MENU_WIDTH

MENU_HEIGHT

private static int MENU_HEIGHT

LABEL_COLOR

private static Color LABEL_COLOR

MENU_TITLE_COLOR

private static Color MENU_TITLE_COLOR

INPUT_COLUMNS

private static int INPUT_COLUMNS

INPUT_ROWS

private static int INPUT_ROWS

MESSAGE_COLUMNS

private static int MESSAGE_COLUMNS

MESSAGE_ROWS

private static int MESSAGE_ROWS

EXAMPLE_TEXT

private static String EXAMPLE_TEXT

f_algernonRuleClassName

private String f_algernonRuleClassName

f_algernonRuleClassNames

private List f_algernonRuleClassNames

f_mainPanel

private JPanel f_mainPanel

f_inputPanel

private JPanel f_inputPanel

f_outputPanel

private JPanel f_outputPanel

f_messagePanel

private JPanel f_messagePanel

f_pathBuilderPanel

private JPanel f_pathBuilderPanel

f_inputPanelScroller

private JScrollPane f_inputPanelScroller

f_outputPanelScroller

private JScrollPane f_outputPanelScroller

f_messagePanelScroller

private JScrollPane f_messagePanelScroller

f_mainLabel

private JLabel f_mainLabel

f_versionLabel

private JLabel f_versionLabel

f_outputNumberLabel

private JLabel f_outputNumberLabel

f_askButton

private JButton f_askButton

f_tellButton

private JButton f_tellButton

f_nextButton

private JButton f_nextButton

f_prevButton

private JButton f_prevButton

f_inputClearButton

private JButton f_inputClearButton

f_messageClearButton

private JButton f_messageClearButton

f_inputArea

private JTextArea f_inputArea

f_messageArea

private JTextArea f_messageArea

f_outputTable

private JTable f_outputTable

f_algernonMenu

private JMenu f_algernonMenu

f_algy

protected Algernon f_algy

f_lisp

protected Jatha f_lisp

f_enabled

private boolean f_enabled

f_errors

private ErrorSet f_errors

f_savedDirectory

private String f_savedDirectory

f_inputCounter

private int f_inputCounter

f_currentResultDisplay

private int f_currentResultDisplay

f_inputStack

private Stack f_inputStack

f_resultStack

private Stack f_resultStack

f_initialized

private boolean f_initialized

f_ProtegeProject

private Project f_ProtegeProject

f_kb

private AlgernonKB f_kb

f_menuBarInitialized

private boolean f_menuBarInitialized
Constructor Detail

AlgernonTab

public AlgernonTab()
Method Detail

setup

public void setup(WidgetDescriptor widgetDescriptor,
                  Project project)

initialize

public void initialize()

getAlgernon

public Algernon getAlgernon()
Returns the Algernon object associated with this tab.


createLabels

private void createLabels()

createPanels

private void createPanels()

createTextAreas

private void createTextAreas()

createButtons

private void createButtons()

createInputArea

private void createInputArea()

createOutputArea

private void createOutputArea()

createMessageArea

private void createMessageArea()

createPathBuilder

private void createPathBuilder()

addNotify

public void addNotify()

createMenu

private void createMenu()

doAskOrTell

public void doAskOrTell(int mode,
                        ActionEvent event)

doClearQueryHistory

public void doClearQueryHistory()

doLoad

public void doLoad()

doManageServer

public void doManageServer()
Enables and disables the Algernon server.


doShowResult

public void doShowResult(int direction)

printResultToTable

void printResultToTable(LispValue results,
                        LispValue varsToPrint)
This defines a method that takes a result from Algernon and prints the results in a table.


getDisplayName

String getDisplayName(Object o)

main

public static void main(String[] args)

doReloadRules

public void doReloadRules()
Pops up a dialog that lets the user select rules to be reloaded, then deletes them and reloads them from the KB.


doReloadAllRules

public void doReloadAllRules()
Causes all rules to be deleted and then reloaded from the KB.


doLoadRulesFromKB

public void doLoadRulesFromKB()
Loads all rules that are instances of a specified class in the KB. Let's the user select which class to load from.


doDeleteRules

public void doDeleteRules()
Pops up a dialog that lets the user selected rules to be deleted.


doDeleteAllRules

public void doDeleteAllRules()
Causes all rules to be deleted.


doTraceRules

public void doTraceRules()
Pops up a dialog to let the user trace or untrace Rules.


doEditRules

public void doEditRules()
Pops up the rule editor window.


doEditPaths

public void doEditPaths()
Pops up the path editor window.


Algernon Software